Documentation ¶
Index ¶
- func BuildConfigMapDriver(ctx context.Context, configMap ConfigMap) (zeus_topology_config_drivers.ConfigMapDriver, error)
- func BuildContainerDriver(ctx context.Context, name string, container Container) (v1.Container, error)
- func BuildDeploymentDriver(ctx context.Context, containers Containers, dep Deployment) (config_overrides.DeploymentDriver, error)
- func BuildIngressDriver(ctx context.Context, cbName string, containers Containers, ing Ingress, ...) (zeus_topology_config_drivers.IngressDriver, error)
- func BuildServiceDriver(ctx context.Context, containers Containers) (zeus_topology_config_drivers.ServiceDriver, error)
- func BuildStatefulSetDriver(ctx context.Context, containers Containers, sts StatefulSet) (config_overrides.StatefulSetDriver, error)
- func GetConfigMapName(ctx context.Context, name string) string
- func GetConfigMapTemplate(ctx context.Context, name string) *v1.ConfigMap
- func GetCronJobName(ctx context.Context, name string) string
- func GetCronJobTemplate(ctx context.Context, name string) *v1Batch.CronJob
- func GetDeploymentName(ctx context.Context, name string) string
- func GetDeploymentTemplate(ctx context.Context, name string) *v1.Deployment
- func GetIngressHostName(ctx context.Context, name string) string
- func GetIngressName(ctx context.Context, name string) string
- func GetIngressSecretName(ctx context.Context, name string) string
- func GetIngressTemplate(ctx context.Context, name string) *v1.Ingress
- func GetJobName(ctx context.Context, name string) string
- func GetJobTemplate(ctx context.Context, name string) *v1Batch.Job
- func GetLabels(ctx context.Context, name string) map[string]string
- func GetSelector(ctx context.Context, name string) map[string]string
- func GetServiceName(ctx context.Context, name string) string
- func GetServiceTemplate(ctx context.Context, name string) *v1.Service
- func GetStatefulSetName(ctx context.Context, name string) string
- func GetStatefulSetTemplate(ctx context.Context, name string) *v1.StatefulSet
- type ConfigMap
- type Container
- type Containers
- type Deployment
- type DockerImage
- type EnvVar
- type Ingress
- type IngressPath
- type IngressPaths
- type PVCTemplate
- type Port
- type ProbeSettings
- type ResourceRequirements
- type StatefulSet
- type VolumeMount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfigMapDriver ¶
func BuildConfigMapDriver(ctx context.Context, configMap ConfigMap) (zeus_topology_config_drivers.ConfigMapDriver, error)
func BuildContainerDriver ¶
func BuildDeploymentDriver ¶
func BuildDeploymentDriver(ctx context.Context, containers Containers, dep Deployment) (config_overrides.DeploymentDriver, error)
func BuildIngressDriver ¶
func BuildIngressDriver(ctx context.Context, cbName string, containers Containers, ing Ingress, ip IngressPaths) (zeus_topology_config_drivers.IngressDriver, error)
func BuildServiceDriver ¶
func BuildServiceDriver(ctx context.Context, containers Containers) (zeus_topology_config_drivers.ServiceDriver, error)
func BuildStatefulSetDriver ¶
func BuildStatefulSetDriver(ctx context.Context, containers Containers, sts StatefulSet) (config_overrides.StatefulSetDriver, error)
func GetConfigMapTemplate ¶
func GetCronJobTemplate ¶
func GetDeploymentTemplate ¶
func GetDeploymentTemplate(ctx context.Context, name string) *v1.Deployment
func GetStatefulSetTemplate ¶
func GetStatefulSetTemplate(ctx context.Context, name string) *v1.StatefulSet
Types ¶
type Container ¶
type Container struct { IsInitContainer bool `json:"isInitContainer"` ImagePullPolicy string `json:"imagePullPolicy,omitempty"` DockerImage DockerImage `json:"dockerImage"` }
type Containers ¶
type Deployment ¶
type Deployment struct {
ReplicaCount int `json:"replicaCount"`
}
type DockerImage ¶
type DockerImage struct { ImageName string `json:"imageName"` Cmd string `json:"cmd"` Args string `json:"args"` ResourceRequirements ResourceRequirements `json:"resourceRequirements,omitempty"` EnvVars []EnvVar `json:"envVars,omitempty"` Ports []Port `json:"ports,omitempty"` VolumeMounts []VolumeMount `json:"volumeMounts,omitempty"` }
type IngressPath ¶
type IngressPaths ¶
type IngressPaths map[string]IngressPath
type PVCTemplate ¶
type Port ¶
type Port struct { Name string `json:"name"` Number string `json:"number"` Protocol string `json:"protocol"` IngressEnabledPort bool `json:"ingressEnabledPort"` ProbeSettings ProbeSettings `json:"probeSettings,omitempty"` }
type ProbeSettings ¶
type ResourceRequirements ¶
type StatefulSet ¶
type StatefulSet struct { ReplicaCount int `json:"replicaCount"` PVCTemplates []PVCTemplate `json:"pvcTemplates"` }
type VolumeMount ¶
Click to show internal directories.
Click to hide internal directories.