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 ¶ added in v0.2.1
NewBuildError returns a new error which indicates there was a problem building the image
func NewContainerError ¶ added in v0.2.1
NewContainerError return a new error which indicates there was a problem invoking command inside container
func NewDefaultScriptsURLError ¶ added in v0.2.1
NewDefaultScriptsURLError return a new error which indicates there was a problem when trying to read STI_SCRIPTS_URL
func NewDownloadError ¶ added in v0.2.1
NewDownloadError returns a new error which indicates there was a problem when downloading a file
func NewInspectImageError ¶ added in v0.2.1
NewInspectImageError returns a new error which indicates there was a problem inspecting the image
func NewPullImageError ¶ added in v0.2.1
NewPullImageError returns a new error which indicates there was a problem pulling the image
func NewSaveArtifactsError ¶ added in v0.2.1
NewSaveArtifactsError returns a new error which indicates there was a problem calling save-artifacts script
func NewScriptDownloadError ¶ added in v0.2.1
NewScriptDownloadError returns a new error which indicates there was a problem downloading a script
func NewTarTimeoutError ¶ added in v0.2.1
func NewTarTimeoutError() error
NewTarTimeoutError returns a new error which indicates there was a problem when sending or receiving tar stream
func NewURLHandlerError ¶ added in v0.2.1
NewURLHandlerError returns a new error which indicates there was a problem when trying to read scripts URL
func NewWorkDirError ¶ added in v0.2.1
NewWorkDirError returns a new error which indicates there was a problem when creating working directory
Types ¶
type ContainerError ¶ added in v0.2.1
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 ¶ added in v0.2.1
func (s ContainerError) Error() string
Error returns a string for the given error