cibuildcache

package module
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCacheDoesNotExist thrown by Restore when cache is not available
	ErrCacheDoesNotExist = errors.New("Cache does not exist")
)

Functions

func GetAbsoluteDirectories

func GetAbsoluteDirectories(archiveDirectories []string, localBaton *baton.Baton) []string

GetAbsoluteDirectories returns the list of absolute archive directories relative to projectRoot

func GetBuildCacheFile

func GetBuildCacheFile(i int, directory string) string

GetBuildCacheFile returns the build cache file for the given directory and index

func GetBuildCachePrefix

func GetBuildCachePrefix(myBaton *baton.Baton) string

GetBuildCachePrefix returns the build cache prefix as needed

func GetBuildDirectories

func GetBuildDirectories(userOptions *config.UserOptions, fnGetBuildSystemsFunc cibuildsystem.GetBuildSystemsFunc,
	localBaton *baton.Baton, homeDir string) ([]string, error)

GetBuildDirectories infers the current build system and returns the directories used by the underlying build system to cache

Types

type BuildCache

type BuildCache interface {

	// Backup backups the given filenameOnly to the cache
	Backup(prefix string, filenameOnly string) (io.WriteCloser, error)

	// Restore restores a given directoryFile from the cache
	Restore(prefix string, directoryFile string) (io.ReadCloser, error)
}

BuildCache represents the build cache caching directories

Directories

Path Synopsis
pipelines
pre

Jump to

Keyboard shortcuts

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