build_llb

package
v0.0.0-...-41454cb Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildEnvironment

type BuildEnvironment struct {
	PathList []string
	EnvVars  map[string]string
}

func NewGraphEnvironment

func NewGraphEnvironment() BuildEnvironment

func (*BuildEnvironment) AddEnvVar

func (e *BuildEnvironment) AddEnvVar(key, value string)

func (*BuildEnvironment) Merge

func (e *BuildEnvironment) Merge(other BuildEnvironment)

Merges the other environment into the current environment

func (*BuildEnvironment) PushPath

func (e *BuildEnvironment) PushPath(path string)

type BuildGraph

type BuildGraph struct {
	CacheStore *BuildKitCacheStore
	Plan       *plan.BuildPlan
	Platform   *specs.Platform
	LocalState *llb.State
	// contains filtered or unexported fields
}

func NewBuildGraph

func NewBuildGraph(plan *plan.BuildPlan, localState *llb.State, cacheStore *BuildKitCacheStore, secretsHash string, platform *specs.Platform) (*BuildGraph, error)

func (*BuildGraph) GenerateLLB

func (g *BuildGraph) GenerateLLB() (*BuildGraphOutput, error)

GenerateLLB generates the LLB state for the build graph

func (*BuildGraph) GetFullStateFromInputs

func (g *BuildGraph) GetFullStateFromInputs(inputs []plan.Input) llb.State

func (*BuildGraph) GetStateForInput

func (g *BuildGraph) GetStateForInput(input plan.Input) llb.State

type BuildGraphOutput

type BuildGraphOutput struct {
	State    *llb.State
	GraphEnv BuildEnvironment
}

type BuildKitCache

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

type BuildKitCacheStore

type BuildKitCacheStore struct {
	CacheMap map[string]BuildKitCache
	// contains filtered or unexported fields
}

func NewBuildKitCacheStore

func NewBuildKitCacheStore(uniqueID string) *BuildKitCacheStore

func (*BuildKitCacheStore) GetCache

func (c *BuildKitCacheStore) GetCache(key string, planCache *plan.Cache) BuildKitCache

type StepNode

type StepNode struct {
	Step  *plan.Step
	State *llb.State

	Processed  bool
	InProgress bool

	InputEnv  BuildEnvironment
	OutputEnv BuildEnvironment
	// contains filtered or unexported fields
}

func (*StepNode) GetChildren

func (n *StepNode) GetChildren() []graph.Node

func (*StepNode) GetName

func (n *StepNode) GetName() string

func (*StepNode) GetParents

func (n *StepNode) GetParents() []graph.Node

func (*StepNode) SetChildren

func (n *StepNode) SetChildren(children []graph.Node)

func (*StepNode) SetParents

func (n *StepNode) SetParents(parents []graph.Node)

Jump to

Keyboard shortcuts

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