Skip to content

Commit d8fa2f8

Browse files
committed
registry: deprecate APIEndpoint.Official field
This field was introduced in 19515a7 when the registry code was replaced for code vendored from docker/distribution. It was used for v1 registries to update the "TrustStore" for signed manifests; https://github.com/moby/moby/blob/19515a7ad859b28c474d81e756ac245afcd968e3/graph/pull.go#L89-L93 Before that, it used the IndexInfo.Official field; https://github.com/moby/moby/blob/276c640be4b4335e3b8d684cb3562a56d3337b39/graph/pull.go#L94-L97 And related to "v2" registries; 88fdcfe Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent cea56c1 commit d8fa2f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

registry/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ type APIEndpoint struct {
115115
Mirror bool
116116
URL *url.URL
117117
AllowNondistributableArtifacts bool // Deprecated: non-distributable artifacts are deprecated and enabled by default. This field will be removed in the next release.
118-
Official bool
118+
Official bool // Deprecated: this field was only used internally, and will be removed in the next release.
119119
TrimHostname bool // Deprecated: hostname is now trimmed unconditionally for remote names. This field will be removed in the next release.
120120
TLSConfig *tls.Config
121121
}

0 commit comments

Comments
 (0)