Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store interface { // Get gets a single value from the specified path. Get(path, key string) (string, error) // GetBulk gets all key/value pairs from the specified path. GetBulk(path string) (map[string]string, error) // Post updates a single value at the specified path. Post(path, key, value string) error // PostBulk updates all key/value pairs at the specified path. PostBulk(path string, values map[string]string) error }
Store is a repository of credentials for use by omg plugins.
func NewFileStore ¶ added in v0.1.6
NewFileStore creates a Store backed by local files at the specified root directory.
func NewStore ¶ added in v1.0.0
NewStore creates a new Store based on the specified connection string. The following connection strings are supported:
- Hashicorp Vault: 'vault://TOKEN@domain:port'
- Filesystem: 'file://rootdir'
func NewVaultStore ¶
NewVaultStore creates a Store backed by Hashicorp's Vault.
Click to show internal directories.
Click to hide internal directories.