Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
InMemoryStore is an in-memory store implementation.
func (*InMemoryStore) Get ¶
func (m *InMemoryStore) Get(key string) (interface{}, error)
Get retrieves a value by key from memory.
func (*InMemoryStore) Set ¶
func (m *InMemoryStore) Set(key string, value interface{}) error
Set stores a key-value pair in memory.
type SSMClient ¶
type SSMClient interface { PutParameter(ctx context.Context, params *ssm.PutParameterInput, optFns ...func(*ssm.Options)) (*ssm.PutParameterOutput, error) GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error) }
SSMClient interface allows us to mock the AWS SSM client
type SSMStore ¶
type SSMStore struct {
// contains filtered or unexported fields
}
SSMStore is an implementation of the Store interface for AWS SSM Parameter Store.
type SSMStoreOptions ¶
type SSMStoreOptions struct {
Region string `mapstructure:"region"`
}
type Store ¶
type Store interface { Set(key string, value interface{}) error Get(key string) (interface{}, error) // Default values if it doesn't exist? }
Store defines the common interface for all store implementations.
func NewInMemoryStore ¶
NewInMemoryStore initializes a new MemoryStore.
func NewSSMStore ¶
func NewSSMStore(options SSMStoreOptions) (Store, error)
NewInMemoryStore initializes a new MemoryStore.
type StoreConfig ¶
type StoreFactory ¶
StoreFactory is a function type to initialize a new store.
type StoreRegistry ¶
func NewStoreRegistry ¶
func NewStoreRegistry(config *StoresConfig) (StoreRegistry, error)
type StoresConfig ¶
type StoresConfig = map[string]StoreConfig
Click to show internal directories.
Click to hide internal directories.