types

package
v1.0.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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"`
	Message    string      `json:"message"`
	Name       string      `json:"name"`
	Extensions interface{} `json:"extensions"`
}

VerifierResult describes the verification result returned from the verifier plugin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL