Documentation ¶
Index ¶
- func ParseDeployment(template DeploymentTemplate) *appsv1.Deployment
- func ParsePersistentVolume(template PersistentVolumeTemplate) *corev1.PersistentVolume
- func ParsePersistentVolumeClaim(template PersistentVolumeClaimTemplate) *corev1.PersistentVolumeClaim
- func ParseService(template ServiceTemplate) *corev1.Service
- type DeploymentContainerTemplate
- type DeploymentTemplate
- type DeploymentVolumeMountTemplate
- type DeploymentVolumeTemplate
- type KeyValue
- type PersistentVolumeClaimTemplate
- type PersistentVolumeTemplate
- type ServicePortTemplate
- type ServiceTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDeployment ¶
func ParseDeployment(template DeploymentTemplate) *appsv1.Deployment
func ParsePersistentVolume ¶
func ParsePersistentVolume(template PersistentVolumeTemplate) *corev1.PersistentVolume
func ParsePersistentVolumeClaim ¶
func ParsePersistentVolumeClaim(template PersistentVolumeClaimTemplate) *corev1.PersistentVolumeClaim
func ParseService ¶
func ParseService(template ServiceTemplate) *corev1.Service
Types ¶
type DeploymentContainerTemplate ¶
type DeploymentContainerTemplate struct { Name string `json: "name"` Image string `json: "image"` Ports []int `json: "ports"` Env []KeyValue `json: "env"` VolumeMount []DeploymentVolumeMountTemplate `json: "volumeMount"` }
type DeploymentTemplate ¶
type DeploymentTemplate struct { Name string `json: "name"` TemplateName string `json: "templateName"` ReplicaCount int `json: "replicaCount"` Volume []DeploymentVolumeTemplate `json: "volume"` Containers []DeploymentContainerTemplate `json: "containers"` }
type ServicePortTemplate ¶
type ServiceTemplate ¶
type ServiceTemplate struct { Name string `json: "name"` Type string `json: "type"` TemplateName string `json: "templateName"` Ports []ServicePortTemplate `json: "ports"` }
Click to show internal directories.
Click to hide internal directories.