Documentation ¶
Index ¶
- Constants
- type AppRepository
- type ClusterRepository
- type ContainerRepository
- func (c *ContainerRepository) CreateContainerRecommendations(in *ApiRecommendations.CreatePodRecommendationsRequest) error
- func (c *ContainerRepository) IsTag(column string) bool
- func (c *ContainerRepository) ListAvailablePodRecommendations(in *ApiRecommendations.ListPodRecommendationsRequest) ([]*ApiRecommendations.PodRecommendation, error)
- func (c *ContainerRepository) ListContainerRecommendations(in *ApiRecommendations.ListPodRecommendationsRequest) ([]*ApiRecommendations.PodRecommendation, error)
- type ControllerRepository
- func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*ApiRecommendations.ControllerRecommendation) error
- func (c *ControllerRepository) ListControllerRecommendations(in *ApiRecommendations.ListControllerRecommendationsRequest) ([]*ApiRecommendations.ControllerRecommendation, error)
- type NamespaceRepository
- type NodeRepository
Constants ¶
View Source
const ( Container influxdb.Measurement = "container" Controller influxdb.Measurement = "controller" Application influxdb.Measurement = "application" Namespace influxdb.Measurement = "namespace" Node influxdb.Measurement = "node" Cluster influxdb.Measurement = "cluster" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRepository ¶
type AppRepository struct {
// contains filtered or unexported fields
}
func NewAppRepository ¶
func NewAppRepository(influxDBCfg *InternalInflux.Config) *AppRepository
func (*AppRepository) CreateRecommendations ¶
func (c *AppRepository) CreateRecommendations(recommendations []*ApiRecommendations.ApplicationRecommendation) error
func (*AppRepository) ListRecommendations ¶
func (c *AppRepository) ListRecommendations(in *ApiRecommendations.ListApplicationRecommendationsRequest) ([]*ApiRecommendations.ApplicationRecommendation, error)
type ClusterRepository ¶
type ClusterRepository struct {
// contains filtered or unexported fields
}
func NewClusterRepository ¶
func NewClusterRepository(influxDBCfg *InternalInflux.Config) *ClusterRepository
func (*ClusterRepository) CreateRecommendations ¶
func (c *ClusterRepository) CreateRecommendations(recommendations []*ApiRecommendations.ClusterRecommendation) error
func (*ClusterRepository) ListRecommendations ¶
func (c *ClusterRepository) ListRecommendations(in *ApiRecommendations.ListClusterRecommendationsRequest) ([]*ApiRecommendations.ClusterRecommendation, error)
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 *ApiRecommendations.CreatePodRecommendationsRequest) error
CreateContainerRecommendations add containers information container measurement
func (*ContainerRepository) IsTag ¶
func (c *ContainerRepository) IsTag(column string) bool
IsTag checks the column is tag or not
func (*ContainerRepository) ListAvailablePodRecommendations ¶
func (c *ContainerRepository) ListAvailablePodRecommendations(in *ApiRecommendations.ListPodRecommendationsRequest) ([]*ApiRecommendations.PodRecommendation, error)
func (*ContainerRepository) ListContainerRecommendations ¶
func (c *ContainerRepository) ListContainerRecommendations(in *ApiRecommendations.ListPodRecommendationsRequest) ([]*ApiRecommendations.PodRecommendation, error)
ListContainerRecommendations list container recommendations
type ControllerRepository ¶
type ControllerRepository struct {
// contains filtered or unexported fields
}
func NewControllerRepository ¶
func NewControllerRepository(influxDBCfg *InternalInflux.Config) *ControllerRepository
func (*ControllerRepository) CreateControllerRecommendations ¶
func (c *ControllerRepository) CreateControllerRecommendations(controllerRecommendations []*ApiRecommendations.ControllerRecommendation) error
func (*ControllerRepository) ListControllerRecommendations ¶
func (c *ControllerRepository) ListControllerRecommendations(in *ApiRecommendations.ListControllerRecommendationsRequest) ([]*ApiRecommendations.ControllerRecommendation, error)
type NamespaceRepository ¶
type NamespaceRepository struct {
// contains filtered or unexported fields
}
func NewNamespaceRepository ¶
func NewNamespaceRepository(influxDBCfg *InternalInflux.Config) *NamespaceRepository
func (*NamespaceRepository) CreateRecommendations ¶
func (c *NamespaceRepository) CreateRecommendations(recommendations []*ApiRecommendations.NamespaceRecommendation) error
func (*NamespaceRepository) ListRecommendations ¶
func (c *NamespaceRepository) ListRecommendations(in *ApiRecommendations.ListNamespaceRecommendationsRequest) ([]*ApiRecommendations.NamespaceRecommendation, error)
type NodeRepository ¶
type NodeRepository struct {
// contains filtered or unexported fields
}
func NewNodeRepository ¶
func NewNodeRepository(influxDBCfg *InternalInflux.Config) *NodeRepository
func (*NodeRepository) CreateRecommendations ¶
func (c *NodeRepository) CreateRecommendations(recommendations []*ApiRecommendations.NodeRecommendation) error
func (*NodeRepository) ListRecommendations ¶
func (c *NodeRepository) ListRecommendations(in *ApiRecommendations.ListNodeRecommendationsRequest) ([]*ApiRecommendations.NodeRecommendation, error)
Click to show internal directories.
Click to hide internal directories.