Documentation ¶
Index ¶
- Constants
- type ContainerRepository
- func (c *ContainerRepository) CreateContainerRecommendations(in *datahub_v1alpha1.CreatePodRecommendationsRequest) error
- func (containerRepository *ContainerRepository) IsTag(column string) bool
- func (c *ContainerRepository) ListAvailablePodRecommendations(in *datahub_v1alpha1.ListPodRecommendationsRequest) ([]*datahub_v1alpha1.PodRecommendation, error)
- func (c *ContainerRepository) ListContainerRecommendations(in *datahub_v1alpha1.ListPodRecommendationsRequest) ([]*datahub_v1alpha1.PodRecommendation, error)
- type ControllerRepository
- func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*datahub_v1alpha1.ControllerRecommendation) error
- func (c *ControllerRepository) ListControllerRecommendations(in *datahub_v1alpha1.ListControllerRecommendationsRequest) ([]*datahub_v1alpha1.ControllerRecommendation, error)
Constants ¶
View Source
const ( // Container is container measurement Container influxdb.Measurement = "container" Controller influxdb.Measurement = "controller" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerRepository ¶
type ContainerRepository struct {
// contains filtered or unexported fields
}
ContainerRepository is used to operate node measurement of recommendation database
func NewContainerRepository ¶
func NewContainerRepository(influxDBCfg *InternalInflux.Config) *ContainerRepository
NewContainerRepository creates the ContainerRepository instance
func (*ContainerRepository) CreateContainerRecommendations ¶
func (c *ContainerRepository) CreateContainerRecommendations(in *datahub_v1alpha1.CreatePodRecommendationsRequest) error
CreateContainerRecommendations add containers information container measurement
func (*ContainerRepository) IsTag ¶
func (containerRepository *ContainerRepository) IsTag(column string) bool
IsTag checks the column is tag or not
func (*ContainerRepository) ListAvailablePodRecommendations ¶ added in v0.3.8
func (c *ContainerRepository) ListAvailablePodRecommendations(in *datahub_v1alpha1.ListPodRecommendationsRequest) ([]*datahub_v1alpha1.PodRecommendation, error)
func (*ContainerRepository) ListContainerRecommendations ¶
func (c *ContainerRepository) ListContainerRecommendations(in *datahub_v1alpha1.ListPodRecommendationsRequest) ([]*datahub_v1alpha1.PodRecommendation, error)
ListContainerRecommendations list container recommendations
type ControllerRepository ¶ added in v0.3.8
type ControllerRepository struct {
// contains filtered or unexported fields
}
func NewControllerRepository ¶ added in v0.3.8
func NewControllerRepository(influxDBCfg *InternalInflux.Config) *ControllerRepository
func (*ControllerRepository) CreateControllerRecommendations ¶ added in v0.3.8
func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*datahub_v1alpha1.ControllerRecommendation) error
func (*ControllerRepository) ListControllerRecommendations ¶ added in v0.3.8
func (c *ControllerRepository) ListControllerRecommendations(in *datahub_v1alpha1.ListControllerRecommendationsRequest) ([]*datahub_v1alpha1.ControllerRecommendation, error)
Click to show internal directories.
Click to hide internal directories.