Documentation ¶
Index ¶
- func ExtractVariables(vars []string) []jsonnetenv.Var
- func Generate(ctx context.Context, jpaths []string, extVarStrings *[]string, ...) error
- func NewGenerateCmd(jpaths *[]string, isSnapshot *bool, extVarStrings *[]string, ...) *cobra.Command
- func NewTemplateCmd() *cobra.Command
- func NewVMEvaluate(ctx context.Context, jpaths []string, isSnapshot bool, path string, ...) (string, error)
- func NewVMEvaluateSnippet(ctx context.Context, jpaths []string, isSnapshot bool, snippet string, ...) (string, error)
- type SourceDependencies
- type SourceMetadata
- type Template
- type TemplateMetadata
- type TemplateParameter
- type TemplateSource
- type TemplateSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractVariables ¶
func ExtractVariables(vars []string) []jsonnetenv.Var
func NewGenerateCmd ¶
func NewTemplateCmd ¶
func NewVMEvaluate ¶
func NewVMEvaluate(ctx context.Context, jpaths []string, isSnapshot bool, path string, extVars []jsonnetenv.Var, extCodes []jsonnetenv.Var, tlaVars []jsonnetenv.Var) (string, error)
func NewVMEvaluateSnippet ¶
func NewVMEvaluateSnippet(ctx context.Context, jpaths []string, isSnapshot bool, snippet string, extVars []jsonnetenv.Var, extCodes []jsonnetenv.Var, tlaVars []jsonnetenv.Var) (string, error)
Types ¶
type SourceDependencies ¶
type SourceDependencies struct{}
type SourceMetadata ¶
type SourceMetadata struct { Type string `json:"type"` Target string `json:"target"` Conditions []bool `json:"conditions"` Dependencies []SourceDependencies `json:"dependencies"` }
type Template ¶
type Template struct { Metadata TemplateMetadata `json:"metadata"` Spec TemplateSpec `json:"spec"` }
type TemplateMetadata ¶
type TemplateMetadata struct { Name string `json:"name"` Maintainer string `json:"maintainer"` Parameters []TemplateParameter `json:"parameters"` }
type TemplateParameter ¶
type TemplateParameter struct { Name string `json:"name"` Type string `json:"type"` Default interface{} `json:"default,omitempty"` Required bool `json:"required"` Children []TemplateParameter `json:"children,omitempty"` }
type TemplateSource ¶
type TemplateSource struct { Metadata SourceMetadata `json:"metadata"` Spec objx.Map `json:"spec"` }
type TemplateSpec ¶
type TemplateSpec struct {
Sources []TemplateSource `json:"sources"`
}
Click to show internal directories.
Click to hide internal directories.