Documentation ¶
Index ¶
- Constants
- type ContainerRepository
- func (containerRepository *ContainerRepository) CreateContainerRecommendations(podRecommendations []*datahub_v1alpha1.PodRecommendation) error
- func (containerRepository *ContainerRepository) IsTag(column string) bool
- func (c *ContainerRepository) ListAvailablePodRecommendations(in *datahub_v1alpha1.ListPodRecommendationsRequest) ([]*datahub_v1alpha1.PodRecommendation, error)
- func (containerRepository *ContainerRepository) ListContainerRecommendations(podNamespacedName *datahub_v1alpha1.NamespacedName, ...) ([]*datahub_v1alpha1.PodRecommendation, error)
- type ControllerRepository
- func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*datahub_v1alpha1.ControllerRecommendation) error
- func (c *ControllerRepository) ListControllerRecommendations(controllerNamespacedName *datahub_v1alpha1.NamespacedName, ...) ([]*datahub_v1alpha1.ControllerRecommendation, error)
- func (c *ControllerRepository) NewRecommendationFromMap(data map[string]string) *datahub_v1alpha1.ControllerRecommendation
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 *influxdb.Config) *ContainerRepository
NewContainerRepository creates the ContainerRepository instance
func (*ContainerRepository) CreateContainerRecommendations ¶
func (containerRepository *ContainerRepository) CreateContainerRecommendations(podRecommendations []*datahub_v1alpha1.PodRecommendation) 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 (containerRepository *ContainerRepository) ListContainerRecommendations(podNamespacedName *datahub_v1alpha1.NamespacedName, queryCondition *datahub_v1alpha1.QueryCondition, kind datahub_v1alpha1.Kind) ([]*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 *influxdb.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(controllerNamespacedName *datahub_v1alpha1.NamespacedName, queryCondition *datahub_v1alpha1.QueryCondition) ([]*datahub_v1alpha1.ControllerRecommendation, error)
ListContainerRecommendations list container recommendations
func (*ControllerRepository) NewRecommendationFromMap ¶ added in v0.3.8
func (c *ControllerRepository) NewRecommendationFromMap(data map[string]string) *datahub_v1alpha1.ControllerRecommendation
NewEntityFromMap Build entity from map
Click to show internal directories.
Click to hide internal directories.