MCPcopy
hub / github.com/kopia/kopia / DisconnectFromRepository

Function DisconnectFromRepository

internal/serverapi/client_wrappers.go:91–94  ·  view source on GitHub ↗

DisconnectFromRepository invokes the 'repo/disconnect' API.

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

Source from the content-addressed store, hash-verified

89
90// DisconnectFromRepository invokes the 'repo/disconnect' API.
91func DisconnectFromRepository(ctx context.Context, c *apiclient.KopiaAPIClient) error {
92 //nolint:wrapcheck
93 return c.Post(ctx, "repo/disconnect", &Empty{}, &Empty{})
94}
95
96// Shutdown invokes the 'control/shutdown' API.
97func Shutdown(ctx context.Context, c *apiclient.KopiaAPIClient) error {

Callers 1

Calls 1

PostMethod · 0.80

Tested by 1