test

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LLBOpsToJSON

func LLBOpsToJSON(ops []LLBOp) (string, error)

LLBOpsToJSON converts a list of LLB operations to a JSON string.

Types

type LLBOp

type LLBOp struct {
	Digest     digest.Digest
	Op         *pb.Op
	OpMetadata *pb.OpMetadata
}

LLBOp represents a single LLB operation along with its metadata.

func LLBOpsFromState

func LLBOpsFromState(ctx context.Context, state llb.State) ([]LLBOp, error)

LLBOpsFromState extracts the list of LLB operations from the provided LLB state.

This function and LLBOp type has been inspired by https://github.com/moby/buildkit/blob/c70e8e666f8f6ee3c0d83b20c338be5aedeaa97a/cmd/buildctl/debug/dumpllb.go#L59.

Jump to

Keyboard shortcuts

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