store

package
v0.0.0-...-b8125bf Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 13 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 {
	Bucket string
	// contains filtered or unexported fields
}

func New

func New(bucket string, prefix string) (*Client, error)

func (Client) BatchUpload

func (store Client) BatchUpload(names []string, files []string) error

func (Client) Exists

func (store Client) Exists(key string) bool

func (Client) Upload

func (store Client) Upload(file string) (string, error)

type ProgressReader

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

func NewProgressReader

func NewProgressReader(files []string) ProgressReader

func (*ProgressReader) Next

func (pr *ProgressReader) Next(name string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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