- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for IntVal (0.62 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go
fuzz "github.com/google/gofuzz" ) func TestFromInt(t *testing.T) { i := FromInt(93) if i.Type != Int || i.IntVal != 93 { t.Errorf("Expected IntVal=93, got %+v", i) } } func TestFromInt32(t *testing.T) { i := FromInt32(93) if i.Type != Int || i.IntVal != 93 { t.Errorf("Expected IntVal=93, got %+v", i) } } func TestFromString(t *testing.T) { i := FromString("76")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 14.3K bytes - Viewed (0) -
operator/pkg/apis/istio/v1alpha1/value_types_json.go
if err != nil { return err } this.IntVal = &wrapperspb.Int32Value{Value: s} return nil } func (this *IntOrString) MarshalJSONPB(_ *github_com_golang_protobuf_jsonpb.Marshaler) ([]byte, error) { return this.MarshalJSON() } func (this *IntOrString) MarshalJSON() ([]byte, error) { if this.IntVal != nil { return json.Marshal(this.IntVal.GetValue()) } return json.Marshal(this.StrVal.GetValue()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go
// // +protobuf=true // +protobuf.options.(gogoproto.goproto_stringer)=false // +k8s:openapi-gen=true type IntOrString struct { Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` IntVal int32 `protobuf:"varint,2,opt,name=intVal"` StrVal string `protobuf:"bytes,3,opt,name=strVal"` } // Type represents the stored type of IntOrString. type Type int64 const ( Int Type = iota // The IntOrString holds an int.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 7.8K bytes - Viewed (0) -
src/go/constant/value.go
func (ratVal) implementsValue() {} func (intVal) implementsValue() {} func (floatVal) implementsValue() {} func (complexVal) implementsValue() {} func newInt() *big.Int { return new(big.Int) } func newRat() *big.Rat { return new(big.Rat) } func newFloat() *big.Float { return new(big.Float).SetPrec(prec) } func i64toi(x int64Val) intVal { return intVal{newInt().SetInt64(int64(x))} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
pkg/kube/apimirror/probe.go
) type IntOrString struct { Type Type IntVal int32 StrVal string } // UnmarshalJSON implements the json.Unmarshaller interface. func (intstr *IntOrString) UnmarshalJSON(value []byte) error { if value[0] == '"' { intstr.Type = String return json.Unmarshal(value, &intstr.StrVal) } intstr.Type = Int return json.Unmarshal(value, &intstr.IntVal) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/generated.pb.go
if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field IntVal", wireType) } m.IntVal = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenerated } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.IntVal |= int32(b&0x7F) << shift if b < 0x80 { break } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 9.5K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
HTTPGet: &apimirror.HTTPGetAction{ Path: "/hello/sunnyvale", Port: apimirror.IntOrString{IntVal: int32(appPort)}, }, }, "/app-health/hello-world/livez": &Prober{ HTTPGet: &apimirror.HTTPGetAction{ Port: apimirror.IntOrString{IntVal: int32(appPort)}, }, }, } simpleTCPConfig := KubeAppProbers{ "/app-health/hello-world/readyz": &Prober{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/dns/dns_test.go
Protocol: v1.ProtocolUDP, TargetPort: intstr.IntOrString{ Type: 0, IntVal: 53, }, }, { Name: "dns-tcp", Port: 53, Protocol: v1.ProtocolTCP, TargetPort: intstr.IntOrString{ Type: 0, IntVal: 53, }, }, }, Selector: map[string]string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 41.7K bytes - Viewed (0) -
common-protos/k8s.io/apimachinery/pkg/util/intstr/generated.proto
// TODO: Rename to Int32OrString // // +protobuf=true // +protobuf.options.(gogoproto.goproto_stringer)=false // +k8s:openapi-gen=true message IntOrString { optional int64 type = 1; optional int32 intVal = 2; optional string strVal = 3;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 1.3K bytes - Viewed (0) -
logger/sql_test.go
jsVal = []byte(`{"Name":"test","Val":"test"}`) js = JSON(jsVal) esVal = []byte(`{"Name":"test","Val":"test"}`) es = ExampleStruct{Name: "test", Val: "test"} intVal intType = 1 floatVal floatType = 1.23 ) results := []struct { SQL string NumericRegexp *regexp.Regexp Vars []interface{} Result string }{ {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 8.4K bytes - Viewed (0)