package errdefs

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

Index

Variables

var File_github_com_moby_buildkit_solver_errdefs_errdefs_proto protoreflect.FileDescriptor

Functions

func IsCanceled

func IsCanceled(ctx context.Context, err error) bool

func NewUnknownJobError

func NewUnknownJobError(id string) error

func NewUnsupportedFrontendCapError

func NewUnsupportedFrontendCapError(name string) error

func NewUnsupportedSubrequestError

func NewUnsupportedSubrequestError(name string) error

func WithOp

func WithOp(err error, anyOp any, opDesc map[string]string) error

func WithSolveError

func WithSolveError(err error, subject IsSolve_Subject, inputIDs, mountIDs []string) error

func WithSource

func WithSource(err error, src *Source) error

func WrapVertex

func WrapVertex(err error, dgst digest.Digest) error

Types

type ContentCache

type ContentCache struct {

	// Original index of result that failed the slow cache calculation.
	Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentCache) CloneMessageVT

func (m *ContentCache) CloneMessageVT() proto.Message

func (*ContentCache) CloneVT

func (m *ContentCache) CloneVT() *ContentCache

func (*ContentCache) Descriptor

func (*ContentCache) Descriptor() ([]byte, []int)

Deprecated: Use ContentCache.ProtoReflect.Descriptor instead.

func (*ContentCache) EqualMessageVT

func (this *ContentCache) EqualMessageVT(thatMsg proto.Message) bool

func (*ContentCache) EqualVT

func (this *ContentCache) EqualVT(that *ContentCache) bool

func (*ContentCache) GetIndex

func (x *ContentCache) GetIndex() int64

func (*ContentCache) MarshalToSizedBufferVT

func (m *ContentCache) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*ContentCache) MarshalToVT

func (m *ContentCache) MarshalToVT(dAtA []byte) (int, error)

func (*ContentCache) MarshalVT

func (m *ContentCache) MarshalVT() (dAtA []byte, err error)

func (*ContentCache) ProtoMessage

func (*ContentCache) ProtoMessage()

func (*ContentCache) ProtoReflect

func (x *ContentCache) ProtoReflect() protoreflect.Message

func (*ContentCache) Reset

func (x *ContentCache) Reset()

func (*ContentCache) SizeVT

func (m *ContentCache) SizeVT() (n int)

func (*ContentCache) String

func (x *ContentCache) String() string

func (*ContentCache) UnmarshalVT

func (m *ContentCache) UnmarshalVT(dAtA []byte) error

type ErrorSource

type ErrorSource struct {
	*Source
	// contains filtered or unexported fields
}

func (*ErrorSource) ToProto

func (e *ErrorSource) ToProto() grpcerrors.TypedErrorProto

func (*ErrorSource) Unwrap

func (e *ErrorSource) Unwrap() error

type FileAction

type FileAction struct {

	// Index of the file action that failed the exec.
	Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*FileAction) CloneMessageVT

func (m *FileAction) CloneMessageVT() proto.Message

func (*FileAction) CloneVT

func (m *FileAction) CloneVT() *FileAction

func (*FileAction) Descriptor

func (*FileAction) Descriptor() ([]byte, []int)

Deprecated: Use FileAction.ProtoReflect.Descriptor instead.

func (*FileAction) EqualMessageVT

func (this *FileAction) EqualMessageVT(thatMsg proto.Message) bool

func (*FileAction) EqualVT

func (this *FileAction) EqualVT(that *FileAction) bool

func (*FileAction) GetIndex

func (x *FileAction) GetIndex() int64

func (*FileAction) MarshalToSizedBufferVT

func (m *FileAction) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FileAction) MarshalToVT

func (m *FileAction) MarshalToVT(dAtA []byte) (int, error)

func (*FileAction) MarshalVT

func (m *FileAction) MarshalVT() (dAtA []byte, err error)

func (*FileAction) ProtoMessage

func (*FileAction) ProtoMessage()

func (*FileAction) ProtoReflect

func (x *FileAction) ProtoReflect() protoreflect.Message

func (*FileAction) Reset

func (x *FileAction) Reset()

func (*FileAction) SizeVT

func (m *FileAction) SizeVT() (n int)

func (*FileAction) String

func (x *FileAction) String() string

func (*FileAction) UnmarshalVT

func (m *FileAction) UnmarshalVT(dAtA []byte) error

