client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryClient

type DiscoveryClient struct {
	Context context.Context
	// contains filtered or unexported fields
}

func NewDiscoveryClient

func NewDiscoveryClient(ctx context.Context, config *rest.Config) (*DiscoveryClient, error)

func (*DiscoveryClient) ResourcesForCluster

func (dc *DiscoveryClient) ResourcesForCluster() (map[string]interface{}, error)

Get the cluster level resources

func (*DiscoveryClient) ResourcesForNamespace

func (dc *DiscoveryClient) ResourcesForNamespace(namespace string) (map[string]interface{}, error)

Get all the namespaced resources for a given namespace

type HarvesterClient

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

func NewHarvesterClient

func NewHarvesterClient(ctx context.Context, config *rest.Config) (*HarvesterClient, error)

func (*HarvesterClient) GetAllDataVolumes

func (h *HarvesterClient) GetAllDataVolumes(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllKeypairs

func (h *HarvesterClient) GetAllKeypairs(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllPreferences

func (h *HarvesterClient) GetAllPreferences(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllSettings

func (h *HarvesterClient) GetAllSettings() (runtime.Object, error)

func (*HarvesterClient) GetAllUpgrades

func (h *HarvesterClient) GetAllUpgrades(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllUsers

func (h *HarvesterClient) GetAllUsers() (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineBackupContents

func (h *HarvesterClient) GetAllVirtualMachineBackupContents(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineBackups

func (h *HarvesterClient) GetAllVirtualMachineBackups(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineImages

func (h *HarvesterClient) GetAllVirtualMachineImages(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineInstanceMigrations

func (h *HarvesterClient) GetAllVirtualMachineInstanceMigrations(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineInstances

func (h *HarvesterClient) GetAllVirtualMachineInstances(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineRestores

func (h *HarvesterClient) GetAllVirtualMachineRestores(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineTemplateVersions

func (h *HarvesterClient) GetAllVirtualMachineTemplateVersions(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachineTemplates

func (h *HarvesterClient) GetAllVirtualMachineTemplates(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetAllVirtualMachines

func (h *HarvesterClient) GetAllVirtualMachines(namespace string) (runtime.Object, error)

func (*HarvesterClient) GetSetting

func (h *HarvesterClient) GetSetting(name string) (*v1beta1.Setting, error)

func (*HarvesterClient) GetSettingValue

func (h *HarvesterClient) GetSettingValue(name string) string

func (*HarvesterClient) GetSupportBundle

func (h *HarvesterClient) GetSupportBundle(namespace, name string) (*harvesterv1.SupportBundle, error)

func (*HarvesterClient) GetSupportBundleState

func (h *HarvesterClient) GetSupportBundleState(namespace, name string) (string, error)

type KubernetesClient

type KubernetesClient struct {
	Context context.Context
	// contains filtered or unexported fields
}

func NewKubernetesClient

func NewKubernetesClient(ctx context.Context, config *rest.Config) (*KubernetesClient, error)

func (*KubernetesClient) CreateDaemonSets

func (k *KubernetesClient) CreateDaemonSets(namespace string, daemonSet *appsv1.DaemonSet) (*appsv1.DaemonSet, error)

func (*KubernetesClient) DeleteDaemonSets

func (k *KubernetesClient) DeleteDaemonSets(namespace, name string) error

func (*KubernetesClient) GetAllConfigMaps

func (k *KubernetesClient) GetAllConfigMaps(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllCronJobsList

func (k *KubernetesClient) GetAllCronJobsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllDaemonSetsList

func (k *KubernetesClient) GetAllDaemonSetsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllDeploymentsList

func (k *KubernetesClient) GetAllDeploymentsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllEventsList

func (k *KubernetesClient) GetAllEventsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllJobsList

func (k *KubernetesClient) GetAllJobsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllNodesList

func (k *KubernetesClient) GetAllNodesList() (runtime.Object, error)

func (*KubernetesClient) GetAllPodsList

func (k *KubernetesClient) GetAllPodsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllServicesList

func (k *KubernetesClient) GetAllServicesList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllStatefulSetsList

func (k *KubernetesClient) GetAllStatefulSetsList(namespace string) (runtime.Object, error)

func (*KubernetesClient) GetAllVolumeAttachments

func (k *KubernetesClient) GetAllVolumeAttachments() (runtime.Object, error)

func (*KubernetesClient) GetDeploymentsListByLabels

func (k *KubernetesClient) GetDeploymentsListByLabels(namespace, labels string) (*appsv1.DeploymentList, error)

func (*KubernetesClient) GetKubernetesVersion

func (k *KubernetesClient) GetKubernetesVersion() (*version.Info, error)

func (*KubernetesClient) GetNamespace

func (k *KubernetesClient) GetNamespace(namespace string) (*corev1.Namespace, error)

func (*KubernetesClient) GetNodesListByLabels

func (k *KubernetesClient) GetNodesListByLabels(labels string) (*corev1.NodeList, error)

func (*KubernetesClient) GetPodContainerLogRequest

func (k *KubernetesClient) GetPodContainerLogRequest(namespace, podName, containerName string) *rest.Request

func (*KubernetesClient) GetPodsListByLabels

func (k *KubernetesClient) GetPodsListByLabels(namespace string, labels string) (*corev1.PodList, error)

type MetricsClient

type MetricsClient struct {
	Context context.Context
	// contains filtered or unexported fields
}

func NewMetricsClient

func NewMetricsClient(ctx context.Context, config *rest.Config) (*MetricsClient, error)

func (*MetricsClient) GetAllNodeMetrics

func (c *MetricsClient) GetAllNodeMetrics() (runtime.Object, error)

func (*MetricsClient) GetAllPodMetrics

func (c *MetricsClient) GetAllPodMetrics(namespace string) (runtime.Object, error)

Jump to

Keyboard shortcuts

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