kindclusterorder

package
v1.0.43 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 ClusterOrderKind

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

func NewClusterOrderKind

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) Save

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

func (*ClusterOrderKind) UpdateStatus

func (ClusterOrderKind) Validate

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

Jump to

Keyboard shortcuts

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