MCPcopy
hub / github.com/kopia/kopia / appendOSSnapshotPolicyRows

Function appendOSSnapshotPolicyRows

cli/command_policy_show.go:482–493  ·  view source on GitHub ↗
(rows []policyTableRow, p *policy.Policy, def *policy.Definition)

Source from the content-addressed store, hash-verified

480}
481
482func appendOSSnapshotPolicyRows(rows []policyTableRow, p *policy.Policy, def *policy.Definition) []policyTableRow {
483 rows = append(rows,
484 policyTableRow{"OS-level snapshot support:", "", ""},
485 policyTableRow{
486 " Volume Shadow Copy:",
487 p.OSSnapshotPolicy.VolumeShadowCopy.Enable.OrDefault(policy.OSSnapshotNever).String(),
488 definitionPointToString(p.Target(), def.OSSnapshotPolicy.VolumeShadowCopy.Enable),
489 },
490 )
491
492 return rows
493}
494
495func valueOrNotSet(p *policy.OptionalInt) string {
496 if p == nil {

Callers 1

printPolicyFunction · 0.85

Calls 4

definitionPointToStringFunction · 0.85
TargetMethod · 0.80
StringMethod · 0.45
OrDefaultMethod · 0.45

Tested by

no test coverage detected