Documentation
¶
Index ¶
- func DetectAWSCredentialsExported() bool
- func GetAllExportedAWSCredentials() map[string]string
- func IsAWSCredSet(key string) error
- func NewAWSDefaultConfig(ctx context.Context, region string) (aws.Config, error)
- type AWSAdapter
- type AWSCred
- type AWSCreds
- type Builder
- func (b *Builder) Build(optFns ...func(*InitAWSAdapterOptions) error) (*AWSAdapter, error)
- func (b *Builder) WithCloudWatchLogs() func(*InitAWSAdapterOptions) error
- func (b *Builder) WithDynamoDB() func(*InitAWSAdapterOptions) error
- func (b *Builder) WithECR() func(*InitAWSAdapterOptions) error
- func (b *Builder) WithECS() func(*InitAWSAdapterOptions) error
- func (b *Builder) WithS3() func(*InitAWSAdapterOptions) error
- func (b *Builder) WithSecretsManager() func(*InitAWSAdapterOptions) error
- type ECSConnector
- type ECSReader
- type InitAWSAdapterOptions
- type InitAWSAdapterOptionsFunc
- type InitECSClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectAWSCredentialsExported ¶
func DetectAWSCredentialsExported() bool
func IsAWSCredSet ¶
Types ¶
type AWSAdapter ¶
type AWSAdapter struct { Region string // Add clients here. ECSClient *ecs.Client ECRClient *ecr.Client S3Client *s3.Client DynamoDBClient *dynamodb.Client CloudWatchLogsClient *cloudwatchlogs.Client SecretsManagerClient *secretsmanager.Client // Add general purpose logger. Logger o11y.LoggerInterface }
type AWSCred ¶
func GetAWSCredentialsReport ¶
func GetAWSCredentialsReport() []AWSCred
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, l o11y.LoggerInterface, options InitAWSAdapterOptions) (*Builder, error)
func (*Builder) Build ¶
func (b *Builder) Build(optFns ...func(*InitAWSAdapterOptions) error) (*AWSAdapter, error)
func (*Builder) WithCloudWatchLogs ¶
func (b *Builder) WithCloudWatchLogs() func(*InitAWSAdapterOptions) error
func (*Builder) WithDynamoDB ¶
func (b *Builder) WithDynamoDB() func(*InitAWSAdapterOptions) error
func (*Builder) WithECR ¶
func (b *Builder) WithECR() func(*InitAWSAdapterOptions) error
func (*Builder) WithECS ¶
func (b *Builder) WithECS() func(*InitAWSAdapterOptions) error
func (*Builder) WithS3 ¶
func (b *Builder) WithS3() func(*InitAWSAdapterOptions) error
func (*Builder) WithSecretsManager ¶
func (b *Builder) WithSecretsManager() func(*InitAWSAdapterOptions) error
type ECSConnector ¶
func NewECSConnector ¶
func NewECSConnector(ctx context.Context, client *ecs.Client, logger o11y.LoggerInterface) *ECSConnector
func (*ECSConnector) ListECSClusters ¶
func (e *ECSConnector) ListECSClusters() (*ecs.ListClustersOutput, error)
func (*ECSConnector) ListECSServices ¶
func (e *ECSConnector) ListECSServices() (*ecs.ListServicesOutput, error)
func (*ECSConnector) ListTaskDefinitions ¶
func (e *ECSConnector) ListTaskDefinitions() (*ecs.ListTaskDefinitionsOutput, error)
type ECSReader ¶
type ECSReader interface { ListECSServices() (*ecs.ListServicesOutput, error) ListECSClusters() (*ecs.ListClustersOutput, error) ListTaskDefinitions() (*ecs.ListTaskDefinitionsOutput, error) }
type InitAWSAdapterOptions ¶
type InitAWSAdapterOptionsFunc ¶
type InitAWSAdapterOptionsFunc func(*InitAWSAdapterOptions) error
type InitECSClientOptions ¶
type InitECSClientOptions struct { }
Click to show internal directories.
Click to hide internal directories.