Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactoryClient ¶ added in v1.148.1
type ArtifactoryClient interface { DownloadFiles(...services.DownloadParams) (int, int, error) UploadFiles(artifactory.UploadServiceOptions, ...services.UploadParams) (int, int, error) }
ArtifactoryClient interface allows us to mock the Artifactory Services Managernager in test with only the methods we are using in the ArtifactoryStore.
type ArtifactoryStore ¶ added in v1.148.1
type ArtifactoryStore struct {
// contains filtered or unexported fields
}
type ArtifactoryStoreOptions ¶ added in v1.148.1
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
InMemoryStore implements the Store interface with an in-memory map
func (*InMemoryStore) Get ¶
func (s *InMemoryStore) Get(stack, component, key string) (interface{}, error)
Get retrieves a value from memory
func (*InMemoryStore) Set ¶
func (s *InMemoryStore) Set(stack, component, key string, value interface{}) error
Set stores a value 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 Store ¶
type Store interface { Set(stack string, component string, key string, value interface{}) error Get(stack string, component string, key string) (interface{}, error) }
Store defines the common interface for all store implementations.
func NewArtifactoryStore ¶ added in v1.148.1
func NewArtifactoryStore(options ArtifactoryStoreOptions) (Store, error)
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