Documentation ¶
Index ¶
- type AWSBackendOption
- func WithAWSProfile(profile string) AWSBackendOption
- func WithAWSRegion(region string) AWSBackendOption
- func WithAWSSession(session *session.Session) AWSBackendOption
- func WithEC2Client(client ec2iface.EC2API) AWSBackendOption
- func WithECRClient(client ecriface.ECRAPI) AWSBackendOption
- func WithECSClient(client ecsiface.ECSAPI) AWSBackendOption
- func WithIntegrationSecret(integrationSecret *config.IntegrationSecret) AWSBackendOption
- func WithLogsClient(client cloudwatchlogsiface.CloudWatchLogsAPI) AWSBackendOption
- func WithSSMClient(client ssmiface.SSMAPI) AWSBackendOption
- func WithSTSClient(client stsiface.STSAPI) AWSBackendOption
- func WithSecretsClient(client secretsmanageriface.SecretsManagerAPI) AWSBackendOption
- type Backend
- func (b *Backend) Conf() *instantiatedConfig
- func (b *Backend) ECRGetAuthorizationToken(ctx context.Context) (*ECRAuthorizationToken, error)
- func (b *Backend) GenerateTag(ctx context.Context) (string, error)
- func (b *Backend) GetEC2Client() ec2iface.EC2API
- func (b *Backend) GetECRClient() ecriface.ECRAPI
- func (b *Backend) GetECSClient() ecsiface.ECSAPI
- func (ab *Backend) GetParam(ctx context.Context, path string) (string, error)
- func (b *Backend) GetUserName(ctx context.Context) (string, error)
- func (b *Backend) RunTask(ctx context.Context, taskDefArn string, launchType config.LaunchType) error
- func (ab *Backend) WriteParam(ctx context.Context, name string, val string) error
- type ECRAuthorizationToken
- type LogMessages
- type TaskType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSBackendOption ¶
type AWSBackendOption func(*Backend)
func WithAWSProfile ¶
func WithAWSProfile(profile string) AWSBackendOption
WithAWSProfile sets the AWS profile to use for this Backend
func WithAWSRegion ¶
func WithAWSRegion(region string) AWSBackendOption
WithAWSRegion sets the AWS region for this Backend
func WithAWSSession ¶
func WithAWSSession(session *session.Session) AWSBackendOption
WithAWSSession allows configuring an AWS Session
func WithEC2Client ¶
func WithEC2Client(client ec2iface.EC2API) AWSBackendOption
WithEC2Client allows overriding the AWS EC2 Client
func WithECRClient ¶
func WithECRClient(client ecriface.ECRAPI) AWSBackendOption
WithECRClient allows overriding the AWS ECR Client
func WithECSClient ¶
func WithECSClient(client ecsiface.ECSAPI) AWSBackendOption
WithECSClient allows overriding the AWS ECS Client
func WithIntegrationSecret ¶
func WithIntegrationSecret(integrationSecret *config.IntegrationSecret) AWSBackendOption
WithIntegrationSecret sets the IntegrationSecret for this Backend
func WithLogsClient ¶
func WithLogsClient(client cloudwatchlogsiface.CloudWatchLogsAPI) AWSBackendOption
WithLogsClient allows overriding the AWS Logs Client
func WithSSMClient ¶
func WithSSMClient(client ssmiface.SSMAPI) AWSBackendOption
WithSSMClient allows overriding the AWS SSM Client
func WithSTSClient ¶
func WithSTSClient(client stsiface.STSAPI) AWSBackendOption
WithSTSClients allows overriding the AWS STS Client
func WithSecretsClient ¶
func WithSecretsClient(client secretsmanageriface.SecretsManagerAPI) AWSBackendOption
WithSecretsClient allows overriding the AWS Secrets Client
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewAWSBackend ¶
func NewAWSBackend( ctx context.Context, happyConfig *config.HappyConfig, opts ...AWSBackendOption) (*Backend, error)
New returns a new AWS backend
func (*Backend) ECRGetAuthorizationToken ¶
func (b *Backend) ECRGetAuthorizationToken(ctx context.Context) (*ECRAuthorizationToken, error)
NOTE: we just need one token to access al ECRs this principal has access to
func (*Backend) GetEC2Client ¶
func (*Backend) GetECRClient ¶
func (*Backend) GetECSClient ¶
func (*Backend) GetUserName ¶
GetUserName will attempt to derive the caller's username
type ECRAuthorizationToken ¶
func (*ECRAuthorizationToken) DockerLogin ¶
func (e *ECRAuthorizationToken) DockerLogin(ctx context.Context) error
type LogMessages ¶
type LogMessages struct {
// contains filtered or unexported fields
}
func (*LogMessages) Print ¶
func (lm *LogMessages) Print()
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package testbackend is a generated GoMock package.
|
Package testbackend is a generated GoMock package. |