k8s

package
v0.0.0-...-e70be16 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotations

func GetAnnotations(resource Resource) map[string]string

GetAnnotations returns the annotations at the pod level. If the resource does not have pods, then it returns the least-nested annotations

func GetLabels

func GetLabels(resource Resource) map[string]string

GetLabels returns the labels at the pod level. If the resource does not have pods, then it returns the least-nested labels

func GetObjectMeta

func GetObjectMeta(resource Resource) metav1.Object

GetObjectMeta returns the highest-level ObjectMeta

func GetPodObjectMeta

func GetPodObjectMeta(resource Resource) metav1.Object

GetPodObjectMeta returns the ObjectMeta at the pod level. If the resource does not have pods, then it returns the highest-level ObjectMeta

func IsNamespaceV1

func IsNamespaceV1(resource Resource) bool

func IsPodV1

func IsPodV1(resource Resource) bool

func NewFalse

func NewFalse() *bool

NewFalse returns a pointer to a boolean variable set to false

func NewTrue

func NewTrue() *bool

NewTrue returns a pointer to a boolean variable set to true

Types

type CapabilitiesV1

type CapabilitiesV1 = apiv1.Capabilities

CapabilitiesV1 is a type alias for the v1 version of the k8s API.

type CapabilityV1

type CapabilityV1 = apiv1.Capability

CapabilityV1 is a type alias for the v1 version of the k8s API.

type ContainerV1

type ContainerV1 = apiv1.Container

ContainerV1 is a type alias for the v1 version of the k8s API.

func GetContainers

func GetContainers(resource Resource) []*ContainerV1

func GetInitContainers

func GetInitContainers(resource Resource) []*ContainerV1

type CronJobSpecV1Beta1

type CronJobSpecV1Beta1 = batchv1beta1.CronJobSpec

CronJobSpecV1Beta1 is a type alias for the v1beta1 version of the k8s batch API.

type CronJobV1Beta1

type CronJobV1Beta1 = batchv1beta1.CronJob

CronJobV1Beta1 is a type alias for the v1beta1 version of the k8s batch API.

func NewCronJob

func NewCronJob() *CronJobV1Beta1

NewCronJob creates a new CronJob resource

type DaemonSetSpecV1

type DaemonSetSpecV1 = appsv1.DaemonSetSpec

DaemonSetSpecV1 is a type alias for the v1 version of the k8s apps API.

type DaemonSetV1

type DaemonSetV1 = appsv1.DaemonSet

DaemonSetV1 is a type alias for the v1 version of the k8s API.

func NewDaemonSet

func NewDaemonSet() *DaemonSetV1

NewDaemonSet creates a new DaemonSet resource

type DeploymentSpecV1

type DeploymentSpecV1 = appsv1.DeploymentSpec

DeploymentSpecV1 is a type alias for the v1 version of the k8s apps API.

type DeploymentV1

type DeploymentV1 = appsv1.Deployment

DeploymentV1 is a type alias for the v1 version of the k8s apps API.

func NewDeployment

func NewDeployment() *DeploymentV1

NewDeployment creates a new Deployment resource

type JobSpecV1

type JobSpecV1 = batchv1.JobSpec

JobSpecV1 is a type alias for the v1 version of the k8s batch API.

type JobTemplateSpecV1Beta1

type JobTemplateSpecV1Beta1 = batchv1beta1.JobTemplateSpec

JobTemplateSpecV1Beta1 is a type alias for the v1beta1 version of the k8s batch API.

type JobV1

type JobV1 = batchv1.Job

JobV1 is a type alias for the v1 version of the k8s batch API.

func NewJob

func NewJob() *JobV1

NewJob creates a new Job resource

type ListOptionsV1

type ListOptionsV1 = metav1.ListOptions

ListOptionsV1 is a type alias for the v1 version of the k8s meta API.

type NamespaceSpecV1

type NamespaceSpecV1 = apiv1.NamespaceSpec

NamespaceSpecV1 is a type alias for the v1 version of the k8s API.

type NamespaceV1

type NamespaceV1 = apiv1.Namespace

NamespaceV1 is a type alias for the v1 version of the k8s API.

func NewNamespace

func NewNamespace() *NamespaceV1

NewNamespace creates a new Namespace resource

type NetworkPolicySpecV1

type NetworkPolicySpecV1 = networkingv1.NetworkPolicySpec

NetworkPolicySpecV1 is a type alias for the v1 version of the k8s networking API.

type NetworkPolicyV1

type NetworkPolicyV1 = networkingv1.NetworkPolicy

NetworkPolicyV1 is a type alias for the v1 version of the k8s networking API.

func NewNetworkPolicy

func NewNetworkPolicy() *NetworkPolicyV1

NewNetworkPolicy creates a new NetworkPolicy resource

type ObjectMetaV1

type ObjectMetaV1 = metav1.ObjectMeta

ObjectMetaV1 is a type alias for the v1 version of the k8s meta API.

type PodSpecV1

type PodSpecV1 = apiv1.PodSpec

PodSpecV1 is a type alias for the v1 version of the k8s API.

func GetPodSpec

func GetPodSpec(resource Resource) *PodSpecV1

GetPodSpec gets the PodSpec for a resource. Avoid using this function if you need support for Namespace or ServiceAccount resources, and write a helper functions in this package instead

type PodTemplateSpecV1

type PodTemplateSpecV1 = apiv1.PodTemplateSpec

PodTemplateSpecV1 is a type alias for the v1 version of the k8s API.

func GetPodTemplateSpec

func GetPodTemplateSpec(resource Resource) *PodTemplateSpecV1

GetPodTemplateSpec gets the PodTemplateSpec for a resource. Avoid using this function if you need support for Pod, Namespace, or ServiceAccount resources, and write a helper functions in this package instead

type PodTemplateV1

type PodTemplateV1 = apiv1.PodTemplate

PodTemplateV1 is a type alias for the v1 version of the k8s API.

func NewPodTemplate

func NewPodTemplate() *PodTemplateV1

NewPodTemplate creates a new PodTemplate resource

type PodV1

type PodV1 = apiv1.Pod

PodV1 is a type alias for the v1 version of the k8s API.

func NewPod

func NewPod() *PodV1

NewPod creates a new Pod resource

type PolicyTypeV1

type PolicyTypeV1 = networkingv1.PolicyType

PolicyTypeV1 is a type alias for the v1 version of the k8s networking API.

type ReplicationControllerSpecV1

type ReplicationControllerSpecV1 = apiv1.ReplicationControllerSpec

ReplicationControllerSpecV1 is a type alias for the v1 version of the k8s API.

type ReplicationControllerV1

type ReplicationControllerV1 = apiv1.ReplicationController

ReplicationControllerV1 is a type alias for the v1 version of the k8s API.

func NewReplicationController

func NewReplicationController() *ReplicationControllerV1

NewReplicationController creates a new ReplicationController resource

type Resource

type Resource k8sRuntime.Object

Resource is a type alias for a runtime.Object

type SecurityContextV1

type SecurityContextV1 = apiv1.SecurityContext

SecurityContextV1 is a type alias for the v1 version of the k8s API.

type ServiceAccountV1

type ServiceAccountV1 = apiv1.ServiceAccount

ServiceAccountV1 is a type alias for the v1 version of the k8s API.

func NewServiceAccount

func NewServiceAccount() *ServiceAccountV1

NewServiceAccount creates a new ServiceAccount resource

type ServiceV1

type ServiceV1 = apiv1.Service

ServiceV1 is a type alias for the v1 version of the k8s API.

func NewService

func NewService() *ServiceV1

NewService creates a new Service resource

type ServiceV1Spec

type ServiceV1Spec = apiv1.ServiceSpec

ServiceV1Spec is a type alias for the v1 version of the k8s API.

type StatefulSetSpecV1

type StatefulSetSpecV1 = appsv1.StatefulSetSpec

StatefulSetSpecV1 is a type alias for the v1 version of the k8s apps API.

type StatefulSetV1

type StatefulSetV1 = appsv1.StatefulSet

StatefulSetV1 is a type alias for the v1 version of the k8s apps API.

func NewStatefulSet

func NewStatefulSet() *StatefulSetV1

NewStatefulSet creates a new StatefulSet resource

type TypeMetaV1

type TypeMetaV1 = metav1.TypeMeta

TypeMetaV1 is a type alias for the v1 version of the k8s meta API.

type UnsupportedType

type UnsupportedType = apiv1.Binding

UnsupportedType is a type alias for v1 version of the k8s apps API, this is meant for testing

Jump to

Keyboard shortcuts

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