Documentation ¶
Index ¶
- type ServiceV1alpha1
- func (s *ServiceV1alpha1) CreateAlamedaNodes(ctx context.Context, in *ApiResources.CreateAlamedaNodesRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateControllerPlannings(ctx context.Context, in *ApiPlannings.CreateControllerPlanningsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateControllerRecommendations(ctx context.Context, ...) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateControllers(ctx context.Context, in *ApiResources.CreateControllersRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateEvents(ctx context.Context, in *ApiEvents.CreateEventsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateGpuPredictions(ctx context.Context, in *ApiGpu.CreateGpuPredictionsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateNodeMetrics(ctx context.Context, in *ApiMetrics.CreateNodeMetricsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateNodePredictions(ctx context.Context, in *ApiPredictions.CreateNodePredictionsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodMetrics(ctx context.Context, in *ApiMetrics.CreatePodMetricsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodPlannings(ctx context.Context, in *ApiPlannings.CreatePodPlanningsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodPredictions(ctx context.Context, in *ApiPredictions.CreatePodPredictionsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePodRecommendations(ctx context.Context, in *ApiRecommendations.CreatePodRecommendationsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreatePods(ctx context.Context, in *ApiResources.CreatePodsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) CreateSimulatedSchedulingScores(ctx context.Context, in *ApiScores.CreateSimulatedSchedulingScoresRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) DeleteAlamedaNodes(ctx context.Context, in *ApiResources.DeleteAlamedaNodesRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) DeleteControllers(ctx context.Context, in *ApiResources.DeleteControllersRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) DeletePods(ctx context.Context, in *ApiResources.DeletePodsRequest) (*status.Status, error)
- func (s *ServiceV1alpha1) GetLicense(ctx context.Context, in *empty.Empty) (*ApiLicenses.GetLicenseResponse, error)
- func (s *ServiceV1alpha1) GetWeaveScopeContainerDetails(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) GetWeaveScopeHostDetails(ctx context.Context, in *ApiWeavescope.ListWeaveScopeHostsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) GetWeaveScopePodDetails(ctx context.Context, in *ApiWeavescope.ListWeaveScopePodsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListAlamedaNodes(ctx context.Context, in *ApiResources.ListAlamedaNodesRequest) (*ApiResources.ListNodesResponse, error)
- func (s *ServiceV1alpha1) ListAlamedaPods(ctx context.Context, in *ApiResources.ListAlamedaPodsRequest) (*ApiResources.ListPodsResponse, error)
- func (s *ServiceV1alpha1) ListAvailablePodRecommendations(ctx context.Context, in *ApiRecommendations.ListPodRecommendationsRequest) (*ApiRecommendations.ListPodRecommendationsResponse, error)
- func (s *ServiceV1alpha1) ListControllerPlannings(ctx context.Context, in *ApiPlannings.ListControllerPlanningsRequest) (*ApiPlannings.ListControllerPlanningsResponse, error)
- func (s *ServiceV1alpha1) ListControllerRecommendations(ctx context.Context, ...) (*ApiRecommendations.ListControllerRecommendationsResponse, error)
- func (s *ServiceV1alpha1) ListControllers(ctx context.Context, in *ApiResources.ListControllersRequest) (*ApiResources.ListControllersResponse, error)
- func (s *ServiceV1alpha1) ListEvents(ctx context.Context, in *ApiEvents.ListEventsRequest) (*ApiEvents.ListEventsResponse, error)
- func (s *ServiceV1alpha1) ListGpuMetrics(ctx context.Context, in *ApiGpu.ListGpuMetricsRequest) (*ApiGpu.ListGpuMetricsResponse, error)
- func (s *ServiceV1alpha1) ListGpuPredictions(ctx context.Context, in *ApiGpu.ListGpuPredictionsRequest) (*ApiGpu.ListGpuPredictionsResponse, error)
- func (s *ServiceV1alpha1) ListGpus(ctx context.Context, in *ApiGpu.ListGpusRequest) (*ApiGpu.ListGpusResponse, error)
- func (s *ServiceV1alpha1) ListNodeMetrics(ctx context.Context, in *ApiMetrics.ListNodeMetricsRequest) (*ApiMetrics.ListNodeMetricsResponse, error)
- func (s *ServiceV1alpha1) ListNodePredictions(ctx context.Context, in *ApiPredictions.ListNodePredictionsRequest) (*ApiPredictions.ListNodePredictionsResponse, error)
- func (s *ServiceV1alpha1) ListNodes(ctx context.Context, in *ApiResources.ListNodesRequest) (*ApiResources.ListNodesResponse, error)
- func (s *ServiceV1alpha1) ListPodMetrics(ctx context.Context, in *ApiMetrics.ListPodMetricsRequest) (*ApiMetrics.ListPodMetricsResponse, error)
- func (s *ServiceV1alpha1) ListPodMetricsDemo(ctx context.Context, in *ApiMetrics.ListPodMetricsRequest) (*ApiMetrics.ListPodMetricsResponse, error)
- func (s *ServiceV1alpha1) ListPodPlannings(ctx context.Context, in *ApiPlannings.ListPodPlanningsRequest) (*ApiPlannings.ListPodPlanningsResponse, error)
- func (s *ServiceV1alpha1) ListPodPredictions(ctx context.Context, in *ApiPredictions.ListPodPredictionsRequest) (*ApiPredictions.ListPodPredictionsResponse, error)
- func (s *ServiceV1alpha1) ListPodPredictionsDemo(ctx context.Context, in *ApiPredictions.ListPodPredictionsRequest) (*ApiPredictions.ListPodPredictionsResponse, error)
- func (s *ServiceV1alpha1) ListPodRecommendations(ctx context.Context, in *ApiRecommendations.ListPodRecommendationsRequest) (*ApiRecommendations.ListPodRecommendationsResponse, error)
- func (s *ServiceV1alpha1) ListPodsByNodeName(ctx context.Context, in *ApiResources.ListPodsByNodeNamesRequest) (*ApiResources.ListPodsResponse, error)
- func (s *ServiceV1alpha1) ListSimulatedSchedulingScores(ctx context.Context, in *ApiScores.ListSimulatedSchedulingScoresRequest) (*ApiScores.ListSimulatedSchedulingScoresResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeContainers(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeContainersByHostname(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeContainersByImage(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopeHosts(ctx context.Context, in *ApiWeavescope.ListWeaveScopeHostsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) ListWeaveScopePods(ctx context.Context, in *ApiWeavescope.ListWeaveScopePodsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
- func (s *ServiceV1alpha1) Ping(ctx context.Context, in *empty.Empty) (*status.Status, error)
- func (s *ServiceV1alpha1) ReadRawdata(ctx context.Context, in *ApiRawdata.ReadRawdataRequest) (*ApiRawdata.ReadRawdataResponse, error)
- func (s *ServiceV1alpha1) WriteRawdata(ctx context.Context, in *ApiRawdata.WriteRawdataRequest) (*status.Status, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 *ApiResources.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 *ApiPlannings.CreateControllerPlanningsRequest) (*status.Status, error)
CreateControllerPlannings add controller plannings information to database
func (*ServiceV1alpha1) CreateControllerRecommendations ¶
func (s *ServiceV1alpha1) CreateControllerRecommendations(ctx context.Context, in *ApiRecommendations.CreateControllerRecommendationsRequest) (*status.Status, error)
CreatePodRecommendations add controller recommendations information to database
func (*ServiceV1alpha1) CreateControllers ¶
func (s *ServiceV1alpha1) CreateControllers(ctx context.Context, in *ApiResources.CreateControllersRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateEvents ¶
func (s *ServiceV1alpha1) CreateEvents(ctx context.Context, in *ApiEvents.CreateEventsRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateGpuPredictions ¶ added in v0.9.166
func (s *ServiceV1alpha1) CreateGpuPredictions(ctx context.Context, in *ApiGpu.CreateGpuPredictionsRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateNodeMetrics ¶ added in v0.9.166
func (s *ServiceV1alpha1) CreateNodeMetrics(ctx context.Context, in *ApiMetrics.CreateNodeMetricsRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreateNodePredictions ¶
func (s *ServiceV1alpha1) CreateNodePredictions(ctx context.Context, in *ApiPredictions.CreateNodePredictionsRequest) (*status.Status, error)
CreateNodePredictions add node predictions information to database
func (*ServiceV1alpha1) CreatePodMetrics ¶ added in v0.9.166
func (s *ServiceV1alpha1) CreatePodMetrics(ctx context.Context, in *ApiMetrics.CreatePodMetricsRequest) (*status.Status, error)
func (*ServiceV1alpha1) CreatePodPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) CreatePodPlannings(ctx context.Context, in *ApiPlannings.CreatePodPlanningsRequest) (*status.Status, error)
CreatePodPlannings add pod plannings information to database
func (*ServiceV1alpha1) CreatePodPredictions ¶
func (s *ServiceV1alpha1) CreatePodPredictions(ctx context.Context, in *ApiPredictions.CreatePodPredictionsRequest) (*status.Status, error)
CreatePodPredictions add pod predictions information to database
func (*ServiceV1alpha1) CreatePodRecommendations ¶
func (s *ServiceV1alpha1) CreatePodRecommendations(ctx context.Context, in *ApiRecommendations.CreatePodRecommendationsRequest) (*status.Status, error)
CreatePodRecommendations add pod recommendations information to database
func (*ServiceV1alpha1) CreatePods ¶
func (s *ServiceV1alpha1) CreatePods(ctx context.Context, in *ApiResources.CreatePodsRequest) (*status.Status, error)
CreatePods add containers information of pods to database
func (*ServiceV1alpha1) CreateSimulatedSchedulingScores ¶
func (s *ServiceV1alpha1) CreateSimulatedSchedulingScores(ctx context.Context, in *ApiScores.CreateSimulatedSchedulingScoresRequest) (*status.Status, error)
CreateSimulatedSchedulingScores add simulated scheduling scores to database
func (*ServiceV1alpha1) DeleteAlamedaNodes ¶
func (s *ServiceV1alpha1) DeleteAlamedaNodes(ctx context.Context, in *ApiResources.DeleteAlamedaNodesRequest) (*status.Status, error)
DeleteAlamedaNodes remove node information to database
func (*ServiceV1alpha1) DeleteControllers ¶
func (s *ServiceV1alpha1) DeleteControllers(ctx context.Context, in *ApiResources.DeleteControllersRequest) (*status.Status, error)
func (*ServiceV1alpha1) DeletePods ¶
func (s *ServiceV1alpha1) DeletePods(ctx context.Context, in *ApiResources.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) (*ApiLicenses.GetLicenseResponse, error)
func (*ServiceV1alpha1) GetWeaveScopeContainerDetails ¶
func (s *ServiceV1alpha1) GetWeaveScopeContainerDetails(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) GetWeaveScopeHostDetails ¶
func (s *ServiceV1alpha1) GetWeaveScopeHostDetails(ctx context.Context, in *ApiWeavescope.ListWeaveScopeHostsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) GetWeaveScopePodDetails ¶
func (s *ServiceV1alpha1) GetWeaveScopePodDetails(ctx context.Context, in *ApiWeavescope.ListWeaveScopePodsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListAlamedaNodes ¶
func (s *ServiceV1alpha1) ListAlamedaNodes(ctx context.Context, in *ApiResources.ListAlamedaNodesRequest) (*ApiResources.ListNodesResponse, error)
ListAlamedaNodes list nodes in cluster
func (*ServiceV1alpha1) ListAlamedaPods ¶
func (s *ServiceV1alpha1) ListAlamedaPods(ctx context.Context, in *ApiResources.ListAlamedaPodsRequest) (*ApiResources.ListPodsResponse, error)
ListAlamedaPods returns predicted pods
func (*ServiceV1alpha1) ListAvailablePodRecommendations ¶
func (s *ServiceV1alpha1) ListAvailablePodRecommendations(ctx context.Context, in *ApiRecommendations.ListPodRecommendationsRequest) (*ApiRecommendations.ListPodRecommendationsResponse, error)
ListAvailablePodRecommendations list pod recommendations
func (*ServiceV1alpha1) ListControllerPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) ListControllerPlannings(ctx context.Context, in *ApiPlannings.ListControllerPlanningsRequest) (*ApiPlannings.ListControllerPlanningsResponse, error)
ListControllerPlannings list controller plannings
func (*ServiceV1alpha1) ListControllerRecommendations ¶
func (s *ServiceV1alpha1) ListControllerRecommendations(ctx context.Context, in *ApiRecommendations.ListControllerRecommendationsRequest) (*ApiRecommendations.ListControllerRecommendationsResponse, error)
ListControllerRecommendations list controller recommendations
func (*ServiceV1alpha1) ListControllers ¶
func (s *ServiceV1alpha1) ListControllers(ctx context.Context, in *ApiResources.ListControllersRequest) (*ApiResources.ListControllersResponse, error)
func (*ServiceV1alpha1) ListEvents ¶
func (s *ServiceV1alpha1) ListEvents(ctx context.Context, in *ApiEvents.ListEventsRequest) (*ApiEvents.ListEventsResponse, error)
func (*ServiceV1alpha1) ListGpuMetrics ¶ added in v0.9.166
func (s *ServiceV1alpha1) ListGpuMetrics(ctx context.Context, in *ApiGpu.ListGpuMetricsRequest) (*ApiGpu.ListGpuMetricsResponse, error)
func (*ServiceV1alpha1) ListGpuPredictions ¶ added in v0.9.166
func (s *ServiceV1alpha1) ListGpuPredictions(ctx context.Context, in *ApiGpu.ListGpuPredictionsRequest) (*ApiGpu.ListGpuPredictionsResponse, error)
func (*ServiceV1alpha1) ListGpus ¶ added in v0.9.166
func (s *ServiceV1alpha1) ListGpus(ctx context.Context, in *ApiGpu.ListGpusRequest) (*ApiGpu.ListGpusResponse, error)
func (*ServiceV1alpha1) ListNodeMetrics ¶
func (s *ServiceV1alpha1) ListNodeMetrics(ctx context.Context, in *ApiMetrics.ListNodeMetricsRequest) (*ApiMetrics.ListNodeMetricsResponse, error)
func (*ServiceV1alpha1) ListNodePredictions ¶
func (s *ServiceV1alpha1) ListNodePredictions(ctx context.Context, in *ApiPredictions.ListNodePredictionsRequest) (*ApiPredictions.ListNodePredictionsResponse, error)
ListNodePredictions list nodes' predictions
func (*ServiceV1alpha1) ListNodes ¶
func (s *ServiceV1alpha1) ListNodes(ctx context.Context, in *ApiResources.ListNodesRequest) (*ApiResources.ListNodesResponse, error)
func (*ServiceV1alpha1) ListPodMetrics ¶
func (s *ServiceV1alpha1) ListPodMetrics(ctx context.Context, in *ApiMetrics.ListPodMetricsRequest) (*ApiMetrics.ListPodMetricsResponse, error)
func (*ServiceV1alpha1) ListPodMetricsDemo ¶
func (s *ServiceV1alpha1) ListPodMetricsDemo(ctx context.Context, in *ApiMetrics.ListPodMetricsRequest) (*ApiMetrics.ListPodMetricsResponse, error)
ListPodMetrics list pods' metrics for demo
func (*ServiceV1alpha1) ListPodPlannings ¶ added in v0.9.1
func (s *ServiceV1alpha1) ListPodPlannings(ctx context.Context, in *ApiPlannings.ListPodPlanningsRequest) (*ApiPlannings.ListPodPlanningsResponse, error)
ListPodPlannings list pod plannings
func (*ServiceV1alpha1) ListPodPredictions ¶
func (s *ServiceV1alpha1) ListPodPredictions(ctx context.Context, in *ApiPredictions.ListPodPredictionsRequest) (*ApiPredictions.ListPodPredictionsResponse, error)
ListPodPredictions list pods' predictions
func (*ServiceV1alpha1) ListPodPredictionsDemo ¶
func (s *ServiceV1alpha1) ListPodPredictionsDemo(ctx context.Context, in *ApiPredictions.ListPodPredictionsRequest) (*ApiPredictions.ListPodPredictionsResponse, error)
ListPodPredictions list pods' predictions for demo
func (*ServiceV1alpha1) ListPodRecommendations ¶
func (s *ServiceV1alpha1) ListPodRecommendations(ctx context.Context, in *ApiRecommendations.ListPodRecommendationsRequest) (*ApiRecommendations.ListPodRecommendationsResponse, error)
ListPodRecommendations list pod recommendations
func (*ServiceV1alpha1) ListPodsByNodeName ¶
func (s *ServiceV1alpha1) ListPodsByNodeName(ctx context.Context, in *ApiResources.ListPodsByNodeNamesRequest) (*ApiResources.ListPodsResponse, error)
ListPodsByNodeName list pods running on specific nodes
func (*ServiceV1alpha1) ListSimulatedSchedulingScores ¶
func (s *ServiceV1alpha1) ListSimulatedSchedulingScores(ctx context.Context, in *ApiScores.ListSimulatedSchedulingScoresRequest) (*ApiScores.ListSimulatedSchedulingScoresResponse, error)
ListSimulatedSchedulingScores list simulated scheduling scores
func (*ServiceV1alpha1) ListWeaveScopeContainers ¶
func (s *ServiceV1alpha1) ListWeaveScopeContainers(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopeContainersByHostname ¶
func (s *ServiceV1alpha1) ListWeaveScopeContainersByHostname(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopeContainersByImage ¶
func (s *ServiceV1alpha1) ListWeaveScopeContainersByImage(ctx context.Context, in *ApiWeavescope.ListWeaveScopeContainersRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopeHosts ¶
func (s *ServiceV1alpha1) ListWeaveScopeHosts(ctx context.Context, in *ApiWeavescope.ListWeaveScopeHostsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ListWeaveScopePods ¶
func (s *ServiceV1alpha1) ListWeaveScopePods(ctx context.Context, in *ApiWeavescope.ListWeaveScopePodsRequest) (*ApiWeavescope.WeaveScopeResponse, error)
func (*ServiceV1alpha1) ReadRawdata ¶
func (s *ServiceV1alpha1) ReadRawdata(ctx context.Context, in *ApiRawdata.ReadRawdataRequest) (*ApiRawdata.ReadRawdataResponse, error)
Read rawdata from database
func (*ServiceV1alpha1) WriteRawdata ¶
func (s *ServiceV1alpha1) WriteRawdata(ctx context.Context, in *ApiRawdata.WriteRawdataRequest) (*status.Status, error)
Write rawdata to database
Source Files ¶
- events.go
- gpu.go
- licenses.go
- metrics-node.go
- metrics-pod.go
- ping.go
- plannings-controller.go
- plannings-pod.go
- predictions-node.go
- predictions-pod.go
- rawdata.go
- recommendations-controller.go
- recommendations-pod.go
- resources-controller.go
- resources-node.go
- resources-pod.go
- scores.go
- v1alpha1.go
- weavescope.go