Skip to content

Commit 52997ea

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]>
1 parent 83371c4 commit 52997ea

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)