aws

package
v0.0.0-...-afaa0d5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProvider

func RegisterProvider(region string)

Types

type AWSProvider

type AWSProvider struct {
	EcsService            ECSService
	SecretsManagerService SecretsManagerService
	SecretCache           map[string]*fastjson.Value // Updated cache type
	// contains filtered or unexported fields
}

func NewAWSProvider

func NewAWSProvider(region string) *AWSProvider

func (*AWSProvider) GetSecretValue

func (a *AWSProvider) GetSecretValue(secretArn, secretName string) (*fastjson.Value, error)

func (*AWSProvider) GetTaskDefinitions

func (a *AWSProvider) GetTaskDefinitions(taskDefinitionName string) ([]*provider.ContainerDefinition, error)

type ECSService

type ECSService interface {
	DescribeTaskDefinition(input *ecs.DescribeTaskDefinitionInput) (*ecs.DescribeTaskDefinitionOutput, error)
}

type MockECSService

type MockECSService struct {
	TaskDefOutput *ecs.DescribeTaskDefinitionOutput
	Error         error
}

func (*MockECSService) DescribeTaskDefinition

type MockSecretsManagerService

type MockSecretsManagerService struct {
	SecretOutput *secretsmanager.GetSecretValueOutput
	Error        error
}

func (*MockSecretsManagerService) GetSecretValue

type SecretsManagerService

type SecretsManagerService interface {
	GetSecretValue(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, error)
}

Jump to

Keyboard shortcuts

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