Documentation ¶
Index ¶
- func Create(fs afero.Fs, root, name, text string, params param.Params, ...) (string, error)
- func GenParamsContent() []byte
- func MakePaths(fs afero.Fs, ksApp app.App, root, env string) ([]string, error)
- func MakePathsByNamespace(fs afero.Fs, ksApp app.App, root, env string) (map[Namespace][]string, error)
- func Path(fs afero.Fs, root, name string) (string, error)
- type Namespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(fs afero.Fs, root, name, text string, params param.Params, templateType prototype.TemplateType) (string, error)
Create creates a component.
func GenParamsContent ¶
func GenParamsContent() []byte
GenParamsContent is the default content for params.libsonnet.
Types ¶
type Namespace ¶
type Namespace struct { // Path is the path of the component namespace. Path string // contains filtered or unexported fields }
Namespace is a component namespace.
func ExtractNamespacedComponent ¶
ExtractNamespacedComponent extracts a namespace and a component from a path.
func Namespaces ¶
Namespaces returns all component namespaces
func NewNamespace ¶
NewNamespace creates an an instance of Namespace.
func (*Namespace) ComponentPaths ¶
ComponentPaths are the absolute paths to all the components in a namespace.
func (*Namespace) Components ¶
Components returns the components in a namespace.
func (*Namespace) ParamsPath ¶
ParamsPath generates the path to params.libsonnet for a namespace.
Click to show internal directories.
Click to hide internal directories.