cache

package
v0.0.0-...-60dd4b1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTarCacheDir      = "/var/risu/cache/"
	DefaultInflatedCacheDir = "/tmp/risu/cache/"
)

Variables

This section is empty.

Functions

func DeflateTarGz

func DeflateTarGz(tarGzPath, deflateDir string) error

func InflateTarGz

func InflateTarGz(tarGzPath, inflateDir string) error

Types

type Cache

type Cache interface {
	Get(key string) (string, error)
	Put(key, directory string) error
}

func NewCache

func NewCache(backend string) Cache

func NewLocalFsCache

func NewLocalFsCache() Cache

func NewS3Cache

func NewS3Cache() Cache

type LocalFsCache

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

func (*LocalFsCache) Get

func (c *LocalFsCache) Get(key string) (string, error)

func (*LocalFsCache) Put

func (c *LocalFsCache) Put(key, directory string) error

type S3Cache

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

func (*S3Cache) Get

func (c *S3Cache) Get(key string) (string, error)

func (*S3Cache) Put

func (c *S3Cache) Put(key, directory string) error

Jump to

Keyboard shortcuts

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