cli/trust: make NotaryServer a const
This var used to be vendored from github.com/docker/docker/registry, but was removed there, and made a local var in a1cbaa827b5cfc2516b8dde407e4dabe0f9378f6. It is (and should never be) modified, so let's change it into a const. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
fe0a8d2791
commit
eb82fe87a5
@ -40,10 +40,11 @@ var (
|
||||
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"
|
||||
)
|
||||
|
||||
// NotaryServer is the endpoint serving the Notary trust server
|
||||
const NotaryServer = "https://notary.docker.io"
|
||||
|
||||
// GetTrustDirectory returns the base trust directory name
|
||||
func GetTrustDirectory() string {
|
||||
return filepath.Join(config.Dir(), "trust")
|
||||
|
Loading…
x
Reference in New Issue
Block a user