MCPcopy
hub / github.com/kopia/kopia / setDurationParameter

Function setDurationParameter

cli/command_repository_set_parameters.go:92–101  ·  view source on GitHub ↗
(ctx context.Context, v time.Duration, desc string, dst *time.Duration, anyChange *bool)

Source from the content-addressed store, hash-verified

90}
91
92func setDurationParameter(ctx context.Context, v time.Duration, desc string, dst *time.Duration, anyChange *bool) {
93 if v == 0 {
94 return
95 }
96
97 *dst = v
98 *anyChange = true
99
100 log(ctx).Infof(" - setting %v to %v.\n", desc, v)
101}
102
103func setRetentionModeParameter(ctx context.Context, v blob.RetentionMode, desc string, dst *blob.RetentionMode, anyChange *bool) {
104 if !v.IsValid() {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected