cache

package
v0.0.0-...-7e2f0fd Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rebuild

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

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

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 Restore

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

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

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 {
	List(string) ([]os.FileInfo, error)
	Get(string) (io.ReadCloser, error)
	Put(string, time.Duration, io.Reader) error
	Remove(string) error
}

Cache implements operations for caching files.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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