Documentation
¶
Overview ¶
Package config contains logic related to Devenv.yaml config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadServiceName ¶ added in v2.19.0
ReadServiceName reads service name from service.yaml
Types ¶
type Devenv ¶
type Devenv struct {
// Service denotes if this repository is a service.
Service bool `yaml:"service"`
Dependencies struct {
// Optional is a list of OPTIONAL services e.g. the service can run / gracefully function without it running
Optional []string `yaml:"optional"`
// Required is a list of services that this service cannot function without
Required []string `yaml:"required"`
} `yaml:"dependencies"`
}
Devenv is a struct that contains the devenv configuration which is usually called "devenv.yaml". This also works for the legacy service.yaml format.
func FromGitHub ¶
func FromGitHub(ctx context.Context, conf *box.Config, serviceName string, gh *github.Client, configFileName string, ) (*Devenv, error)
FromGitHub reads and parses DevenvConfig from GitHub
func (*Devenv) GetAllDependencies ¶
getDependencies returns all dependencies
Click to show internal directories.
Click to hide internal directories.