MCPcopy Index your code
hub / github.com/devspace-sh/devspace / RegistryLogin

Method RegistryLogin

pkg/devspace/docker/auth_test.go:35–43  ·  view source on GitHub ↗
(ctx context.Context, auth dockerregistry.AuthConfig)

Source from the content-addressed store, hash-verified

33}
34
35func (f *fakeDockerClient) RegistryLogin(ctx context.Context, auth dockerregistry.AuthConfig) (dockerregistry.AuthenticateOKBody, error) {
36 identityToken := ""
37 if auth.Password == "useToken" {
38 identityToken = "someToken"
39 }
40 return dockerregistry.AuthenticateOKBody{
41 IdentityToken: identityToken,
42 }, nil
43}
44
45func (f *fakeDockerClient) ImageList(ctx context.Context, options image.ListOptions) ([]image.Summary, error) {
46 return []image.Summary{

Callers 1

LoginMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected