Skip to content

Commit

Permalink
Merge pull request #8621 from thaJeztah/1.7_backport_fix_deprecation_…
Browse files Browse the repository at this point in the history
…comments

[release/1.7 backport] remotes/docker: ResolverOptions: fix deprecation comments
  • Loading branch information
dmcgowan committed Jun 1, 2023
2 parents 73ee512 + eeda70f commit deec965
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions remotes/docker/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,30 @@ type ResolverOptions struct {
Tracker StatusTracker

// Authorizer is used to authorize registry requests
// Deprecated: use Hosts
//
// Deprecated: use Hosts.
Authorizer Authorizer

// Credentials provides username and secret given a host.
// If username is empty but a secret is given, that secret
// is interpreted as a long lived token.
// Deprecated: use Hosts
//
// Deprecated: use Hosts.
Credentials func(string) (string, string, error)

// Host provides the hostname given a namespace.
// Deprecated: use Hosts
//
// Deprecated: use Hosts.
Host func(string) (string, error)

// PlainHTTP specifies to use plain http and not https
// Deprecated: use Hosts
//
// Deprecated: use Hosts.
PlainHTTP bool

// Client is the http client to used when making registry requests
// Deprecated: use Hosts
//
// Deprecated: use Hosts.
Client *http.Client
}

Expand Down

0 comments on commit deec965

Please sign in to comment.