s3io

package
v0.0.0-...-90a1ae6 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 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 Option

type Option func(*S3Conf)

func WithAccess

func WithAccess(ak string) Option

func WithConcurrency

func WithConcurrency(c int) Option

func WithDebug

func WithDebug() Option

func WithDisableChecksum

func WithDisableChecksum() Option

func WithEndpoint

func WithEndpoint(e string) Option

func WithPartSize

func WithPartSize(p int64) Option

func WithPathStyle

func WithPathStyle() Option

func WithRegion

func WithRegion(r string) Option

func WithSecret

func WithSecret(sk string) Option

type S3Conf

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

func New

func New(opts ...Option) *S3Conf

func (*S3Conf) DeleteObject

func (c *S3Conf) DeleteObject(bucket, object string) error

func (*S3Conf) DownloadData

func (c *S3Conf) DownloadData(w io.WriterAt, bucket, object string) (int64, error)

func (*S3Conf) HeadObject

func (c *S3Conf) HeadObject(ctx context.Context, bucket, object string) error

func (*S3Conf) ResolveEndpoint

func (c *S3Conf) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error)

func (*S3Conf) UploadData

func (c *S3Conf) UploadData(r io.Reader, bucket, object string) error

Jump to

Keyboard shortcuts

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