Documentation ¶
Index ¶
- type Service
- func (vs *Service) DeleteEntry(appName, scope, name string) error
- func (vs *Service) GetCurrentVersion(appName, scope string) (int64, error)
- func (vs *Service) GetEntries(appName, scope string) (map[string]interface{}, error)
- func (vs *Service) GetEntry(appName, scope, name string) (interface{}, error)
- func (vs *Service) GetLatestVersion(appName, scope string) (int64, error)
- func (vs *Service) ListAppNames() ([]string, error)
- func (vs *Service) ListEntries(appName, scope string) ([]string, error)
- func (vs *Service) PushPolicies(policies map[string]string) error
- func (vs *Service) Read(appName, scope string) error
- func (vs *Service) SetEntries(appName, scope string, data map[string]interface{}) error
- func (vs *Service) SetEntry(appName, scope, name string, value interface{}) error
- func (vs *Service) Write(appName, scope string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains scoped secret data, Vault client and configuration
func NewService ¶
func NewService(deploymentID string, encryptor types.Encryptor, addr, token string) (*Service, error)
NewService instantiates a Vault service
func (*Service) DeleteEntry ¶
Delete key from Data, Metadata and Vault
func (*Service) GetCurrentVersion ¶
GetCurrentVersion returns current data version in cache
func (*Service) GetEntries ¶
GetEntries returns all the secrets currently stored in Vault
func (*Service) GetLatestVersion ¶
GetLatestVersion returns latest data version from vault
func (*Service) ListAppNames ¶
ListAppNames returns a slice containing all app names inside the deploymentID namespace
func (*Service) ListEntries ¶
ListEntries returns a slice containing all secret keys of a scope
func (*Service) SetEntries ¶
SetEntries inserts given data into the secret store, overwriting keys if they exist
Click to show internal directories.
Click to hide internal directories.