s3

package
v0.0.0-...-28c3578 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(accessKey, secretKey, bucketName, endPointURL string) *Client

func (*Client) Delete

func (c *Client) Delete(path string) error

func (*Client) Get

func (c *Client) Get(path string) ([]byte, error)

func (*Client) List

func (c *Client) List(path string) (Versions, error)

func (*Client) Store

func (c *Client) Store(path string, fileContent []byte) error

type Version

type Version struct {
	Path         string
	BackupName   string
	Version      int64
	LastModified time.Time
	Size         uint64
}

func NewVersion

func NewVersion(key goamzs3.Key) (Version, error)

type Versions

type Versions []Version

func (Versions) Len

func (v Versions) Len() int

func (Versions) Less

func (v Versions) Less(i, j int) bool

func (Versions) Swap

func (v Versions) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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