(ctx context.Context, auth dockerregistry.AuthConfig)
| 33 | } |
| 34 | |
| 35 | func (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 | |
| 45 | func (f *fakeDockerClient) ImageList(ctx context.Context, options image.ListOptions) ([]image.Summary, error) { |
| 46 | return []image.Summary{ |