Skip to content

Commit 56ff208

Browse files
committed
remotes/docker: ResolverOptions: fix deprecation comments
Go deprecation comments must be formatted to have an empty comment line before them. Fix the formatting to make sure linters and editors detect that these are deprecated. Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 52997ea) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f664a3a commit 56ff208

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
@@ -95,25 +95,30 @@ type ResolverOptions struct {
9595
Tracker StatusTracker
9696

9797
// Authorizer is used to authorize registry requests
98-
// Deprecated: use Hosts
98+
//
99+
// Deprecated: use Hosts.
99100
Authorizer Authorizer
100101

101102
// Credentials provides username and secret given a host.
102103
// If username is empty but a secret is given, that secret
103104
// is interpreted as a long lived token.
104-
// Deprecated: use Hosts
105+
//
106+
// Deprecated: use Hosts.
105107
Credentials func(string) (string, string, error)
106108

107109
// Host provides the hostname given a namespace.
108-
// Deprecated: use Hosts
110+
//
111+
// Deprecated: use Hosts.
109112
Host func(string) (string, error)
110113

111114
// PlainHTTP specifies to use plain http and not https
112-
// Deprecated: use Hosts
115+
//
116+
// Deprecated: use Hosts.
113117
PlainHTTP bool
114118

115119
// Client is the http client to used when making registry requests
116-
// Deprecated: use Hosts
120+
//
121+
// Deprecated: use Hosts.
117122
Client *http.Client
118123
}
119124

0 commit comments

Comments
 (0)