Documentation ¶
Index ¶
- type CreateGpuPredictionsRequestExtended
- type ServiceV1alpha1
- func (s *ServiceV1alpha1) CreateAlamedaNodes(ctx context.Context, in *DatahubV1alpha1.CreateAlamedaNodesRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateControllerPlannings(ctx context.Context, in *DatahubV1alpha1.CreateControllerPlanningsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateControllerRecommendations(ctx context.Context, ...) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateControllers(ctx context.Context, in *DatahubV1alpha1.CreateControllersRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateEvents(ctx context.Context, in *DatahubV1alpha1.CreateEventsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateGpuPredictions(ctx context.Context, in *DatahubV1alpha1.CreateGpuPredictionsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateNodePredictions(ctx context.Context, in *DatahubV1alpha1.CreateNodePredictionsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodPlannings(ctx context.Context, in *DatahubV1alpha1.CreatePodPlanningsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodPredictions(ctx context.Context, in *DatahubV1alpha1.CreatePodPredictionsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodRecommendations(ctx context.Context, in *DatahubV1alpha1.CreatePodRecommendationsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePods(ctx context.Context, in *DatahubV1alpha1.CreatePodsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateSimulatedSchedulingScores(ctx context.Context, ...) (*status.Status, error)
- func (s *ServiceV1alpha1) DeleteAlamedaNodes(ctx context.Context, in *DatahubV1alpha1.DeleteAlamedaNodesRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) DeleteControllers(ctx context.Context, in *DatahubV1alpha1.DeleteControllersRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) DeletePods(ctx context.Context, in *DatahubV1alpha1.DeletePodsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) GetLicense(ctx context.Context, in *empty.Empty) (*DatahubV1alpha1.GetLicenseResponse, error)
- func (s *ServiceV1alpha1) GetWeaveScopeContainerDetails(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) GetWeaveScopeHostDetails(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeHostsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) GetWeaveScopePodDetails(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopePodsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListAlamedaNodes(ctx context.Context, in *DatahubV1alpha1.ListAlamedaNodesRequest) (*DatahubV1alpha1.ListNodesResponse, error)
- func (s *ServiceV1alpha1) ListAlamedaPods(ctx context.Context, in *DatahubV1alpha1.ListAlamedaPodsRequest) (*DatahubV1alpha1.ListPodsResponse, error)
- func (s *ServiceV1alpha1) ListAvailablePodRecommendations(ctx context.Context, in *DatahubV1alpha1.ListPodRecommendationsRequest) (*DatahubV1alpha1.ListPodRecommendationsResponse, error)
- func (s *ServiceV1alpha1) ListControllerPlannings(ctx context.Context, in *DatahubV1alpha1.ListControllerPlanningsRequest) (*DatahubV1alpha1.ListControllerPlanningsResponse, error)
- func (s *ServiceV1alpha1) ListControllerRecommendations(ctx context.Context, in *DatahubV1alpha1.ListControllerRecommendationsRequest) (*DatahubV1alpha1.ListControllerRecommendationsResponse, error)
- func (s *ServiceV1alpha1) ListControllers(ctx context.Context, in *DatahubV1alpha1.ListControllersRequest) (*DatahubV1alpha1.ListControllersResponse, error)
- func (s *ServiceV1alpha1) ListEvents(ctx context.Context, in *DatahubV1alpha1.ListEventsRequest) (*DatahubV1alpha1.ListEventsResponse, error)
- func (s *ServiceV1alpha1) ListGpuMetrics(ctx context.Context, in *DatahubV1alpha1.ListGpuMetricsRequest) (*DatahubV1alpha1.ListGpuMetricsResponse, error)
- func (s *ServiceV1alpha1) ListGpuPredictions(ctx context.Context, in *DatahubV1alpha1.ListGpuPredictionsRequest) (*DatahubV1alpha1.ListGpuPredictionsResponse, error)
- func (s *ServiceV1alpha1) ListGpus(ctx context.Context, in *DatahubV1alpha1.ListGpusRequest) (*DatahubV1alpha1.ListGpusResponse, error)
- func (s *ServiceV1alpha1) ListNodeMetrics(ctx context.Context, in *DatahubV1alpha1.ListNodeMetricsRequest) (*DatahubV1alpha1.ListNodeMetricsResponse, error)
- func (s *ServiceV1alpha1) ListNodePredictions(ctx context.Context, in *DatahubV1alpha1.ListNodePredictionsRequest) (*DatahubV1alpha1.ListNodePredictionsResponse, error)
- func (s *ServiceV1alpha1) ListNodes(ctx context.Context, in *DatahubV1alpha1.ListNodesRequest) (*DatahubV1alpha1.ListNodesResponse, error)
- func (s *ServiceV1alpha1) ListPodMetrics(ctx context.Context, in *DatahubV1alpha1.ListPodMetricsRequest) (*DatahubV1alpha1.ListPodMetricsResponse, error)
- func (s *ServiceV1alpha1) ListPodMetricsDemo(ctx context.Context, in *DatahubV1alpha1.ListPodMetricsRequest) (*DatahubV1alpha1.ListPodMetricsResponse, error)
- func (s *ServiceV1alpha1) ListPodPlannings(ctx context.Context, in *DatahubV1alpha1.ListPodPlanningsRequest) (*DatahubV1alpha1.ListPodPlanningsResponse, error)
- func (s *ServiceV1alpha1) ListPodPredictions(ctx context.Context, in *DatahubV1alpha1.ListPodPredictionsRequest) (*DatahubV1alpha1.ListPodPredictionsResponse, error)
- func (s *ServiceV1alpha1) ListPodPredictionsDemo(ctx context.Context, in *DatahubV1alpha1.ListPodPredictionsRequest) (*DatahubV1alpha1.ListPodPredictionsResponse, error)
- func (s *ServiceV1alpha1) ListPodRecommendations(ctx context.Context, in *DatahubV1alpha1.ListPodRecommendationsRequest) (*DatahubV1alpha1.ListPodRecommendationsResponse, error)
- func (s *ServiceV1alpha1) ListPodsByNodeName(ctx context.Context, in *DatahubV1alpha1.ListPodsByNodeNamesRequest) (*DatahubV1alpha1.ListPodsResponse, error)
- func (s *ServiceV1alpha1) ListSimulatedSchedulingScores(ctx context.Context, in *DatahubV1alpha1.ListSimulatedSchedulingScoresRequest) (*DatahubV1alpha1.ListSimulatedSchedulingScoresResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeContainers(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeContainersByHostname(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeContainersByImage(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeHosts(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeHostsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopePods(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopePodsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) Ping(ctx context.Context, in *empty.Empty) (*status.Status, error)
- func (s *ServiceV1alpha1) ReadRawdata(ctx context.Context, in *DatahubV1alpha1.ReadRawdataRequest) (*DatahubV1alpha1.ReadRawdataResponse, error)
- func (s *ServiceV1alpha1) WriteRawdata(ctx context.Context, in *DatahubV1alpha1.WriteRawdataRequest) (*status.Status, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateGpuPredictionsRequestExtended ¶
type CreateGpuPredictionsRequestExtended struct {
DatahubV1alpha1.CreateGpuPredictionsRequest
}
func (CreateGpuPredictionsRequestExtended) GpuPredictions ¶
func (r CreateGpuPredictionsRequestExtended) GpuPredictions() DaoGpu.GpuPredictionMap
type ServiceV1alpha1 ¶
type ServiceV1alpha1 struct { Config *DatahubConfig.Config K8SClient client.Client }
func NewService ¶
func NewService(cfg *DatahubConfig.Config, k8sClient client.Client) *ServiceV1alpha1
func (*ServiceV1alpha1) CreateAlamedaNodes ¶
func (s *ServiceV1alpha1) CreateAlamedaNodes(ctx context.Context, in *DatahubV1alpha1.CreateAlamedaNodesRequest) (*status.Status, error)
CreateAlamedaNodes add node information to database
func (*ServiceV1alpha1) CreateControllerPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) CreateControllerPlannings(ctx context.Context, in *DatahubV1alpha1.CreateControllerPlanningsRequest) (*status.Status, error)
CreateControllerPlannings add controller plannings information to database
func (*ServiceV1alpha1) CreateControllerRecommendations ¶
func (s *ServiceV1alpha1) CreateControllerRecommendations(ctx context.Context, in *DatahubV1alpha1.CreateControllerRecommendationsRequest) (*status.Status, error)
CreatePodRecommendations add controller recommendations information to database
func (*ServiceV1alpha1) CreateControllers ¶
func (s *ServiceV1alpha1) CreateControllers(ctx context.Context, in *DatahubV1alpha1.CreateControllersRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateEvents ¶
func (s *ServiceV1alpha1) CreateEvents(ctx context.Context, in *DatahubV1alpha1.CreateEventsRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateGpuPredictions ¶ added in v0.9.166
func (s *ServiceV1alpha1) CreateGpuPredictions(ctx context.Context, in *DatahubV1alpha1.CreateGpuPredictionsRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateNodePredictions ¶
func (s *ServiceV1alpha1) CreateNodePredictions(ctx context.Context, in *DatahubV1alpha1.CreateNodePredictionsRequest) (*status.Status, error)
CreateNodePredictions add node predictions information to database
func (*ServiceV1alpha1) CreatePodPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) CreatePodPlannings(ctx context.Context, in *DatahubV1alpha1.CreatePodPlanningsRequest) (*status.Status, error)
CreatePodPlannings add pod plannings information to database
func (*ServiceV1alpha1) CreatePodPredictions ¶
func (s *ServiceV1alpha1) CreatePodPredictions(ctx context.Context, in *DatahubV1alpha1.CreatePodPredictionsRequest) (*status.Status, error)
CreatePodPredictions add pod predictions information to database
func (*ServiceV1alpha1) CreatePodRecommendations ¶
func (s *ServiceV1alpha1) CreatePodRecommendations(ctx context.Context, in *DatahubV1alpha1.CreatePodRecommendationsRequest) (*status.Status, error)
CreatePodRecommendations add pod recommendations information to database
func (*ServiceV1alpha1) CreatePods ¶
func (s *ServiceV1alpha1) CreatePods(ctx context.Context, in *DatahubV1alpha1.CreatePodsRequest) (*status.Status, error)
CreatePods add containers information of pods to database
func (*ServiceV1alpha1) CreateSimulatedSchedulingScores ¶
func (s *ServiceV1alpha1) CreateSimulatedSchedulingScores(ctx context.Context, in *DatahubV1alpha1.CreateSimulatedSchedulingScoresRequest) (*status.Status, error)
CreateSimulatedSchedulingScores add simulated scheduling scores to database
func (*ServiceV1alpha1) DeleteAlamedaNodes ¶
func (s *ServiceV1alpha1) DeleteAlamedaNodes(ctx context.Context, in *DatahubV1alpha1.DeleteAlamedaNodesRequest) (*status.Status, error)
DeleteAlamedaNodes remove node information to database
func (*ServiceV1alpha1) DeleteControllers ¶
func (s *ServiceV1alpha1) DeleteControllers(ctx context.Context, in *DatahubV1alpha1.DeleteControllersRequest) (*status.Status, error)
func (*ServiceV1alpha1) DeletePods ¶
func (s *ServiceV1alpha1) DeletePods(ctx context.Context, in *DatahubV1alpha1.DeletePodsRequest) (*status.Status, error)
DeletePods update containers information of pods to database
func (*ServiceV1alpha1) GetLicense ¶ added in v0.9.1
func (s *ServiceV1alpha1) GetLicense(ctx context.Context, in *empty.Empty) (*DatahubV1alpha1.GetLicenseResponse, error)
func (*ServiceV1alpha1) GetWeaveScopeContainerDetails ¶
func (s *ServiceV1alpha1) GetWeaveScopeContainerDetails(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) GetWeaveScopeHostDetails ¶
func (s *ServiceV1alpha1) GetWeaveScopeHostDetails(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeHostsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) GetWeaveScopePodDetails ¶
func (s *ServiceV1alpha1) GetWeaveScopePodDetails(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopePodsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListAlamedaNodes ¶
func (s *ServiceV1alpha1) ListAlamedaNodes(ctx context.Context, in *DatahubV1alpha1.ListAlamedaNodesRequest) (*DatahubV1alpha1.ListNodesResponse, error)
ListAlamedaNodes list nodes in cluster
func (*ServiceV1alpha1) ListAlamedaPods ¶
func (s *ServiceV1alpha1) ListAlamedaPods(ctx context.Context, in *DatahubV1alpha1.ListAlamedaPodsRequest) (*DatahubV1alpha1.ListPodsResponse, error)
ListAlamedaPods returns predicted pods
func (*ServiceV1alpha1) ListAvailablePodRecommendations ¶
func (s *ServiceV1alpha1) ListAvailablePodRecommendations(ctx context.Context, in *DatahubV1alpha1.ListPodRecommendationsRequest) (*DatahubV1alpha1.ListPodRecommendationsResponse, error)
ListAvailablePodRecommendations list pod recommendations
func (*ServiceV1alpha1) ListControllerPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) ListControllerPlannings(ctx context.Context, in *DatahubV1alpha1.ListControllerPlanningsRequest) (*DatahubV1alpha1.ListControllerPlanningsResponse, error)
ListControllerPlannings list controller plannings
func (*ServiceV1alpha1) ListControllerRecommendations ¶
func (s *ServiceV1alpha1) ListControllerRecommendations(ctx context.Context, in *DatahubV1alpha1.ListControllerRecommendationsRequest) (*DatahubV1alpha1.ListControllerRecommendationsResponse, error)
ListControllerRecommendations list controller recommendations
func (*ServiceV1alpha1) ListControllers ¶
func (s *ServiceV1alpha1) ListControllers(ctx context.Context, in *DatahubV1alpha1.ListControllersRequest) (*DatahubV1alpha1.ListControllersResponse, error)
func (*ServiceV1alpha1) ListEvents ¶
func (s *ServiceV1alpha1) ListEvents(ctx context.Context, in *DatahubV1alpha1.ListEventsRequest) (*DatahubV1alpha1.ListEventsResponse, error)
func (*ServiceV1alpha1) ListGpuMetrics ¶ added in v0.9.166
func (s *ServiceV1alpha1) ListGpuMetrics(ctx context.Context, in *DatahubV1alpha1.ListGpuMetricsRequest) (*DatahubV1alpha1.ListGpuMetricsResponse, error)
func (*ServiceV1alpha1) ListGpuPredictions ¶ added in v0.9.166
func (s *ServiceV1alpha1) ListGpuPredictions(ctx context.Context, in *DatahubV1alpha1.ListGpuPredictionsRequest) (*DatahubV1alpha1.ListGpuPredictionsResponse, error)
func (*ServiceV1alpha1) ListGpus ¶ added in v0.9.166
func (s *ServiceV1alpha1) ListGpus(ctx context.Context, in *DatahubV1alpha1.ListGpusRequest) (*DatahubV1alpha1.ListGpusResponse, error)
func (*ServiceV1alpha1) ListNodeMetrics ¶
func (s *ServiceV1alpha1) ListNodeMetrics(ctx context.Context, in *DatahubV1alpha1.ListNodeMetricsRequest) (*DatahubV1alpha1.ListNodeMetricsResponse, error)
ListNodeMetrics list nodes' metrics
func (*ServiceV1alpha1) ListNodePredictions ¶
func (s *ServiceV1alpha1) ListNodePredictions(ctx context.Context, in *DatahubV1alpha1.ListNodePredictionsRequest) (*DatahubV1alpha1.ListNodePredictionsResponse, error)
ListNodePredictions list nodes' predictions
func (*ServiceV1alpha1) ListNodes ¶
func (s *ServiceV1alpha1) ListNodes(ctx context.Context, in *DatahubV1alpha1.ListNodesRequest) (*DatahubV1alpha1.ListNodesResponse, error)
func (*ServiceV1alpha1) ListPodMetrics ¶
func (s *ServiceV1alpha1) ListPodMetrics(ctx context.Context, in *DatahubV1alpha1.ListPodMetricsRequest) (*DatahubV1alpha1.ListPodMetricsResponse, error)
ListPodMetrics list pods' metrics
func (*ServiceV1alpha1) ListPodMetricsDemo ¶
func (s *ServiceV1alpha1) ListPodMetricsDemo(ctx context.Context, in *DatahubV1alpha1.ListPodMetricsRequest) (*DatahubV1alpha1.ListPodMetricsResponse, error)
ListPodMetrics list pods' metrics for demo
func (*ServiceV1alpha1) ListPodPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) ListPodPlannings(ctx context.Context, in *DatahubV1alpha1.ListPodPlanningsRequest) (*DatahubV1alpha1.ListPodPlanningsResponse, error)
ListPodPlannings list pod plannings
func (*ServiceV1alpha1) ListPodPredictions ¶
func (s *ServiceV1alpha1) ListPodPredictions(ctx context.Context, in *DatahubV1alpha1.ListPodPredictionsRequest) (*DatahubV1alpha1.ListPodPredictionsResponse, error)
ListPodPredictions list pods' predictions
func (*ServiceV1alpha1) ListPodPredictionsDemo ¶
func (s *ServiceV1alpha1) ListPodPredictionsDemo(ctx context.Context, in *DatahubV1alpha1.ListPodPredictionsRequest) (*DatahubV1alpha1.ListPodPredictionsResponse, error)
ListPodPredictions list pods' predictions for demo
func (*ServiceV1alpha1) ListPodRecommendations ¶
func (s *ServiceV1alpha1) ListPodRecommendations(ctx context.Context, in *DatahubV1alpha1.ListPodRecommendationsRequest) (*DatahubV1alpha1.ListPodRecommendationsResponse, error)
ListPodRecommendations list pod recommendations
func (*ServiceV1alpha1) ListPodsByNodeName ¶
func (s *ServiceV1alpha1) ListPodsByNodeName(ctx context.Context, in *DatahubV1alpha1.ListPodsByNodeNamesRequest) (*DatahubV1alpha1.ListPodsResponse, error)
ListPodsByNodeName list pods running on specific nodes
func (*ServiceV1alpha1) ListSimulatedSchedulingScores ¶
func (s *ServiceV1alpha1) ListSimulatedSchedulingScores(ctx context.Context, in *DatahubV1alpha1.ListSimulatedSchedulingScoresRequest) (*DatahubV1alpha1.ListSimulatedSchedulingScoresResponse, error)
ListSimulatedSchedulingScores list simulated scheduling scores
func (*ServiceV1alpha1) ListWeaveScopeContainers ¶
func (s *ServiceV1alpha1) ListWeaveScopeContainers(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopeContainersByHostname ¶
func (s *ServiceV1alpha1) ListWeaveScopeContainersByHostname(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopeContainersByImage ¶
func (s *ServiceV1alpha1) ListWeaveScopeContainersByImage(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeContainersRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopeHosts ¶
func (s *ServiceV1alpha1) ListWeaveScopeHosts(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopeHostsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopePods ¶
func (s *ServiceV1alpha1) ListWeaveScopePods(ctx context.Context, in *DatahubV1alpha1.ListWeaveScopePodsRequest) (*DatahubV1alpha1.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ReadRawdata ¶
func (s *ServiceV1alpha1) ReadRawdata(ctx context.Context, in *DatahubV1alpha1.ReadRawdataRequest) (*DatahubV1alpha1.ReadRawdataResponse, error)
Read rawdata from database
func (*ServiceV1alpha1) WriteRawdata ¶
func (s *ServiceV1alpha1) WriteRawdata(ctx context.Context, in *DatahubV1alpha1.WriteRawdataRequest) (*status.Status, error)
Write rawdata to database