s3

package
v0.0.0-...-b60358c Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: AGPL-3.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config ClientConfig) (*Client, error)

func (*Client) BasePath

func (client *Client) BasePath() string

func (*Client) CopyObject

func (client *Client) CopyObject(ctx context.Context, from string, to string) error

func (*Client) DeleteObject

func (client *Client) DeleteObject(ctx context.Context, key string) error

func (*Client) DeleteObjectsWithPrefix

func (client *Client) DeleteObjectsWithPrefix(ctx context.Context, prefix string) (err error)

func (*Client) GetObject

func (client *Client) GetObject(ctx context.Context, key string, options *storage.GetObjectOptions) (io.ReadCloser, error)

func (*Client) GetObjectSize

func (client *Client) GetObjectSize(ctx context.Context, key string) (int64, error)

func (*Client) PutObject

func (client *Client) PutObject(ctx context.Context, key string, size int64, object io.Reader, options *storage.PutObjectOptions) error

See https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html For documentation about S3 integrity checks

type ClientConfig

type ClientConfig struct {
	AccessKeyID     string
	SecretAccessKey string
	Endpoint        string
	Region          string
	BaseDirectory   string
	Bucket          string
	Minio           bool
	HttpClient      *http.Client
}

Jump to

Keyboard shortcuts

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