aws

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECS

type ECS struct {
	// contains filtered or unexported fields
}

func NewECS

func NewECS(client ECSClient) *ECS

func (*ECS) ForceNewDeployment

func (e *ECS) ForceNewDeployment(ctx context.Context, cluster string, services []string) error

Services not found return an error; inactive services are skipped with a warning.

type ECSClient

type ECSClient interface {
	UpdateService(ctx context.Context, params *ecs.UpdateServiceInput, optFns ...func(*ecs.Options)) (*ecs.UpdateServiceOutput, error)
	DescribeServices(ctx context.Context, params *ecs.DescribeServicesInput, optFns ...func(*ecs.Options)) (*ecs.DescribeServicesOutput, error)
}

type SecretsClient

type SecretsClient interface {
	GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
	PutSecretValue(ctx context.Context, params *secretsmanager.PutSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.PutSecretValueOutput, error)
}

type SecretsManager

type SecretsManager struct {
	// contains filtered or unexported fields
}

func NewSecretsManager

func NewSecretsManager(client SecretsClient) *SecretsManager

func (*SecretsManager) GetSecretString

func (s *SecretsManager) GetSecretString(ctx context.Context, arn string) (string, error)

func (*SecretsManager) MergeAndPutSecret

func (s *SecretsManager) MergeAndPutSecret(ctx context.Context, targetARN string, sourceData map[string]any, keys []string) error

ClientRequestToken is derived from the target's current VersionId so that concurrent invocations processing the same event produce the same token — making the second write a no-op.

Jump to

Keyboard shortcuts

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