type FrontendCap

type FrontendCap struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FrontendCap) CloneMessageVT

func (m *FrontendCap) CloneMessageVT() proto.Message

func (*FrontendCap) CloneVT

func (m *FrontendCap) CloneVT() *FrontendCap

func (*FrontendCap) Descriptor

func (*FrontendCap) Descriptor() ([]byte, []int)

Deprecated: Use FrontendCap.ProtoReflect.Descriptor instead.

func (*FrontendCap) EqualMessageVT

func (this *FrontendCap) EqualMessageVT(thatMsg proto.Message) bool

func (*FrontendCap) EqualVT

func (this *FrontendCap) EqualVT(that *FrontendCap) bool

func (*FrontendCap) GetName

func (x *FrontendCap) GetName() string

func (*FrontendCap) MarshalToSizedBufferVT

func (m *FrontendCap) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*FrontendCap) MarshalToVT

func (m *FrontendCap) MarshalToVT(dAtA []byte) (int, error)

func (*FrontendCap) MarshalVT

func (m *FrontendCap) MarshalVT() (dAtA []byte, err error)

func (*FrontendCap) ProtoMessage

func (*FrontendCap) ProtoMessage()

func (*FrontendCap) ProtoReflect

func (x *FrontendCap) ProtoReflect() protoreflect.Message

func (*FrontendCap) Reset

func (x *FrontendCap) Reset()

func (*FrontendCap) SizeVT

func (m *FrontendCap) SizeVT() (n int)

func (*FrontendCap) String

func (x *FrontendCap) String() string

func (*FrontendCap) UnmarshalVT

func (m *FrontendCap) UnmarshalVT(dAtA []byte) error

func (*FrontendCap) WrapError

func (v *FrontendCap) WrapError(err error) error

type IsSolve_Subject

type IsSolve_Subject isSolve_Subject

type OpError

type OpError struct {
	Op          *pb.Op
	Description map[string]string
	// contains filtered or unexported fields
}

func (*OpError) Unwrap

func (e *OpError) Unwrap() error

type Solve

