template

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 ParseService

func ParseService(template ServiceTemplate) *corev1.Service

Types

type DeploymentContainerTemplate

type DeploymentContainerTemplate struct {
	Name        string
	Image       string
	Ports       []int
	Env         []KeyValue
	VolumeMount []DeploymentVolumeMountTemplate
}

type DeploymentTemplate

type DeploymentTemplate struct {
	Name         string
	TemplateName string
	ReplicaCount int
	Volume       []DeploymentVolumeTemplate
	Containers   []DeploymentContainerTemplate
}

type DeploymentVolumeMountTemplate

type DeploymentVolumeMountTemplate struct {
	Name      string
	MountPath string
}

type DeploymentVolumeTemplate

type DeploymentVolumeTemplate struct {
	Name      string
	ClaimName string
}

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type PersistentVolumeClaimTemplate

type PersistentVolumeClaimTemplate struct {
	Name     string
	Capacity string
}

type PersistentVolumeTemplate

type PersistentVolumeTemplate struct {
	Name     string
	Capacity string
	HostPath string
}

type ServicePortTemplate

type ServicePortTemplate struct {
	Name          string
	TargetPort    int
	NodePort      int
	ContainerPort int
}

type ServiceTemplate

type ServiceTemplate struct {
	Name         string
	Type         string
	TemplateName string
	Ports        []ServicePortTemplate
}

Jump to

Keyboard shortcuts

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