Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatJSON string = "json" FormatYAML string = "yaml" FormatCSV string = "csv" )
Variables ¶
View Source
var AvailableFormats = []string{ FormatJSON, FormatYAML, FormatCSV, }
Functions ¶
Types ¶
type ImageResult ¶
type ImageResult struct { Digest digest.Digest `json:"digest" yaml:"digest"` MediaType string `json:"mediaType" yaml:"mediaType"` Platform Platform `json:"platform" yaml:"platform"` TLogVerified bool `json:"tlogVerified" yaml:"tlogVerified"` CertificateSubject string `json:"certificateSubject,omitempty" yaml:"certificateSubject,omitempty"` CertificateIssuer string `json:"certificateIssuer,omitempty" yaml:"certificateIssuer,omitempty"` GithubWorkflowTrigger string `json:"githubWorkflowTrigger,omitempty" yaml:"githubWorkflowTrigger,omitempty"` GithubWorkflowSha string `json:"githubWorkflowSha,omitempty" yaml:"githubWorkflowSha,omitempty"` GithubWorkflowName string `json:"githubWorkflowName,omitempty" yaml:"githubWorkflowName,omitempty"` GithubWorkflowRepository string `json:"githubWorkflowRepository,omitempty" yaml:"githubWorkflowRepository,omitempty"` GithubWorkflowRef string `json:"githubWorkflowRef,omitempty" yaml:"githubWorkflowRef,omitempty"` Payload string `json:"payload" yaml:"payload"` }
type OutputFormat ¶
type OutputFormat string
type Platform ¶
type Platform struct { Arch string `json:"arch,omitempty" yaml:"arch,omitempty"` OS string `json:"os,omitempty" yaml:"os,omitempty"` OSVersion string `json:"osVersion,omitempty" yaml:"osVersion,omitempty"` OSFeatures []string `json:"osFeatures,omitempty" yaml:"osFeatures,omitempty"` Variant string `json:"variant,omitempty" yaml:"variant,omitempty"` }
type Report ¶
type Result ¶
type Result struct { Reference string `json:"reference,omitempty" yaml:"reference,omitempty"` Images []*ImageResult `json:"images,omitempty" yaml:"images,omitempty"` }
func NewResult ¶
func NewResult(ref string, images []*ImageResult) *Result
func (*Result) Append ¶
func (r *Result) Append(image *ImageResult)
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
func NewSigner ¶
func NewSigner(o *SignerOption, image string) *Signer
func (*Signer) GetRegistryClientOpts ¶
func (*Signer) NameOptions ¶
type SignerOption ¶
type SignerVerifier ¶
type SignerVerifier struct { Cert []byte Chain []byte signature.SignerVerifier // contains filtered or unexported fields }
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func NewValidator(o *ValidatorOption, image string) *Validator
func (*Validator) Result ¶
func (v *Validator) Result() *ImageResult
type ValidatorOption ¶
type ValidatorOption struct { Digest digest.Digest Platform Platform MediaType string verify.VerifyCommand }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.