Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECSAPI ¶ added in v0.9.4
type ECSAPI interface {
ListTasks(ctx context.Context, params *ecs.ListTasksInput, optFns ...func(*ecs.Options)) (*ecs.ListTasksOutput, error)
DescribeTasks(ctx context.Context, params *ecs.DescribeTasksInput, optFns ...func(*ecs.Options)) (*ecs.DescribeTasksOutput, error)
}
ECSAPI defines the interface for ECS v2 used by the controller.
type ECSClient ¶
ECSClient implements the ECSAPI for testing.
func (*ECSClient) DescribeTasks ¶
func (m *ECSClient) DescribeTasks(ctx context.Context, params *ecs.DescribeTasksInput, optFns ...func(*ecs.Options)) (*ecs.DescribeTasksOutput, error)
type SMAPI ¶ added in v0.9.4
type SMAPI interface {
GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
UpdateSecret(ctx context.Context, params *secretsmanager.UpdateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.UpdateSecretOutput, error)
}
SMAPI defines the interface for Secrets Manager v2 used by the controller. This interface allows you to swap the real SDK client with this mock.
type SMClient ¶
type SMClient struct {
Secret *secretsmanager.GetSecretValueOutput
}
SMClient implements a mock for the Secrets Manager v2 client.
func (*SMClient) GetSecretValue ¶
func (m *SMClient) GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
GetSecretValue mock implementation
func (*SMClient) UpdateSecret ¶
func (m *SMClient) UpdateSecret(ctx context.Context, params *secretsmanager.UpdateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.UpdateSecretOutput, error)
UpdateSecret mock implementation
Click to show internal directories.
Click to hide internal directories.