Documentation
¶
Index ¶
- Variables
- type IntOrString
- func (*IntOrString) Descriptor() ([]byte, []int)deprecated
- func (x *IntOrString) GetIntVal() int32
- func (x *IntOrString) GetStrVal() string
- func (x *IntOrString) GetType() int64
- func (*IntOrString) ProtoMessage()
- func (x *IntOrString) ProtoReflect() protoreflect.Message
- func (x *IntOrString) Reset()
- func (x *IntOrString) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_k8s_io_apimachinery_pkg_util_intstr_generated_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IntOrString ¶
type IntOrString struct { Type *int64 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` IntVal *int32 `protobuf:"varint,2,opt,name=intVal" json:"intVal,omitempty"` StrVal *string `protobuf:"bytes,3,opt,name=strVal" json:"strVal,omitempty"` // contains filtered or unexported fields }
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. TODO: Rename to Int32OrString
+protobuf=true +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:openapi-gen=true
func (*IntOrString) Descriptor
deprecated
func (*IntOrString) Descriptor() ([]byte, []int)
Deprecated: Use IntOrString.ProtoReflect.Descriptor instead.
func (*IntOrString) GetIntVal ¶
func (x *IntOrString) GetIntVal() int32
func (*IntOrString) GetStrVal ¶
func (x *IntOrString) GetStrVal() string
func (*IntOrString) GetType ¶
func (x *IntOrString) GetType() int64
func (*IntOrString) ProtoMessage ¶
func (*IntOrString) ProtoMessage()
func (*IntOrString) ProtoReflect ¶ added in v1.2.4
func (x *IntOrString) ProtoReflect() protoreflect.Message
func (*IntOrString) Reset ¶
func (x *IntOrString) Reset()
func (*IntOrString) String ¶
func (x *IntOrString) String() string
Click to show internal directories.
Click to hide internal directories.