Documentation ¶
Index ¶
Constants ¶
View Source
const ( SpecVersion string = "0.1.0" Version string = "version" Name string = "name" ArtifactTypes string = "artifactTypes" NestedReferences string = "nestedReferences" Source string = "source" )
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"` Message string `json:"message"` Name string `json:"name"` Extensions interface{} `json:"extensions"` }
VerifierResult describes the verification result returned from the verifier plugin
func NewVerifierResult ¶
func NewVerifierResult(result verifier.VerifierResult) VerifierResult
NewVerifierResult creates a new verifier result object from the given verifier.VerifierResult.
Click to show internal directories.
Click to hide internal directories.