service

package
v0.0.3-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidateCloudFrontCache

func InvalidateCloudFrontCache(awsConfig *cloud.Config, distributionID string) error

func UploadDirectoryToS3Batch

func UploadDirectoryToS3Batch(awsConfig *cloud.Config, localDir string, s3BasePath string, s3Bucket string) error

func UploadDirectoryToS3Parallel

func UploadDirectoryToS3Parallel(awsConfig *cloud.Config, localDir string, s3BasePath string, s3Bucket string, maxParallelUploads int) error

Types

type CloudFrontClient

type CloudFrontClient interface {
	CreateInvalidation(ctx context.Context, params *cloudfront.CreateInvalidationInput, optFns ...func(*cloudfront.Options)) (*cloudfront.CreateInvalidationOutput, error)
}

type S3Client

type S3Client interface {
	PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL