Documentation ¶
Index ¶
- func CreateAwsConfig(options Options) *aws.Config
- func CreateRepository(ecrClient *ecr.ECR, repositoryName string) (string, error)
- func DeleteSecrets(existingSecrets types.Secrets, secretKeys []string, options Options) error
- func GetECRCredentials(ecrClient *ecr.ECR) (string, error)
- func InitAccount(options Options) error
- func MergeAndWriteSecrets(existingSecrets, newSecrets types.Secrets, options Options) error
- func ReadSecrets(options Options) (types.Secrets, error)
- type Options
- type RepositoryHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAwsConfig ¶ added in v0.28.1
CreateAwsConfig returns an aws.Config for the given profile and region
func CreateRepository ¶ added in v0.28.1
CreateRepository creates a repository with the given name if one does not exist returns the repositoryURI
func DeleteSecrets ¶
DeleteSecrets deletes a list of secrets provided their keys. Ignores them if they don't exist
func GetECRCredentials ¶ added in v0.28.1
GetECRCredentials returns base64 encoded ECR auth object
func InitAccount ¶
InitAccount prepares a blank AWS account to be used with Terraform
func MergeAndWriteSecrets ¶
MergeAndWriteSecrets merges two secret maps and writes them to s3 Overwrites existingSecrets's values if the are conflicting keys
Types ¶
type RepositoryHelper ¶ added in v0.28.1
type RepositoryHelper struct { EcrAuth string EcrClient *ecr.ECR ImageName string RepositoryName string RepositoryURI string ImageVersion string }
RepositoryHelper is used for help pushing an image to ECR
func (*RepositoryHelper) GetTaggedImageName ¶ added in v0.28.1
func (r *RepositoryHelper) GetTaggedImageName() string
GetTaggedImageName returns the image name on ECR
func (*RepositoryHelper) NeedsPush ¶ added in v0.28.1
func (r *RepositoryHelper) NeedsPush() (bool, error)
NeedsPush returns whether or not the image needs to be pushed