generator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceGraphDefinition

func NewResourceGraphDefinition(name string, opts ...ResourceGraphDefinitionOption) *krov1alpha1.ResourceGraphDefinition

NewResourceGraphDefinition creates a new ResourceGraphDefinition with the given name and options

Types

type ResourceGraphDefinitionOption

type ResourceGraphDefinitionOption func(*krov1alpha1.ResourceGraphDefinition)

ResourceGraphDefinitionOption is a functional option for ResourceGraphDefinition

func WithResource

func WithResource(
	id string,
	template map[string]interface{},
	readyWhen []string,
	includeWhen []string,
) ResourceGraphDefinitionOption

WithResource adds a resource to the ResourceGraphDefinition with the given name and definition readyWhen and includeWhen expressions are optional.

func WithSchema

func WithSchema(kind, version string, spec, status map[string]interface{}) ResourceGraphDefinitionOption

WithSchema sets the definition and status of the ResourceGraphDefinition

Jump to

Keyboard shortcuts

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