Documentation ¶
Index ¶
- Constants
- func NewAssembleError(name, output string, err error) error
- func NewBuildError(name string, err error) error
- func NewContainerError(name string, code int, output string) error
- func NewDownloadError(url string, code int) error
- func NewInspectImageError(name string, err error) error
- func NewInstallError(script string) error
- func NewInstallRequiredError(scripts []string) error
- func NewPullImageError(name string, err error) error
- func NewSaveArtifactsError(name, output string, err error) error
- func NewScriptsInsideImageError(url string) error
- func NewTarTimeoutError() error
- func NewURLHandlerError(url string) error
- func NewWorkDirError(dir string, err error) error
- type ContainerError
- type Error
Constants ¶
const ( InspectImageError int = 1 + iota PullImageError SaveArtifactsError AssembleError WorkdirError BuildError TarTimeoutError DownloadError ScriptsInsideImageError InstallError InstallErrorRequired URLHandlerError STIContainerError )
Common STI errors
Variables ¶
This section is empty.
Functions ¶
func NewAssembleError ¶
NewAssembleError returns a new error which indicates there was a problem running assemble script
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 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 NewInstallError ¶
NewInstallError returns a new error which indicates there was a problem when downloading a script
func NewInstallRequiredError ¶
NewInstallRequiredError returns a new error which indicates there was a problem when downloading a required script
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 NewScriptsInsideImageError ¶
NewScriptsInsideImageError returns a new error which informs of scripts being placed inside the image
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 Output 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