Function
newRegisterClient
(c *http.Client, pluginName string, config Config, timeout time.Duration)
Source from the content-addressed store, hash-verified
| 35 | } |
| 36 | |
| 37 | func newRegisterClient(c *http.Client, pluginName string, config Config, timeout time.Duration) *registerClient { |
| 38 | return ®isterClient{ |
| 39 | engineClient: pluginsv1connect.NewRegisterServiceClient(c, "http://unix"), |
| 40 | pluginName: pluginName, |
| 41 | config: config, |
| 42 | timeout: timeout, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | func (c *registerClient) register(ctx context.Context) (*runtimeConfig, error) { |
| 47 | c.config.Logger.Printf("Registering plugin %s...", c.pluginName) |
Tested by
no test coverage detected