s3

package
v0.0.0-...-61a7dbd Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*s3.Client
}

func NewS3

func NewS3(conf *Conf) *Client

func (*Client) DeleteFile

func (client *Client) DeleteFile(bucketName string, objectKey string) error

func (*Client) UploadFile

func (client *Client) UploadFile(bucketName string, objectKey string, file io.Reader) error

type Conf

type Conf struct {
	Region       string
	AccessKey    string
	AccessSecret string
}

Jump to

Keyboard shortcuts

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