package errdefs

import "github.com/moby/buildkit/solver/llbsolver/errdefs"

Index

Functions

func WithExecError

func WithExecError(err error, inputs, mounts []solver.Result) error

func WithExecErrorWithContext

func WithExecErrorWithContext(ctx context.Context, err error, inputs, mounts []solver.Result) error

func WithFileActionError

func WithFileActionError(err error, idx int) error

Types

type ExecError

type ExecError struct {
	Inputs        []solver.Result
	Mounts        []solver.Result
	OwnerBorrowed bool
	// contains filtered or unexported fields
}

ExecError will be returned when an error is encountered when evaluating an op.

func (*ExecError) EachRef

func (e *ExecError) EachRef(fn func(solver.Result) error) (err error)

func (*ExecError) Release

func (e *ExecError) Release() error

func (*ExecError) Unwrap

func (e *ExecError) Unwrap() error

type FileActionError

type FileActionError struct {
	Index int
	// contains filtered or unexported fields
}

FileActionError will be returned when an error is encountered when solving a fileop.

func (*FileActionError) ToSubject

func (e *FileActionError) ToSubject() serrdefs.IsSolve_Subject

func (*FileActionError) Unwrap

func (e *FileActionError) Unwrap() error

Source Files

exec.go file.go

Version
v0.11.4
Published
Mar 6, 2023
Platform
js/wasm
Imports
5 packages
Last checked
2 minutes ago

Tools for package owners.