kube

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kube

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

Kube is a kubernetes client

func NewInClusterKubeClient

func NewInClusterKubeClient() (*Kube, error)

NewInClusterClient returns a client for use when inside the kubernetes cluster

func NewOutOfClusterKubeClient

func NewOutOfClusterKubeClient() (*Kube, error)

NewOutOfClusterClient returns a client for use when not inside the kubernetes cluster

func (*Kube) ConfigMaps

func (p *Kube) ConfigMaps(namespace string) v12.ConfigMapInterface

ConfigMaps returns an interface for managing k8s config maps

func (*Kube) CronJobs

func (p *Kube) CronJobs(namespace string) v1beta1.CronJobInterface

CronJobs returns an interface for managing k8s cronjobs

func (*Kube) DaemonSets

func (p *Kube) DaemonSets(namespace string) v1.DaemonSetInterface

DaemonSets returns an interface for managing k8s daemonsets

func (*Kube) Deployments

func (p *Kube) Deployments(namespace string) v1.DeploymentInterface

Deployments returns an interface for managing k8s deployments

func (*Kube) Endpoints

func (p *Kube) Endpoints(namespace string) v12.EndpointsInterface

Endpoints returns an interface for managing k8s endpoints

func (*Kube) Events

func (p *Kube) Events(namespace string) v12.EventInterface

Events returns an interface for managing k8s events

func (*Kube) GetLogs

func (p *Kube) GetLogs(ctx context.Context, podName, namespace string, opts *corev1.PodLogOptions) (io.ReadCloser, error)

GetLogs returns a readerCloser that streams the pod's logs

func (*Kube) Ingresses

func (p *Kube) Ingresses(namespace string) v14.IngressInterface

Ingresses returns an interface for managing k8s ingresses

func (*Kube) Jobs

func (p *Kube) Jobs(namespace string) v13.JobInterface

Jobs returns an interface for managing k8s jobs

func (*Kube) Namespaces

func (p *Kube) Namespaces() v12.NamespaceInterface

Namespaces returns an interface for managing k8s namespaces

func (*Kube) Nodes

func (p *Kube) Nodes() v12.NodeInterface

Nodes returns an interface for managing k8s nodes

func (*Kube) PersistentVolumeClaims

func (p *Kube) PersistentVolumeClaims(namespace string) v12.PersistentVolumeClaimInterface

PersistentVolumeClaims returns an interface for managing k8s persistant volume claims

func (*Kube) PersistentVolumes

func (p *Kube) PersistentVolumes() v12.PersistentVolumeInterface

PersistentVolumes returns an interface for managing k8s persistant volumes

func (*Kube) Pods

func (p *Kube) Pods(namespace string) v12.PodInterface

Pods returns an interface for managing k8s pods

func (*Kube) ReplicaSets

func (p *Kube) ReplicaSets(namespace string) v1.ReplicaSetInterface

ReplicaSets returns an interface for managing k8s replicasets

func (*Kube) ResourceQuotas

func (p *Kube) ResourceQuotas(namespace string) v12.ResourceQuotaInterface

ResourceQuotas returns an interface for managing k8s resource quotas

func (*Kube) Secrets

func (p *Kube) Secrets(namespace string) v12.SecretInterface

Secrets returns an interface for managing k8s secrets

func (*Kube) ServiceAccounts

func (p *Kube) ServiceAccounts(namespace string) v12.ServiceAccountInterface

ServiceAccounts returns an interface for managing k8s service accounts

func (*Kube) Services

func (p *Kube) Services(namespace string) v12.ServiceInterface

Services returns an interface for managing k8s services

func (*Kube) StatefulSets

func (p *Kube) StatefulSets(namespace string) v1.StatefulSetInterface

StatefulSets returns an interface for managing k8s statefulsets

Jump to

Keyboard shortcuts

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