Documentation ¶
Index ¶
- Variables
- type ClusterRole
- type ClusterRoleBinding
- type Codified
- type ConfigMap
- type CronJob
- type CustomResourceDefinition
- type DaemonSet
- type Deployment
- type Ingress
- type IngressClass
- type Job
- type Namespace
- type PersistentVolume
- type PersistentVolumeClaim
- type Pod
- type PodDisruptionBudget
- type PodSecurityPolicy
- type Role
- type RoleBinding
- type Secret
- type Service
- type ServiceAccount
- type StatefulSet
- type ValidatingwebhookConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KubernetesImportPackageMap = map[string]string{ "k8s.io/api/apps/v1": "appsv1", "k8s.io/api/batch/v1": "batchv1", "k8s.io/api/core/v1": "corev1", "k8s.io/apimachinery/pkg/apis/meta/v1": "metav1", "k8s.io/api/rbac/v1": "rbacv1", "k8s.io/api/networking/v1": "networkingv1", "k8s.io/api/admissionregistration/v1": "admissionregistrationv1", "k8s.io/api/policy/v1beta1": "policyv1beta1", "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1": "apiextensionsv1", } PolicyV1Types = []string{ "PolicyV1Interface", } AppsV1Types = []string{""} MetaV1Types = []string{ "APIGroup", "ObjectMeta", "Time", "TypeMeta", "ManagedFieldsEntry", "OwnerReference", "CreateOptions", "DeleteOptions", "LabelSelector", } CoreV1Types = []string{ "WeightedPodAffinityTerm", "TCPSocketAction", "Volume", "SecretEnvSource", "SecretKeySelector", "SecretProjection", "ConfigMapKeySelector", "ConfigMapProjection", "ConfigMapEnvSource", "HTTPHeader", "PodAntiAffinity", "PodAffinityTerm", "KeyToPath", "SecretVolumeSource", "EmptyDirVolumeSource", "Handler", "TaintEffect", "HTTPGetAction", "URIScheme", "PodTemplateSpec", "PodSpec", "Protocol", "ResourceRequirements", "ResourceList", "VolumeDevice", "Probe", "Container", "EnvFromSource", "EnvVar", "VolumeMount", "Lifecycle", "SecurityContext", "EphemeralContainer", "LocalObjectReference", "Affinity", "Toleration", "HostAlias", "PodDNSConfig", "PodReadinessGate", "PreemptionPolicy", "TopologySpreadConstraint", "TerminationMessagePolicy", "PullPolicy", "RestartPolicy", "DNSPolicy", "ObjectFieldSelector", "PodSecurityContext", "ResourceName", "Capabilities", "Capability", "ExecAction", "HostPathVolumeSource", "HostPathType", "ProjectedVolumeSource", "MountPropagationMode", "ConfigMapVolumeSource", "ClaimName", "PersistentVolumeClaimVolumeSource", } )
Functions ¶
This section is empty.
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, []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, []string)
func (ClusterRoleBinding) Uninstall ¶
func (k ClusterRoleBinding) Uninstall() string
type Codified ¶ added in v1.0.0
type Codified struct { // The unknown original object Object interface{} // The packages required to code each object Packages []string // The Go code to define each object Source string // The full result from valast R valast.Result }
Codified is the source code associated with a given Kubernetes object.
type ConfigMap ¶
func NewConfigMap ¶
type CronJob ¶
func NewCronJob ¶
type CustomResourceDefinition ¶ added in v0.2.9
type CustomResourceDefinition struct { KubeObject *apiextensionsv1.CustomResourceDefinition GoName string }
func NewCustomResourceDefinition ¶ added in v0.2.9
func NewCustomResourceDefinition(obj *apiextensionsv1.CustomResourceDefinition) *CustomResourceDefinition
func (CustomResourceDefinition) Install ¶ added in v0.2.9
func (k CustomResourceDefinition) Install() (string, []string)
func (CustomResourceDefinition) Uninstall ¶ added in v0.2.9
func (k CustomResourceDefinition) Uninstall() string
type DaemonSet ¶
func NewDaemonSet ¶
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, []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
type IngressClass ¶ added in v0.3.2
type IngressClass struct { KubeObject *networkingv1.IngressClass GoName string }
func NewIngressClass ¶ added in v0.3.2
func NewIngressClass(obj *networkingv1.IngressClass) *IngressClass
func (IngressClass) Install ¶ added in v0.3.2
func (k IngressClass) Install() (string, []string)
func (IngressClass) Uninstall ¶ added in v0.3.2
func (k IngressClass) Uninstall() string
type Namespace ¶ added in v0.2.9
func NewNamespace ¶ added in v0.2.9
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, []string)
func (PersistentVolume) Uninstall ¶
func (k PersistentVolume) Uninstall() string
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct { KubeObject *corev1.PersistentVolumeClaim GoName string }
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(obj *corev1.PersistentVolumeClaim) *PersistentVolumeClaim
func (PersistentVolumeClaim) Install ¶
func (k PersistentVolumeClaim) Install() (string, []string)
func (PersistentVolumeClaim) Uninstall ¶
func (k PersistentVolumeClaim) Uninstall() string
type PodDisruptionBudget ¶ added in v1.0.2
type PodDisruptionBudget struct { KubeObject *policyv1.PodDisruptionBudget GoName string }
func NewPodDisruptionBudget ¶ added in v1.0.2
func NewPodDisruptionBudget(obj *policyv1.PodDisruptionBudget) *PodDisruptionBudget
func (PodDisruptionBudget) Install ¶ added in v1.0.2
func (k PodDisruptionBudget) Install() (string, []string)
func (PodDisruptionBudget) Uninstall ¶ added in v1.0.2
func (k PodDisruptionBudget) Uninstall() string
type PodSecurityPolicy ¶ added in v0.4.0
type PodSecurityPolicy struct { KubeObject *policyv1.PodSecurityPolicy GoName string }
func NewPodSecurityPolicy ¶ added in v0.4.0
func NewPodSecurityPolicy(obj *policyv1.PodSecurityPolicy) *PodSecurityPolicy
func (PodSecurityPolicy) Install ¶ added in v0.4.0
func (k PodSecurityPolicy) Install() (string, []string)
func (PodSecurityPolicy) Uninstall ¶ added in v0.4.0
func (k PodSecurityPolicy) 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, []string)
func (RoleBinding) Uninstall ¶
func (k RoleBinding) Uninstall() string
type Service ¶
func NewService ¶
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, []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, []string)
func (StatefulSet) Uninstall ¶
func (k StatefulSet) Uninstall() string
type ValidatingwebhookConfiguration ¶ added in v0.3.2
type ValidatingwebhookConfiguration struct { KubeObject *admissionregistrationv1.ValidatingWebhookConfiguration GoName string }
func NewValidatingwebhookConfiguration ¶ added in v0.3.2
func NewValidatingwebhookConfiguration(obj *admissionregistrationv1.ValidatingWebhookConfiguration) *ValidatingwebhookConfiguration
func (ValidatingwebhookConfiguration) Install ¶ added in v0.3.2
func (k ValidatingwebhookConfiguration) Install() (string, []string)
func (ValidatingwebhookConfiguration) Uninstall ¶ added in v0.3.2
func (k ValidatingwebhookConfiguration) Uninstall() string
Source Files ¶
- clusterrole.go
- clusterrolebinding.go
- codify.go
- configmap.go
- cronjob.go
- customresourcedefinition.go
- daemonset.go
- deployment.go
- ingress.go
- ingressclass.go
- job.go
- namespace.go
- persistentvolume.go
- persistentvolumeclaim.go
- pod.go
- poddisruptionbudget.go
- podsecuritypolicy.go
- role.go
- rolebinding.go
- secret.go
- service.go
- serviceaccount.go
- statefulset.go
- validatingwebhookconfiguration.go
Click to show internal directories.
Click to hide internal directories.