WithPlainHTTP configures registries to use plaintext http scheme for the provided host match function.
(f func(string) (bool, error))
| 129 | // WithPlainHTTP configures registries to use plaintext http scheme |
| 130 | // for the provided host match function. |
| 131 | func WithPlainHTTP(f func(string) (bool, error)) RegistryOpt { |
| 132 | return func(opts *registryOpts) { |
| 133 | opts.plainHTTP = f |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // WithAuthorizer configures the default authorizer for a registry |
| 138 | func WithAuthorizer(a Authorizer) RegistryOpt { |
no outgoing calls
no test coverage detected
searching dependent graphs…