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 ¶
func NewClusterOrderTalos(ctx context.Context, order apiresourcecontracts.ResourceClusterOrder) (ClusterOrderTalos, error)
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) UpdateStatus ¶
func (c *ClusterOrderTalos) UpdateStatus(ctx context.Context, status apiresourcecontracts.ResourceClusterOrderStatus) error