notary

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigestFromTarget

func DigestFromTarget(t model2.Target) (string, error)

DigestFromTarget get a target and return the value of digest, in accordance to Docker-Content-Digest

func GetInternalTargets

func GetInternalTargets(ctx context.Context, notaryEndpoint string, username string, repo string) ([]model2.Target, error)

GetInternalTargets wraps GetTargets to read config values for getting full-qualified repo from internal notary instance.

func GetTargets

func GetTargets(ctx context.Context, notaryEndpoint string, username string, fqRepo string) ([]model2.Target, error)

GetTargets is a help function called by API to fetch signature information of a given repository. Per docker's convention the repository should contain the information of endpoint, i.e. it should look like "192.168.0.1/library/ubuntu", instead of "library/ubuntu" (fqRepo for fully-qualified repo)

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

Transport holds information about base transport and modifiers

func NewTransport

func NewTransport(transport http.RoundTripper, modifiers ...modifier.Modifier) *Transport

NewTransport ...

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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