Documentation ¶
Index ¶
Constants ¶
View Source
const ( SpecVersion string = "0.1.0" Version string = "version" Name string = "name" ArtifactTypes string = "artifactTypes" NestedReferences string = "nestedReferences" )
View Source
const ( ErrUnknown uint = iota // 0 ErrConfigParsingFailure // 1 ErrInvalidVerifierConfig // 2 ErrUnknownCommand // 3 ErrMissingEnvironmentVariables // 4 ErrIOFailure // 5 ErrVersionNotSupported // 6 ErrArgsParsingFailure // 7 ErrPluginCmdFailure // 8 ErrInternalFailure uint = 999 )
Variables ¶
This section is empty.
Functions ¶
func GetVerifierResult ¶
func GetVerifierResult(result []byte) (*verifier.VerifierResult, error)
GetVerifierResult encodes the given JSON data into verify result object
func WriteVerifyResultResult ¶
func WriteVerifyResultResult(result *verifier.VerifierResult, w io.Writer) error
WriteVerifyResultResult writes the given result as JSON data to the writer w
Types ¶
type VerifierResult ¶
type VerifierResult struct { IsSuccess bool `json:"isSuccess"` Results []string `json:"results"` Name string `json:"name"` }
VerifierResult describes the verification result returned from the verifier plugin
Click to show internal directories.
Click to hide internal directories.