Documentation
¶
Index ¶
- Variables
- func GetNotaryRepository(in io.Reader, out io.Writer, userAgent string, ...) (client.Repository, error)
- func GetPassphraseRetriever(in io.Reader, out io.Writer) notary.PassRetriever
- func GetSignableRoles(repo client.Repository, target *client.Target) ([]data.RoleName, error)
- func GetTrustDirectory() string
- func NotaryError(repoName string, err error) error
- func Server(index *registrytypes.IndexInfo) (string, error)
- type ImageRefAndAuth
- func (imgRefAuth *ImageRefAndAuth) AuthConfig() *registrytypes.AuthConfig
- func (imgRefAuth *ImageRefAndAuth) Digest() digest.Digest
- func (imgRefAuth *ImageRefAndAuth) Name() string
- func (imgRefAuth *ImageRefAndAuth) Reference() reference.Named
- func (imgRefAuth *ImageRefAndAuth) RepoInfo() *registry.RepositoryInfo
- func (imgRefAuth *ImageRefAndAuth) Tag() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReleasesRole is the role named "releases" ReleasesRole = data.RoleName(path.Join(data.CanonicalTargetsRole.String(), "releases")) // ActionsPullOnly defines the actions for read-only interactions with a Notary Repository ActionsPullOnly = []string{"pull"} // ActionsPushAndPull defines the actions for read-write interactions with a Notary Repository ActionsPushAndPull = []string{"pull", "push"} // NotaryServer is the endpoint serving the Notary trust server NotaryServer = "https://notary.docker.io" )
Functions ¶
func GetNotaryRepository ¶
func GetNotaryRepository(in io.Reader, out io.Writer, userAgent string, repoInfo *registry.RepositoryInfo, authConfig *registrytypes.AuthConfig, actions ...string) (client.