Merge pull request #8619 from thaJeztah/fix_deprecation_comments
remotes/docker: ResolverOptions: fix deprecation comments
This commit is contained in:
commit
139146ade8
@ -98,25 +98,30 @@ type ResolverOptions struct {
|
|||||||
Tracker StatusTracker
|
Tracker StatusTracker
|
||||||
|
|
||||||
// Authorizer is used to authorize registry requests
|
// Authorizer is used to authorize registry requests
|
||||||
// Deprecated: use Hosts
|
//
|
||||||
|
// Deprecated: use Hosts.
|
||||||
Authorizer Authorizer
|
Authorizer Authorizer
|
||||||
|
|
||||||
// Credentials provides username and secret given a host.
|
// Credentials provides username and secret given a host.
|
||||||
// If username is empty but a secret is given, that secret
|
// If username is empty but a secret is given, that secret
|
||||||
// is interpreted as a long lived token.
|
// is interpreted as a long lived token.
|
||||||
// Deprecated: use Hosts
|
//
|
||||||
|
// Deprecated: use Hosts.
|
||||||
Credentials func(string) (string, string, error)
|
Credentials func(string) (string, string, error)
|
||||||
|
|
||||||
// Host provides the hostname given a namespace.
|
// Host provides the hostname given a namespace.
|
||||||
// Deprecated: use Hosts
|
//
|
||||||
|
// Deprecated: use Hosts.
|
||||||
Host func(string) (string, error)
|
Host func(string) (string, error)
|
||||||
|
|
||||||
// PlainHTTP specifies to use plain http and not https
|
// PlainHTTP specifies to use plain http and not https
|
||||||
// Deprecated: use Hosts
|
//
|
||||||
|
// Deprecated: use Hosts.
|
||||||
PlainHTTP bool
|
PlainHTTP bool
|
||||||
|
|
||||||
// Client is the http client to used when making registry requests
|
// Client is the http client to used when making registry requests
|
||||||
// Deprecated: use Hosts
|
//
|
||||||
|
// Deprecated: use Hosts.
|
||||||
Client *http.Client
|
Client *http.Client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user