Skip to content

Commit deec965

Browse files
authored
Merge pull request #8621 from thaJeztah/1.7_backport_fix_deprecation_comments
[release/1.7 backport] remotes/docker: ResolverOptions: fix deprecation comments
2 parents 73ee512 + eeda70f commit deec965

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

remotes/docker/resolver.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,25 +98,30 @@ type ResolverOptions struct {
9898
Tracker StatusTracker
9999

100100
// Authorizer is used to authorize registry requests
101-
// Deprecated: use Hosts
101+
//
102+
// Deprecated: use Hosts.
102103
Authorizer Authorizer
103104

104105
// Credentials provides username and secret given a host.
105106
// If username is empty but a secret is given, that secret
106107
// is interpreted as a long lived token.
107-
// Deprecated: use Hosts
108+
//
109+
// Deprecated: use Hosts.
108110
Credentials func(string) (string, string, error)
109111

110112
// Host provides the hostname given a namespace.
111-
// Deprecated: use Hosts
113+
//
114+
// Deprecated: use Hosts.
112115
Host func(string) (string, error)
113116

114117
// PlainHTTP specifies to use plain http and not https
115-
// Deprecated: use Hosts
118+
//
119+
// Deprecated: use Hosts.
116120
PlainHTTP bool
117121

118122
// Client is the http client to used when making registry requests
119-
// Deprecated: use Hosts
123+
//
124+
// Deprecated: use Hosts.
120125
Client *http.Client
121126
}
122127

0 commit comments

Comments
 (0)