s3_client

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.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 Conflict added in v1.2.1

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

func (*Conflict) Error added in v1.2.1

func (cf *Conflict) Error() string

type NoSuchKey

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

func (*NoSuchKey) Error

func (nsk *NoSuchKey) Error() string

type NotFound

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

func (*NotFound) Error

func (nf *NotFound) Error() string

type PartBody added in v1.0.0

type PartBody struct {
	Body io.ReadSeeker
	Size int
}

type S3Client

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

func NewS3Client added in v0.5.3

func NewS3Client(endpoint, caCertFileName string) *S3Client

func (*S3Client) ClearBucket

func (s *S3Client) ClearBucket(bucketName, prefix string) error

func (*S3Client) CreateBucket

func (s *S3Client) CreateBucket(bucketName string) error

func (*S3Client) DeleteObject

func (s *S3Client) DeleteObject(bucketName, key string) error

func (*S3Client) GetObject

func (s *S3Client) GetObject(bucketName, key string) (io.ReadCloser, error)

func (*S3Client) HeadBucket

func (s *S3Client) HeadBucket(bucketName string) error

func (*S3Client) ListObjects added in v0.7.0

func (s *S3Client) ListObjects(bucketName, prefix string) ([]string, error)

func (*S3Client) MultipartUpload added in v1.0.0

func (s *S3Client) MultipartUpload(bucketName, key string, partBodies []PartBody) error

func (*S3Client) PutObject

func (s *S3Client) PutObject(bucketName, key string, body io.ReadSeeker) error

Jump to

Keyboard shortcuts

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