Documentation ¶
Index ¶
- Constants
- func NewBuildError(name string, err error) error
- func NewContainerError(name string, code int, expected string) error
- func NewDefaultScriptsURLError(err error) error
- func NewDownloadError(url string, code int) error
- func NewInspectImageError(name string, err error) error
- func NewPullImageError(name string, err error) error
- func NewSaveArtifactsError(name string, err error) error
- func NewScriptDownloadError(name api.Script, err error) error
- func NewTarTimeoutError() error
- func NewURLHandlerError(url string) error
- func NewWorkDirError(dir string, err error) error
- type ContainerError
- type Error
Constants ¶
const ( ErrInspectImage int = 1 + iota ErrPullImage ErrScriptDownload ErrSaveArtifacts ErrBuild ErrSTIContainer ErrTarTimeout ErrWorkDir ErrDownload ErrURLHandler ErrDefaultScriptsURL )
Common STI errors
Variables ¶
This section is empty.
Functions ¶
func NewBuildError ¶
NewBuildError returns a new error which indicates there was a problem building the image
func NewContainerError ¶
NewContainerError return a new error which indicates there was a problem invoking command inside container
func NewDefaultScriptsURLError ¶
NewDefaultScriptsURLError return a new error which indicates there was a problem when trying to read STI_SCRIPTS_URL
func NewDownloadError ¶
NewDownloadError returns a new error which indicates there was a problem when downloading a file
func NewInspectImageError ¶
NewInspectImageError returns a new error which indicates there was a problem inspecting the image
func NewPullImageError ¶
NewPullImageError returns a new error which indicates there was a problem pulling the image
func NewSaveArtifactsError ¶
NewSaveArtifactsError returns a new error which indicates there was a problem calling save-artifacts script
func NewScriptDownloadError ¶
NewScriptDownloadError returns a new error which indicates there was a problem downloading a script
func NewTarTimeoutError ¶
func NewTarTimeoutError() error
NewTarTimeoutError returns a new error which indicates there was a problem when sending or receiving tar stream
func NewURLHandlerError ¶
NewURLHandlerError returns a new error which indicates there was a problem when trying to read scripts URL
func NewWorkDirError ¶
NewWorkDirError returns a new error which indicates there was a problem when creating working directory
Types ¶
type ContainerError ¶
type ContainerError struct { Message string ExpectedError string ErrorCode int Suggestion string ExitCode int }
ContainerError is an error returned when a container exits with a non-zero code. ExitCode contains the exit code from the container
func (ContainerError) Error ¶
func (s ContainerError) Error() string
Error returns a string for the given error