Documentation ¶
Overview ¶
Package aws provides a mockable client for interacting with AWS. revive:disable:unexported-return
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface { //S3 GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error) HeadObject(ctx context.Context, params *s3.HeadObjectInput, optFns ...func(*s3.Options)) (*s3.HeadObjectOutput, error) PutObject(ctx context.Context, params *s3.PutObjectInput, optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error) DeleteObject(ctx context.Context, params *s3.DeleteObjectInput, optFns ...func(*s3.Options)) (*s3.DeleteObjectOutput, error) ListObjectsV2(ctx context.Context, params *s3.ListObjectsV2Input, optFns ...func(*s3.Options)) (*s3.ListObjectsV2Output, error) }
Client is a wrapper object for actual AWS SDK clients to allow for easier testing.
type Credentials ¶
Credentials holds the AWS credentials that can be used with awsclient.NewClient
func GetAwsCredentials ¶
GetAwsCredentials returns AWS credentials from the environment or from vault
Click to show internal directories.
Click to hide internal directories.