Versions in this module Expand all Collapse all v0 v0.13.1 Nov 21, 2018 v0.13.0 Sep 20, 2018 Changes in this version + const TypeJsonnet + const TypeYAML + var DefaultManager = &defaultManager + func Create(ksApp app.App, moduleName, name, text string, params param.Params, ...) (string, error) + func Delete(a app.App, name string) error + func FromName(name string) (string, string) + func GenParamsContent() []byte + func MakePaths(a app.App, env string) ([]string, error) + func ModuleFromPath(a app.App, path string) string + func Path(a app.App, name string) (string, error) + func ResolvePath(ksApp app.App, path string) (Module, Component, error) + type Component interface + DeleteParam func(path []string) error + Name func(wantsNamedSpaced bool) string + Params func(envName string) ([]ModuleParameter, error) + Remove func() error + SetParam func(path []string, value interface{}) error + Summarize func() (Summary, error) + ToNode func(envName string) (string, ast.Node, error) + Type func() string + func ExtractComponent(a app.App, path string) (Component, error) + func LocateComponent(ksApp app.App, module, name string) (Component, error) + type FilesystemModule struct + func NewModule(ksApp app.App, path string) *FilesystemModule + func (m *FilesystemModule) Components() ([]Component, error) + func (m *FilesystemModule) DeleteParam(path []string) error + func (m *FilesystemModule) Dir() string + func (m *FilesystemModule) Name() string + func (m *FilesystemModule) Params(envName string) ([]ModuleParameter, error) + func (m *FilesystemModule) ParamsPath() string + func (m *FilesystemModule) ParamsSource() (io.ReadCloser, error) + func (m *FilesystemModule) Render(envName string, componentNames ...string) (*astext.Object, map[string]string, error) + func (m *FilesystemModule) ResolvedParams(envName string) (string, error) + func (m *FilesystemModule) SetParam(path []string, value interface{}) error + type Jsonnet struct + func NewJsonnet(a app.App, module, source, paramsPath string) *Jsonnet + func (j *Jsonnet) DeleteParam(path []string) error + func (j *Jsonnet) Name(wantsNameSpaced bool) string + func (j *Jsonnet) Params(envName string) ([]ModuleParameter, error) + func (j *Jsonnet) Remove() error + func (j *Jsonnet) SetParam(path []string, value interface{}) error + func (j *Jsonnet) Summarize() (Summary, error) + func (j *Jsonnet) ToNode(envName string) (string, ast.Node, error) + func (j *Jsonnet) Type() string + type Manager interface + Component func(ksApp app.App, module, componentName string) (Component, error) + Components func(ksApp app.App, module string) ([]Component, error) + CreateModule func(ksApp app.App, name string) error + Module func(ksApp app.App, moduleName string) (Module, error) + Modules func(ksApp app.App, envName string) ([]Module, error) + type Module interface + Components func() ([]Component, error) + DeleteParam func(path []string) error + Dir func() string + Name func() string + Params func(envName string) ([]ModuleParameter, error) + ParamsPath func() string + ParamsSource func() (io.ReadCloser, error) + Render func(envName string, componentNames ...string) (*astext.Object, map[string]string, error) + ResolvedParams func(envName string) (string, error) + SetParam func(path []string, value interface{}) error + func GetModule(a app.App, moduleName string) (Module, error) + func Modules(a app.App) ([]Module, error) + func ModulesFromEnv(a app.App, env string) ([]Module, error) + type ModuleParameter struct + Component string + Key string + Value string + func (mp *ModuleParameter) IsSameType(other ModuleParameter) bool + type ParamOptions struct + Index int + type Summary struct + APIVersion string + ComponentName string + Kind string + Name string + Type string + type YAML struct + func NewYAML(a app.App, module, source, paramsPath string) *YAML + func (y *YAML) DeleteParam(path []string) error + func (y *YAML) Name(wantsNameSpaced bool) string + func (y *YAML) Params(envName string) ([]ModuleParameter, error) + func (y *YAML) Remove() error + func (y *YAML) SetParam(path []string, value interface{}) error + func (y *YAML) Summarize() (Summary, error) + func (y *YAML) ToNode(envName string) (string, ast.Node, error) + func (y *YAML) Type() string