server

package
v0.0.0-...-b5f237d Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0, BSD-2-Clause, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateClusterSpec

func ValidateClusterSpec(clusterSpec *api.ClusterSpec) error

ValidateClusterSpec validates that the *api.ClusterSpec is not nil and has all the required fields

func ValidateCreateClusterRequest

func ValidateCreateClusterRequest(request *api.CreateClusterRequest) error

func ValidateCreateComputeTemplateRequest

func ValidateCreateComputeTemplateRequest(request *api.CreateComputeTemplateRequest) error

func ValidateCreateJobRequest

func ValidateCreateJobRequest(request *api.CreateRayJobRequest) error

func ValidateCreateServiceRequest

func ValidateCreateServiceRequest(request *api.CreateRayServiceRequest) error

func ValidateUpdateServiceRequest

func ValidateUpdateServiceRequest(request *api.UpdateRayServiceRequest) error

Types

type ClusterServer

type ClusterServer struct {
	api.UnimplementedClusterServiceServer
	// contains filtered or unexported fields
}

implements `type ClusterServiceServer interface` in cluster_grpc.pb.go ClusterServer is the server API for ClusterService service.

func NewClusterServer

func NewClusterServer(resourceManager *manager.ResourceManager, options *ClusterServerOptions) *ClusterServer

func (*ClusterServer) CreateCluster

func (s *ClusterServer) CreateCluster(ctx context.Context, request *api.CreateClusterRequest) (*api.Cluster, error)

Creates a new Cluster.

func (*ClusterServer) DeleteCluster

func (s *ClusterServer) DeleteCluster(ctx context.Context, request *api.DeleteClusterRequest) (*empty.Empty, error)

Deletes an Cluster without deleting the Cluster's runs and jobs. To avoid unexpected behaviors, delete an Cluster's runs and jobs before deleting the Cluster.

func (*ClusterServer) GetCluster

func (s *ClusterServer) GetCluster(ctx context.Context, request *api.GetClusterRequest) (*api.Cluster, error)

Finds a specific Cluster by cluster name.

func (*ClusterServer) ListAllClusters

Finds all Clusters in all namespaces. TODO: Supports pagination and sorting on certain fields when we have DB support. request needs to be extended.

func (*ClusterServer) ListCluster

Finds all Clusters in a given namespace. TODO: Supports pagination and sorting on certain fields when we have DB support. request needs to be extended.

type ClusterServerOptions

type ClusterServerOptions struct {
	CollectMetrics bool
}

type ComputeTemplateServer

type ComputeTemplateServer struct {
	api.UnimplementedComputeTemplateServiceServer
	// contains filtered or unexported fields
}

implements `type ComputeTemplateServiceServer interface` in runtime_grpc.pb.go ComputeTemplateServer is the server API for ClusterRuntimeService.

func NewComputeTemplateServer

func NewComputeTemplateServer(resourceManager *manager.ResourceManager, options *ComputeTemplateServerOptions) *ComputeTemplateServer

func (*ComputeTemplateServer) CreateComputeTemplate

func (s *ComputeTemplateServer) CreateComputeTemplate(ctx context.Context, request *api.CreateComputeTemplateRequest) (*api.ComputeTemplate, error)

func (*ComputeTemplateServer) DeleteComputeTemplate

func (s *ComputeTemplateServer) DeleteComputeTemplate(ctx context.Context, request *api.DeleteComputeTemplateRequest) (*emptypb.Empty, error)

func (*ComputeTemplateServer) GetComputeTemplate

func (*ComputeTemplateServer) ListAllComputeTemplates

func (*ComputeTemplateServer) ListComputeTemplates

type ComputeTemplateServerOptions

type ComputeTemplateServerOptions struct {
	CollectMetrics bool
}

type JobServerOptions

type JobServerOptions struct {
	CollectMetrics bool
}

type RayJobServer

type RayJobServer struct {
	api.UnimplementedRayJobServiceServer
	// contains filtered or unexported fields
}

func NewRayJobServer

func NewRayJobServer(resourceManager *manager.ResourceManager, options *JobServerOptions) *RayJobServer

func (*RayJobServer) CreateRayJob

func (s *RayJobServer) CreateRayJob(ctx context.Context, request *api.CreateRayJobRequest) (*api.RayJob, error)

Creates a new Ray Job.

func (*RayJobServer) DeleteRayJob

func (s *RayJobServer) DeleteRayJob(ctx context.Context, request *api.DeleteRayJobRequest) (*emptypb.Empty, error)

Deletes an Job

func (*RayJobServer) GetRayJob

func (s *RayJobServer) GetRayJob(ctx context.Context, request *api.GetRayJobRequest) (*api.RayJob, error)

Finds a specific Job by job name.

func (*RayJobServer) ListAllRayJobs

Finds all Jobs in all namespaces.

func (*RayJobServer) ListRayJobs

func (s *RayJobServer) ListRayJobs(ctx context.Context, request *api.ListRayJobsRequest) (*api.ListRayJobsResponse, error)

Finds all Jobs in a given namespace.

type RayJobSubmissionServiceServer

type RayJobSubmissionServiceServer struct {
	api.UnimplementedRayJobSubmissionServiceServer
	// contains filtered or unexported fields
}

implements `type ClusterServiceServer interface` in cluster_grpc.pb.go ClusterServer is the server API for ClusterService service.

func NewRayJobSubmissionServiceServer

func NewRayJobSubmissionServiceServer(clusterServer *ClusterServer, options *RayJobSubmissionServiceServerOptions) *RayJobSubmissionServiceServer

Create RayJobSubmissionServiceServer

func (*RayJobSubmissionServiceServer) DeleteRayJob

Delete Job

func (*RayJobSubmissionServiceServer) GetJobDetails

Get job details

func (*RayJobSubmissionServiceServer) GetJobLog

Get Job log

func (*RayJobSubmissionServiceServer) ListJobDetails

List jobs

func (*RayJobSubmissionServiceServer) StopRayJob

Stop job

func (*RayJobSubmissionServiceServer) SubmitRayJob

Submit Ray job

type RayJobSubmissionServiceServerOptions

type RayJobSubmissionServiceServerOptions struct {
	CollectMetrics bool
}

type RayServiceServer

type RayServiceServer struct {
	api.UnimplementedRayServeServiceServer
	// contains filtered or unexported fields
}

implements `type RayServeServiceServer interface` in serve_grpc.pb.go RayServiceServer is the server API for RayServeService service.

func NewRayServiceServer

func NewRayServiceServer(resourceManager *manager.ResourceManager, options *ServiceServerOptions) *RayServiceServer

func (*RayServiceServer) CreateRayService

func (s *RayServiceServer) CreateRayService(ctx context.Context, request *api.CreateRayServiceRequest) (*api.RayService, error)

Create a new Ray Service

func (*RayServiceServer) DeleteRayService

func (s *RayServiceServer) DeleteRayService(ctx context.Context, request *api.DeleteRayServiceRequest) (*emptypb.Empty, error)

func (*RayServiceServer) GetRayService

func (s *RayServiceServer) GetRayService(ctx context.Context, request *api.GetRayServiceRequest) (*api.RayService, error)

func (*RayServiceServer) ListAllRayServices

func (*RayServiceServer) ListRayServices

func (*RayServiceServer) UpdateRayService

func (s *RayServiceServer) UpdateRayService(ctx context.Context, request *api.UpdateRayServiceRequest) (*api.RayService, error)

type ServiceServerOptions

type ServiceServerOptions struct {
	CollectMetrics bool
}

Jump to

Keyboard shortcuts

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