Documentation
¶
Index ¶
Constants ¶
View Source
const ( StructureService = "service" StructureDomainService = "domain-service" )
View Source
const FileName = "platformctl.yaml"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Layout LayoutConfig `yaml:"layout"`
Validation ValidationConfig `yaml:"validation"`
Naming NamingConfig `yaml:"naming"`
Contexts ContextsConfig `yaml:"contexts"`
}
type ContextsConfig ¶
type LayoutConfig ¶
type LayoutConfig struct {
MirroredGroups []MirroredGroup `yaml:"mirroredGroups"`
OutputRoot string `yaml:"outputRoot"`
RequireMirroredPaths bool `yaml:"requireMirroredPaths"`
}
func (LayoutConfig) MirroredGroupByName ¶ added in v1.3.0
func (layout LayoutConfig) MirroredGroupByName(name string) (MirroredGroup, error)
func (LayoutConfig) MirroredGroupForRelPath ¶ added in v1.3.0
func (layout LayoutConfig) MirroredGroupForRelPath(relPath string) (MirroredGroup, error)
func (LayoutConfig) ResolvedMirroredGroups ¶ added in v1.3.0
func (layout LayoutConfig) ResolvedMirroredGroups() ([]MirroredGroup, error)
type MirroredGroup ¶ added in v1.3.0
type MirroredGroup struct {
Name string `yaml:"name"`
ChartRoot string `yaml:"chartRoot"`
ValuesRoot string `yaml:"valuesRoot"`
Structure string `yaml:"structure"`
}
func (MirroredGroup) ChartDir ¶ added in v1.3.0
func (group MirroredGroup) ChartDir(repoRoot string, relPath string) (string, error)
func (MirroredGroup) PathRoot ¶ added in v1.3.0
func (group MirroredGroup) PathRoot() string
func (MirroredGroup) RelativeSuffix ¶ added in v1.3.0
func (group MirroredGroup) RelativeSuffix(relPath string) (string, error)
type NamingConfig ¶
type NamingConfig struct {
WrapperPrefix string `yaml:"wrapperPrefix"`
}
Click to show internal directories.
Click to hide internal directories.