Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setz (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    	return ret
    }
    
    // Insert adds items to the set.
    func (s Set[T]) Insert(items ...T) Set[T] {
    	for _, item := range items {
    		s[item] = Empty{}
    	}
    	return s
    }
    
    func Insert[T comparable](set Set[T], items ...T) Set[T] {
    	return set.Insert(items...)
    }
    
    // Delete removes all items from the set.
    func (s Set[T]) Delete(items ...T) Set[T] {
    	for _, item := range items {
    		delete(s, item)
    	}
    	return s
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. pkg/util/smallset/smallset_test.go

    		items2 = append(items2, fmt.Sprint(i))
    	}
    	b.Run("Set", func(b *testing.B) {
    		set1000 := sets.New(items1000...)
    		set100 := sets.New(items100...)
    		set2 := sets.New(items2...)
    		b.Run("New/1", func(b *testing.B) {
    			for range b.N {
    				_ = sets.New("a")
    			}
    		})
    		b.Run("New/1000", func(b *testing.B) {
    			for range b.N {
    				_ = sets.New(items1000...)
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. cmd/metrics-v3-cluster-erasure-set.go

    		labels := []string{poolIDL, poolLV, setIDL, setLV}
    		m.Set(erasureSetReadQuorum, float64(h.ReadQuorum), labels...)
    		m.Set(erasureSetWriteQuorum, float64(h.WriteQuorum), labels...)
    		m.Set(erasureSetOnlineDrivesCount, float64(h.HealthyDrives), labels...)
    		m.Set(erasureSetHealingDrivesCount, float64(h.HealingDrives), labels...)
    		m.Set(erasureSetHealth, b2f(h.Healthy), labels...)
    
    		readHealthy := true
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 14 07:25:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. buildscripts/verify-healing-empty-erasure-set.sh

    #!/bin/bash -e
    #
    
    set -E
    set -o pipefail
    
    if [ ! -x "$PWD/minio" ]; then
    	echo "minio executable binary not found in current directory"
    	exit 1
    fi
    
    WORK_DIR="$PWD/.verify-$RANDOM"
    MINIO_CONFIG_DIR="$WORK_DIR/.minio"
    MINIO=("$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server)
    
    function start_minio_3_node() {
    	export MINIO_ROOT_USER=minio
    	export MINIO_ROOT_PASSWORD=minio123
    	export MINIO_ERASURE_SET_DRIVE_COUNT=6
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:48:50 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top