generation

package
v0.0.0-...-c764021 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0, BSD-2-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertRayClusterApplyConfigToYaml

func ConvertRayClusterApplyConfigToYaml(rayClusterac *rayv1ac.RayClusterApplyConfiguration) (string, error)

Converts RayClusterApplyConfiguration object into a yaml string

func ConvertRayJobApplyConfigToYaml

func ConvertRayJobApplyConfigToYaml(rayJobac *rayv1ac.RayJobApplyConfiguration) (string, error)

Converts RayJobApplyConfiguration object into a yaml string

Types

type RayClusterSpecObject

type RayClusterSpecObject struct {
	RayVersion                       string
	Image                            string
	HeadCPU                          string
	HeadMemory                       string
	WorkerGrpName                    string
	WorkerCPU                        string
	WorkerMemory                     string
	HeadLifecyclePrestopExecCommand  []string
	WorkerLifecyclePrestopExecComand []string
	WorkerReplicas                   int32
}

type RayClusterYamlObject

type RayClusterYamlObject struct {
	ClusterName string
	Namespace   string
	RayClusterSpecObject
}

func (*RayClusterYamlObject) GenerateRayClusterApplyConfig

func (rayClusterObject *RayClusterYamlObject) GenerateRayClusterApplyConfig() *rayv1ac.RayClusterApplyConfiguration

type RayJobYamlObject

type RayJobYamlObject struct {
	RayJobName     string
	Namespace      string
	SubmissionMode string
	RayClusterSpecObject
}

func (*RayJobYamlObject) GenerateRayJobApplyConfig

func (rayJobObject *RayJobYamlObject) GenerateRayJobApplyConfig() *rayv1ac.RayJobApplyConfiguration

Jump to

Keyboard shortcuts

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