generator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceGroup

func NewResourceGroup(name string, opts ...ResourceGroupOption) *krov1alpha1.ResourceGroup

NewResourceGroup creates a new ResourceGroup with the given name and options

Types

type ResourceGroupOption

type ResourceGroupOption func(*krov1alpha1.ResourceGroup)

ResourceGroupOption is a functional option for ResourceGroup

func WithNamespace

func WithNamespace(namespace string) ResourceGroupOption

WithNamespace sets the namespace of the ResourceGroup

func WithResource

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

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

func WithSchema

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

WithSchema sets the definition and status of the ResourceGroup

Jump to

Keyboard shortcuts

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