client

package
v0.0.0-...-bb663ac Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0, BSD-2-Clause, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	KubernetesClient() kubernetes.Interface
	RayClient() rayclient.Interface
	// GetRayHeadSvcName retrieves the name of RayHead service for the given RayCluster, RayJob, or RayService.
	GetRayHeadSvcName(ctx context.Context, namespace string, resourceType util.ResourceType, name string) (string, error)
	GetKubeRayOperatorVersion(ctx context.Context) (string, error)
	WaitRayClusterProvisioned(ctx context.Context, namespace, name string, timeout time.Duration) error
}

func NewClient

func NewClient(factory cmdutil.Factory) (Client, error)

func NewClientForTesting

func NewClientForTesting(kubeClient kubernetes.Interface, rayClient rayclient.Interface) Client

Jump to

Keyboard shortcuts

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