Documentation ¶
Overview ¶
TODO: This library is imported from ror, should determine if its a public library or not
The utils package is a helper package that provides utility functions for the clusterorder package. It should not contain any provider specific logic.
Index ¶
- func CreateResource(ctx context.Context, resource apiresourcecontracts.ResourceUpdateModel) error
- func GenerateUUID() uuid.UUID
- func NewClusterOrderResource(ctx context.Context, order apiresourcecontracts.ResourceClusterOrderSpec) (apiresourcecontracts.ResourceClusterOrder, error)
- func NewResourceUpdate(ctx context.Context, order apiresourcecontracts.ResourceClusterOrder) (apiresourcecontracts.ResourceUpdateModel, error)
- func UpdateStatus(ctx context.Context, uid string, ...) error
- func ValidateOrder(ctx context.Context, order apiresourcecontracts.ResourceClusterOrderSpec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateResource ¶
func CreateResource(ctx context.Context, resource apiresourcecontracts.ResourceUpdateModel) error
func GenerateUUID ¶
func NewClusterOrderResource ¶
func NewClusterOrderResource(ctx context.Context, order apiresourcecontracts.ResourceClusterOrderSpec) (apiresourcecontracts.ResourceClusterOrder, error)
func NewResourceUpdate ¶
func NewResourceUpdate(ctx context.Context, order apiresourcecontracts.ResourceClusterOrder) (apiresourcecontracts.ResourceUpdateModel, error)
func UpdateStatus ¶
func UpdateStatus(ctx context.Context, uid string, status apiresourcecontracts.ResourceClusterOrderStatus) error
func ValidateOrder ¶
func ValidateOrder(ctx context.Context, order apiresourcecontracts.ResourceClusterOrderSpec) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.