xcode

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFileGroup

func DeleteFileGroup(fgi filegroup.Info, logger log.Logger)

func GetCacheKey

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

func RestoreDirectoryInfos

func RestoreDirectoryInfos(dirInfos []*filegroup.DirectoryInfo, rootDir string, logger log.Logger) error

func RestoreFileInfos

func RestoreFileInfos(fileInfos []*filegroup.FileInfo, rootDir string, logger log.Logger) (int, error)
func RestoreSymlinks(symlinks []*filegroup.SymlinkInfo, logger log.Logger) (int, error)

func SaveMetadata

func SaveMetadata(metadata *Metadata, fileName string, logger log.Logger) (int64, error)

Types

type CacheKeyParams

type CacheKeyParams struct {
	IsFallback bool
}

type CreateMetadataParams

type CreateMetadataParams struct {
	ProjectRootDirPath string
	DerivedDataPath    string
	XcodeCacheDirPath  string
	CacheKey           string
	FollowSymlinks     bool
	SkipSPM            bool
}

type DefaultStepAnalyticsTracker

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

func NewDefaultStepTracker

func NewDefaultStepTracker(stepID string, envProvider func(string) string, logger log.Logger) *DefaultStepAnalyticsTracker

func (*DefaultStepAnalyticsTracker) LogDerivedDataDownloaded

func (t *DefaultStepAnalyticsTracker) LogDerivedDataDownloaded(duration time.Duration, stats kv.DownloadFilesStats)

func (*DefaultStepAnalyticsTracker) LogDerivedDataUploaded

func (t *DefaultStepAnalyticsTracker) LogDerivedDataUploaded(duration time.Duration, stats kv.UploadFilesStats)

func (*DefaultStepAnalyticsTracker) LogMetadataLoaded

func (t *DefaultStepAnalyticsTracker) LogMetadataLoaded(duration time.Duration, cacheKeyType string, totalFileCount int, restoredFileCount int, size int64)

func (*DefaultStepAnalyticsTracker) LogMetadataSaved

func (t *DefaultStepAnalyticsTracker) LogMetadataSaved(duration time.Duration, fileCount int, size int64)

func (*DefaultStepAnalyticsTracker) LogRestoreFinished

func (t *DefaultStepAnalyticsTracker) LogRestoreFinished(totalDuration time.Duration, err error)

func (*DefaultStepAnalyticsTracker) LogSaveFinished

func (t *DefaultStepAnalyticsTracker) LogSaveFinished(totalDuration time.Duration, err error)

func (*DefaultStepAnalyticsTracker) Wait

func (t *DefaultStepAnalyticsTracker) Wait()

type Metadata

type Metadata struct {
	ProjectFiles         filegroup.Info `json:"projectFiles"`
	DerivedData          filegroup.Info `json:"derivedData"`
	XcodeCacheDir        filegroup.Info `json:"xcodeCacheDir"`
	CacheKey             string         `json:"cacheKey"`
	CreatedAt            time.Time      `json:"createdAt"`
	AppID                string         `json:"appId,omitempty"`
	BuildID              string         `json:"buildId,omitempty"`
	WorkspaceID          string         `json:"workspaceId,omitempty"`
	GitCommit            string         `json:"gitCommit,omitempty"`
	GitBranch            string         `json:"gitBranch,omitempty"`
	BuildCacheCLIVersion string         `json:"cliVersion,omitempty"`
	MetadataVersion      int            `json:"metadataVersion"`
}

func CreateMetadata

func CreateMetadata(params CreateMetadataParams, envProvider func(string) string, logger log.Logger) (*Metadata, error)

func LoadMetadata

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

func (*Metadata) Print added in v0.15.3

func (md *Metadata) Print(logger log.Logger, isDebugLogMode bool)

type StepAnalyticsTracker

type StepAnalyticsTracker interface {
	LogMetadataSaved(duration time.Duration, fileCount int, size int64)
	LogDerivedDataUploaded(duration time.Duration, stats kv.UploadFilesStats)
	LogSaveFinished(totalDuration time.Duration, err error)
	LogMetadataLoaded(duration time.Duration, cacheKeyType string, totalFileCount int, restoredFileCount int, size int64)
	LogDerivedDataDownloaded(duration time.Duration, stats kv.DownloadFilesStats)
	LogRestoreFinished(totalDuration time.Duration, err error)

	Wait()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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