MCPcopy Create free account
hub / github.com/kopia/kopia / Status

Method Status

internal/server/source_manager.go:79–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func (s *sourceManager) Status() *serverapi.SourceStatus {
80 s.sourceMutex.RLock()
81 defer s.sourceMutex.RUnlock()
82
83 st := &serverapi.SourceStatus{
84 Source: s.src,
85 Status: s.state,
86 NextSnapshotTime: s.nextSnapshotTime,
87 SchedulingPolicy: s.pol,
88 LastSnapshot: s.lastSnapshot,
89 }
90
91 if st.Status == "UPLOADING" {
92 c := s.progress.Snapshot()
93
94 st.UploadCounters = &c
95
96 st.CurrentTask = s.currentTask
97 }
98
99 return st
100}
101
102func (s *sourceManager) setStatus(stat string) {
103 s.sourceMutex.Lock()

Callers 1

handleSourcesListFunction · 0.80

Calls 1

SnapshotMethod · 0.45

Tested by

no test coverage detected