k8s

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindDeployment     = "Deployment"
	KindStatefulSet    = "StatefulSet"
	KindDaemonSet      = "DaemonSet"
	KindCronJob        = "CronJob"
	KindJob            = "Job"
	KindReplicaSet     = "ReplicaSet"
	KindPod            = "Pod"
	KindGrafana        = "Grafana"
	KindThanos         = "Thanos"
	KindThanosReceiver = "Receiver"
)

Variables

This section is empty.

Functions

func SupportedKinds

func SupportedKinds() []string

Types

type AlertManager

type AlertManager monitoringv1.Alertmanager

func (*AlertManager) Get

func (dep *AlertManager) Get(dataMap string) (*Image, error)

type CronJob

type CronJob batchv1.CronJob

func (*CronJob) Get

func (dep *CronJob) Get(dataMap string) (*Image, error)

type DaemonSets

type DaemonSets appsv1.DaemonSet

func (*DaemonSets) Get

func (dep *DaemonSets) Get(dataMap string) (*Image, error)

type Deployments

type Deployments appsv1.Deployment

func (*Deployments) Get

func (dep *Deployments) Get(dataMap string) (*Image, error)

type Grafana

type Grafana grafanabetav1.Grafana

func (*Grafana) Get

func (dep *Grafana) Get(dataMap string) (*Image, error)

type Image

type Image struct {
	Kind  string   `json:"kind,omitempty"`
	Name  string   `json:"name,omitempty"`
	Image []string `json:"image,omitempty"`
}

type ImagesInterface

type ImagesInterface interface {
	Get(dataMap string) (*Image, error)
}

func NewAlertManager

func NewAlertManager() ImagesInterface

func NewCronjob

func NewCronjob() ImagesInterface

func NewDaemonSet

func NewDaemonSet() ImagesInterface

func NewDeployment

func NewDeployment() ImagesInterface

func NewGrafana

func NewGrafana() ImagesInterface

func NewJob

func NewJob() ImagesInterface

func NewPod

func NewPod() ImagesInterface

func NewPrometheus

func NewPrometheus() ImagesInterface

func NewReplicaSets

func NewReplicaSets() ImagesInterface

func NewStatefulSet

func NewStatefulSet() ImagesInterface

func NewThanos

func NewThanos() ImagesInterface

func NewThanosReceiver

func NewThanosReceiver() ImagesInterface

func NewThanosRuler

func NewThanosRuler() ImagesInterface

type Job

type Job batchv1.Job

func (*Job) Get

func (dep *Job) Get(dataMap string) (*Image, error)

type Kind

type Kind map[string]interface{}

func (*Kind) Get

func (kin *Kind) Get(dataMap string) (string, error)

type KindInterface

type KindInterface interface {
	Get(dataMap string) (string, error)
}

func NewKind

func NewKind() KindInterface

type Pod

type Pod corev1.Pod

func (*Pod) Get

func (dep *Pod) Get(dataMap string) (*Image, error)

type Prometheus

type Prometheus monitoringv1.Prometheus

func (*Prometheus) Get

func (dep *Prometheus) Get(dataMap string) (*Image, error)

type ReplicaSets

type ReplicaSets appsv1.ReplicaSet

func (*ReplicaSets) Get

func (dep *ReplicaSets) Get(dataMap string) (*Image, error)

type StatefulSets

type StatefulSets appsv1.StatefulSet

func (*StatefulSets) Get

func (dep *StatefulSets) Get(dataMap string) (*Image, error)

type Thanos

type Thanos thanosalphav1.Thanos

func (*Thanos) Get

func (dep *Thanos) Get(dataMap string) (*Image, error)

type ThanosReceiver

type ThanosReceiver thanosalphav1.Receiver

func (*ThanosReceiver) Get

func (dep *ThanosReceiver) Get(dataMap string) (*Image, error)

type ThanosRuler

type ThanosRuler monitoringv1.ThanosRuler

func (*ThanosRuler) Get

func (dep *ThanosRuler) Get(dataMap string) (*Image, error)

Jump to

Keyboard shortcuts

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