Documentation ¶
Index ¶
- Constants
- Variables
- type MemoryStore
- func (s *MemoryStore) Delete(name ParameterName) error
- func (s *MemoryStore) Get(name ParameterName, version int) (Value, error)
- func (s *MemoryStore) List(prefix string, includeValues bool) ([]Value, error)
- func (s *MemoryStore) ListRaw(prefix string) ([]RawValue, error)
- func (s *MemoryStore) Put(name ParameterName, value Value) error
- type Metadata
- type NullStore
- func (s *NullStore) Delete(name ParameterName) error
- func (s *NullStore) Get(name ParameterName, version int) (Value, error)
- func (s *NullStore) List(prefix string, includeValues bool) ([]Value, error)
- func (s *NullStore) ListRaw(prefix string) ([]RawValue, error)
- func (s *NullStore) Put(name ParameterName, value Value) error
- type ParameterName
- type RawValue
- type SSMStore
- func (s *SSMStore) Delete(name ParameterName) error
- func (s *SSMStore) Get(name ParameterName, version int) (Value, error)
- func (s *SSMStore) KMSKey() string
- func (s *SSMStore) List(prefix string, includeValues bool) ([]Value, error)
- func (s *SSMStore) ListRaw(prefix string) ([]RawValue, error)
- func (s *SSMStore) Put(name ParameterName, value Value) error
- type Store
- type Value
Constants ¶
View Source
const ( // AccountDefaultSSMAliasKeyID represents account's default SSM alias used // to encrypt/decrypt configuration secrets AccountDefaultSSMAliasKeyID = "aws/ssm" )
Variables ¶
View Source
var ( // ErrConfigNotFound is returned if the specified config is not found in the // parameter store. ErrConfigNotFound = errors.New("config not found") )
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func NewMemoryStoreFromMap ¶
func NewMemoryStoreFromMap(m map[string]string) *MemoryStore
func (*MemoryStore) Delete ¶
func (s *MemoryStore) Delete(name ParameterName) error
func (*MemoryStore) Get ¶
func (s *MemoryStore) Get(name ParameterName, version int) (Value, error)
func (*MemoryStore) List ¶
func (s *MemoryStore) List(prefix string, includeValues bool) ([]Value, error)
func (*MemoryStore) Put ¶
func (s *MemoryStore) Put(name ParameterName, value Value) error
type NullStore ¶
type NullStore struct{}
func NewNullStore ¶
func NewNullStore() *NullStore
func (*NullStore) Delete ¶
func (s *NullStore) Delete(name ParameterName) error
type ParameterName ¶
ParameterName represents full name of the configuration parameter
type SSMStore ¶
type SSMStore struct {
// contains filtered or unexported fields
}
SSMStore implements the Store interface for storing configurations in SSM Parameter Store
func NewSSMStore ¶
NewSSMStore creates a new SSMStore
func (*SSMStore) Delete ¶
func (s *SSMStore) Delete(name ParameterName) error
Delete removes a configuration from the parameter store. Note this removes all versions of the configuration.
func (*SSMStore) Get ¶
func (s *SSMStore) Get(name ParameterName, version int) (Value, error)
Get reads a configuration from the parameter store at a specific version. To grab the latest version, use -1 as the version number.
Click to show internal directories.
Click to hide internal directories.