Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for targetMap (0.13 sec)

  1. src/test/java/org/codelibs/fess/it/admin/PluginTests.java

            final Map<String, Object> targetMap =
                    available.stream().filter(map -> !map.get("name").toString().startsWith("fess-")).toList().get(0);
            final Artifact target = getArtifactFromMap(targetMap);
    
            // Install
            {
                checkPutMethod(targetMap, getInstallEndpointSuffix()).then().body("response.status", equalTo(0));
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 01 02:20:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. internal/bucket/replication/replication.go

    	if len(c.Rules) == 0 {
    		return errReplicationNoRule
    	}
    
    	// Validate all the rules in the replication config
    	targetMap := make(map[string]struct{})
    	priorityMap := make(map[string]struct{})
    	var legacyArn bool
    	for _, r := range c.Rules {
    		if _, ok := targetMap[r.Destination.Bucket]; !ok {
    			targetMap[r.Destination.Bucket] = struct{}{}
    		}
    		if err := r.Validate(bucket, sameTarget); err != nil {
    			return err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. internal/config/lambda/event/targetlist.go

    	defer list.RUnlock()
    
    	keys := make([]ARN, 0, len(list.targets))
    	for k := range list.targets {
    		keys = append(keys, k.ToARN(region))
    	}
    
    	return keys
    }
    
    // TargetMap - returns available targets.
    func (list *TargetList) TargetMap() map[TargetID]Target {
    	list.RLock()
    	defer list.RUnlock()
    
    	ntargets := make(map[TargetID]Target, len(list.targets))
    	for k, v := range list.targets {
    		ntargets[k] = v
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. cmd/event-notification.go

    // GetARNList - returns available ARNs.
    func (evnot *EventNotifier) GetARNList() []string {
    	arns := []string{}
    	if evnot == nil {
    		return arns
    	}
    	region := globalSite.Region()
    	for targetID := range evnot.targetList.TargetMap() {
    		// httpclient target is part of ListenNotification
    		// which doesn't need to be listed as part of the ARN list
    		// This list is only meant for external targets, filter
    		// this out pro-actively.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. internal/event/targetlist.go

    }
    
    func (list *TargetList) get(id TargetID) (Target, bool) {
    	list.RLock()
    	defer list.RUnlock()
    
    	target, ok := list.targets[id]
    	return target, ok
    }
    
    // TargetMap - returns available targets.
    func (list *TargetList) TargetMap() map[TargetID]Target {
    	list.RLock()
    	defer list.RUnlock()
    
    	ntargets := make(map[TargetID]Target, len(list.targets))
    	for k, v := range list.targets {
    		ntargets[k] = v
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. cmd/bucket-replication-utils_test.go

    			}
    			continue
    		}
    		if len(dsc.targetsMap) != len(test.expDsc.targetsMap) {
    			t.Errorf("Test%d (%s): Invalid number of entries in targetsMap  got %d , want %d", i+1, test.name, len(dsc.targetsMap), len(test.expDsc.targetsMap))
    		}
    		for arn, tdsc := range dsc.targetsMap {
    			expDsc, ok := test.expDsc.targetsMap[arn]
    			if !ok || expDsc != tdsc {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 08 20:27:40 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. cmd/bucket-replication-utils.go

    	if d.targetsMap == nil {
    		d.targetsMap = make(map[string]replicateTargetDecision)
    	}
    	d.targetsMap[t.Arn] = t
    }
    
    // PendingStatus returns a stringified representation of internal replication status with all targets marked as `PENDING`
    func (d ReplicateDecision) PendingStatus() string {
    	b := new(bytes.Buffer)
    	for _, k := range d.targetsMap {
    		if k.Replicate {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. cmd/bucket-replication_test.go

    			},
    			rcfg: replicationConfig{remotes: &madmin.BucketTargets{Targets: []madmin.BucketTarget{{
    				Arn: "arn1",
    			}}}},
    			dsc:          ReplicateDecision{targetsMap: map[string]replicateTargetDecision{"arn1": newReplicateTargetDecision("arn1", true, false)}},
    			expectedSync: true,
    		},
    
    		{ // 2. replication status Failed
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 16 09:28:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  9. cmd/bucket-targets.go

    	sys.RLock()
    	defer sys.RUnlock()
    
    	tgts, ok := sys.targetsMap[bucket]
    	if ok {
    		return &madmin.BucketTargets{Targets: tgts}, nil
    	}
    	return nil, BucketRemoteTargetNotFound{Bucket: bucket}
    }
    
    // Delete clears targets present for a bucket
    func (sys *BucketTargetSys) Delete(bucket string) {
    	sys.Lock()
    	defer sys.Unlock()
    	tgts, ok := sys.targetsMap[bucket]
    	if !ok {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. cmd/bucket-replication-utils_gen.go

    			var zb0002 uint32
    			zb0002, err = dc.ReadMapHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "TargetsMap")
    				return
    			}
    			if z.TargetsMap == nil {
    				z.TargetsMap = make(map[string]TargetReplicationResyncStatus, zb0002)
    			} else if len(z.TargetsMap) > 0 {
    				for key := range z.TargetsMap {
    					delete(z.TargetsMap, key)
    				}
    			}
    			for zb0002 > 0 {
    				zb0002--
    				var za0001 string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
Back to top