discovery

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	// contains filtered or unexported fields
}

func NewDiscovery

func NewDiscovery(ctx context.Context, config *rest.Config) (Discovery, error)

NewDiscovery initialize a discovery of k8s objects.

func (*Discovery) GenerateAll

func (k *Discovery) GenerateAll(namespace string) (*Objects, error)

GenerateAll gets all kubernetes objects.

type Objects

type Objects struct {
	Version                *version.Version
	ConfigMaps             *corev1.ConfigMapList
	Endpoints              *corev1.EndpointsList
	Namespaces             *corev1.NamespaceList
	Pods                   *corev1.PodList
	PersistentVolumes      *corev1.PersistentVolumeList
	PersistentVolumeClaims *corev1.PersistentVolumeClaimList
	Secrets                *corev1.SecretList
	Services               *corev1.ServiceList
	DaemonSets             *appsv1.DaemonSetList
	Deployments            *appsv1.DeploymentList
	ReplicaSets            *appsv1.ReplicaSetList
	StatefulSets           *appsv1.StatefulSetList
	Ingresses              *networkingv1.IngressList
}

Jump to

Keyboard shortcuts

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