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 ClusterOrderKind ¶
type ClusterOrderKind struct {
// contains filtered or unexported fields
}
func NewClusterOrderKind ¶
func NewClusterOrderKind(ctx context.Context, order apiresourcecontracts.ResourceClusterOrder) (ClusterOrderKind, error)
NewClusterOrderKind creates a new instance of ClusterOrderKind 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 ClusterOrderKind to the provided order and sets the saved field to true. Finally, it returns the created ClusterOrderKind and nil error.
func (ClusterOrderKind) GetProviderConfig ¶
func (c ClusterOrderKind) GetProviderConfig() any
func (*ClusterOrderKind) UpdateStatus ¶
func (c *ClusterOrderKind) UpdateStatus(ctx context.Context, status apiresourcecontracts.ResourceClusterOrderStatus) error