errdefs

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 added in v0.13.0

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 interface{}, 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 added in v0.17.0

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

func (*ContentCache) CloneVT added in v0.17.0

func (m *ContentCache) CloneVT() *ContentCache

func (*ContentCache) Descriptor deprecated

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

Deprecated: Use ContentCache.ProtoReflect.Descriptor instead.

func (*ContentCache) EqualMessageVT added in v0.17.0

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

func (*ContentCache) EqualVT added in v0.17.0

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

func (*ContentCache) GetIndex

func (x *ContentCache) GetIndex() int64

func (*ContentCache) MarshalToSizedBufferVT added in v0.17.0

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

func (*ContentCache) MarshalToVT added in v0.17.0

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

func (*ContentCache) MarshalVT added in v0.17.0

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

func (*ContentCache) ProtoMessage

func (*ContentCache) ProtoMessage()

func (*ContentCache) ProtoReflect added in v0.17.0

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

func (*ContentCache) Reset

func (x *ContentCache) Reset()

func (*ContentCache) SizeVT added in v0.17.0

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

func (*ContentCache) String

func (x *ContentCache) String() string

func (*ContentCache) UnmarshalVT added in v0.17.0

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 added in v0.17.0

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

func (*FileAction) CloneVT added in v0.17.0

func (m *FileAction) CloneVT() *FileAction

func (*FileAction) Descriptor deprecated

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

Deprecated: Use FileAction.ProtoReflect.Descriptor instead.

func (*FileAction) EqualMessageVT added in v0.17.0

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

func (*FileAction) EqualVT added in v0.17.0

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

func (*FileAction) GetIndex

func (x *FileAction) GetIndex() int64

func (*FileAction) MarshalToSizedBufferVT added in v0.17.0

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

func (*FileAction) MarshalToVT added in v0.17.0

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

func (*FileAction) MarshalVT added in v0.17.0

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

func (*FileAction) ProtoMessage

func (*FileAction) ProtoMessage()

func (*FileAction) ProtoReflect added in v0.17.0

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

func (*FileAction) Reset

func (x *FileAction) Reset()

func (*FileAction) SizeVT added in v0.17.0

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

func (*FileAction) String

func (x *FileAction) String() string

func (*FileAction) UnmarshalVT added in v0.17.0

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 added in v0.17.0

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

func (*FrontendCap) CloneVT added in v0.17.0

func (m *FrontendCap) CloneVT() *FrontendCap

func (*FrontendCap) Descriptor deprecated

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

Deprecated: Use FrontendCap.ProtoReflect.Descriptor instead.

func (*FrontendCap) EqualMessageVT added in v0.17.0

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

func (*FrontendCap) EqualVT added in v0.17.0

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

func (*FrontendCap) GetName

func (x *FrontendCap) GetName() string

func (*FrontendCap) MarshalToSizedBufferVT added in v0.17.0

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

func (*FrontendCap) MarshalToVT added in v0.17.0

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

func (*FrontendCap) MarshalVT added in v0.17.0

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

func (*FrontendCap) ProtoMessage

func (*FrontendCap) ProtoMessage()

func (*FrontendCap) ProtoReflect added in v0.17.0

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

func (*FrontendCap) Reset

func (x *FrontendCap) Reset()

func (*FrontendCap) SizeVT added in v0.17.0

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

func (*FrontendCap) String

func (x *FrontendCap) String() string

