Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DaemonSet ¶
type DaemonSet struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata map[string]interface{} `json:"metadata"` Spec map[string]interface{} `json:"spec"` }
DaemonSet represents a Kubernetes DaemonSet object
type Deployment ¶
type Deployment struct { Kind string `json:"kind,omitempty"` APIVersion string `json:"apiVersion,omitempty"` Metadata ObjectMeta `json:"metadata,omitempty"` Spec DeploymentSpec `json:"spec,omitempty"` Status DeploymentStatus `json:"status,omitempty"` }
Deployment represents a Kubernetes Deployment object
type DeploymentSpec ¶
type DeploymentSpec struct { Replicas int32 `json:"replicas,omitempty"` Selector LabelSelector `json:"selector,omitempty"` Template PodTemplateSpec `json:"template,omitempty"` Strategy DeploymentStrategy `json:"strategy,omitempty"` }
DeploymentSpec represents the spec of a Deployment
type DeploymentStatus ¶
type DeploymentStatus struct {
Replicas int32 `json:"replicas,omitempty"`
}
DeploymentStatus represents the current status of a deployment
type DeploymentStrategy ¶
type DeploymentStrategy struct {
Type string `json:"type,omitempty"`
}
DeploymentStrategy describes how to replace existing pods with new ones
type LabelSelector ¶
LabelSelector represents a label query over a set of resources
type Namespace ¶
type Namespace struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata map[string]interface{} `json:"metadata"` }
Namespace represents a Kubernetes Namespace object
type ObjectMeta ¶
type OwnerReference ¶
type OwnerReference struct { APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` UID string `json:"uid,omitempty"` }
OwnerReference represents an owner reference to another Kubernetes object
type Pod ¶
type Pod struct { Kind string `json:"kind"` APIVersion string `json:"apiVersion"` Metadata map[string]interface{} `json:"metadata"` Spec map[string]interface{} `json:"spec"` }
Pod represents a Kubernetes Pod object
type PodSpec ¶
type PodSpec struct {
Containers []Container `json:"containers"`
}
PodSpec is a description of a pod
type PodTemplateSpec ¶
type PodTemplateSpec struct { Metadata ObjectMeta `json:"metadata,omitempty"` Spec PodSpec `json:"spec,omitempty"` }
PodTemplateSpec describes the data a pod should have when created from a template
type PolicyRule ¶
type Role ¶
type Role struct { Kind string `json:"kind,omitempty"` APIVersion string `json:"apiVersion,omitempty"` Metadata ObjectMeta `json:"metadata,omitempty"` Rules []PolicyRule `json:"rules,omitempty"` }
Add RBAC structs