remotes/docker: remove deprecated NewAuthorizer alias
This was deprecated since containerd v1.3.0. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -68,11 +68,15 @@ func TestBasicResolver(t *testing.T) {
|
||||
})
|
||||
|
||||
base, options, close := tlsServer(wrapped)
|
||||
authorizer := NewDockerAuthorizer(
|
||||
WithAuthClient(options.Client),
|
||||
WithAuthCreds(func(host string) (string, string, error) {
|
||||
return "user1", "password1", nil
|
||||
}),
|
||||
)
|
||||
options.Hosts = ConfigureDefaultRegistries(
|
||||
WithClient(options.Client),
|
||||
WithAuthorizer(NewAuthorizer(options.Client, func(string) (string, string, error) {
|
||||
return "user1", "password1", nil
|
||||
})),
|
||||
WithAuthorizer(authorizer),
|
||||
)
|
||||
return base, options, close
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user