Documentation ¶
Overview ¶
Package convert provides LLB converter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalLLB ¶
func MarshalLLB(ctx context.Context, graph *solver.PackageGraph, solver SolverFunc, options *environment.Options) (*llb.Definition, error)
MarshalLLB translates package graph into LLB DAG and marshals it.
Types ¶
type GraphLLB ¶
type GraphLLB struct { *solver.PackageGraph Options *environment.Options BaseImages map[v1alpha2.Variant]llb.State Checksummer llb.State LocalContext llb.State // contains filtered or unexported fields }
GraphLLB wraps PackageGraph to provide LLB conversion.
GraphLLB caches common images used in the build.
func NewGraphLLB ¶
func NewGraphLLB(graph *solver.PackageGraph, solverFn SolverFunc, options *environment.Options) *GraphLLB
NewGraphLLB creates new GraphLLB and initializes shared images.
type NodeLLB ¶
type NodeLLB struct { *solver.PackageNode Graph *GraphLLB Prefix string }
NodeLLB wraps PackageNode to provide LLB conversion.
func NewNodeLLB ¶
func NewNodeLLB(node *solver.PackageNode, graph *GraphLLB) *NodeLLB
NewNodeLLB wraps PackageNode for LLB conversion.
type SolverFunc ¶ added in v0.3.0
type SolverFunc func(ctx context.Context, platform environment.Platform, target string) (*client.Result, error)
SolverFunc can be called to solve the package into the llb state via buildkit.
Click to show internal directories.
Click to hide internal directories.