- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 265 for ptrval (0.12 sec)
-
pkg/probe/util_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 06:14:41 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/probe/util.go
var err error switch param.Type { case intstr.Int: port = param.IntValue() case intstr.String: if port, err = findPortByName(container, param.StrVal); err != nil { // Last ditch effort - maybe it was an int stored as string? if port, err = strconv.Atoi(param.StrVal); err != nil { return port, err } } default: return port, fmt.Errorf("intOrString had no kind: %+v", param) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 19 16:51:52 UTC 2022 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/op_or_arg_name_mapper.h
// TODO(jpienaar): Rename the files. using OpOrVal = llvm::PointerUnion<mlir::Operation*, mlir::Value>; // Mapper from operation or value to name. class OpOrArgNameMapper { public: // Returns unique name for the given prefix. llvm::StringRef GetUniqueName(llvm::StringRef prefix, int hash_value = 0); // Returns unique name for the operation or value. llvm::StringRef GetUniqueName(OpOrVal op_or_val, int hash_value = 0);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 22:54:55 UTC 2023 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go
} func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l i -= len(m.StrVal) copy(dAtA[i:], m.StrVal) i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal))) i-- dAtA[i] = 0x1a i = encodeVarintGenerated(dAtA, i, uint64(m.IntVal)) i-- dAtA[i] = 0x10 i = encodeVarintGenerated(dAtA, i, uint64(m.Type)) i--
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 9.5K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d_an.py
client.get("/items/portal-gun") assert ( exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick" ) def test_internal_server_error(): from docs_src.dependencies.tutorial008d_an import app client = TestClient(app, raise_server_exceptions=False) response = client.get("/items/portal-gun") assert response.status_code == 500, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.2K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util.go
func makePDNameInternal(host volume.VolumeHost, portal string, iqn string, lun string, iface string) string { return filepath.Join(host.GetPluginDir(iscsiPluginName), "iface-"+iface, portal+"-"+iqn+"-lun-"+lun) } // make a directory like /var/lib/kubelet/plugins/kubernetes.io/iscsi/volumeDevices/iface_name/portal-some_iqn-lun-lun_id
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 22 12:53:01 UTC 2022 - 34.1K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial008d.py
client.get("/items/portal-gun") assert ( exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick" ) def test_internal_server_error(): from docs_src.dependencies.tutorial008d import app client = TestClient(app, raise_server_exceptions=False) response = client.get("/items/portal-gun") assert response.status_code == 500, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/util.go
// match is found, fail. func FindPort(pod *v1.Pod, svcPort *v1.ServicePort) (int, error) { portName := svcPort.TargetPort switch portName.Type { case intstr.String: name := portName.StrVal for _, container := range pod.Spec.Containers { for _, port := range container.Ports { if port.Name == name && port.Protocol == svcPort.Protocol { return int(port.ContainerPort), nil } } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jul 28 02:01:47 UTC 2023 - 6.1K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/value_types_json.go
func (this *IntOrString) UnmarshalJSON(value []byte) error { if value[0] == '"' { this.Type = int64(intstr.String) var s string err := json.Unmarshal(value, &s) if err != nil { return err } this.StrVal = &wrapperspb.StringValue{Value: s} return nil } this.Type = int64(intstr.Int) var s int32 err := json.Unmarshal(value, &s) if err != nil { return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/apis/networking/v1beta1/conversion.go
return err } if len(in.ServiceName) > 0 || in.ServicePort.IntVal != 0 || in.ServicePort.StrVal != "" || in.ServicePort.Type == intstr.String { out.Service = &networking.IngressServiceBackend{} out.Service.Name = in.ServiceName out.Service.Port.Name = in.ServicePort.StrVal out.Service.Port.Number = in.ServicePort.IntVal } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 07:16:15 UTC 2023 - 2.8K bytes - Viewed (0)