Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImplicitParameters = []Parameter{ { Name: "name", Description: "application name", Type: StringParamType, Optional: false, }, { Name: "tenant", Description: "tenant used to deploy the application", Type: StringParamType, Optional: false, }, { Name: "working_directory", Description: "working directory where application is located", Type: StringParamType, Optional: false, Default: "./", }, { Name: "version_prefix", Description: "version prefix for application", Type: StringParamType, Optional: false, Default: "v", }, }
Functions ¶
func Render ¶
func Render(t *FulfilledTemplate, targetPath string) error
Types ¶
type FulfilledTemplate ¶
type Parameter ¶
type Parameter struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Type ParameterType `yaml:"type"`
Default string `yaml:"default"`
Optional bool `yaml:"optional"`
}
type ParameterType ¶
type ParameterType string
var ( StringParamType ParameterType = "string" IntParamType ParameterType = "int" )
func (ParameterType) ValidateAndMap ¶ added in v0.23.1
func (t ParameterType) ValidateAndMap(value string) (any, error)
type Spec ¶
type Spec struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
SkeletonPath string `yaml:"skeletonPath"`
Parameters []Parameter `yaml:"parameters"`
Config map[string]any `yaml:"config"`
// contains filtered or unexported fields
}
func (*Spec) GetParameter ¶ added in v0.23.1
Click to show internal directories.
Click to hide internal directories.