kubeobj

package
v0.0.239 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_framework_kubernetes_kubeobj_podreference_proto protoreflect.FileDescriptor

Functions

func IsCRD

func IsCRD(obj Object) bool

func IsDaemonSet

func IsDaemonSet(obj Object) bool

func IsDeployment

func IsDeployment(obj Object) bool

func IsGVKCRD

func IsGVKCRD(gvk schema.GroupVersionKind) bool

func IsGVKDaemonSet

func IsGVKDaemonSet(gvk schema.GroupVersionKind) bool

func IsGVKDeployment

func IsGVKDeployment(gvk schema.GroupVersionKind) bool

func IsGVKNamespace

func IsGVKNamespace(gvk schema.GroupVersionKind) bool

func IsGVKPod

func IsGVKPod(gvk schema.GroupVersionKind) bool

func IsGVKService

func IsGVKService(gvk schema.GroupVersionKind) bool

func IsGVKStatefulSet

func IsGVKStatefulSet(gvk schema.GroupVersionKind) bool

func IsPod

func IsPod(obj Object) bool

func IsService

func IsService(obj Object) bool

func IsStatefulSet

func IsStatefulSet(obj Object) bool

func MakePodRef

func MakePodRef(ns, name, containerName string, decideKind func(string) runtimepb.ContainerKind) *runtimepb.ContainerReference

func SerializeSelector

func SerializeSelector(selector map[string]string) string

Types

type ContainerPodReference

type ContainerPodReference struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	PodName   string `protobuf:"bytes,2,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
	Container string `protobuf:"bytes,3,opt,name=container,proto3" json:"container,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerPodReference) Descriptor deprecated

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

Deprecated: Use ContainerPodReference.ProtoReflect.Descriptor instead.

func (*ContainerPodReference) GetContainer

func (x *ContainerPodReference) GetContainer() string

func (*ContainerPodReference) GetNamespace

func (x *ContainerPodReference) GetNamespace() string

func (*ContainerPodReference) GetPodName

func (x *ContainerPodReference) GetPodName() string

func (*ContainerPodReference) ProtoMessage

func (*ContainerPodReference) ProtoMessage()

func (*ContainerPodReference) ProtoReflect

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

func (*ContainerPodReference) Reset

func (x *ContainerPodReference) Reset()

func (*ContainerPodReference) String

func (x *ContainerPodReference) String() string

func (*ContainerPodReference) UniqueID

func (cpr *ContainerPodReference) UniqueID() string

type Object

type Object interface {
	GroupVersionKind() schema.GroupVersionKind
	GetName() string
	GetNamespace() string
	GetLabels() map[string]string
	GetAnnotations() map[string]string
}

Jump to

Keyboard shortcuts

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