Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigStore ¶
type ConfigStore interface { // Write saves some secret data to the store Write(name string, bytes []byte) error // Read reads some secret data from the store Read(name string) ([]byte, error) // WriteObject writes a named object to the store WriteObject(name string, object interface{}) error // ReadObject reads an object from the store ReadObject(name string, object interface{}) error }
ConfigStore provides an interface for storing configs
func NewFileStore ¶
func NewFileStore() ConfigStore
NewFileStore creates a ConfigStore that stores its data to the filesystem
func NewVaultStore ¶
func NewVaultStore(client vault.Client, path string) ConfigStore
NewVaultStore creates a new store which stores its data in Vault
Click to show internal directories.
Click to hide internal directories.