MCPcopy Index your code
hub / github.com/kopia/kopia / setup

Method setup

cli/command_server_snapshot.go:13–18  ·  view source on GitHub ↗
(svc appServices, parent commandParent)

Source from the content-addressed store, hash-verified

11}
12
13func (c *commandServerUpload) setup(svc appServices, parent commandParent) {
14 cmd := parent.Command("snapshot", "Trigger upload for one or more existing sources").Alias("upload")
15
16 c.commandServerSourceManagerAction.setup(svc, cmd)
17 cmd.Action(svc.serverAction(&c.sf, c.run))
18}
19
20func (c *commandServerUpload) run(ctx context.Context, cli *apiclient.KopiaAPIClient) error {
21 return c.triggerActionOnMatchingSources(ctx, cli, "control/trigger-snapshot")

Callers

nothing calls this directly

Calls 2

CommandMethod · 0.80
serverActionMethod · 0.65

Tested by

no test coverage detected