Documentation ¶
Index ¶
- func GetAnnotations(resource Resource) map[string]string
- func GetLabels(resource Resource) map[string]string
- func GetObjectMeta(resource Resource) metav1.Object
- func GetPodObjectMeta(resource Resource) metav1.Object
- func IsNamespaceV1(resource Resource) bool
- func IsPodV1(resource Resource) bool
- func NewFalse() *bool
- func NewTrue() *bool
- type CapabilitiesV1
- type CapabilityV1
- type ContainerV1
- type CronJobSpecV1Beta1
- type CronJobV1Beta1
- type DaemonSetSpecV1
- type DaemonSetV1
- type DeploymentSpecV1
- type DeploymentV1
- type JobSpecV1
- type JobTemplateSpecV1Beta1
- type JobV1
- type ListOptionsV1
- type NamespaceSpecV1
- type NamespaceV1
- type NetworkPolicySpecV1
- type NetworkPolicyV1
- type ObjectMetaV1
- type PodSpecV1
- type PodTemplateSpecV1
- type PodTemplateV1
- type PodV1
- type PolicyTypeV1
- type ReplicationControllerSpecV1
- type ReplicationControllerV1
- type Resource
- type SecurityContextV1
- type ServiceAccountV1
- type ServiceV1
- type ServiceV1Spec
- type StatefulSetSpecV1
- type StatefulSetV1
- type TypeMetaV1
- type UnsupportedType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnnotations ¶
GetAnnotations returns the annotations at the pod level. If the resource does not have pods, then it returns the least-nested annotations
func GetLabels ¶
GetLabels returns the labels at the pod level. If the resource does not have pods, then it returns the least-nested labels
func GetObjectMeta ¶
GetObjectMeta returns the highest-level ObjectMeta
func GetPodObjectMeta ¶
GetPodObjectMeta returns the ObjectMeta at the pod level. If the resource does not have pods, then it returns the highest-level ObjectMeta
func IsNamespaceV1 ¶
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 ¶
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.
type DaemonSetSpecV1 ¶
type DaemonSetSpecV1 = appsv1.DaemonSetSpec
DaemonSetSpecV1 is a type alias for the v1 version of the k8s apps API.
type DaemonSetV1 ¶
DaemonSetV1 is a type alias for the v1 version of the k8s API.
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 JobTemplateSpecV1Beta1 ¶
type JobTemplateSpecV1Beta1 = batchv1beta1.JobTemplateSpec
JobTemplateSpecV1Beta1 is a type alias for the v1beta1 version of the k8s batch API.
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 ¶
NamespaceV1 is a type alias for the v1 version of the k8s API.
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 ¶
PodSpecV1 is a type alias for the v1 version of the k8s API.
func GetPodSpec ¶
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 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 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 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 ¶
TypeMetaV1 is a type alias for the v1 version of the k8s meta API.
type UnsupportedType ¶
UnsupportedType is a type alias for v1 version of the k8s apps API, this is meant for testing