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

Method run

internal/server/source_manager.go:161–176  ·  view source on GitHub ↗
(ctx context.Context, isLocal bool)

Source from the content-addressed store, hash-verified

159}
160
161func (s *sourceManager) run(ctx context.Context, isLocal bool) {
162 // make sure we run in a detached context, which ignores outside cancellation and deadline.
163 ctx = context.WithoutCancel(ctx)
164
165 s.setStatus("INITIALIZING")
166 defer s.setStatus("STOPPED")
167
168 s.wg.Add(1)
169 defer s.wg.Done()
170
171 if isLocal {
172 s.runLocal(ctx)
173 } else {
174 s.runReadOnly()
175 }
176}
177
178func (s *sourceManager) runLocal(ctx context.Context) {
179 if s.isPaused() {

Callers 1

startMethod · 0.95

Calls 5

setStatusMethod · 0.95
runLocalMethod · 0.95
runReadOnlyMethod · 0.95
DoneMethod · 0.65
AddMethod · 0.45

Tested by

no test coverage detected