object

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPartSize = 5 * libhlp.SizeMegaBytes

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object interface {
	Find(pattern string) ([]string, errors.Error)
	Size(object string) (size int64, err errors.Error)

	List(continuationToken string) ([]*sdktps.Object, string, int64, errors.Error)
	Head(object string) (*sdksss.HeadObjectOutput, errors.Error)
	Get(object string) (*sdksss.GetObjectOutput, errors.Error)
	Put(object string, body *bytes.Reader) errors.Error
	Delete(object string) errors.Error

	MultipartPut(object string, body io.Reader) errors.Error
	MultipartPutCustom(partSize helper.PartSize, object string, body io.Reader) errors.Error
}

func New

func New(ctx context.Context, bucket string, iam *sdkiam.Client, s3 *sdksss.Client) Object

Jump to

Keyboard shortcuts

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