intstr

package
v0.0.0-...-d63e69c Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_github_com_hyperter96_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) MarshalToSizedBufferVT

func (m *IntOrString) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*IntOrString) MarshalToVT

func (m *IntOrString) MarshalToVT(dAtA []byte) (int, error)

func (*IntOrString) MarshalVT

func (m *IntOrString) MarshalVT() (dAtA []byte, err error)

func (*IntOrString) ProtoMessage

func (*IntOrString) ProtoMessage()

func (*IntOrString) ProtoReflect

func (x *IntOrString) ProtoReflect() protoreflect.Message

func (*IntOrString) Reset

func (x *IntOrString) Reset()

func (*IntOrString) SizeVT

func (m *IntOrString) SizeVT() (n int)

func (*IntOrString) String

func (x *IntOrString) String() string

func (*IntOrString) UnmarshalVT

func (m *IntOrString) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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