s3bucket

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessKey

type AccessKey struct {
	Id     string
	Secret string
}

type Blob

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

func NewBlob

func NewBlob(path string) Blob

func (Blob) Path

func (b Blob) Path() string

type Bucket

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

func NewBucket

func NewBucket(bucketName, bucketRegion, endpoint string, accessKey AccessKey, useIAMProfile bool) (Bucket, error)

func (Bucket) CheckIfVersioned

func (b Bucket) CheckIfVersioned() error

func (Bucket) CopyBlobFromBucket

func (b Bucket) CopyBlobFromBucket(sourceBucket incremental.Bucket, src, dst string) error

func (Bucket) CopyBlobWithinBucket

func (b Bucket) CopyBlobWithinBucket(src, dst string) error

func (Bucket) CopyVersion

func (b Bucket) CopyVersion(blobKey, versionID, originBucketName, originBucketRegion string) error

func (Bucket) HasBlob

func (b Bucket) HasBlob(key string) (bool, error)

func (Bucket) ListBlobs

func (b Bucket) ListBlobs(prefix string) ([]incremental.Blob, error)

func (Bucket) ListDirectories

func (b Bucket) ListDirectories() ([]string, error)

func (Bucket) ListVersions

func (b Bucket) ListVersions() ([]Version, error)

func (Bucket) Name

func (b Bucket) Name() string

func (Bucket) Region

func (b Bucket) Region() string

func (Bucket) UploadBlob

func (b Bucket) UploadBlob(key, contents string) error

type Version

type Version struct {
	Key      string
	Id       string `json:"VersionId"`
	IsLatest bool
}

Jump to

Keyboard shortcuts

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