Documentation ¶
Index ¶
- type Kube
- func (p *Kube) ConfigMaps(namespace string) v12.ConfigMapInterface
- func (p *Kube) CronJobs(namespace string) v1beta1.CronJobInterface
- func (p *Kube) DaemonSets(namespace string) v1.DaemonSetInterface
- func (p *Kube) Deployments(namespace string) v1.DeploymentInterface
- func (p *Kube) Endpoints(namespace string) v12.EndpointsInterface
- func (p *Kube) Events(namespace string) v12.EventInterface
- func (p *Kube) GetLogs(ctx context.Context, podName, namespace string, opts *corev1.PodLogOptions) (io.ReadCloser, error)
- func (p *Kube) Ingresses(namespace string) v14.IngressInterface
- func (p *Kube) Jobs(namespace string) v13.JobInterface
- func (p *Kube) Namespaces() v12.NamespaceInterface
- func (p *Kube) Nodes() v12.NodeInterface
- func (p *Kube) PersistentVolumeClaims(namespace string) v12.PersistentVolumeClaimInterface
- func (p *Kube) PersistentVolumes() v12.PersistentVolumeInterface
- func (p *Kube) Pods(namespace string) v12.PodInterface
- func (p *Kube) ReplicaSets(namespace string) v1.ReplicaSetInterface
- func (p *Kube) ResourceQuotas(namespace string) v12.ResourceQuotaInterface
- func (p *Kube) Secrets(namespace string) v12.SecretInterface
- func (p *Kube) ServiceAccounts(namespace string) v12.ServiceAccountInterface
- func (p *Kube) Services(namespace string) v12.ServiceInterface
- func (p *Kube) StatefulSets(namespace string) v1.StatefulSetInterface
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 ¶
NewInClusterClient returns a client for use when inside the kubernetes cluster
func NewOutOfClusterKubeClient ¶
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