Documentation
¶
Index ¶
- Constants
- Variables
- func ServiceConfigUnit(path string) string
- func ServiceDirByName(name string) (string, error)
- func ServiceDirFromUnit(u string) string
- func ServiceFileByName(name string) (string, error)
- func ServiceNameFromFile(service_file string) (string, error)
- func ServiceRealpath(service_dir string) (string, error)
- func ServiceUnit(path string) string
- func ServiceUnitByName(name string) (string, error)
- type CaddyConfig
- type CaddyMapping
- type Hook
- type PartialService
- type Service
Constants ¶
View Source
const ConfigName = "conductor-service.json"
Variables ¶
View Source
var ServiceDirs = dirs.MultiJoin("services", append([]string{dirs.SelfRuntimeDir}, append(dirs.SelfConfigDirs, dirs.SelfDataDirs...)...)...)
Functions ¶
func ServiceConfigUnit ¶
func ServiceDirByName ¶
func ServiceDirFromUnit ¶
func ServiceFileByName ¶
func ServiceNameFromFile ¶
func ServiceRealpath ¶
func ServiceUnit ¶
func ServiceUnitByName ¶
Types ¶
type CaddyConfig ¶
type CaddyConfig struct {
ApiEndpoint string `json:"api_endpoint"`
Mapping []CaddyMapping `json:"mapping"`
}
type CaddyMapping ¶
type CaddyMapping struct {
Port int `json:"port"`
}
type PartialService ¶
type PartialService struct {
Inherit []string `json:"inherit"` // path to the inherited file
}
type Service ¶
type Service struct {
BasePath string
FileName string
Name string
Id string
AppName string `json:"app_name",omitempty` // my-app
InstanceName string `json:"instance_name",omitempty` // staging
Config map[string]string `json:"config",omitempty` // key-value pairs for config and templating, CHANNEL=staging
PodTemplate string `json:"pod_template",omitempty` // Template file for pod
ConfigMapTemplate string `json:"config_map_template",omitempty` // ConfigMap template file
ProxyConfigTemplate string `json:"proxy_config_template",omitempty` // Template file for the load-balancer config
Hooks []*Hook `json:"hooks",omitempty`
CaddyLoadBalancer CaddyConfig `json:"caddy_load_balancer"`
DisplayServiceConfig []string `json:"display_service_config"`
DisplayDeploymentConfig []string `json:"display_deployment_config"`
}
func LoadServiceByName ¶
func LoadServiceDir ¶
func LoadServiceFile ¶
func (*Service) FillDefaults ¶
Click to show internal directories.
Click to hide internal directories.