Documentation ¶
Index ¶
- type Application
- type InterpolationError
- type InvalidYAMLError
- type Parser
- func (parser Parser) AppNames() []string
- func (parser Parser) FullRawManifest() []byte
- func (parser *Parser) InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) error
- func (parser *Parser) Parse(manifestPath string) error
- func (parser Parser) RawManifest(_ string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Name string `yaml:"name"`
}
type InterpolationError ¶
type InterpolationError struct {
Err error
}
func (InterpolationError) Error ¶
func (e InterpolationError) Error() string
type InvalidYAMLError ¶
type InvalidYAMLError struct {
Err error
}
func (InvalidYAMLError) Error ¶
func (e InvalidYAMLError) Error() string
type Parser ¶
type Parser struct { PathToManifest string Applications []Application // contains filtered or unexported fields }
func (Parser) FullRawManifest ¶
func (*Parser) InterpolateAndParse ¶
func (parser *Parser) InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) error
InterpolateAndParse reads the manifest at the provided paths, interpolates variables if a vars file is provided, and sets the current manifest to the resulting manifest.
Click to show internal directories.
Click to hide internal directories.