notary

package
Version: v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigestFromTarget

func DigestFromTarget(t Target) (string, error)

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

Types

type Target

type Target struct {
	Tag    string      `json:"tag"`
	Hashes data.Hashes `json:"hashes"`
}

Target represents the json object of a target of a docker image in notary. The struct will be used when repository is know so it won'g contain the name of a repository.

func GetInternalTargets

func GetInternalTargets(notaryEndpoint string, username string, repo string) ([]Target, error)

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

func GetTargets

func GetTargets(notaryEndpoint string, username string, fqRepo string) ([]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)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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