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 SetSkaffoldOptions ¶
func SetSkaffoldOptions(opts config.SkaffoldOptions)
SetSkaffoldOptions set Skaffold config options once. These options are used later to suggest actionable error messages based on skaffold 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.