payload

package
v0.0.0-...-624bbc4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CosignSignatureType = "cosign container image signature"

CosignSignatureType is the value of `critical.type` in a SimpleContainerImage payload.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cosign

type Cosign struct {
	Image       name.Digest
	Annotations map[string]interface{}
}

func (Cosign) MarshalJSON

func (p Cosign) MarshalJSON() ([]byte, error)

func (*Cosign) UnmarshalJSON

func (p *Cosign) UnmarshalJSON(data []byte) error

type Critical

type Critical struct {
	Identity Identity `json:"identity"`
	Image    Image    `json:"image"`
	Type     string   `json:"type"`
}

type Identity

type Identity struct {
	DockerReference string `json:"docker-reference"`
}

type Image

type Image struct {
	DockerManifestDigest string `json:"docker-manifest-digest"`
}

type SimpleContainerImage

type SimpleContainerImage struct {
	Critical Critical               `json:"critical"`
	Optional map[string]interface{} `json:"optional"`
}

Simple describes the structure of a basic container image signature payload, as defined at: https://github.com/containers/image/blob/master/docs/containers-signature.5.md#json-data-format

Jump to

Keyboard shortcuts

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