Documentation
¶
Index ¶
Constants ¶
View Source
const ( PushImageErr = "could not push image" // Error Prefix matches error thrown by Docker // See https://github.com/moby/moby/blob/master/client/errors.go#L18 DockerConnectionFailed = ".*(Cannot connect to the Docker daemon.*) Is" // Build cancelled due to other build failures BuildCancelled = ".*context canceled.*" )
Variables ¶
This section is empty.
Functions ¶
func ActionableErr ¶
func ActionableErr(phase Phase, err error) *proto.ActionableErr
ActionableErr returns an actionable error message with suggestions
func IsSkaffoldErr ¶
func SetRunContext ¶ added in v1.21.0
func SetRunContext(rc runcontext.RunContext)
SetRunContext set Skaffold runCtx once. This run context is used later to suggest actionable error messages based on skaffold command line options and run context
func ShowAIError ¶
Types ¶
type ErrDef ¶
type ErrDef struct {
// contains filtered or unexported fields
}
func NewError ¶
func NewError(err error, ae proto.ActionableErr) ErrDef
NewError creates an actionable error message preserving the actual error.
func NewErrorWithStatusCode ¶
func NewErrorWithStatusCode(ae proto.ActionableErr) ErrDef
NewError creates an actionable error message.
func (ErrDef) StatusCode ¶
func (e ErrDef) StatusCode() proto.StatusCode
func (ErrDef) Suggestions ¶
func (e ErrDef) Suggestions() []*proto.Suggestion
type Error ¶
type Error interface {
Error() string
StatusCode() proto.StatusCode
Suggestions() []*proto.Suggestion
Unwrap() error
}
Click to show internal directories.
Click to hide internal directories.