intstr

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL