Documentation ¶
Index ¶
- func ValidatePaths(manifestParser Parser) error
- type AppNotInManifestError
- type Application
- type ApplicationModel
- type Docker
- type InterpolationError
- type InvalidManifestApplicationPathError
- type InvalidYAMLError
- type ManifestParser
- type Parser
- func (parser Parser) AppNames() []string
- func (parser *Parser) Apps(appName string) ([]Application, error)
- func (parser Parser) ContainsMultipleApps() bool
- func (parser Parser) ContainsPrivateDockerImages() bool
- func (parser Parser) FullRawManifest() []byte
- func (parser *Parser) GetPathToManifest() string
- func (parser *Parser) InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) error
- func (parser *Parser) Parse(manifestPath string) error
- func (parser Parser) RawAppManifest(appName string) ([]byte, error)
- func (parser Parser) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePaths ¶
Types ¶
type AppNotInManifestError ¶
type AppNotInManifestError struct {
Name string
}
func (AppNotInManifestError) Error ¶
func (e AppNotInManifestError) Error() string
type Application ¶
type Application struct { ApplicationModel FullUnmarshalledApplication map[string]interface{} }
func (Application) MarshalYAML ¶
func (application Application) MarshalYAML() (interface{}, error)
func (*Application) UnmarshalYAML ¶
func (application *Application) UnmarshalYAML(unmarshal func(v interface{}) error) error
type ApplicationModel ¶
type ApplicationModel struct { Name string `yaml:"name"` Docker *Docker `yaml:"docker"` Path string `yaml:"path"` }
ApplicationModel can be accessed through the top level Application struct To add a field for the CLI to extract from the manifest, just add it to this struct.
type InterpolationError ¶
type InterpolationError struct {
Err error
}
func (InterpolationError) Error ¶
func (e InterpolationError) Error() string
type InvalidManifestApplicationPathError ¶
type InvalidManifestApplicationPathError struct {
Path string
}
func (InvalidManifestApplicationPathError) Error ¶
func (InvalidManifestApplicationPathError) Error() string
type InvalidYAMLError ¶
type InvalidYAMLError struct {
Err error
}
func (InvalidYAMLError) Error ¶
func (e InvalidYAMLError) Error() string
type ManifestParser ¶
type ManifestParser interface { Apps(appName string) ([]Application, error) Validate() error ContainsMultipleApps() bool InterpolateAndParse(pathToManifest string, pathsToVarsFiles []string, vars []template.VarKV) error FullRawManifest() []byte AppNames() []string RawAppManifest(appName string) ([]byte, error) GetPathToManifest() string }
type Parser ¶
type Parser struct { PathToManifest string Applications []Application // contains filtered or unexported fields }
func (Parser) ContainsMultipleApps ¶
func (Parser) ContainsPrivateDockerImages ¶
func (Parser) FullRawManifest ¶
func (*Parser) GetPathToManifest ¶
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.