MCPcopy
hub / github.com/kopia/kopia / Shutdown

Function Shutdown

internal/serverapi/client_wrappers.go:97–100  ·  view source on GitHub ↗

Shutdown invokes the 'control/shutdown' API.

(ctx context.Context, c *apiclient.KopiaAPIClient)

Source from the content-addressed store, hash-verified

95
96// Shutdown invokes the 'control/shutdown' API.
97func 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.
103func RepoStatus(ctx context.Context, c *apiclient.KopiaAPIClient) (*StatusResponse, error) {

Calls 1

PostMethod · 0.80