Documentation
¶
Overview ¶
Package specerror implements runtime-spec-specific tooling for tracking RFC 2119 violations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewError ¶
NewError creates an Error referencing a spec violation. The error can be cast to an *Error for extracting structured information about the level of the violation and a reference to the violated spec condition.
A version string (for the version of the spec that was violated) must be set to get a working URL.
Types ¶
type Code ¶
type Code int
Code represents the spec violation, enumerating both configuration violations and runtime violations.
const ( // NonError represents that an input is not an error NonError Code = iota // NonRFCError represents that an error is not a rfc2119 error NonRFCError // ConfigFileExistence represents the error code of 'config.json' existence test ConfigFileExistence // ArtifactsInSingleDir represents the error code of artifacts place test ArtifactsInSingleDir // SpecVersion represents the error code of specfication version test SpecVersion // RootOnNonHyperV represents the error code of root setting test on non hyper-v containers RootOnNonHyperV // RootOnHyperV represents the error code of root setting test on hyper-v containers RootOnHyperV // PathFormatOnWindows represents the error code of the path format test on Window PathFormatOnWindows // PathName represents the error code of the path name test PathName // PathExistence represents the error code of the path existence test PathExistence // ReadonlyFilesystem represents the error code of readonly test ReadonlyFilesystem // ReadonlyOnWindows represents the error code of readonly setting test on Windows ReadonlyOnWindows // DefaultFilesystems represents the error code of default filesystems test DefaultFilesystems // CreateWithID represents the error code of 'create' lifecyle test with 'id' provided CreateWithID // CreateWithUniqueID represents the error code of 'create' lifecyle test with unique 'id' provided CreateWithUniqueID // CreateNewContainer represents the error code 'create' lifecyle test that creates new container CreateNewContainer )
Source Files
¶
- error.go
Click to show internal directories.
Click to hide internal directories.