registry

package
v2.0.0-...-d1367cc Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ArtifactTypeNotaryV2 specifies the artifact type for a notary V2 object.
	ArtifactTypeNotaryV2 = "application/vnd.cncf.notary.v2"
)
View Source
const (
	// MediaTypeNotarySignature specifies the media type for the notary signature.
	MediaTypeNotarySignature = "application/vnd.cncf.notary.signature.v2+jwt"
)

Variables

This section is empty.

Functions

func DescriptorFromBytes

func DescriptorFromBytes(data []byte) oci.Descriptor

DescriptorFromBytes computes the basic descriptor from the given bytes

func DescriptorFromFile

func DescriptorFromFile(path string) (oci.Descriptor, error)

DescriptorFromFile computes the basic descriptor from the file

func NewClient

func NewClient(tr http.RoundTripper, name string, plainHTTP bool) notary.SignatureRegistry

NewClient creates a client to the remote registry for accessing the signatures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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