Documentation
¶
Index ¶
- func DeleteFileGroup(fgi filegroup.Info, logger log.Logger)
- func GetCacheKey(envProvider func(string) string, keyParams CacheKeyParams) (string, error)
- func RestoreDirectoryInfos(dirInfos []*filegroup.DirectoryInfo, rootDir string, logger log.Logger) error
- func RestoreFileInfos(fileInfos []*filegroup.FileInfo, rootDir string, logger log.Logger) (int, error)
- func RestoreSymlinks(symlinks []*filegroup.SymlinkInfo, logger log.Logger) (int, error)
- func SaveMetadata(metadata *Metadata, fileName string, logger log.Logger) (int64, error)
- type CacheKeyParams
- type CreateMetadataParams
- type DefaultStepAnalyticsTracker
- func (t *DefaultStepAnalyticsTracker) LogDerivedDataDownloaded(duration time.Duration, stats kv.DownloadFilesStats)
- func (t *DefaultStepAnalyticsTracker) LogDerivedDataUploaded(duration time.Duration, stats kv.UploadFilesStats)
- func (t *DefaultStepAnalyticsTracker) LogMetadataLoaded(duration time.Duration, cacheKeyType string, totalFileCount int, ...)
- func (t *DefaultStepAnalyticsTracker) LogMetadataSaved(duration time.Duration, fileCount int, size int64)
- func (t *DefaultStepAnalyticsTracker) LogRestoreFinished(totalDuration time.Duration, err error)
- func (t *DefaultStepAnalyticsTracker) LogSaveFinished(totalDuration time.Duration, err error)
- func (t *DefaultStepAnalyticsTracker) Wait()
- type Metadata
- type StepAnalyticsTracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheKey ¶
func GetCacheKey(envProvider func(string) string, keyParams CacheKeyParams) (string, error)
func RestoreDirectoryInfos ¶
func RestoreFileInfos ¶
func RestoreSymlinks ¶
Types ¶
type CacheKeyParams ¶
type CacheKeyParams struct {
IsFallback bool
}
type CreateMetadataParams ¶
type DefaultStepAnalyticsTracker ¶
type DefaultStepAnalyticsTracker struct {
// contains filtered or unexported fields
}
func NewDefaultStepTracker ¶
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 (*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 ¶
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() }
Click to show internal directories.
Click to hide internal directories.