Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPort = 5000 SlugAnnotation = "teresa.io/slug" DefaultExternalPort = 80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v0.16.0
type Container struct { Name string Image string ContainerLimits *ContainerLimits Env map[string]string VolumeMounts []*VolumeMounts Command []string Args []string Ports []Port Secrets []string }
type ContainerLimits ¶
type CronArgs ¶ added in v0.16.0
type CronArgs struct {
Schedule string `yaml:"schedule",omitempty"`
}
type CronJob ¶ added in v0.16.0
type Deploy ¶
type Deploy struct { Pod TeresaYaml RevisionHistoryLimit int Description string SlugURL string }
type HealthCheck ¶
type HealthCheck struct { Liveness *HealthCheckProbe Readiness *HealthCheckProbe }
type HealthCheckProbe ¶
type Pod ¶
type Pod struct { Name string Namespace string Containers []*Container Volumes []*Volume InitContainers []*Container Labels Labels }
func NewBuilder ¶
type PreStop ¶
type PreStop struct {
DrainTimeoutSeconds int `yaml:"drainTimeoutSeconds,omitempty"`
}
type RollingUpdate ¶
type RollingUpdate struct { MaxSurge string `yaml:"maxSurge,omitempty"` }
type Service ¶ added in v0.20.0
type Service struct { Name string Namespace string Type string Labels map[string]string Ports []ServicePort }
func NewDefaultService ¶ added in v0.20.0
func NewService ¶ added in v0.20.0
func NewService(namespace, name, sType string, ports []ServicePort, labels map[string]string) *Service
type ServicePort ¶ added in v0.20.0
func NewDefaultServicePort ¶ added in v0.20.0
func NewDefaultServicePort(name string) *ServicePort
func NewServicePort ¶ added in v0.20.0
func NewServicePort(name string, port, targetPort int) *ServicePort
type TeresaYaml ¶
type TeresaYaml struct { HealthCheck *HealthCheck `yaml:"healthCheck,omitempty"` RollingUpdate *RollingUpdate `yaml:"rollingUpdate,omitempty"` Lifecycle *Lifecycle `yaml:"lifecycle,omitempty"` Cron *CronArgs `yaml:"cron,omitempty"` }
type VolumeMounts ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.