gradle

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(logger log.Logger, envProvider func(string) string, client *kv.Client) *Cache

func (*Cache) CreateMetadata

func (g *Cache) CreateMetadata(cacheKey string, dir string) (*Metadata, error)

func (*Cache) GetCacheKey

func (g *Cache) GetCacheKey(keyParams CacheKeyParams) (string, error)

func (*Cache) LoadMetadata

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

func (*Cache) SaveMetadata

func (g *Cache) SaveMetadata(metadata *Metadata, fileName string) (int64, error)

type CacheKeyParams

type CacheKeyParams struct {
	IsFallback bool
}

type Metadata

type Metadata struct {
	ConfigCacheFiles     filegroup.Info `json:"configCacheFiles"`
	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 (*Metadata) Print

func (md *Metadata) Print(logger log.Logger)

Jump to

Keyboard shortcuts

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