http

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

Types

type KuberayAPIServerClient

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

func NewKuberayAPIServerClient

func NewKuberayAPIServerClient(baseURL string, httpClient *http.Client) *KuberayAPIServerClient

func (*KuberayAPIServerClient) CreateCluster

func (krc *KuberayAPIServerClient) CreateCluster(request *api.CreateClusterRequest) (*api.Cluster, *rpcStatus.Status, error)

CreateCluster creates a new cluster.

func (*KuberayAPIServerClient) CreateComputeTemplate

CreateComputeTemplate creates a new compute template.

func (*KuberayAPIServerClient) CreateRayJob

func (krc *KuberayAPIServerClient) CreateRayJob(request *api.CreateRayJobRequest) (*api.RayJob, *rpcStatus.Status, error)

CreateRayJob creates a new job.

func (*KuberayAPIServerClient) CreateRayService

func (krc *KuberayAPIServerClient) CreateRayService(request *api.CreateRayServiceRequest) (*api.RayService, *rpcStatus.Status, error)

CreateRayService create a new ray serve.

func (*KuberayAPIServerClient) DeleteCluster

func (krc *KuberayAPIServerClient) DeleteCluster(request *api.DeleteClusterRequest) (*rpcStatus.Status, error)

DeleteCluster deletes a cluster

func (*KuberayAPIServerClient) DeleteComputeTemplate

func (krc *KuberayAPIServerClient) DeleteComputeTemplate(request *api.DeleteComputeTemplateRequest) (*rpcStatus.Status, error)

DeleteComputeTemplate deletes a compute template.

func (*KuberayAPIServerClient) DeleteRayJob

func (krc *KuberayAPIServerClient) DeleteRayJob(request *api.DeleteRayJobRequest) (*rpcStatus.Status, error)

Deletes a job by its name and namespace.

func (*KuberayAPIServerClient) DeleteRayJobCluster

func (krc *KuberayAPIServerClient) DeleteRayJobCluster(request *api.DeleteRayJobSubmissionRequest) (*rpcStatus.Status, error)

DeleteRayService deletes a ray service by its name and namespace

func (*KuberayAPIServerClient) DeleteRayService

func (krc *KuberayAPIServerClient) DeleteRayService(request *api.DeleteRayServiceRequest) (*rpcStatus.Status, error)

DeleteRayService deletes a ray service by its name and namespace

func (*KuberayAPIServerClient) GetAllComputeTemplates

GetAllComputeTemplates finds all compute templates in all namespaces.

func (*KuberayAPIServerClient) GetAllComputeTemplatesInNamespace

func (krc *KuberayAPIServerClient) GetAllComputeTemplatesInNamespace(request *api.ListComputeTemplatesRequest) (*api.ListComputeTemplatesResponse, *rpcStatus.Status, error)

GetAllComputeTemplatesInNamespace Finds all compute templates in a given namespace.

func (*KuberayAPIServerClient) GetCluster

func (krc *KuberayAPIServerClient) GetCluster(request *api.GetClusterRequest) (*api.Cluster, *rpcStatus.Status, error)

GetCluster finds a specific Cluster by ID.

func (*KuberayAPIServerClient) GetComputeTemplate

Finds a specific compute template by its name and namespace.

func (*KuberayAPIServerClient) GetRayJob

func (krc *KuberayAPIServerClient) GetRayJob(request *api.GetRayJobRequest) (*api.RayJob, *rpcStatus.Status, error)

GetRayJob finds a specific job by its name and namespace.

func (*KuberayAPIServerClient) GetRayJobDetails

GetRayJobDetails. Get details about specific job on a given cluster.

func (*KuberayAPIServerClient) GetRayJobLog

GetRayJobLog. Get log for a specific job on a given cluster.

func (*KuberayAPIServerClient) GetRayService

Find a specific ray serve by name and namespace.

func (*KuberayAPIServerClient) ListAllClusters

ListAllClusters finds all Clusters in all namespaces. Supports pagination, and sorting on certain fields.

func (*KuberayAPIServerClient) ListAllRayJobs

ListAllRayJobs Finds all job in all namespaces.

func (*KuberayAPIServerClient) ListAllRayServices

Finds all ray services in a given namespace. Supports pagination, and sorting on certain fields.

func (*KuberayAPIServerClient) ListClusters

ListCluster finds all clusters in a given namespace.

func (*KuberayAPIServerClient) ListRayJobs

Finds all job in a given namespace.

func (*KuberayAPIServerClient) ListRayJobsCluster

ListRayJobsCluster. List Ray jobs on a given cluster.

func (*KuberayAPIServerClient) ListRayServices

Finds all ray services in a given namespace. Supports pagination, and sorting on certain fields.

func (*KuberayAPIServerClient) StopRayJob

StopRayJob stops job on a given cluster.

func (*KuberayAPIServerClient) SubmitRayJob

SubmitRayJob creates a new job on a given cluster.

func (*KuberayAPIServerClient) UpdateRayService

func (krc *KuberayAPIServerClient) UpdateRayService(request *api.UpdateRayServiceRequest) (*api.RayService, *rpcStatus.Status, error)

UpdateRayService updates a ray serve service.

type KuberayAPIServerClientError

type KuberayAPIServerClientError struct {
	HTTPStatusCode int
}

func (*KuberayAPIServerClientError) Error

func (krce *KuberayAPIServerClientError) Error() string

Jump to

Keyboard shortcuts

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