Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExtPrefix = "extensions" CustomPrefix = "_custom" GenPrefix = "_gen" GenExt = ".libsonnet" IndexFile = "gen" + GenExt MainFile = "main" + GenExt )
Common set of directory structure / file extensions
View Source
const (
// LocalAPIVersion references a "private: json field containing the APIVersion
LocalAPIVersion = "_apiVersion"
)
Variables ¶
This section is empty.
Functions ¶
func Kind ¶
func Kind(name string, k model.Kind) j.ObjectType
Kind renders the given Kind, including all modifiers and perhaps a constructor
func Main ¶
Main creates main.libsonnet: - import the generated index (gen.libsonnet) - add all hand-written patches on top
Types ¶
type Objects ¶
type Objects map[string]j.ObjectType
Objects is a collection of Jsonnet objects, indexed by their expected path on the filesystem
func Group ¶
Group renders the entire given group, returning e.g.: - main.libsonnet, the group index - v1/main.libsonnet, the version v1 index - v1/deployment.libsonnet, Deployment - v1/daemonset.libsonnet, DaemonSet
Click to show internal directories.
Click to hide internal directories.