Shutdown invokes the 'control/shutdown' API.
(ctx context.Context, c *apiclient.KopiaAPIClient)
| 95 | |
| 96 | // Shutdown invokes the 'control/shutdown' API. |
| 97 | func Shutdown(ctx context.Context, c *apiclient.KopiaAPIClient) error { |
| 98 | //nolint:wrapcheck |
| 99 | return c.Post(ctx, "control/shutdown", &Empty{}, &Empty{}) |
| 100 | } |
| 101 | |
| 102 | // RepoStatus invokes the 'repo/status' API. |
| 103 | func RepoStatus(ctx context.Context, c *apiclient.KopiaAPIClient) (*StatusResponse, error) { |