generator

package
v0.0.0-...-cf0f9cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 34

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(schemas *types.Schemas, privateTypes map[string]bool, basePackage, outputDir, cattleOutputPackage, k8sOutputPackage string) error

func GenerateClient

func GenerateClient(schemas *types.Schemas, privateTypes map[string]bool, outputDir, cattleOutputPackage string) error

func GenerateControllerForTypes

func GenerateControllerForTypes(version *types.APIVersion, k8sOutputPackage string, nsObjs []interface{}, objs []interface{}) error

func Gofmt

func Gofmt(workDir, pkg string) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL