object

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

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) ([]s3.Object, string, int64, errors.Error)
	Head(object string) (head map[string]interface{}, meta map[string]string, err errors.Error)
	Get(object string) (io.ReadCloser, []io.Closer, 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, concurrent int) errors.Error
}

func New

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

Jump to

Keyboard shortcuts

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