Documentation ¶
Overview ¶
Package generator contains templates and functions to generate clients, controllers, and lifecycles. The Generate functions are exported and intended to be used by other libraries.
Index ¶
- func Generate(schemas *types.Schemas, privateTypes map[string]bool, ...) error
- func GenerateClient(schemas *types.Schemas, privateTypes map[string]bool, ...) error
- func GenerateControllerForTypes(version *types.APIVersion, k8sOutputPackage string, nsObjs []interface{}, ...) error
- func Gofmt(workDir, pkg string) error
- func SyncOnlyChangedObjects() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateClient ¶
func GenerateControllerForTypes ¶
func GenerateControllerForTypes(version *types.APIVersion, k8sOutputPackage string, nsObjs []interface{}, objs []interface{}) error
func SyncOnlyChangedObjects ¶
func SyncOnlyChangedObjects() bool
SyncOnlyChangedObjects check whether the CATTLE_SKIP_NO_CHANGE_UPDATE env var is configured to skip the update handler for events on the management context that do not contain a change to the object.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.