local

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuildCache

func NewBuildCache(cacheDir string, perm os.FileMode) cibuildcache.BuildCache

NewBuildCache returns a new build cache that is based on a local directory. Warning: not to be used in production

Types

type BuildCache

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

BuildCache represents a local cache. For test purposes only. Not to be used in production.

func (*BuildCache) Backup

func (buildCache *BuildCache) Backup(prefix string, filenameOnly string) (io.WriteCloser, error)

Backup backups the given file to the cache

func (*BuildCache) Restore

func (buildCache *BuildCache) Restore(prefix string, directoryFile string) (io.ReadCloser, error)

Restore restores a given file from the cache

Jump to

Keyboard shortcuts

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