Documentation ¶
Overview ¶
Package types contains slimmer versions of k8s types. +groupName=util
Index ¶
- Variables
- type IntOrString
- func (in *IntOrString) DeepEqual(other *IntOrString) bool
- func (*IntOrString) Descriptor() ([]byte, []int)
- func (intstr *IntOrString) IntValue() int
- func (m *IntOrString) Marshal() (dAtA []byte, err error)
- func (intstr IntOrString) MarshalJSON() ([]byte, error)
- func (m *IntOrString) MarshalTo(dAtA []byte) (int, error)
- func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntOrString) ProtoMessage()
- func (m *IntOrString) Reset()
- func (m *IntOrString) Size() (n int)
- func (intstr *IntOrString) String() string
- func (m *IntOrString) Unmarshal(dAtA []byte) error
- func (intstr *IntOrString) UnmarshalJSON(value []byte) error
- func (m *IntOrString) XXX_DiscardUnknown()
- func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntOrString) XXX_Merge(src proto.Message)
- func (m *IntOrString) XXX_Size() int
- func (m *IntOrString) XXX_Unmarshal(b []byte) error
- type Type
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IntOrString ¶
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"` }
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) DeepEqual ¶
func (in *IntOrString) DeepEqual(other *IntOrString) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*IntOrString) Descriptor ¶
func (*IntOrString) Descriptor() ([]byte, []int)
func (*IntOrString) IntValue ¶
func (intstr *IntOrString) IntValue() int
IntValue returns the IntVal if type Int, or if it is a String, will attempt a conversion to int, returning 0 if a parsing error occurs.
func (*IntOrString) Marshal ¶
func (m *IntOrString) Marshal() (dAtA []byte, err error)
func (IntOrString) MarshalJSON ¶
func (intstr IntOrString) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface.
func (*IntOrString) MarshalToSizedBuffer ¶
func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IntOrString) ProtoMessage ¶
func (*IntOrString) ProtoMessage()
func (*IntOrString) Reset ¶
func (m *IntOrString) Reset()
func (*IntOrString) Size ¶
func (m *IntOrString) Size() (n int)
func (*IntOrString) String ¶
func (intstr *IntOrString) String() string
String returns the string value, or the Itoa of the int value.
func (*IntOrString) Unmarshal ¶
func (m *IntOrString) Unmarshal(dAtA []byte) error
func (*IntOrString) UnmarshalJSON ¶
func (intstr *IntOrString) UnmarshalJSON(value []byte) error
UnmarshalJSON implements the json.Unmarshaller interface.
func (*IntOrString) XXX_DiscardUnknown ¶
func (m *IntOrString) XXX_DiscardUnknown()
func (*IntOrString) XXX_Marshal ¶
func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntOrString) XXX_Merge ¶
func (m *IntOrString) XXX_Merge(src proto.Message)
func (*IntOrString) XXX_Size ¶
func (m *IntOrString) XXX_Size() int
func (*IntOrString) XXX_Unmarshal ¶
func (m *IntOrString) XXX_Unmarshal(b []byte) error