Discover Packages
github.com/scmmishra/slick-deploy
internal
config
package
Version:
v0.0.8
Opens a new window with list of versions in this module.
Published: Mar 7, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type App struct {
Name string `yaml:"name"`
ImageName string `yaml:"image"`
Registry RegistryConfig `yaml:"registry"`
ContainerPort int `yaml:"container_port"`
Network string `yaml:"network"`
ENV []string `yaml:"env"`
PortRange PortRange `yaml:"port_range"`
}
type CaddyConfig struct {
AdminAPI string `yaml:"admin_api"`
Global GlobalOptions `yaml:"global"`
Rules []Rule `yaml:"rules"`
}
type DeploymentConfig struct {
App App `yaml:"app"`
Caddy CaddyConfig `yaml:"caddy"`
HealthCheck HealthCheck `yaml:"health_check"`
}
type Handle ¶
added in
v0.0.6
type Handle struct {
Path string `yaml:"path"`
Directives []string `yaml:"directives"`
}
type HealthCheck struct {
Endpoint string `yaml:"endpoint"`
TimeoutSeconds int `yaml:"timeout_seconds"`
IntervalSeconds int `yaml:"interval_seconds"`
MaxRetries int `yaml:"max_retries"`
}
type OnDemandTlsConfig struct {
Ask string `yaml:"ask"`
Interval string `yaml:"interval"`
Burst string `yaml:"burst"`
}
type PortRange struct {
Start int `yaml:"start"`
End int `yaml:"end"`
}
type RegistryConfig struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
}
type ReverseProxy struct {
Path string `yaml:"path"`
To string `yaml:"to"`
}
type Rule struct {
Match string `yaml:"match"`
Tls string `yaml:"tls"`
ReverseProxy []ReverseProxy `yaml:"reverse_proxy"`
Handle []Handle `yaml:"handle"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.