storer

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B64

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

func NewB64

func NewB64(next Storer) *B64

func (B64) Delete

func (s B64) Delete(path string) error

func (B64) Retrieve

func (s B64) Retrieve(path string) (io.ReadCloser, error)

func (B64) Store

func (s B64) Store(path string, reader io.ReadCloser) error

type Credhub

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

func NewCredhub

func NewCredhub(cclient credhub.CredhubClient) *Credhub

func (Credhub) Delete

func (s Credhub) Delete(path string) error

func (Credhub) Retrieve

func (s Credhub) Retrieve(path string) (io.ReadCloser, error)

func (Credhub) Store

func (s Credhub) Store(path string, reader io.ReadCloser) error

type Cutter

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

func NewCutter

func NewCutter(next Storer, chunkSize int64) *Cutter

func (Cutter) Delete

func (s Cutter) Delete(path string) error

func (Cutter) Retrieve

func (s Cutter) Retrieve(path string) (io.ReadCloser, error)

func (Cutter) Store

func (s Cutter) Store(path string, reader io.ReadCloser) error

type Gzip

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

func NewGzip

func NewGzip(next Storer) *Gzip

func (Gzip) Delete

func (s Gzip) Delete(path string) error

func (Gzip) Retrieve

func (s Gzip) Retrieve(path string) (io.ReadCloser, error)

func (Gzip) Store

func (s Gzip) Store(path string, reader io.ReadCloser) error

type Index

type Index struct {
	NumParts int `json:"num-parts"`
}

type Part

type Part struct {
	Part string `json:"part"`
}

type Storer

type Storer interface {
	Store(path string, reader io.ReadCloser) error
	Retrieve(path string) (io.ReadCloser, error)
	Delete(path string) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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