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

Function sourceMatchesURLFilter

internal/server/api_snapshots.go:235–249  ·  view source on GitHub ↗
(src snapshot.SourceInfo, query url.Values)

Source from the content-addressed store, hash-verified

233}
234
235func sourceMatchesURLFilter(src snapshot.SourceInfo, query url.Values) bool {
236 if v := query.Get("host"); v != "" && src.Host != v {
237 return false
238 }
239
240 if v := query.Get("userName"); v != "" && src.UserName != v {
241 return false
242 }
243
244 if v := query.Get("path"); v != "" && src.Path != v {
245 return false
246 }
247
248 return true
249}
250
251func convertSnapshotManifest(m *snapshot.Manifest) *serverapi.Snapshot {
252 e := &serverapi.Snapshot{

Callers 3

handleSourcesListFunction · 0.85
handlePolicyListFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected