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
Click to show internal directories.
Click to hide internal directories.