Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSpecRootName = "modules"
View Source
const SpecFilename = "module.yaml"
Variables ¶
This section is empty.
Functions ¶
func DefaultPaths ¶
func DefaultPaths() []string
Types ¶
type Runner ¶
func (*Runner) GetSpecHeader ¶
func (mr *Runner) GetSpecHeader(moduleYamlPath string) (*SpecHeader, error)
func (*Runner) InfoByName ¶
type SpecHeader ¶
type SpecHeader struct { ApiVersion string `json:"apiVersion" yaml:"apiVersion"` // some version Kind string // goTemplate, starlark, etc Metadata struct { Name string // module name } }
func GetSpecHeader ¶
func GetSpecHeader(buf []byte) (*SpecHeader, error)
type SpecUnstructured ¶
type SpecUnstructured struct { SpecHeader `yaml:",inline"` Spec *map[string]interface{} `json:",omitempty" yaml:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.