buildkit/build_llb/step_node.go
buildkit/build_llb/step_node.goBrowse 1970 files
243 tokens
889 bytes
Token encoding: o200k_base
Snapshot 21a254f
← Back to SKILL.md
1package build_llb2 3import (4 "github.com/moby/buildkit/client/llb"5 "github.com/railwayapp/railpack/buildkit/graph"6 "github.com/railwayapp/railpack/core/plan"7)8 9type StepNode struct {10 Step *plan.Step11 State *llb.State12 parents []graph.Node13 children []graph.Node14 Processed bool15 InProgress bool16 17 InputEnv BuildEnvironment18 OutputEnv BuildEnvironment19}20 21func (n *StepNode) GetName() string {22 return n.Step.Name23}24 25func (n *StepNode) GetParents() []graph.Node {26 return n.parents27}28 29func (n *StepNode) SetParents(parents []graph.Node) {30 n.parents = parents31}32 33func (n *StepNode) GetChildren() []graph.Node {34 return n.children35}36 37func (n *StepNode) SetChildren(children []graph.Node) {38 n.children = children39}40 41func (node *StepNode) getPathList() []string {42 pathList := make([]string, 0)43 pathList = append(pathList, node.OutputEnv.PathList...)44 return pathList45}46