k8s

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 added in v0.1.0

func SupportedKinds() []string

Types

type AlertManager added in v0.1.0

type AlertManager monitoringV1.Alertmanager

func (*AlertManager) Get added in v0.1.0

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 added in v0.1.0

type Grafana grafanaBetaV1.Grafana

func (*Grafana) Get added in v0.1.0

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 added in v0.1.0

func NewAlertManager() ImagesInterface

func NewCronjob

func NewCronjob() ImagesInterface

func NewDaemonSet

func NewDaemonSet() ImagesInterface

func NewDeployment

func NewDeployment() ImagesInterface

func NewGrafana added in v0.1.0

func NewGrafana() ImagesInterface

func NewJob

func NewJob() ImagesInterface

func NewPod added in v0.0.7

func NewPod() ImagesInterface

func NewPrometheus added in v0.1.0

func NewPrometheus() ImagesInterface

func NewReplicaSets

func NewReplicaSets() ImagesInterface

func NewStatefulSet

func NewStatefulSet() ImagesInterface

func NewThanos added in v0.1.0

func NewThanos() ImagesInterface

func NewThanosReceiver added in v0.1.0

func NewThanosReceiver() ImagesInterface

func NewThanosRuler added in v0.1.0

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 added in v0.0.7

type Pod coreV1.Pod

func (*Pod) Get added in v0.0.7

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

type Prometheus added in v0.1.0

type Prometheus monitoringV1.Prometheus

func (*Prometheus) Get added in v0.1.0

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 added in v0.1.0

type Thanos thanosAlphaV1.Thanos

func (*Thanos) Get added in v0.1.0

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

type ThanosReceiver added in v0.1.0

type ThanosReceiver thanosAlphaV1.Receiver

func (*ThanosReceiver) Get added in v0.1.0

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

type ThanosRuler added in v0.1.0

type ThanosRuler monitoringV1.ThanosRuler

func (*ThanosRuler) Get added in v0.1.0

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