aws

package
v0.0.0-...-06621f0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Client

type S3Client struct {
	// contains filtered or unexported fields
}

func NewS3Client

func NewS3Client(cfg S3Config) (*S3Client, error)

func (*S3Client) DeleteObjects

func (c *S3Client) DeleteObjects(ctx context.Context, keys []string) error

func (*S3Client) ListObjectKeysPrefix

func (c *S3Client) ListObjectKeysPrefix(ctx context.Context, prefix string) ([]string, error)

func (*S3Client) UploadObject

func (c *S3Client) UploadObject(ctx context.Context, key string, body io.Reader) error

type S3Config

type S3Config struct {
	Region    string
	AccessKey string
	Secret    string
	Bucket    string
}

Jump to

Keyboard shortcuts

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