xcode

package
v0.15.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCacheNotFound = errors.New("no cache archive found for the provided keys")

ErrCacheNotFound ...

Functions

func CreateCacheArchive

func CreateCacheArchive(fileName, inputDir string, logger log.Logger) error

func DownloadFromBuildCache

func DownloadFromBuildCache(fileName, key, accessToken, cacheURL string, logger log.Logger) error

func ExtractCacheArchive

func ExtractCacheArchive(fileName string, logger log.Logger) error

func GetCacheKey

func GetCacheKey(envProvider func(string) string) (string, error)

func RestoreMTime

func RestoreMTime(metadata *Metadata, rootDir string, logger log.Logger) error

func SaveMetadata

func SaveMetadata(rootDir string, fileName string, logger log.Logger) error

func UploadToBuildCache

func UploadToBuildCache(filePath, key, accessToken, cacheURL string, logger log.Logger) error

nolint: funlen, cyclop

Types

type FileInfo

type FileInfo struct {
	Path    string    `json:"path"`
	Hash    string    `json:"hash"`
	ModTime time.Time `json:"modTime"`
}

type Metadata

type Metadata struct {
	FileInfos []FileInfo `json:"inputFiles"`
}

func LoadMetadata

func LoadMetadata(file string) (*Metadata, error)

Jump to

Keyboard shortcuts

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