kube

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional kube.GroupVersion group_version = 50000;
	E_GroupVersion = &file_components_kube_kube_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// optional kube.Kind kind = 50001;
	E_Kind = &file_components_kube_kube_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var File_components_kube_kube_proto protoreflect.FileDescriptor

Functions

func InitObject

func InitObject(obj Object, id types.NamespacedName)

func SetMetadata

func SetMetadata(obj Object, metadata *ObjectMeta)

Types

type GroupVersion

type GroupVersion struct {
	Group   string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupVersion) Descriptor deprecated

func (*GroupVersion) Descriptor() ([]byte, []int)

Deprecated: Use GroupVersion.ProtoReflect.Descriptor instead.

func (*GroupVersion) GetGroup

func (x *GroupVersion) GetGroup() string

func (*GroupVersion) GetVersion

func (x *GroupVersion) GetVersion() string

func (*GroupVersion) ProtoMessage

func (*GroupVersion) ProtoMessage()

func (*GroupVersion) ProtoReflect

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

func (*GroupVersion) Reset

func (x *GroupVersion) Reset()

func (*GroupVersion) String

func (x *GroupVersion) String() string

type Kind

type Kind struct {
	Kind     string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*Kind) Descriptor deprecated

func (*Kind) Descriptor() ([]byte, []int)

Deprecated: Use Kind.ProtoReflect.Descriptor instead.

func (*Kind) GetKind

func (x *Kind) GetKind() string

func (*Kind) GetResource

func (x *Kind) GetResource() string

func (*Kind) ProtoMessage

func (*Kind) ProtoMessage()

func (*Kind) ProtoReflect

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

func (*Kind) Reset

func (x *Kind) Reset()

func (*Kind) String

func (x *Kind) String() string

type KindInfo

type KindInfo struct {
	Group    string
	Version  string
	Kind     string
	Resource string
}

func GetKindInfo

func GetKindInfo(msg proto.Message) *KindInfo

func (*KindInfo) APIVersion

func (k *KindInfo) APIVersion() string

func (*KindInfo) GroupResource

func (k *KindInfo) GroupResource() schema.GroupResource

func (*KindInfo) GroupVersionResource

func (k *KindInfo) GroupVersionResource() schema.GroupVersionResource

type Object

type Object interface {
	proto.Message
	GetMetadata() *ObjectMeta
}

type ObjectMeta

type ObjectMeta struct {

	// TODO: Sync with actual proto numbers
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace       string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	ResourceVersion string `protobuf:"bytes,3,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"`
	Uid             string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"` // google.protobuf.Timestamp creation_timestamp = ;
	// contains filtered or unexported fields
}

func (*ObjectMeta) Descriptor deprecated

func (*ObjectMeta) Descriptor() ([]byte, []int)

Deprecated: Use ObjectMeta.ProtoReflect.Descriptor instead.

func (*ObjectMeta) GetName

func (x *ObjectMeta) GetName() string

func (*ObjectMeta) GetNamespace

func (x *ObjectMeta) GetNamespace() string

func (*ObjectMeta) GetResourceVersion

func (x *ObjectMeta) GetResourceVersion() string

func (*ObjectMeta) GetUid

func (x *ObjectMeta) GetUid() string

func (*ObjectMeta) ProtoMessage

func (*ObjectMeta) ProtoMessage()

func (*ObjectMeta) ProtoReflect

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

func (*ObjectMeta) Reset

func (x *ObjectMeta) Reset()

func (*ObjectMeta) String

func (x *ObjectMeta) String() string

type TypeMeta

type TypeMeta struct {
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*TypeMeta) Descriptor deprecated

func (*TypeMeta) Descriptor() ([]byte, []int)

Deprecated: Use TypeMeta.ProtoReflect.Descriptor instead.

func (*TypeMeta) GetKind

func (x *TypeMeta) GetKind() string

func (*TypeMeta) ProtoMessage

func (*TypeMeta) ProtoMessage()

func (*TypeMeta) ProtoReflect

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

func (*TypeMeta) Reset

func (x *TypeMeta) Reset()

func (*TypeMeta) String

func (x *TypeMeta) String() string

Directories

Path Synopsis
internal/set
Package set provides simple set data structures for uint64s.
Package set provides simple set data structures for uint64s.

Jump to

Keyboard shortcuts

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