- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for HasAll (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/sets/int32.go
} // Has returns true if and only if item is contained in the set. func (s Int32) Has(item int32) bool { return cast(s).Has(item) } // HasAll returns true if and only if all items are contained in the set. func (s Int32) HasAll(items ...int32) bool { return cast(s).HasAll(items...) } // HasAny returns true if any items are contained in the set. func (s Int32) HasAny(items ...int32) bool { return cast(s).HasAny(items...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int.go
} // Has returns true if and only if item is contained in the set. func (s Int) Has(item int) bool { return cast(s).Has(item) } // HasAll returns true if and only if all items are contained in the set. func (s Int) HasAll(items ...int) bool { return cast(s).HasAll(items...) } // HasAny returns true if any items are contained in the set. func (s Int) HasAny(items ...int) bool { return cast(s).HasAny(items...) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/byte.go
} // Has returns true if and only if item is contained in the set. func (s Byte) Has(item byte) bool { return cast(s).Has(item) } // HasAll returns true if and only if all items are contained in the set. func (s Byte) HasAll(items ...byte) bool { return cast(s).HasAll(items...) } // HasAny returns true if any items are contained in the set. func (s Byte) HasAny(items ...byte) bool { return cast(s).HasAny(items...) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/int64.go
} // Has returns true if and only if item is contained in the set. func (s Int64) Has(item int64) bool { return cast(s).Has(item) } // HasAll returns true if and only if all items are contained in the set. func (s Int64) HasAll(items ...int64) bool { return cast(s).HasAll(items...) } // HasAny returns true if any items are contained in the set. func (s Int64) HasAny(items ...int64) bool { return cast(s).HasAny(items...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/string.go
} // Has returns true if and only if item is contained in the set. func (s String) Has(item string) bool { return cast(s).Has(item) } // HasAll returns true if and only if all items are contained in the set. func (s String) HasAll(items ...string) bool { return cast(s).HasAll(items...) } // HasAny returns true if any items are contained in the set. func (s String) HasAny(items ...string) bool { return cast(s).HasAny(items...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set.go
return s } // Has returns true if and only if item is contained in the set. func (s Set[T]) Has(item T) bool { _, contained := s[item] return contained } // HasAll returns true if and only if all items are contained in the set. func (s Set[T]) HasAll(items ...T) bool { for _, item := range items { if !s.Has(item) { return false } } return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 19:51:18 UTC 2024 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set_generic_test.go
} if !s.Has("a") { t.Errorf("Missing contents: %#v", s) } s.Delete("a") if s.Has("a") { t.Errorf("Unexpected contents: %#v", s) } s.Insert("a") if s.HasAll("a", "b", "d") { t.Errorf("Unexpected contents: %#v", s) } if !s.HasAll("a", "b") { t.Errorf("Missing contents: %#v", s) } s2.Insert("a", "b", "d") if s.IsSuperset(s2) { t.Errorf("Unexpected contents: %#v", s) } s2.Delete("d")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 09:03:44 UTC 2023 - 7.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/sets/set_test.go
} if !s.Has("a") { t.Errorf("Missing contents: %#v", s) } s.Delete("a") if s.Has("a") { t.Errorf("Unexpected contents: %#v", s) } s.Insert("a") if s.HasAll("a", "b", "d") { t.Errorf("Unexpected contents: %#v", s) } if !s.HasAll("a", "b") { t.Errorf("Missing contents: %#v", s) } s2.Insert("a", "b", "d") if s.IsSuperset(s2) { t.Errorf("Unexpected contents: %#v", s) } s2.Delete("d")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 20 03:47:18 UTC 2022 - 8K bytes - Viewed (0) -
pkg/apis/core/v1/helper/qos/qos.go
if _, exists := limits[name]; !exists { limits[name] = delta } else { delta.Add(limits[name]) limits[name] = delta } } } if !qosLimitsFound.HasAll(string(v1.ResourceMemory), string(v1.ResourceCPU)) { isGuaranteed = false } } if len(requests) == 0 && len(limits) == 0 { return v1.PodQOSBestEffort } // Check is requests match limits for all resources.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/apis/core/helper/qos/qos.go
if _, exists := limits[name]; !exists { limits[name] = delta } else { delta.Add(limits[name]) limits[name] = delta } } } if !qosLimitsFound.HasAll(string(core.ResourceMemory), string(core.ResourceCPU)) { isGuaranteed = false } } if len(requests) == 0 && len(limits) == 0 { return core.PodQOSBestEffort }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.7K bytes - Viewed (0)