(repository string, regOpts *RegistryOptions, opts ...NewBackendOpt)
| 60 | } |
| 61 | |
| 62 | func NewBackend(repository string, regOpts *RegistryOptions, opts ...NewBackendOpt) (*Backend, error) { |
| 63 | b := &Backend{ |
| 64 | repo: repository, |
| 65 | prefix: backend.DefaultPrefix, |
| 66 | keychain: regOpts.Keychain, |
| 67 | } |
| 68 | |
| 69 | for _, opt := range opts { |
| 70 | opt(b) |
| 71 | } |
| 72 | |
| 73 | return b, nil |
| 74 | } |
| 75 | |
| 76 | // Exists check that the artifact is already present in the repository and it points to the |
| 77 | // same image digest, meaning it has not been re-pushed/replaced |
no outgoing calls