Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store provides a simple read/write abstraction for persistence.
func NewSecretStore ¶
func NewSecretStore(cli kubernetes.Interface, namespace, namePrefix string) Store
NewSecretStore returns a Store that persists data in Kubernetes Secrets. Data is gzip-compressed and chunked into secrets named <namePrefix>-0, <namePrefix>-1, etc. in the given namespace.
type StupidDB ¶
type StupidDB struct {
// contains filtered or unexported fields
}
StupidDB is a stupid persistence store for protobufs that support `GetMetadata().GetId()`. It must not be used in production. It is intended to be thrown away.
func NewStupidDB ¶
func NewStupidDBWithSecret ¶
func NewStupidDBWithSecret(cli kubernetes.Interface, namespace, namePrefix string) *StupidDB
NewStupidDBWithSecret creates a StupidDB backed by Kubernetes Secrets. Data is gzip-compressed and chunked into secrets named <namePrefix>-0, <namePrefix>-1, etc. in the given namespace.
func (*StupidDB) CreateOrUpdate ¶
Click to show internal directories.
Click to hide internal directories.