Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFile ¶
HandleFile takes a file path and returns the resulting byte array. If an empty string ("") or hyphen ("-") is provided, input is read from stdin.
func ProcessTemplate ¶
ProcessTemplate takes a YAML byte array input, unmarshals it to a Policy, processes the templates, and marshals it back to YAML, returning the resulting byte array. Validation is performed along the way, returning an error if any failures are found. It uses the `hubKubeConfigPath` and `clusterName` to establish a dynamic client with the hub to resolve any hub templates it finds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.