mocks

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MPL-2.0 Imports: 7 Imported by: 0

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

type ECSClient struct {
	Tasks           []types.Task
	PaginateResults bool
}

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)

func (*ECSClient) ListTasks

func (m *ECSClient) ListTasks(ctx context.Context, params *ecs.ListTasksInput, optFns ...func(*ecs.Options)) (*ecs.ListTasksOutput, 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

GetSecretValue mock implementation

func (*SMClient) UpdateSecret

UpdateSecret mock implementation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL