Documentation
¶
Index ¶
- func GetOverlayExtendsPath(o *overlay.Overlay) (string, error)
- func LoadEitherSpecification(path string, o *overlay.Overlay) (*yaml.Node, string, error)
- func LoadExtendsSpecification(o *overlay.Overlay) (*yaml.Node, error)
- func LoadOverlay(path string) (*overlay.Overlay, error)
- func LoadSpecification(path string) (*yaml.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOverlayExtendsPath ¶
GetOverlayExtendsPath returns the path to file if the extends URL is a file URL. Otherwise, returns an empty string and an error. The error may occur if no extends URL is present or if the URL is not a file URL or if the URL is malformed.
func LoadEitherSpecification ¶
LoadEitherSpecification is a convenience function that will load a specification from the given file path if it is non-empty. Otherwise, it will attempt to load the path from the overlay's extends URL. Also returns the name of the file loaded.
func LoadExtendsSpecification ¶
LoadExtendsSpecification will load and parse a YAML or JSON file as specified in the extends parameter of the overlay. Currently, this only supports file URLs.
func LoadOverlay ¶
LoadOverlay is a tool for loading and parsing an overlay file from the file system.
func LoadSpecification ¶
LoadSpecification will load and parse a YAML or JSON file from the given path.
Types ¶
This section is empty.