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:
Sebastiaan van Stijn 2025-03-02 12:38:27 +01:00
parent fe0a8d2791
commit eb82fe87a5
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C

View File

@ -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")