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

Method IsValid

api-object-legal-hold.go:66–68  ·  view source on GitHub ↗

IsValid - check whether this legal hold status is valid or not.

()

Source from the content-addressed store, hash-verified

64
65// IsValid - check whether this legal hold status is valid or not.
66func (r LegalHoldStatus) IsValid() bool {
67 return r == LegalHoldEnabled || r == LegalHoldDisabled
68}
69
70func newObjectLegalHold(status *LegalHoldStatus) (*objectLegalHold, error) {
71 if status == nil {

Callers 1

newObjectLegalHoldFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected