Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultNames = []string{
"service.yml", "service.json", ".service.yml", ".service.json",
"svc.yml", "svc.json", ".svc.yml", ".svc.json",
}
DefaultNames is a list of default service.yml filenames
Functions ¶
Types ¶
type Config ¶
type Config struct { Desc string `yaml:"desc"` Env string `yaml:"env"` Flag string `yaml:"flag"` Type string `yaml:"type"` }
Config ...
type Service ¶
type Service struct { Name string `yaml:"name"` Source string `yaml:"source"` Version string `yaml:"version"` Targets map[string]string `yaml:"targets"` Tags []string `yaml:"tags"` Config []Config `yaml:"config"` Deps []Dep `yaml:"deps"` }
Service ...
func (Service) Resolve ¶
func (s Service) Resolve() (res *ServiceWithResolvedDeps, err error)
Resolve resolves service dependencies
type ServiceWithResolvedDeps ¶
type ServiceWithResolvedDeps struct { Service Deps []ServiceWithResolvedDeps `yaml:"-"` }
ServiceWithResolvedDeps ...
Click to show internal directories.
Click to hide internal directories.