(ctx context.Context, c *http.Client, pluginName string, config Config, timeout time.Duration)
| 70 | } |
| 71 | |
| 72 | func doRegister(ctx context.Context, c *http.Client, pluginName string, config Config, timeout time.Duration) (*runtimeConfig, error) { |
| 73 | client := newRegisterClient(c, pluginName, config, timeout) |
| 74 | resp, err := client.register(ctx) |
| 75 | if err != nil { |
| 76 | return nil, fmt.Errorf("failed to register plugin %s: %w", pluginName, err) |
| 77 | } |
| 78 | config.Logger.Printf("Plugin %s registered successfully", pluginName) |
| 79 | return resp, nil |
| 80 | } |
no test coverage detected