- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 282 for intVar (0.17 sec)
-
cmd/untar.go
return d.r.Read(p) } return 0, errors.New("reader closed") } func (d *disconnectReader) Close() error { d.mu.Lock() d.r = nil d.mu.Unlock() return nil } func untar(ctx context.Context, r io.Reader, putObject func(reader io.Reader, info os.FileInfo, name string) error, o untarOptions) error { bf := bufio.NewReader(r) switch f := detect(bf); f { case formatGzip:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" v1listers "k8s.io/client-go/listers/core/v1" "k8s.io/client-go/tools/cache" ) func TestResolve(t *testing.T) { matchingEndpoints := func(svc *v1.Service) []*v1.Endpoints { ports := []v1.EndpointPort{} for _, p := range svc.Spec.Ports { if p.TargetPort.Type != intstr.Int { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:27 UTC 2023 - 8.6K bytes - Viewed (0) -
pkg/registry/networking/networkpolicy/storage/storage_test.go
object.Spec.Ingress = []networking.NetworkPolicyIngressRule{ { Ports: []networking.NetworkPolicyPort{ { Protocol: &protocolICMP, Port: &intstr.IntOrString{Type: intstr.Int, IntVal: 80}, }, }, }, } return object }, ) } func TestDelete(t *testing.T) { storage, server := newStorage(t) defer server.Terminate(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 18:19:25 UTC 2023 - 5K bytes - Viewed (0) -
pkg/kube/inject/app_probe.go
return nil } var probePort *intstr.IntOrString if p.HTTPGet != nil { probePort = &p.HTTPGet.Port } else { probePort = &p.TCPSocket.Port } if probePort.Type == intstr.String { port, exists := portMap[probePort.StrVal] if !exists { return nil } *probePort = intstr.FromInt32(port) } else if probePort.IntVal == targetPort { // Already is rewritten
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.4K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller_test.go
Protocol: "TCP", TargetPort: intstr.IntOrString{Type: intstr.Int, IntVal: 7442}, }, { Name: "tcp-8443", Port: 8443, Protocol: "TCP", TargetPort: intstr.IntOrString{Type: intstr.Int, IntVal: 7442}, }, { Name: "http-7557", Port: 7557, Protocol: "TCP", TargetPort: intstr.IntOrString{Type: intstr.Int, IntVal: 7442}, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 85K bytes - Viewed (0) -
operator/pkg/object/objects.go
isDefault := func(item any) bool { var ii intstr.IntOrString switch item := item.(type) { case int: ii = intstr.FromInt32(int32(item)) case int64: ii = intstr.FromInt32(int32(item)) case string: ii = intstr.FromString(item) default: ii = intstr.FromInt32(0) } intVal, err := intstr.GetScaledValueFromIntOrPercent(&ii, 100, false) if err != nil || intVal == 0 { return true }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 15.5K bytes - Viewed (1) -
test/stress/maps.go
func (intMapType) NewMap() Map { return make(intMap) } var deadcafe = []byte("\xDE\xAD\xCA\xFE") type intMap map[int][]byte func (m intMap) AddItem() { s0 := len(m) for len(m) == s0 { key := rand.Intn(s0 + 1) m[key] = make([]byte, rand.Intn(64<<10)) } } func (m intMap) DelItem() { for k := range m { delete(m, k) return } } func (m intMap) GetItem() { key := rand.Intn(len(m))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/tooling/builders/r68/AbstractKotlinDslScriptsModelCrossVersionSpec.groovy
class AbstractKotlinDslScriptsModelCrossVersionSpec extends AbstractKotlinScriptModelCrossVersionTest { protected BuildSpec withBuildSrcAndInitScripts() { withBuildSrc() def initJar = withEmptyJar("classes_init.jar") def someInitJar = withEmptyJar("classes_some_init.jar") toolingApi.requireIsolatedUserHome() def gradleUserHomeDir = toolingApi.createExecuter().gradleUserHomeDir
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3K bytes - Viewed (0) -
pkg/registry/networking/ingress/storage/storage_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/intstr" genericapirequest "k8s.io/apiserver/pkg/endpoints/request" "k8s.io/apiserver/pkg/registry/generic" genericregistrytest "k8s.io/apiserver/pkg/registry/generic/testing" "k8s.io/apiserver/pkg/registry/rest"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 09:01:21 UTC 2023 - 8.4K bytes - Viewed (0) -
src/reflect/set_test.go
t any b bool }{ {new(chan int), new(<-chan int), true}, {new(<-chan int), new(chan int), false}, {new(*int), new(IntPtr), true}, {new(IntPtr), new(*int), true}, {new(IntPtr), new(IntPtr1), false}, {new(Ch), new(<-chan any), true}, // test runs implementsTests too } type IntPtr *int type IntPtr1 *int type Ch <-chan any func TestAssignableTo(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 13:56:11 UTC 2022 - 5.7K bytes - Viewed (0)