kubernetes

package
v2.0.0-...-07c1479 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Name    string
	Image   string
	ImageID string
}

type DaemonSet

type DaemonSet struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	Pods        []Pod
}

type Deployment

type Deployment struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	ReplicaSets []ReplicaSet
}

type Kubernetes

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

func New

func New(logger *utils.Logger, cfg *utils.Config) Kubernetes

func (*Kubernetes) GetDaemonsets

func (k *Kubernetes) GetDaemonsets() []DaemonSet

func (*Kubernetes) GetDeployments

func (k *Kubernetes) GetDeployments() []Deployment

func (*Kubernetes) GetPods

func (k *Kubernetes) GetPods() []Pod

func (*Kubernetes) GetReplicasets

func (k *Kubernetes) GetReplicasets() []ReplicaSet

func (*Kubernetes) GetStatefulsets

func (k *Kubernetes) GetStatefulsets() []StatefulSet

type Owner

type Owner struct {
	Name string
	Kind string
}

type Pod

type Pod struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	Containers  []Container
	Owner       Owner
}

type ReplicaSet

type ReplicaSet struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	Pods        []Pod
	Owner       Owner
}

type StatefulSet

type StatefulSet struct {
	Name        string
	Namespace   string
	Annotations map[string]string
	Pods        []Pod
}

Jump to

Keyboard shortcuts

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