Documentation ¶
Index ¶
- type App
- type AppDeployment
- type ApplicationChart
- type CnameList
- type DeploymentExtra
- type DockerRegistry
- type Env
- type IngressController
- type KubernetesConfigurator
- func (conf KubernetesConfigurator) ContainerPortsForProcess(process string, defaultPorts []string, defaultPort int) ([]apiv1.ContainerPort, error)
- func (conf KubernetesConfigurator) LeanContainerCmdsWithExtra(process string, workingDirectory string, extraCmds []string) []string
- func (conf KubernetesConfigurator) Lifecycle() *apiv1.Lifecycle
- func (conf KubernetesConfigurator) Probes(port int32) (Probes, error)
- func (conf KubernetesConfigurator) ProcessPortConfigs(process string, defaultPorts []string) ([]ShipaYamlProcessPortConfig, error)
- func (conf KubernetesConfigurator) ServicePortsForProcess(process string, defaultPorts []string, defaultPort int) ([]apiv1.ServicePort, error)
- type Label
- type PodExtra
- type Probes
- type Process
- type Procfile
- type RoutingSettings
- type ShipaYamlData
- type ShipaYamlHealthcheck
- type ShipaYamlHooks
- type ShipaYamlKubernetesConfig
- type ShipaYamlProcessConfig
- type ShipaYamlProcessPortConfig
- type ShipaYamlRestartHooks
- type Traefik
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Name string `json:"name"` Deployments []AppDeployment `json:"deployments"` Env []Env `json:"env"` Cnames CnameList `json:"cnames"` }
type AppDeployment ¶
type AppDeployment struct { Image string `json:"image"` Version string `json:"version"` Processes []Process `json:"processes"` Labels []Label `json:"labels"` RoutingSettings RoutingSettings `json:"routingSettings"` DeploymentExtra DeploymentExtra `json:"extra"` }
type ApplicationChart ¶
type DeploymentExtra ¶
type DockerRegistry ¶
type IngressController ¶
type KubernetesConfigurator ¶
type KubernetesConfigurator struct {
// contains filtered or unexported fields
}
func NewKubernetesConfigurator ¶
func NewKubernetesConfigurator(data ShipaYamlData, procfile Procfile) KubernetesConfigurator
func (KubernetesConfigurator) ContainerPortsForProcess ¶
func (conf KubernetesConfigurator) ContainerPortsForProcess(process string, defaultPorts []string, defaultPort int) ([]apiv1.ContainerPort, error)
func (KubernetesConfigurator) LeanContainerCmdsWithExtra ¶
func (conf KubernetesConfigurator) LeanContainerCmdsWithExtra(process string, workingDirectory string, extraCmds []string) []string
func (KubernetesConfigurator) Lifecycle ¶
func (conf KubernetesConfigurator) Lifecycle() *apiv1.Lifecycle
func (KubernetesConfigurator) Probes ¶
func (conf KubernetesConfigurator) Probes(port int32) (Probes, error)
func (KubernetesConfigurator) ProcessPortConfigs ¶
func (conf KubernetesConfigurator) ProcessPortConfigs(process string, defaultPorts []string) ([]ShipaYamlProcessPortConfig, error)
func (KubernetesConfigurator) ServicePortsForProcess ¶
func (conf KubernetesConfigurator) ServicePortsForProcess(process string, defaultPorts []string, defaultPort int) ([]apiv1.ServicePort, error)
type PodExtra ¶
type PodExtra struct { SecurityContext *v1.SecurityContext `json:"securityContext,omitempty"` ResourceRequirements *v1.ResourceRequirements `json:"resourceRequirements,omitempty"` NodeSelectorTerms []v1.NodeSelectorTerm `json:"nodeSelectorTerms,omitempty"` VolumeMounts []v1.VolumeMount `json:"volumeMounts,omitempty"` ReadinessProbe *v1.Probe `json:"readinessProbe,omitempty"` LivenessProbe *v1.Probe `json:"livenessProbe,omitempty"` Lifecycle *v1.Lifecycle `json:"lifecycle,omitempty"` }
type Process ¶
type Process struct { Name string `json:"name"` Cmd []string `json:"cmd"` Units int `json:"units"` Routable bool `json:"routable"` ContainerPorts []v1.ContainerPort `json:"containerPorts"` ServicePorts []v1.ServicePort `json:"servicePorts"` PublicServicePort int32 `json:"publicServicePort,omitempty"` Env []Env `json:"env"` PodExtra PodExtra `json:"extra"` }
func (Process) ContainerPortByName ¶
func (Process) GetMainPortName ¶
func (Process) PortEnvVariables ¶
func (Process) ServicePortByName ¶
type Procfile ¶
func (*Procfile) IsRoutable ¶
type RoutingSettings ¶
type RoutingSettings struct {
Weight float32 `json:"weight"`
}
type ShipaYamlData ¶
type ShipaYamlData struct { Hooks *ShipaYamlHooks `json:"hooks"` Healthcheck *ShipaYamlHealthcheck `json:"healthcheck"` Kubernetes *ShipaYamlKubernetesConfig `json:"kubernetes"` }
type ShipaYamlHealthcheck ¶
type ShipaYamlHealthcheck struct { Path string `json:"path"` Method string `json:"method"` Status int `json:"status"` Scheme string `json:"scheme"` Headers map[string]string `json:"headers" bson:",omitempty"` Match string `json:"match"` RouterBody string `json:"router_body"` UseInRouter bool `json:"use_in_router"` ForceRestart bool `json:"force_restart"` AllowedFailures int `json:"allowed_failures"` IntervalSeconds int `json:"interval_seconds"` TimeoutSeconds int `json:"timeout_seconds"` }
type ShipaYamlHooks ¶
type ShipaYamlHooks struct { Restart ShipaYamlRestartHooks `json:"restart"` Build []string `json:"build"` }
type ShipaYamlKubernetesConfig ¶
type ShipaYamlKubernetesConfig struct {
Processes map[string]ShipaYamlProcessConfig `json:"processes,omitempty"`
}
type ShipaYamlProcessConfig ¶
type ShipaYamlProcessConfig struct {
Ports []ShipaYamlProcessPortConfig `json:"ports"`
}
type ShipaYamlRestartHooks ¶
type Values ¶
type Values struct { App *App `json:"app"` DockerRegistry *DockerRegistry `json:"dockerRegistry"` IngressController *IngressController `json:"ingressController"` }
Click to show internal directories.
Click to hide internal directories.