config

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlag

func InitFlag(cmd *cobra.Command)

InitFlag initializes global configure.

func LoadAWSConfig

func LoadAWSConfig(ctx context.Context) (aws.Config, error)

LoadAWSConfig returns aws.Config.

func NewS3BucketClient added in v0.0.3

func NewS3BucketClient(ctx context.Context, bucket string) (interfaces.S3Client, error)

NewS3BucketClient returns new S3 client that is used for the bucket.

func NewS3Client

func NewS3Client(ctx context.Context) (interfaces.S3Client, error)

NewS3Client returns new S3 client.

func NewS3ServiceClient added in v0.0.3

func NewS3ServiceClient(ctx context.Context) (interfaces.S3Client, error)

NewS3ServiceClient returns new S3 client that is used for getting s3 service level operation, such as ListBucket https://docs.aws.amazon.com/AmazonS3/latest/API/RESTServiceGET.html

Types

This section is empty.

Jump to

Keyboard shortcuts

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