MCPcopy
hub / github.com/minio/minio-go / IsValid

Method IsValid

api-object-lock.go:48–50  ·  view source on GitHub ↗

IsValid - check whether this retention mode is valid or not.

()

Source from the content-addressed store, hash-verified

46
47// IsValid - check whether this retention mode is valid or not.
48func (r RetentionMode) IsValid() bool {
49 return r == Governance || r == Compliance
50}
51
52// ValidityUnit - retention validity unit.
53type ValidityUnit string

Callers 4

UnmarshalXMLMethod · 0.45
validateMethod · 0.45
newObjectLockConfigFunction · 0.45
newObjectRetentionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected