datahub

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BindAddress string                      `mapstructure:"bind-address"`
	Prometheus  *prometheus.Config          `mapstructure:"prometheus"`
	InfluxDB    *influxdb_repository.Config `mapstructure:"influxdb"`
	Log         *log.Config                 `mapstructure:"log"`
}

func NewDefaultConfig

func NewDefaultConfig() Config

func (*Config) Validate

func (c *Config) Validate() error

type Server

type Server struct {
	Config    Config
	K8SClient client.Client
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg Config) (*Server, error)

func (*Server) CreateAlamedaNodes

func (s *Server) CreateAlamedaNodes(ctx context.Context, in *datahub_v1alpha1.CreateAlamedaNodesRequest) (*status.Status, error)

CreateAlamedaNodes add node information to database

func (*Server) CreateNodePredictions

func (s *Server) CreateNodePredictions(ctx context.Context, in *datahub_v1alpha1.CreateNodePredictionsRequest) (*status.Status, error)

CreateNodePredictions add node predictions information to database

func (*Server) CreatePodPredictions

func (s *Server) CreatePodPredictions(ctx context.Context, in *datahub_v1alpha1.CreatePodPredictionsRequest) (*status.Status, error)

CreatePodPredictions add pod predictions information to database

func (*Server) CreatePodRecommendations

func (s *Server) CreatePodRecommendations(ctx context.Context, in *datahub_v1alpha1.CreatePodRecommendationsRequest) (*status.Status, error)

CreatePodRecommendations add pod recommendations information to database

func (*Server) CreatePods

CreatePods add containers information of pods to database

func (*Server) CreateSimulatedSchedulingScores

func (s *Server) CreateSimulatedSchedulingScores(ctx context.Context, in *datahub_v1alpha1.CreateSimulatedSchedulingScoresRequest) (*status.Status, error)

CreateSimulatedSchedulingScores add simulated scheduling scores to database

func (*Server) DeleteAlamedaNodes

func (s *Server) DeleteAlamedaNodes(ctx context.Context, in *datahub_v1alpha1.DeleteAlamedaNodesRequest) (*status.Status, error)

DeleteAlamedaNodes remove node information to database

func (*Server) DeletePods

DeletePods update containers information of pods to database

func (*Server) Err

func (s *Server) Err() <-chan error

func (*Server) ListAlamedaNodes

func (s *Server) ListAlamedaNodes(ctx context.Context, in *empty.Empty) (*datahub_v1alpha1.ListNodesResponse, error)

ListAlamedaNodes list nodes in cluster

func (*Server) ListAlamedaPods

ListAlamedaPods returns predicted pods

func (*Server) ListNodeMetrics

ListNodeMetrics list nodes' metrics

func (*Server) ListNodePredictions

ListNodePredictions list nodes' predictions

func (*Server) ListNodes added in v0.3.0

func (*Server) ListPodMetrics

ListPodMetrics list pods' metrics

func (*Server) ListPodPredictions

ListPodPredictions list pods' predictions

func (*Server) ListPodRecommendations

ListPodRecommendations list pod recommendations

func (*Server) ListPodsByNodeName

ListPodsByNodeName list pods running on specific nodes

func (*Server) ListSimulatedSchedulingScores

ListSimulatedSchedulingScores list simulated scheduling scores

func (*Server) Run

func (s *Server) Run() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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