Documentation ¶
Index ¶
- func CreateBucket(s3client S3BucketAPI, conf *appconfig.AppConfig)
- func CreateBucketFromS3(ctx context.Context, api S3BucketAPI, params *s3.CreateBucketInput) (string, error)
- func CreateTable(appConfig *config.AppConfig, prefix string) error
- func DeleteS3Bucket(bucketName string) error
- func DeleteStateTable(prefix string) error
- func FetchEFSMounts() map[string][]string
- func FetchSubnets() ([]string, []string, error)
- func HeadBucketFromS3(ctx context.Context, api S3BucketAPI, params *s3.HeadBucketInput) error
- func ReadSSMParameter(path string) (*ssm.GetParameterOutput, error)
- func ReadSSMParameters(ssmParams []models.SSMParameters) (*marketplace.Parameters, error)
- type AWSS3Client
- type S3BucketAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
func CreateBucket(s3client S3BucketAPI, conf *appconfig.AppConfig)
func CreateBucketFromS3 ¶
func CreateBucketFromS3(ctx context.Context, api S3BucketAPI, params *s3.CreateBucketInput) (string, error)
func DeleteS3Bucket ¶
Empties, then deletes a S3 bucket
func DeleteStateTable ¶
func FetchEFSMounts ¶
func FetchSubnets ¶
func HeadBucketFromS3 ¶
func HeadBucketFromS3(ctx context.Context, api S3BucketAPI, params *s3.HeadBucketInput) error
func ReadSSMParameter ¶
func ReadSSMParameter(path string) (*ssm.GetParameterOutput, error)
func ReadSSMParameters ¶
func ReadSSMParameters(ssmParams []models.SSMParameters) (*marketplace.Parameters, error)
Types ¶
type AWSS3Client ¶
func (*AWSS3Client) CreateBucket ¶
func (a *AWSS3Client) CreateBucket(ctx context.Context, params *s3.CreateBucketInput, optFns ...func(*s3.Options)) (*s3.CreateBucketOutput, error)
func (*AWSS3Client) HeadBucket ¶
func (a *AWSS3Client) HeadBucket(ctx context.Context, params *s3.HeadBucketInput) (*s3.HeadBucketOutput, error)
type S3BucketAPI ¶
type S3BucketAPI interface { CreateBucket(ctx context.Context, params *s3.CreateBucketInput, optFns ...func(*s3.Options)) (*s3.CreateBucketOutput, error) HeadBucket(ctx context.Context, params *s3.HeadBucketInput) (*s3.HeadBucketOutput, error) }
func InitS3Client ¶
func InitS3Client(conf *appconfig.AppConfig) S3BucketAPI
func NewAWSS3Client ¶
func NewAWSS3Client(cfg aws.Config) S3BucketAPI
Click to show internal directories.
Click to hide internal directories.