kubestore
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package kubestore contains an ipn.StateStore implementation using Kubernetes Secrets.
Index¶
- type Store
- func (s *Store) ReadState(id ipn.StateKey) ([]byte, error)
- func (s *Store) ReadTLSCertAndKey(domain string) (cert, key []byte, err error)
- func (s *Store) SetDialer(d func(ctx context.Context, network, address string) (net.Conn, error))
- func (s *Store) String() string
- func (s *Store) WriteState(id ipn.StateKey, bs []byte) (err error)
- func (s *Store) WriteTLSCertAndKey(domain string, cert, key []byte) (err error)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeStore¶
type Store struct {// contains filtered or unexported fields}Store is an ipn.StateStore that uses a Kubernetes Secret for persistence.
funcNew¶
New returns a new Store that persists state to Kubernets Secret(s).Tailscale state is stored in a Secret named by the secretName parameter.TLS certs are stored and retrieved from state Secret or separate Secretsnamed after TLS endpoints if running in cert share mode.
func (*Store)ReadTLSCertAndKey¶added inv1.82.0
ReadTLSCertAndKey reads a TLS cert and key from memory or from adomain-specific Secret. It first checks the in-memory store, if not found inmemory and running cert store in read-only mode, looks up a Secret.Note that write replicas of HA Ingress always retrieve TLS certs from Secrets.
func (*Store)WriteState¶
WriteState implements the StateStore interface.