types

package
v0.0.0-...-e40a182 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapDiscovery

type ConfigMapDiscovery struct {
	Context string
	corev1.ConfigMap
}

ConfigMapDiscovery represents a configmap with the context information

func (ConfigMapDiscovery) GetLabels

func (c ConfigMapDiscovery) GetLabels() map[string]string

GetLabels allows ConfigMapDiscovery to implement the Labeled interface

type CronJobDiscovery

type CronJobDiscovery struct {
	Context string
	batchv1beta1.CronJob
}

CronJobDiscovery represents a cron job with the context information

func (CronJobDiscovery) GetLabels

func (c CronJobDiscovery) GetLabels() map[string]string

GetLabels allows CronJobDiscovery to implement the Labeled interface

type DeploymentDiscovery

type DeploymentDiscovery struct {
	Context string
	v1.Deployment
}

DeploymentDiscovery represents a deployment with the context information

func (DeploymentDiscovery) GetLabels

func (c DeploymentDiscovery) GetLabels() map[string]string

GetLabels allows DeploymentDiscovery to implement the Labeled interface

type JobDiscovery

type JobDiscovery struct {
	Context string
	batchv1.Job
}

JobDiscovery represents a job with the context information

func (JobDiscovery) GetLabels

func (c JobDiscovery) GetLabels() map[string]string

GetLabels allows JobDiscovery to implement the Labeled interface

type ManifestDetails

type ManifestDetails struct {
	Metadata struct {
		Name      string `json:"name"`
		Namespace string `json:"namespace"`
	} `json:"metadata"`
	APIVersion string `json:"apiVersion"`
	Kind       string `json:"kind"`
	Spec       struct {
		ActiveDeadlineSeconds string   `json:"activeDeadlineSeconds"`
		Template              template `json:"template"`
	} `json:"spec"`
}

ManifestDetails represents the manifest details of a running adhoc pod to get attributes like the namespace

type PodDiscovery

type PodDiscovery struct {
	Context string
	corev1.Pod
}

PodDiscovery represents a pod with the context information

func (PodDiscovery) GetLabels

func (c PodDiscovery) GetLabels() map[string]string

GetLabels allows PodDiscovery to implement the Labeled interface

type ReplicaSetDiscovery

type ReplicaSetDiscovery struct {
	Context string
	v1.ReplicaSet
}

ReplicaSetDiscovery represents a deployment with the context information

func (ReplicaSetDiscovery) GetLabels

func (c ReplicaSetDiscovery) GetLabels() map[string]string

GetLabels allows ReplicaSetDiscovery to implement the Labeled interface

type RunDetails

type RunDetails struct {
	Resources    resource   `json:"resources"`
	Active       bool       `json:"active"`
	Manifest     string     `json:"manifest"`
	PreLogin     [][]string `json:"pre_login_command,omitempty"`
	LoginCommand []string   `json:"login_command"`
}

RunDetails represents the commands and manifest to apply to launch an adhoc pod

Jump to

Keyboard shortcuts

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