NewService returns a new instance of [Service] ready to be installed into an engine.
(options ServiceOptions)
| 22 | // NewService returns a new instance of [Service] ready to be installed into |
| 23 | // an engine. |
| 24 | func NewService(options ServiceOptions) (*Service, error) { |
| 25 | config, err := newServiceConfig(options.InsecureRegistries) |
| 26 | if err != nil { |
| 27 | return nil, err |
| 28 | } |
| 29 | return &Service{config: config}, nil |
| 30 | } |
| 31 | |
| 32 | // Auth contacts the public registry with the provided credentials, |
| 33 | // and returns OK if authentication was successful. |
nothing calls this directly
no test coverage detected
searching dependent graphs…