kubestore

package
v1.60.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: BSD-3-Clause Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store is an ipn.StateStore that uses a Kubernetes Secret for persistence.

func New

func New(_ logger.Logf, secretName string) (*Store, error)

New returns a new Store that persists to the named secret.

func (*Store) ReadState

func (s *Store) ReadState(id ipn.StateKey) ([]byte, error)

ReadState implements the StateStore interface.

func (*Store) SetDialer added in v1.40.0

func (s *Store) SetDialer(d func(ctx context.Context, network, address string) (net.Conn, error))

func (*Store) String

func (s *Store) String() string

func (*Store) WriteState

func (s *Store) WriteState(id ipn.StateKey, bs []byte) error

WriteState implements the StateStore interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL