codify

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Literal

func Literal(kubeobject interface{}) string

Types

type ClusterRole

type ClusterRole struct {
	KubeObject *rbacv1.ClusterRole
	GoName     string
}

func NewClusterRole

func NewClusterRole(obj *rbacv1.ClusterRole) *ClusterRole

func (ClusterRole) Install

func (k ClusterRole) Install() string

func (ClusterRole) Uninstall

func (k ClusterRole) Uninstall() string

type ClusterRoleBinding

type ClusterRoleBinding struct {
	KubeObject *rbacv1.ClusterRoleBinding
	GoName     string
}

func NewClusterRoleBinding

func NewClusterRoleBinding(obj *rbacv1.ClusterRoleBinding) *ClusterRoleBinding

func (ClusterRoleBinding) Install

func (k ClusterRoleBinding) Install() string

func (ClusterRoleBinding) Uninstall

func (k ClusterRoleBinding) Uninstall() string

type ConfigMap

type ConfigMap struct {
	KubeObject *corev1.ConfigMap
	GoName     string
}

func NewConfigMap

func NewConfigMap(obj *corev1.ConfigMap) *ConfigMap

func (ConfigMap) Install

func (k ConfigMap) Install() string

func (ConfigMap) Uninstall

func (k ConfigMap) Uninstall() string

type CronJob

type CronJob struct {
	KubeObject *batchv1.CronJob
	GoName     string
}

func NewCronJob

func NewCronJob(obj *batchv1.CronJob) *CronJob

func (CronJob) Install

func (k CronJob) Install() string

func (CronJob) Uninstall

func (k CronJob) Uninstall() string

type DaemonSet

type DaemonSet struct {
	KubeObject *appsv1.DaemonSet
	GoName     string
}

func NewDaemonSet

func NewDaemonSet(obj *appsv1.DaemonSet) *DaemonSet

func (DaemonSet) Install

func (k DaemonSet) Install() string

func (DaemonSet) Uninstall

func (k DaemonSet) Uninstall() string

type Deployment

type Deployment struct {
	KubeObject *appsv1.Deployment
	GoName     string
}

func NewDeployment

func NewDeployment(obj *appsv1.Deployment) *Deployment

func (Deployment) Install

func (k Deployment) Install() string

func (Deployment) Uninstall

func (k Deployment) Uninstall() string

type Ingress

type Ingress struct {
	KubeObject *networkingv1.Ingress
	GoName     string
}

func NewIngress

func NewIngress(obj *networkingv1.Ingress) *Ingress

func (Ingress) Install

func (k Ingress) Install() string

func (Ingress) Uninstall

func (k Ingress) Uninstall() string

type Job

type Job struct {
	KubeObject *batchv1.Job
	GoName     string
}

func NewJob

func NewJob(obj *batchv1.Job) *Job

func (Job) Install

func (k Job) Install() string

func (Job) Uninstall

func (k Job) Uninstall() string

type PersistentVolume

type PersistentVolume struct {
	KubeObject *corev1.PersistentVolume
	GoName     string
}

func NewPersistentVolume

func NewPersistentVolume(obj *corev1.PersistentVolume) *PersistentVolume

func (PersistentVolume) Install

func (k PersistentVolume) Install() string

func (PersistentVolume) Uninstall

func (k PersistentVolume) Uninstall() string

type PersistentVolumeClaim

type PersistentVolumeClaim struct {
	KubeObject *corev1.PersistentVolumeClaim
	GoName     string
}

func (PersistentVolumeClaim) Install

func (k PersistentVolumeClaim) Install() string

func (PersistentVolumeClaim) Uninstall

func (k PersistentVolumeClaim) Uninstall() string

type Pod

type Pod struct {
	KubeObject *corev1.Pod
	GoName     string
}

func NewPod

func NewPod(obj *corev1.Pod) *Pod

func (Pod) Install

func (k Pod) Install() string

func (Pod) Uninstall

func (k Pod) Uninstall() string

type Role

type Role struct {
	KubeObject *rbacv1.Role
	GoName     string
}

func NewRole

func NewRole(obj *rbacv1.Role) *Role

func (Role) Install

func (k Role) Install() string

func (Role) Uninstall

func (k Role) Uninstall() string

type RoleBinding

type RoleBinding struct {
	KubeObject *rbacv1.RoleBinding
	GoName     string
}

func NewRoleBinding

func NewRoleBinding(obj *rbacv1.RoleBinding) *RoleBinding

func (RoleBinding) Install

func (k RoleBinding) Install() string

func (RoleBinding) Uninstall

func (k RoleBinding) Uninstall() string

type Secret

type Secret struct {
	KubeObject *corev1.Secret
	GoName     string
}

func NewSecret

func NewSecret(obj *corev1.Secret) *Secret

func (Secret) Install

func (k Secret) Install() string

func (Secret) Uninstall

func (k Secret) Uninstall() string

type Service

type Service struct {
	KubeObject *corev1.Service
	GoName     string
}

func NewService

func NewService(obj *corev1.Service) *Service

func (Service) Install

func (k Service) Install() string

func (Service) Uninstall

func (k Service) Uninstall() string

type ServiceAccount

type ServiceAccount struct {
	KubeObject *corev1.ServiceAccount
	GoName     string
}

func NewServiceAccount

func NewServiceAccount(obj *corev1.ServiceAccount) *ServiceAccount

func (ServiceAccount) Install

func (k ServiceAccount) Install() string

func (ServiceAccount) Uninstall

func (k ServiceAccount) Uninstall() string

type StatefulSet

type StatefulSet struct {
	KubeObject *appsv1.StatefulSet
	GoName     string
}

func NewStatefulSet

func NewStatefulSet(obj *appsv1.StatefulSet) *StatefulSet

func (StatefulSet) Install

func (k StatefulSet) Install() string

func (StatefulSet) Uninstall

func (k StatefulSet) Uninstall() string

Jump to

Keyboard shortcuts

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