Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for parseReplicateDecision (0.45 sec)

  1. cmd/bucket-replication-utils_test.go

    			},
    		},
    	},
    }
    
    func TestParseReplicateDecision(t *testing.T) {
    	for i, test := range parseReplicationDecisionTest {
    		dsc, err := parseReplicateDecision(context.Background(), "bucket", test.expDsc.String())
    		if err != nil {
    			if test.expErr != err {
    				t.Errorf("Test%d (%s): Expected parse error got %t , want %t", i+1, test.name, err, test.expErr)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 08 20:27:40 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. cmd/bucket-replication-utils.go

    var errInvalidReplicateDecisionFormat = fmt.Errorf("ReplicateDecision has invalid format")
    
    // parse k-v pairs of target ARN to stringified ReplicateTargetDecision delimited by ',' into a
    // ReplicateDecision struct
    func parseReplicateDecision(ctx context.Context, bucket, s string) (r ReplicateDecision, err error) {
    	r = ReplicateDecision{
    		targetsMap: make(map[string]replicateTargetDecision),
    	}
    	if len(s) == 0 {
    		return
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    				DeleteMarker: dobj.DeleteMarker,
    			},
    			UserAgent: "Internal: [Replication]",
    			Host:      globalLocalNodeName,
    			EventName: event.ObjectReplicationNotTracked,
    		})
    		return
    	}
    	dsc, err := parseReplicateDecision(ctx, bucket, dobj.ReplicationState.ReplicateDecisionStr)
    	if err != nil {
    		replLogOnceIf(ctx, fmt.Errorf("unable to parse replication decision parameters for bucket: %s, err: %s, decision: %s",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
Back to top