Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCancelInput is a signal to break the interactive inputing process. ErrCancelInput = errors.New("cancel interactive inputing process") )
View Source
var ( // ErrNotExist means no input schema for interactive prompt. ErrNotExist = errors.New("no schema found in current satck") )
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter struct {
Title string `yaml:"title"`
Description string `yaml:"description"`
Type string `yaml:"type"`
Key string `yaml:"key"`
Value string `yaml:"value"`
Default string `yaml:"default"`
Required bool `yaml:"required"`
}
Parameter is a field in the schema.
type Schema ¶
type Schema struct {
// Dir is the path to stack! Not schema directly.
Dir string
Parameters []Parameter `yaml:"parameters"`
}
Schema represents a input schema of a stack.
func (*Schema) AutomaticEnv ¶ added in v0.2.0
AutomaticEnv sets envs automatically.
func (*Schema) LoadSchema ¶ added in v0.3.6
LoadSchema reads the schema
Click to show internal directories.
Click to hide internal directories.