Documentation ¶
Index ¶
- Constants
- func CalcDerefId(dgsts ...[]byte) string
- func DeduplicateBySemver(lhs *[]string, rhs *[]string) error
- func ResolvePath(base string, path string, fallback string) (string, error)
- type BaseImage
- type BoolAlgebra
- type BuildGraph
- type BuildPlan
- type DependencyGraph
- type Image
- type ImageReference
- type Namespace
- type Pipeline
- type Port
- type PortLoader
- type ResolvedBaseImage
- type ResolvedImage
- type ResolvedImageReference
Constants ¶
View Source
const AnnotationDerefId = "clade.deref.id"
Variables ¶
This section is empty.
Functions ¶
func CalcDerefId ¶
func DeduplicateBySemver ¶
func ResolvePath ¶
ResolvePath returns an absolute representation of joined path of `base` and `path`. If the joined path is not absolute, it will be joined with the current working directory to turn it into an absolute path. If the `path` is empty, the `base` is joined with `fallback`.
Types ¶
type BaseImage ¶
type BaseImage struct { Primary *ImageReference Secondaries []*ImageReference }
func (*BaseImage) UnmarshalYAML ¶
type BoolAlgebra ¶
func (*BoolAlgebra) Expr ¶
func (a *BoolAlgebra) Expr() *boolal.Expr
func (*BoolAlgebra) UnmarshalYAML ¶
func (a *BoolAlgebra) UnmarshalYAML(node *yaml.Node) error
type BuildGraph ¶
type BuildGraph struct { *graph.Graph[*ResolvedImage] // contains filtered or unexported fields }
func NewBuildGraph ¶
func NewBuildGraph() *BuildGraph
func (*BuildGraph) Put ¶
func (g *BuildGraph) Put(image *ResolvedImage) ([]*graph.Node[*ResolvedImage], error)
func (*BuildGraph) Snapshot ¶
func (g *BuildGraph) Snapshot() graph.Snapshot
func (*BuildGraph) TagsByName ¶
func (g *BuildGraph) TagsByName(named reference.Named) ([]string, bool)
type BuildPlan ¶
type BuildPlan struct {
Iterations [][][]string `json:"iterations"`
}
func NewBuildPlan ¶
func NewBuildPlan(bg *BuildGraph) BuildPlan
type DependencyGraph ¶
func NewDependencyGraph ¶
func NewDependencyGraph() *DependencyGraph
func (*DependencyGraph) Snapshot ¶
func (g *DependencyGraph) Snapshot() graph.Snapshot
type ImageReference ¶
func (*ImageReference) FromNameTag ¶
func (r *ImageReference) FromNameTag(name string, tag string) error
func (*ImageReference) UnmarshalYAML ¶
func (r *ImageReference) UnmarshalYAML(node *yaml.Node) error
type Pipeline ¶
func (*Pipeline) UnmarshalYAML ¶
type Port ¶
type Port struct { Name reference.Named `yaml:"-"` Args map[string]string `yaml:"args"` Skip bool `yaml:"skip"` Dockerfile string `yaml:"dockerfile"` ContextPath string `yaml:"context"` Platform *BoolAlgebra `yaml:"platform"` Images []*Image }
func ReadPort ¶
ReadPort parses port file at given path. It fills empty fields in children by using fields in parent if possible according to Port rules. For example, if .Images[].Dockerfile empty, it will use .Dockerfile.
func (*Port) UnmarshalYAML ¶
type PortLoader ¶
type PortLoader struct {
Registry Namespace
}
func (*PortLoader) Expand ¶
func (l *PortLoader) Expand(ctx context.Context, image *Image, bg *BuildGraph) ([]*ResolvedImage, error)
func (*PortLoader) Load ¶
func (l *PortLoader) Load(ctx context.Context, bg *BuildGraph, ports []*Port) error
type ResolvedBaseImage ¶
type ResolvedBaseImage struct { Primary ResolvedImageReference Secondaries []ResolvedImageReference }
func (*ResolvedBaseImage) All ¶
func (i *ResolvedBaseImage) All() []ResolvedImageReference
type ResolvedImage ¶
type ResolvedImage struct { reference.Named Skip bool Tags []string From *ResolvedBaseImage Args map[string]string Dockerfile string ContextPath string Platform *BoolAlgebra }
func (*ResolvedImage) Tagged ¶
func (i *ResolvedImage) Tagged() (reference.NamedTagged, error)
type ResolvedImageReference ¶
type ResolvedImageReference struct { reference.NamedTagged Alias string }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.