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 BuildAndTestFn ¶ added in v0.34.0
type Cache ¶
type Cache interface {
Build(context.Context, io.Writer, tag.ImageTags, []*latest.Artifact, BuildAndTestFn) ([]build.Artifact, error)
}
func NewCache ¶
func NewCache(runCtx *runcontext.RunContext, imagesAreLocal bool, dependencies DependencyLister) (Cache, error)
NewCache returns the current state of the cache
type DependencyLister ¶ added in v0.34.0
type DependencyLister interface {
DependenciesForArtifact(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
Click to show internal directories.
Click to hide internal directories.