gradle

package
v0.17.7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WarnNoHome = "Could not determine home directory, falling back to $PWD, error: %s"
)

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"`
	OS                   string         `json:"os"`
	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)

type Plugin added in v0.16.8

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

func PluginAnalytics added in v0.16.8

func PluginAnalytics() Plugin

func PluginCache added in v0.16.8

func PluginCache() Plugin

func PluginCommon added in v0.16.8

func PluginCommon() Plugin

func PluginTestDistro added in v0.16.8

func PluginTestDistro() Plugin

func Plugins added in v0.16.8

func Plugins() []Plugin

type PluginCacher added in v0.16.8

type PluginCacher struct{}

func (PluginCacher) CachePlugins added in v0.16.8

func (pluginCacher PluginCacher) CachePlugins(
	ctx context.Context,
	kvClient *kv.Client,
	logger log.Logger,
	plugins []Plugin,
) error

type PluginDownloader added in v0.16.8

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

func (PluginDownloader) Download added in v0.16.8

func (downloader PluginDownloader) Download(file PluginFile) (string, error)

type PluginFile added in v0.16.8

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

type PluginFileDownloader added in v0.16.8

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

func (PluginFileDownloader) Download added in v0.16.8

func (downloader PluginFileDownloader) Download() error

Jump to

Keyboard shortcuts

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