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 RedisClient ¶ added in v1.159.0
type RedisClient interface { Get(ctx context.Context, key string) *redis.StringCmd Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd }
RedisClient interface allows us to mock the Redis Client in test with only the methods we are using in the RedisStore.
type RedisStore ¶ added in v1.159.0
type RedisStore struct {
// contains filtered or unexported fields
}
type RedisStoreOptions ¶ added in v1.159.0
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 NewRedisStore ¶ added in v1.159.0
func NewRedisStore(options RedisStoreOptions) (Store, error)
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.