generators

package
v0.13.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Overview

Package generators contains all codes about the Spec generator mechanism. It is a feature about kusion that can make Kusion more general in generating Spec and decoupled with KCLVM. Any generator implements the generator interface can be integrated in Kusion operation workflow.

This mechanism is very meaningful to Kusion and makes the foundation to support other languages in the feature.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONPatch added in v0.12.0

func JSONPatch(resources v1.Resources, patcher *v1.Patcher) error

func NewAppConfigurationGenerator

func NewAppConfigurationGenerator(
	project *v1.Project,
	stack *v1.Stack,
	appName string,
	app *v1.AppConfiguration,
	ws *v1.Workspace,
	dependencies *pkg.Dependencies,
) (modules.Generator, error)

func NewAppConfigurationGeneratorFunc

func NewAppConfigurationGeneratorFunc(
	project *v1.Project,
	stack *v1.Stack,
	appName string,
	app *v1.AppConfiguration,
	ws *v1.Workspace,
	kpmDependencies *pkg.Dependencies,
) modules.NewGeneratorFunc

func NewNamespaceGenerator

func NewNamespaceGenerator(namespace string) (modules.Generator, error)

func NewNamespaceGeneratorFunc

func NewNamespaceGeneratorFunc(namespace string) modules.NewGeneratorFunc

func NewOrderedResourcesGenerator

func NewOrderedResourcesGenerator(multipleOrderedKinds ...[]string) (modules.Generator, error)

NewOrderedResourcesGenerator returns a new instance of orderedResourcesGenerator.

func NewOrderedResourcesGeneratorFunc

func NewOrderedResourcesGeneratorFunc(multipleOrderedKinds ...[]string) modules.NewGeneratorFunc

NewOrderedResourcesGeneratorFunc returns a function that creates a new orderedResourcesGenerator.

func PatchWorkload added in v0.11.1

func PatchWorkload(workload *v1.Resource, patcher *v1.Patcher) error

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