talosclusterorder

package
v1.0.42 Latest Latest
Warning

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

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

Documentation

Overview

TODO: This library is imported from ror, should determine if its a public library or not

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterOrderTalos

type ClusterOrderTalos struct {
	// contains filtered or unexported fields
}

func NewClusterOrderTalos

NewClusterOrderTalos creates a new instance of ClusterOrderTalos based on the provided order. It takes a context.Context and an apiresourcecontracts.ResourceClusterOrder as input parameters. If the order's Metadata.Uid is empty, it creates a new ClusterOrderResource using the order's Spec. If there is an error during the creation of the ClusterOrderResource, it returns the error. Otherwise, it sets the order field of the ClusterOrderTalos to the provided order and sets the saved field to true. Finally, it returns the created ClusterOrderTalos and nil error.

func (ClusterOrderTalos) GetProviderConfig

func (c ClusterOrderTalos) GetProviderConfig() any

func (*ClusterOrderTalos) Save

func (c *ClusterOrderTalos) Save(ctx context.Context) error

func (*ClusterOrderTalos) UpdateStatus

func (ClusterOrderTalos) Validate

func (c ClusterOrderTalos) Validate(ctx context.Context) error

Jump to

Keyboard shortcuts

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