generator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 35

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