Documentation
¶
Overview ¶
Package config defines the on-disk YAML schemas for a goforge workspace and helpers to read and write them.
Index ¶
Constants ¶
View Source
const ( WorkspaceFile = "workspace.yaml" ComponentFile = "component.yaml" BaseFile = "base.yaml" ProjectFile = "project.yaml" )
File names used throughout a workspace.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
type Base struct {
Interface string `yaml:"interface,omitempty"`
WorkerType *model.WorkerType `yaml:"worker_type,omitempty"`
}
Base mirrors base.yaml. A base may optionally declare a worker type.
type Component ¶
type Component struct {
Interface string `yaml:"interface,omitempty"`
WorkerType model.WorkerType `yaml:"worker_type"`
}
Component mirrors component.yaml.
func LoadComponent ¶
LoadComponent reads component.yaml.
type Project ¶
type Project struct {
Bricks []string `yaml:"bricks"`
}
Project mirrors project.yaml: the bricks the project is declared to include.
type TagPatterns ¶
TagPatterns configures stable/release point recognition.
type Workspace ¶
type Workspace struct {
TopNamespace string `yaml:"top-namespace"`
VCS VCS `yaml:"vcs"`
TagPatterns TagPatterns `yaml:"tag-patterns"`
}
Workspace mirrors workspace.yaml. Projects and bricks are discovered from the filesystem, so they are not listed here.
func DefaultWorkspace ¶
DefaultWorkspace returns workspace defaults for a given top namespace.
func LoadWorkspace ¶
LoadWorkspace reads workspace.yaml.
Click to show internal directories.
Click to hide internal directories.