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

Method cancel

internal/server/source_manager.go:261–270  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

259}
260
261func (s *sourceManager) cancel(ctx context.Context) serverapi.SourceActionResponse {
262 userLog(ctx).Debugw("cancel triggered via API", "source", s.src)
263
264 if u := s.currentUploader(); u != nil {
265 userLog(ctx).Info("canceling current upload")
266 u.Cancel()
267 }
268
269 return serverapi.SourceActionResponse{Success: true}
270}
271
272func (s *sourceManager) pause(ctx context.Context) serverapi.SourceActionResponse {
273 userLog(ctx).Debugw("pause triggered via API", "source", s.src)

Callers

nothing calls this directly

Calls 3

currentUploaderMethod · 0.95
InfoMethod · 0.80
CancelMethod · 0.65

Tested by

no test coverage detected