Documentation ¶
Index ¶
- func CheckMachineStatus(ctx context.Context, machineObj *v1alpha5.Machine, kubeClient client.Client) error
- func CreateMachine(ctx context.Context, machineObj *v1alpha5.Machine, kubeClient client.Client) error
- func GenerateMachineManifest(ctx context.Context, storageRequirement string, obj interface{}) *v1alpha5.Machine
- func ListMachines(ctx context.Context, obj interface{}, kubeClient client.Client) (*v1alpha5.MachineList, error)
- func WaitForPendingMachines(ctx context.Context, obj interface{}, kubeClient client.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMachineStatus ¶
func CheckMachineStatus(ctx context.Context, machineObj *v1alpha5.Machine, kubeClient client.Client) error
CheckMachineStatus checks the status of the machine. If the machine is not ready, then it will wait for the machine to be ready. If the machine is not ready after the timeout, then it will return an error. if the machine is ready, then it will return nil.
func CreateMachine ¶
func CreateMachine(ctx context.Context, machineObj *v1alpha5.Machine, kubeClient client.Client) error
CreateMachine creates a machine object.
func GenerateMachineManifest ¶
func GenerateMachineManifest(ctx context.Context, storageRequirement string, obj interface{}) *v1alpha5.Machine
GenerateMachineManifest generates a machine object from the given workspace or RAGEngine.
func ListMachines ¶
func ListMachines(ctx context.Context, obj interface{}, kubeClient client.Client) (*v1alpha5.MachineList, error)
ListMachines lists all machine objects in the cluster that are created by the given workspace or RAGEngine.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.