backend

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Providers = []string{
	"blob",
}

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Create(ctx context.Context, key string) (io.WriteCloser, error)
	Open(ctx context.Context, key string) (io.ReadCloser, error)
	Remove(ctx context.Context, key string) error
	ReadDir(ctx context.Context, path string) ([]os.FileInfo, error)
	Walk(ctx context.Context, root string, walkFn filepath.WalkFunc) error
	Close(ctx context.Context) error
	Provider() string
}

func NewFromEnv

func NewFromEnv(ctx context.Context) (Backend, error)

func NewInstrumentedBackend

func NewInstrumentedBackend(b Backend) Backend

type BulkRemover

type BulkRemover interface {
	RemoveAll(ctx context.Context, keys []string) ([]string, error)
}

type BulkRemovingBackend

type BulkRemovingBackend interface {
	Backend
	BulkRemover
}

Directories

Path Synopsis
cloud

Jump to

Keyboard shortcuts

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