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
Click to show internal directories.
Click to hide internal directories.