binauth

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Critical PayloadCritical `json:"critical"`
}

Payload represents an Payload message.

func NewPayload

func NewPayload(reference reference.Canonical) Payload

NewPayload creates a new Binauth specific payload for the image at the passed URL.

func (Payload) ToString

func (p Payload) ToString() (string, error)

ToString returns the payload as a JSON encoded string, or returns an error.

type PayloadCritical

type PayloadCritical struct {
	Identity PayloadIdentity `json:"identity"`
	Image    PayloadImage    `json:"image"`
	Type     string          `json:"type"`
}

PayloadCritical represents the critical block in the Payload message.

type PayloadIdentity

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

PayloadIdentity represents the identity block in an Payload message.

type PayloadImage

type PayloadImage struct {
	DockerManifestDigest digest.Digest `json:"docker-manifest-digest"`
}

PayloadImage represents the image block in an Payload message.

Jump to

Keyboard shortcuts

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