func (*FrontendCap) UnmarshalVT added in v0.17.0

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 `` /* 163-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Solve) CloneMessageVT added in v0.17.0

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

func (*Solve) CloneVT added in v0.17.0

func (m *Solve) CloneVT() *Solve

func (*Solve) Descriptor deprecated

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

Deprecated: Use Solve.ProtoReflect.Descriptor instead.

func (*Solve) EqualMessageVT added in v0.17.0

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

func (*Solve) EqualVT added in v0.17.0

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

func (*Solve) GetCache

func (x *Solve) GetCache() *ContentCache

func (*Solve) GetDescription added in v0.15.0

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 added in v0.17.0

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

func (*Solve) MarshalToVT added in v0.17.0

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

func (*Solve) MarshalVT added in v0.17.0

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

func (*Solve) ProtoMessage

func (*Solve) ProtoMessage()

func (*Solve) ProtoReflect added in v0.17.0

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

func (*Solve) Reset

func (x *Solve) Reset()

func (*Solve) SizeVT added in v0.17.0

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 added in v0.17.0

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 added in v0.17.0

func (m *Solve_Cache) CloneVT() isSolve_Subject

func (*Solve_Cache) EqualVT added in v0.17.0

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

func (*Solve_Cache) MarshalToSizedBufferVT added in v0.17.0

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

func (*Solve_Cache) MarshalToVT added in v0.17.0

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

func (*Solve_Cache) SizeVT added in v0.17.0

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 added in v0.17.0

func (m *Solve_File) CloneVT() isSolve_Subject

func (*Solve_File) EqualVT added in v0.17.0

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

func (*Solve_File) MarshalToSizedBufferVT added in v0.17.0

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

func (*Solve_File) MarshalToVT added in v0.17.0

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

func (*Solve_File) SizeVT added in v0.17.0

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 added in v0.17.0

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

func (*Source) CloneVT added in v0.17.0

func (m *Source) CloneVT() *Source

func (*Source) Descriptor deprecated

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) EqualMessageVT added in v0.17.0

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

func (*Source) EqualVT added in v0.17.0

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 added in v0.17.0

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

func (*Source) MarshalToVT added in v0.17.0

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

func (*Source) MarshalVT added in v0.17.0

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 added in v0.17.0

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) SizeVT added in v0.17.0

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

func (*Source) String

func (x *Source) String() string

func (*Source) UnmarshalVT added in v0.17.0

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 added in v0.17.0

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

func (*Subrequest) CloneVT added in v0.17.0

func (m *Subrequest) CloneVT() *Subrequest

func (*Subrequest) Descriptor deprecated

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

Deprecated: Use Subrequest.ProtoReflect.Descriptor instead.

func (*Subrequest) EqualMessageVT added in v0.17.0

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

func (*Subrequest) EqualVT added in v0.17.0

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

func (*Subrequest) GetName

func (x *Subrequest) GetName() string

func (*Subrequest) MarshalToSizedBufferVT added in v0.17.0

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

func (*Subrequest) MarshalToVT added in v0.17.0

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

func (*Subrequest) MarshalVT added in v0.17.0

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

func (*Subrequest) ProtoMessage

func (*Subrequest) ProtoMessage()

func (*Subrequest) ProtoReflect added in v0.17.0

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

func (*Subrequest) Reset

func (x *Subrequest) Reset()

func (*Subrequest) SizeVT added in v0.17.0

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

func (*Subrequest) String

func (x *Subrequest) String() string

func (*Subrequest) UnmarshalVT added in v0.17.0

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

func (*Subrequest) WrapError

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

type UnknownJobError added in v0.13.0

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

func (*UnknownJobError) Code added in v0.13.0

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

func (*UnknownJobError) Error added in v0.13.0

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 added in v0.17.0

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

func (*Vertex) CloneVT added in v0.17.0

func (m *Vertex) CloneVT() *Vertex

func (*Vertex) Descriptor deprecated

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

Deprecated: Use Vertex.ProtoReflect.Descriptor instead.

func (*Vertex) EqualMessageVT added in v0.17.0

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

func (*Vertex) EqualVT added in v0.17.0

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

func (*Vertex) GetDigest

func (x *Vertex) GetDigest() string

func (*Vertex) MarshalToSizedBufferVT added in v0.17.0

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

func (*Vertex) MarshalToVT added in v0.17.0

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

func (*Vertex) MarshalVT added in v0.17.0

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

func (*Vertex) ProtoMessage

func (*Vertex) ProtoMessage()

func (*Vertex) ProtoReflect added in v0.17.0

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

func (*Vertex) Reset

func (x *Vertex) Reset()

func (*Vertex) SizeVT added in v0.17.0

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

func (*Vertex) String

func (x *Vertex) String() string

func (*Vertex) UnmarshalVT added in v0.17.0

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

Jump to

Keyboard shortcuts

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