Documentation ¶
Index ¶
- Variables
- func GetAbsoluteDirectories(archiveDirectories []string, localBaton *baton.Baton) []string
- func GetBuildCacheFile(i int, directory string) string
- func GetBuildCachePrefix(myBaton *baton.Baton) string
- func GetBuildDirectories(userOptions *config.UserOptions, ...) ([]string, error)
- type BuildCache
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 ¶ added in v0.2.2
GetAbsoluteDirectories returns the list of absolute archive directories relative to projectRoot
func GetBuildCacheFile ¶
GetBuildCacheFile returns the build cache file for the given directory and index
func GetBuildCachePrefix ¶
GetBuildCachePrefix returns the build cache prefix as needed
func GetBuildDirectories ¶ added in v0.2.2
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
Click to show internal directories.
Click to hide internal directories.