cache

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactCache

type ArtifactCache map[string]ImageDetails

ArtifactCache is a map of [artifact dependencies hash : ImageDetails]

type Cache

func NewCache

func NewCache(ctx context.Context, cfg Config, isLocalImage func(imageName string) (bool, error), dependencies DependencyLister, graph graph.ArtifactGraph, store build.ArtifactStore) (Cache, error)

NewCache returns the current state of the cache

type Config

type Config interface {
	docker.Config
	PipelineForImage(imageName string) (latest.Pipeline, bool)
	GetPipelines() []latest.Pipeline
	DefaultPipeline() latest.Pipeline
	GetCluster() config.Cluster
	CacheArtifacts() bool
	CacheFile() string
	Mode() config.RunMode
}

type DependencyLister

type DependencyLister func(ctx context.Context, artifact *latest.Artifact) ([]string, error)

DependencyLister fetches a list of dependencies for an artifact

type ImageDetails

type ImageDetails struct {
	Digest string `yaml:"digest,omitempty"`
	ID     string `yaml:"id,omitempty"`
}

ImageDetails holds the Digest and ID of an image

Jump to

Keyboard shortcuts

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