- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MetadataReplicate (0.08 sec)
-
internal/bucket/replication/rule.go
return errTagsDeleteMarkerReplicationDisallowed } return r.ExistingObjectReplication.Validate() } // MetadataReplicate returns true if object is not a replica or in the case of replicas, // replica modification sync is enabled. func (r Rule) MetadataReplicate(obj ObjectOpts) bool { if !obj.Replica { return true }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jan 24 23:22:20 UTC 2022 - 8.3K bytes - Viewed (0) -
internal/bucket/replication/rule_test.go
cfg, err := ParseConfig(bytes.NewReader([]byte(tc.inputConfig))) if err != nil { t.Fatalf("Got unexpected error: %v", err) } if got := cfg.Rules[0].MetadataReplicate(tc.opts); got != tc.expectedResult { t.Fatalf("Expected result with recursive set to false: `%v`, got: `%v`", tc.expectedResult, got) } }) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 4.6K bytes - Viewed (0) -
internal/bucket/replication/replication.go
return rule.DeleteReplication.Status == Enabled default: return rule.DeleteMarkerReplication.Status == Enabled } } // regular object/metadata replication return rule.MetadataReplicate(obj) } return false } // HasActiveRules - returns whether replication policy has active rules // Optionally a prefix can be supplied.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 8.9K bytes - Viewed (0)