Documentation ¶
Overview ¶
Package external implements the external service.
Index ¶
- Variables
- func NewCloudFormationClient(cfg *model.AWSConfig) *cloudformation.Client
- func NewCloudFormationStackDeleteCompleteWaiter(client *cloudformation.Client) *cloudformation.StackDeleteCompleteWaiter
- func NewCloudFrontClient(cfg *model.AWSConfig) *cloudfront.Client
- func NewS3Client(cfg *model.AWSConfig) *s3.Client
- type CFnStackCreator
- type CFnStackDeleter
- type CFnStackLister
- type CFnStackResourceLister
- type CloudFrontCreator
- type CloudFrontOAICreator
- type Retryer
- func (r *Retryer) GetAttemptToken(context.Context) (func(error) error, error)
- func (r *Retryer) GetInitialToken() func(error) error
- func (r *Retryer) GetRetryToken(context.Context, error) (func(error) error, error)
- func (r *Retryer) IsErrorRetryable(err error) bool
- func (r *Retryer) MaxAttempts() int
- func (r *Retryer) RetryDelay(int, error) (time.Duration, error)
- type S3BucketCreator
- type S3BucketDeleter
- type S3BucketLister
- type S3BucketLocationGetter
- type S3BucketPolicySetter
- type S3BucketPublicAccessBlocker
- type S3ObjectCopier
- type S3ObjectDownloader
- type S3ObjectUploader
- type S3ObjectVersionsLister
- type S3ObjectsDeleter
- type S3ObjectsLister
Constants ¶
This section is empty.
Variables ¶
var CFnStackCreatorSet = wire.NewSet( NewCFnStackCreator, wire.Bind(new(service.CFnStackCreator), new(*CFnStackCreator)), )
CFnStackCreatorSet is a set of CFnStackCreator.
var CFnStackDeleterSet = wire.NewSet( NewCFnStackDeleter, wire.Bind(new(service.CFnStackDeleter), new(*CFnStackDeleter)), )
CFnStackDeleterSet is a set of CFnStackDeleter.
var CFnStackListerSet = wire.NewSet( NewCFnStackLister, wire.Bind(new(service.CFnStackLister), new(*CFnStackLister)), )
CFnStackListerSet is a set of CFnStackLister.
var CFnStackResourceListerSet = wire.NewSet( NewCFnStackResourceLister, wire.Bind(new(service.CFnStackResourceLister), new(*CFnStackResourceLister)), )
CFnStackResourceListerSet is a set of CFnStackResourceLister.
var CloudFrontCreatorSet = wire.NewSet( wire.Bind(new(service.CloudFrontCreator), new(*CloudFrontCreator)), NewCloudFrontCreator, )
CloudFrontCreatorSet is a provider set for CloudFrontCreator.
var OAICreatorSet = wire.NewSet( NewCloudFrontOAICreator, wire.Bind(new(service.OAICreator), new(*CloudFrontOAICreator)), )
OAICreatorSet is a provider set for OAICreator.
var S3BucketCreatorSet = wire.NewSet( NewS3BucketCreator, wire.Bind(new(service.S3BucketCreator), new(*S3BucketCreator)), )
S3BucketCreatorSet is a provider set for S3BucketCreator.
var S3BucketDeleterSet = wire.NewSet( NewS3BucketDeleter, wire.Bind(new(service.S3BucketDeleter), new(*S3BucketDeleter)), )
S3BucketDeleterSet is a provider set for S3BucketDeleter.
var S3BucketListerSet = wire.NewSet( NewS3BucketLister, wire.Bind(new(service.S3BucketLister), new(*S3BucketLister)), )
S3BucketListerSet is a provider set for S3BucketLister.
var S3BucketLocationGetterSet = wire.NewSet( NewS3BucketLocationGetter, wire.Bind(new(service.S3BucketLocationGetter), new(*S3BucketLocationGetter)), )
S3BucketLocationGetterSet is a provider set for S3BucketLocationGetter.
var S3BucketPolicySetterSet = wire.NewSet( NewS3BucketPolicySetter, wire.Bind(new(service.S3BucketPolicySetter), new(*S3BucketPolicySetter)), )
S3BucketPolicySetterSet is a provider set for BucketPolicySetter.
var S3BucketPublicAccessBlockerSet = wire.NewSet( NewS3BucketPublicAccessBlocker, wire.Bind(new(service.S3BucketPublicAccessBlocker), new(*S3BucketPublicAccessBlocker)), )
S3BucketPublicAccessBlockerSet is a provider set for BucketPublicAccessBlocker.
var S3ObjectCopierSet = wire.NewSet( NewS3ObjectCopier, wire.Bind(new(service.S3ObjectCopier), new(*S3ObjectCopier)), )
S3ObjectCopierSet is a provider set for S3ObjectCopier.
var S3ObjectDownloaderSet = wire.NewSet( NewS3ObjectDownloader, wire.Bind(new(service.S3ObjectDownloader), new(*S3ObjectDownloader)), )
S3ObjectDownloaderSet is a provider set for S3ObjectGetter.
var S3ObjectUploaderSet = wire.NewSet( NewS3ObjectUploader, wire.Bind(new(service.S3ObjectUploader), new(*S3ObjectUploader)), )
S3ObjectUploaderSet is a provider set for S3ObjectUploader.
var S3ObjectVersionsListerSet = wire.NewSet( NewS3ObjectVersionsLister, wire.Bind(new(service.S3ObjectVersionsLister), new(*S3ObjectVersionsLister)), )
S3ObjectVersionsListerSet is a provider set for S3ObjectVersionsLister.
var S3ObjectsDeleterSet = wire.NewSet( NewS3ObjectsDeleter, wire.Bind(new(service.S3ObjectsDeleter), new(*S3ObjectsDeleter)), )
S3ObjectsDeleterSet is a provider set for S3ObjectsDeleter.
var S3ObjectsListerSet = wire.NewSet( NewS3ObjectsLister, wire.Bind(new(service.S3ObjectsLister), new(*S3ObjectsLister)), )
S3ObjectsListerSet is a provider set for S3ObjectsLister.
Functions ¶
func NewCloudFormationClient ¶
func NewCloudFormationClient(cfg *model.AWSConfig) *cloudformation.Client
NewCloudFormationClient returns a new CloudFormation client.
func NewCloudFormationStackDeleteCompleteWaiter ¶
func NewCloudFormationStackDeleteCompleteWaiter(client *cloudformation.Client) *cloudformation.StackDeleteCompleteWaiter
NewCloudFormationStackDeleteCompleteWaiter returns a new CloudFormationStackDeleteCompleteWaiter.
func NewCloudFrontClient ¶
func NewCloudFrontClient(cfg *model.AWSConfig) *cloudfront.Client
NewCloudFrontClient returns a new CloudFront client.
Types ¶
type CFnStackCreator ¶
type CFnStackCreator struct {
// contains filtered or unexported fields
}
CFnStackCreator implements the CFnStackCreator interface.
func NewCFnStackCreator ¶
func NewCFnStackCreator(client *cloudformation.Client) *CFnStackCreator
NewCFnStackCreator returns a new CloudFormationStackCreator.
func (*CFnStackCreator) CFnStackCreator ¶
func (c *CFnStackCreator) CFnStackCreator(ctx context.Context, input *service.CFnStackCreatorInput) (*service.CFnStackCreatorOutput, error)
CFnStackCreator creates a CloudFormation stack.
type CFnStackDeleter ¶
type CFnStackDeleter struct {
// contains filtered or unexported fields
}
CFnStackDeleter implements the CFnStackDeleter interface.
func NewCFnStackDeleter ¶
func NewCFnStackDeleter(client *cloudformation.Client, waiter *cloudformation.StackDeleteCompleteWaiter) *CFnStackDeleter
NewCFnStackDeleter returns a new CloudFormationStackDeleter.
func (*CFnStackDeleter) CFnStackDeleter ¶
func (d *CFnStackDeleter) CFnStackDeleter(ctx context.Context, input *service.CFnStackDeleterInput) (*service.CFnStackDeleterOutput, error)
CFnStackDeleter deletes a CloudFormation stack.
type CFnStackLister ¶
type CFnStackLister struct {
// contains filtered or unexported fields
}
CFnStackLister implements the CFnStackLister interface.
func NewCFnStackLister ¶
func NewCFnStackLister(client *cloudformation.Client) *CFnStackLister
NewCFnStackLister returns a new CloudFormationStackLister.
func (*CFnStackLister) CFnStackLister ¶
func (l *CFnStackLister) CFnStackLister(ctx context.Context, input *service.CFnStackListerInput) (*service.CFnStackListerOutput, error)
CFnStackLister returns a list of CloudFormation stacks.
type CFnStackResourceLister ¶
type CFnStackResourceLister struct {
// contains filtered or unexported fields
}
CFnStackResourceLister implements the CFnStackResourceLister interface.
func NewCFnStackResourceLister ¶
func NewCFnStackResourceLister(client *cloudformation.Client) *CFnStackResourceLister
NewCFnStackResourceLister returns a new CloudFormationStackResourceLister.
func (*CFnStackResourceLister) CFnStackResourceLister ¶
func (l *CFnStackResourceLister) CFnStackResourceLister(ctx context.Context, input *service.CFnStackResourceListerInput) (*service.CFnStackResourceListerOutput, error)
CFnStackResourceLister returns a list of CloudFormation stack resources.
type CloudFrontCreator ¶
type CloudFrontCreator struct {
*cloudfront.Client
}
CloudFrontCreator is an implementation for CloudFrontCreator.
func NewCloudFrontCreator ¶
func NewCloudFrontCreator(c *cloudfront.Client) *CloudFrontCreator
NewCloudFrontCreator creates a new CloudFrontCreator.
func (*CloudFrontCreator) CreateCloudFront ¶
func (c *CloudFrontCreator) CreateCloudFront(ctx context.Context, input *service.CloudFrontCreatorInput) (*service.CloudFrontCreatorOutput, error)
CreateCloudFront creates a CDN.
type CloudFrontOAICreator ¶
type CloudFrontOAICreator struct {
*cloudfront.Client
}
CloudFrontOAICreator is an implementation for OAICreator.
func NewCloudFrontOAICreator ¶
func NewCloudFrontOAICreator(c *cloudfront.Client) *CloudFrontOAICreator
NewCloudFrontOAICreator creates a new CloudFrontOAICreator.
func (*CloudFrontOAICreator) CreateOAI ¶
func (c *CloudFrontOAICreator) CreateOAI(ctx context.Context, _ *service.OAICreatorInput) (*service.OAICreatorOutput, error)
CreateOAI creates a new OAI.
type Retryer ¶
type Retryer struct {
// contains filtered or unexported fields
}
Retryer implements the aws.RetryerV2 interface.
func NewRetryer ¶
NewRetryer creates a new Retryer.
func (*Retryer) GetAttemptToken ¶
GetAttemptToken returns the attempt token. This is not used.
func (*Retryer) GetInitialToken ¶
GetInitialToken returns the initial token. This is not used.
func (*Retryer) GetRetryToken ¶
GetRetryToken returns the retry token. This is not used.
func (*Retryer) IsErrorRetryable ¶
IsErrorRetryable returns true if the error is retryable.
func (*Retryer) MaxAttempts ¶
MaxAttempts returns the maximum number of attempts.
type S3BucketCreator ¶
type S3BucketCreator struct {
// contains filtered or unexported fields
}
S3BucketCreator implements the S3BucketCreator interface.
func NewS3BucketCreator ¶
func NewS3BucketCreator(client *s3.Client) *S3BucketCreator
NewS3BucketCreator creates a new S3BucketCreator.
func (*S3BucketCreator) CreateS3Bucket ¶
func (c *S3BucketCreator) CreateS3Bucket(ctx context.Context, input *service.S3BucketCreatorInput) (*service.S3BucketCreatorOutput, error)
CreateS3Bucket creates a new S3 bucket.
type S3BucketDeleter ¶
type S3BucketDeleter struct {
// contains filtered or unexported fields
}
S3BucketDeleter implements the S3BucketDeleter interface.
func NewS3BucketDeleter ¶
func NewS3BucketDeleter(client *s3.Client) *S3BucketDeleter
NewS3BucketDeleter creates a new S3BucketDeleter.
func (*S3BucketDeleter) DeleteS3Bucket ¶
func (c *S3BucketDeleter) DeleteS3Bucket(ctx context.Context, input *service.S3BucketDeleterInput) (*service.S3BucketDeleterOutput, error)
DeleteS3Bucket deletes the bucket.
type S3BucketLister ¶
type S3BucketLister struct {
// contains filtered or unexported fields
}
S3BucketLister implements the S3BucketLister interface.
func NewS3BucketLister ¶
func NewS3BucketLister(client *s3.Client) *S3BucketLister
NewS3BucketLister creates a new S3BucketLister.
func (*S3BucketLister) ListS3Buckets ¶
func (c *S3BucketLister) ListS3Buckets(ctx context.Context, _ *service.S3BucketListerInput) (*service.S3BucketListerOutput, error)
ListS3Buckets lists the buckets.
type S3BucketLocationGetter ¶
type S3BucketLocationGetter struct {
// contains filtered or unexported fields
}
S3BucketLocationGetter implements the S3BucketLocationGetter interface.
func NewS3BucketLocationGetter ¶
func NewS3BucketLocationGetter(client *s3.Client) *S3BucketLocationGetter
NewS3BucketLocationGetter creates a new S3BucketLocationGetter.
func (*S3BucketLocationGetter) GetS3BucketLocation ¶
func (c *S3BucketLocationGetter) GetS3BucketLocation(ctx context.Context, input *service.S3BucketLocationGetterInput) (*service.S3BucketLocationGetterOutput, error)
GetS3BucketLocation gets the location of the bucket.
type S3BucketPolicySetter ¶
type S3BucketPolicySetter struct {
// contains filtered or unexported fields
}
S3BucketPolicySetter is an implementation for BucketPolicySetter.
func NewS3BucketPolicySetter ¶
func NewS3BucketPolicySetter(client *s3.Client) *S3BucketPolicySetter
NewS3BucketPolicySetter returns a new S3BucketPolicySetter struct.
func (*S3BucketPolicySetter) SetS3BucketPolicy ¶
func (s *S3BucketPolicySetter) SetS3BucketPolicy(ctx context.Context, input *service.S3BucketPolicySetterInput) (*service.S3BucketPolicySetterOutput, error)
SetS3BucketPolicy sets a bucket policy on S3.
type S3BucketPublicAccessBlocker ¶
type S3BucketPublicAccessBlocker struct {
// contains filtered or unexported fields
}
S3BucketPublicAccessBlocker is an implementation for BucketPublicAccessBlocker.
func NewS3BucketPublicAccessBlocker ¶
func NewS3BucketPublicAccessBlocker(client *s3.Client) *S3BucketPublicAccessBlocker
NewS3BucketPublicAccessBlocker returns a new S3BucketPublicAccessBlocker struct.
func (*S3BucketPublicAccessBlocker) BlockS3BucketPublicAccess ¶
func (s *S3BucketPublicAccessBlocker) BlockS3BucketPublicAccess(ctx context.Context, input *service.S3BucketPublicAccessBlockerInput) (*service.S3BucketPublicAccessBlockerOutput, error)
BlockS3BucketPublicAccess blocks public access to a bucket on S3.
type S3ObjectCopier ¶
type S3ObjectCopier struct {
// contains filtered or unexported fields
}
S3ObjectCopier implements the S3ObjectCopier interface.
func NewS3ObjectCopier ¶
func NewS3ObjectCopier(client *s3.Client) *S3ObjectCopier
NewS3ObjectCopier creates a new S3ObjectCopier.
func (*S3ObjectCopier) CopyS3Object ¶
func (c *S3ObjectCopier) CopyS3Object(ctx context.Context, input *service.S3ObjectCopierInput) (*service.S3ObjectCopierOutput, error)
CopyS3Object copies the object in the bucket.
type S3ObjectDownloader ¶
type S3ObjectDownloader struct {
// contains filtered or unexported fields
}
S3ObjectDownloader implements the S3ObjectDownloader interface.
func NewS3ObjectDownloader ¶
func NewS3ObjectDownloader(client *s3.Client) *S3ObjectDownloader
NewS3ObjectDownloader creates a new S3ObjectGetter.
func (*S3ObjectDownloader) DownloadS3Object ¶
func (c *S3ObjectDownloader) DownloadS3Object(ctx context.Context, input *service.S3ObjectDownloaderInput) (*service.S3ObjectDownloaderOutput, error)
DownloadS3Object gets the object in the bucket.
type S3ObjectUploader ¶
type S3ObjectUploader struct {
// contains filtered or unexported fields
}
S3ObjectUploader implements the S3ObjectUploader interface.
func NewS3ObjectUploader ¶
func NewS3ObjectUploader(client *s3.Client) *S3ObjectUploader
NewS3ObjectUploader creates a new S3ObjectUploader.
func (*S3ObjectUploader) UploadS3Object ¶
func (c *S3ObjectUploader) UploadS3Object(ctx context.Context, input *service.S3ObjectUploaderInput) (*service.S3ObjectUploaderOutput, error)
UploadS3Object puts the object in the bucket.
type S3ObjectVersionsLister ¶
type S3ObjectVersionsLister struct {
// contains filtered or unexported fields
}
S3ObjectVersionsLister implements the S3ObjectVersionsLister interface.
func NewS3ObjectVersionsLister ¶
func NewS3ObjectVersionsLister(client *s3.Client) *S3ObjectVersionsLister
NewS3ObjectVersionsLister creates a new S3ObjectVersionsLister.
func (*S3ObjectVersionsLister) ListS3ObjectVersions ¶
func (c *S3ObjectVersionsLister) ListS3ObjectVersions(ctx context.Context, input *service.S3ObjectVersionsListerInput) (*service.S3ObjectVersionsListerOutput, error)
ListS3ObjectVersions lists the object versions in the bucket.
type S3ObjectsDeleter ¶
type S3ObjectsDeleter struct {
// contains filtered or unexported fields
}
S3ObjectsDeleter implements the S3ObjectsDeleter interface.
func NewS3ObjectsDeleter ¶
func NewS3ObjectsDeleter(client *s3.Client) *S3ObjectsDeleter
NewS3ObjectsDeleter creates a new S3ObjectsDeleter.
func (*S3ObjectsDeleter) DeleteS3Objects ¶
func (c *S3ObjectsDeleter) DeleteS3Objects(ctx context.Context, input *service.S3ObjectsDeleterInput) (*service.S3ObjectsDeleterOutput, error)
DeleteS3Objects deletes the objects in the bucket. If the bucket has versioning enabled, all versions of the specified objects are deleted.
type S3ObjectsLister ¶
type S3ObjectsLister struct {
// contains filtered or unexported fields
}
S3ObjectsLister implements the S3ObjectsLister interface.
func NewS3ObjectsLister ¶
func NewS3ObjectsLister(client *s3.Client) *S3ObjectsLister
NewS3ObjectsLister creates a new S3ObjectsLister.
func (*S3ObjectsLister) ListS3Objects ¶
func (c *S3ObjectsLister) ListS3Objects(ctx context.Context, input *service.S3ObjectsListerInput) (*service.S3ObjectsListerOutput, error)
ListS3Objects lists the objects in the bucket.