cache

package
v0.0.0-...-1d27f0f Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RebuildCmd

func RebuildCmd(c Cache, src, dst string) (err error)

RebuildCmd is a helper function that pushes the archived file to the cache.

func RestoreCmd

func RestoreCmd(c Cache, src, dst string) error

RestoreCmd is a helper function that fetches the archived file from the cache and restores to the host machine's file system.

Types

type Cache

type Cache interface {
	Get(string) (io.ReadCloser, error)
	Put(string, io.ReadSeeker) error
}

Cache implements operations for caching files.

func New

func New(bucket, acl, encryption string, conf *aws.Config) Cache

New returns a new SFTP remote Cache implementated.

Jump to

Keyboard shortcuts

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