k8s

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindDeployment  = "Deployment"
	KindStatefulSet = "StatefulSet"
	KindDaemonSet   = "DaemonSet"
	KindCronJob     = "CronJob"
	KindJob         = "Job"
	KindReplicaSet  = "ReplicaSet"
	KindPod         = "Pod"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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 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 NewCronjob

func NewCronjob() ImagesInterface

func NewDaemonSet

func NewDaemonSet() ImagesInterface

func NewDeployment

func NewDeployment() ImagesInterface

func NewJob

func NewJob() ImagesInterface

func NewPod added in v0.0.7

func NewPod() ImagesInterface

func NewReplicaSets

func NewReplicaSets() ImagesInterface

func NewStatefulSet

func NewStatefulSet() 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 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)

Jump to

Keyboard shortcuts

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