k8s

package
v0.0.0-...-2e4ce2a Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientConfig *rest.Config
	Clientset    *kubernetes.Clientset

	PreferredResources           []*metav1.APIResourceList
	PreferredNamespacedResources []*metav1.APIResourceList
)

Functions

func Init

func Init(kubeconfig *string) error

Types

type KubeObject

type KubeObject struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
}

type KubeObjectList

type KubeObjectList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	// A list of objects.
	Items []KubeObject `json:"items" protobuf:"bytes,2,rep,name=items"`
}

func ListObjects

func ListObjects(groupVersion string, resourceName string, namespace string) (*KubeObjectList, error)

func (*KubeObjectList) DeepCopyObject

func (in *KubeObjectList) DeepCopyObject() runtime.Object

Jump to

Keyboard shortcuts

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