type Solve struct {
	InputIDs []string `protobuf:"bytes,1,rep,name=inputIDs,proto3" json:"inputIDs,omitempty"`
	MountIDs []string `protobuf:"bytes,2,rep,name=mountIDs,proto3" json:"mountIDs,omitempty"`
	Op       *pb.Op   `protobuf:"bytes,3,opt,name=op,proto3" json:"op,omitempty"`
	// Types that are assignable to Subject:
	//
	//	*Solve_File
	//	*Solve_Cache
	Subject     isSolve_Subject   `protobuf_oneof:"subject"`
	Description map[string]string `protobuf:"bytes,6,rep,name=description,proto3" json:"description,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
	// contains filtered or unexported fields
}

func (*Solve) CloneMessageVT

func (m *Solve) CloneMessageVT() proto.Message

func (*Solve) CloneVT

func (m *Solve) CloneVT() *Solve

func (*Solve) Descriptor

func (*Solve) Descriptor() ([]byte, []int)

Deprecated: Use Solve.ProtoReflect.Descriptor instead.

func (*Solve) EqualMessageVT

func (this *Solve) EqualMessageVT(thatMsg proto.Message) bool

func (*Solve) EqualVT

func (this *Solve) EqualVT(that *Solve) bool

func (*Solve) GetCache

func (x *Solve) GetCache() *ContentCache

func (*Solve) GetDescription

func (x *Solve) GetDescription() map[string]string

func (*Solve) GetFile

func (x *Solve) GetFile() *FileAction

func (*Solve) GetInputIDs

func (x *Solve) GetInputIDs() []string

func (*Solve) GetMountIDs

func (x *Solve) GetMountIDs() []string

func (*Solve) GetOp

func (x *Solve) GetOp() *pb.Op

func (*Solve) GetSubject

func (m *Solve) GetSubject() isSolve_Subject

func (*Solve) MarshalJSON

func (v *Solve) MarshalJSON() ([]byte, error)

func (*Solve) MarshalToSizedBufferVT

func (m *Solve) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Solve) MarshalToVT

func (m *Solve) MarshalToVT(dAtA []byte) (int, error)

func (*Solve) MarshalVT

func (m *Solve) MarshalVT() (dAtA []byte, err error)

func (*Solve) ProtoMessage

func (*Solve) ProtoMessage()

func (*Solve) ProtoReflect

func (x *Solve) ProtoReflect() protoreflect.Message

func (*Solve) Reset

func (x *Solve) Reset()

func (*Solve) SizeVT

func (m *Solve) SizeVT() (n int)

func (*Solve) String

func (x *Solve) String() string

func (*Solve) UnmarshalJSON

func (v *Solve) UnmarshalJSON(b []byte) error

func (*Solve) UnmarshalVT

func (m *Solve) UnmarshalVT(dAtA []byte) error

func (*Solve) WrapError

func (v *Solve) WrapError(err error) error

type SolveError

type SolveError struct {
	*Solve
	Err error
}

SolveError will be returned when an error is encountered during a solve that has an exec op.

func (*SolveError) Error

func (e *SolveError) Error() string

func (*SolveError) ToProto

func (e *SolveError) ToProto() grpcerrors.TypedErrorProto

func (*SolveError) Unwrap

func (e *SolveError) Unwrap() error

type Solve_Cache

type Solve_Cache struct {
	Cache *ContentCache `protobuf:"bytes,5,opt,name=cache,proto3,oneof"`
}

func (*Solve_Cache) CloneVT

func (m *Solve_Cache) CloneVT() isSolve_Subject

func (*Solve_Cache) EqualVT

func (this *Solve_Cache) EqualVT(thatIface isSolve_Subject) bool

func (*Solve_Cache) MarshalToSizedBufferVT

func (m *Solve_Cache) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Solve_Cache) MarshalToVT

func (m *Solve_Cache) MarshalToVT(dAtA []byte) (int, error)

func (*Solve_Cache) SizeVT

func (m *Solve_Cache) SizeVT() (n int)

type Solve_File

type Solve_File struct {
	File *FileAction `protobuf:"bytes,4,opt,name=file,proto3,oneof"`
}

func (*Solve_File) CloneVT

func (m *Solve_File) CloneVT() isSolve_Subject

func (*Solve_File) EqualVT

func (this *Solve_File) EqualVT(thatIface isSolve_Subject) bool

func (*Solve_File) MarshalToSizedBufferVT

func (m *Solve_File) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Solve_File) MarshalToVT

func (m *Solve_File) MarshalToVT(dAtA []byte) (int, error)

func (*Solve_File) SizeVT

func (m *Solve_File) SizeVT() (n int)

type Source

type Source struct {
	Info   *pb.SourceInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Ranges []*pb.Range    `protobuf:"bytes,2,rep,name=ranges,proto3" json:"ranges,omitempty"`
	// contains filtered or unexported fields
}

func Sources

func Sources(err error) []*Source

func (*Source) CloneMessageVT

func (m *Source) CloneMessageVT() proto.Message

func (*Source) CloneVT

func (m *Source) CloneVT() *Source

func (*Source) Descriptor

func (*Source) Descriptor() ([]byte, []int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) EqualMessageVT

func (this *Source) EqualMessageVT(thatMsg proto.Message) bool

func (*Source) EqualVT

func (this *Source) EqualVT(that *Source) bool

func (*Source) GetInfo

func (x *Source) GetInfo() *pb.SourceInfo

func (*Source) GetRanges

func (x *Source) GetRanges() []*pb.Range

func (*Source) MarshalToSizedBufferVT

func (m *Source) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Source) MarshalToVT

func (m *Source) MarshalToVT(dAtA []byte) (int, error)

func (*Source) MarshalVT

func (m *Source) MarshalVT() (dAtA []byte, err error)

func (*Source) Print

func (s *Source) Print(w io.Writer) error

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

func (x *Source) ProtoReflect() protoreflect.Message

func (*Source) Reset

func (x *Source) Reset()

func (*Source) SizeVT

func (m *Source) SizeVT() (n int)

func (*Source) String

func (x *Source) String() string

func (*Source) UnmarshalVT

func (m *Source) UnmarshalVT(dAtA []byte) error

func (*Source) WrapError

func (s *Source) WrapError(err error) error

type Subrequest

type Subrequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Subrequest) CloneMessageVT

func (m *Subrequest) CloneMessageVT() proto.Message

func (*Subrequest) CloneVT

func (m *Subrequest) CloneVT() *Subrequest

func (*Subrequest) Descriptor

func (*Subrequest) Descriptor() ([]byte, []int)

Deprecated: Use Subrequest.ProtoReflect.Descriptor instead.

func (*Subrequest) EqualMessageVT

func (this *Subrequest) EqualMessageVT(thatMsg proto.Message) bool

func (*Subrequest) EqualVT

func (this *Subrequest) EqualVT(that *Subrequest) bool

func (*Subrequest) GetName

func (x *Subrequest) GetName() string

func (*Subrequest) MarshalToSizedBufferVT

func (m *Subrequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Subrequest) MarshalToVT

func (m *Subrequest) MarshalToVT(dAtA []byte) (int, error)

func (*Subrequest) MarshalVT

func (m *Subrequest) MarshalVT() (dAtA []byte, err error)

func (*Subrequest) ProtoMessage

func (*Subrequest) ProtoMessage()

func (*Subrequest) ProtoReflect

func (x *Subrequest) ProtoReflect() protoreflect.Message

func (*Subrequest) Reset

func (x *Subrequest) Reset()

func (*Subrequest) SizeVT

func (m *Subrequest) SizeVT() (n int)

func (*Subrequest) String

func (x *Subrequest) String() string

func (*Subrequest) UnmarshalVT

func (m *Subrequest) UnmarshalVT(dAtA []byte) error

func (*Subrequest) WrapError

func (v *Subrequest) WrapError(err error) error

type UnknownJobError

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

func (*UnknownJobError) Code

func (e *UnknownJobError) Code() codes.Code

func (*UnknownJobError) Error

func (e *UnknownJobError) Error() string

type UnsupportedFrontendCapError

type UnsupportedFrontendCapError struct {
	*FrontendCap
	// contains filtered or unexported fields
}

func (*UnsupportedFrontendCapError) Error

func (*UnsupportedFrontendCapError) ToProto

func (*UnsupportedFrontendCapError) Unwrap

func (e *UnsupportedFrontendCapError) Unwrap() error

type UnsupportedSubrequestError

type UnsupportedSubrequestError struct {
	*Subrequest
	// contains filtered or unexported fields
}

func (*UnsupportedSubrequestError) Error

func (*UnsupportedSubrequestError) ToProto

func (*UnsupportedSubrequestError) Unwrap

func (e *UnsupportedSubrequestError) Unwrap() error

type Vertex

type Vertex struct {
	Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*Vertex) CloneMessageVT

func (m *Vertex) CloneMessageVT() proto.Message

func (*Vertex) CloneVT

func (m *Vertex) CloneVT() *Vertex

func (*Vertex) Descriptor

func (*Vertex) Descriptor() ([]byte, []int)

Deprecated: Use Vertex.ProtoReflect.Descriptor instead.

func (*Vertex) EqualMessageVT

func (this *Vertex) EqualMessageVT(thatMsg proto.Message) bool

func (*Vertex) EqualVT

func (this *Vertex) EqualVT(that *Vertex) bool

func (*Vertex) GetDigest

func (x *Vertex) GetDigest() string

func (*Vertex) MarshalToSizedBufferVT

func (m *Vertex) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Vertex) MarshalToVT

func (m *Vertex) MarshalToVT(dAtA []byte) (int, error)

func (*Vertex) MarshalVT

func (m *Vertex) MarshalVT() (dAtA []byte, err error)

func (*Vertex) ProtoMessage

func (*Vertex) ProtoMessage()

func (*Vertex) ProtoReflect

func (x *Vertex) ProtoReflect() protoreflect.Message

func (*Vertex) Reset

func (x *Vertex) Reset()

func (*Vertex) SizeVT

func (m *Vertex) SizeVT() (n int)

func (*Vertex) String

func (x *Vertex) String() string

func (*Vertex) UnmarshalVT

func (m *Vertex) UnmarshalVT(dAtA []byte) error

func (*Vertex) WrapError

func (v *Vertex) WrapError(err error) error

type VertexError

type VertexError struct {
	*Vertex
	// contains filtered or unexported fields
}

func (*VertexError) ToProto

func (e *VertexError) ToProto() grpcerrors.TypedErrorProto

func (*VertexError) Unwrap

func (e *VertexError) Unwrap() error

Source Files

context.go errdefs.pb.go errdefs_vtproto.pb.go fronetendcap.go jobs.go op.go solve.go source.go subrequest.go vertex.go

Version
v0.21.0 (latest)
Published
Apr 11, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
2 days ago

Tools for package owners.