Documentation ¶
Index ¶
- Constants
- type ContainerRepository
- func (containerRepository *ContainerRepository) CreateContainers(pods []*ApiResources.Pod) error
- func (containerRepository *ContainerRepository) DeleteContainers(pods []*ApiResources.Pod) error
- func (containerRepository *ContainerRepository) IsTag(column string) bool
- func (containerRepository *ContainerRepository) ListAlamedaContainers(namespace, name string, kind ApiResources.Kind, timeRange *ApiCommon.TimeRange) ([]*ApiResources.Pod, error)
- func (containerRepository *ContainerRepository) ListPodsContainers(pods []*ApiResources.Pod) ([]*EntityInfluxClusterStatus.ContainerEntity, error)
- type ControllerRepository
- func (c *ControllerRepository) CreateControllers(controllers []*ApiResources.Controller) error
- func (c *ControllerRepository) DeleteControllers(in *ApiResources.DeleteControllersRequest) error
- func (c *ControllerRepository) ListControllers(in *ApiResources.ListControllersRequest) ([]*ApiResources.Controller, error)
- type NodeRepository
- func (nodeRepository *NodeRepository) AddAlamedaNodes(alamedaNodes []*ApiResources.Node) error
- func (nodeRepository *NodeRepository) IsTag(column string) bool
- func (nodeRepository *NodeRepository) ListAlamedaNodes(timeRange *ApiCommon.TimeRange) ([]*EntityInfluxClusterStatus.NodeEntity, error)
- func (nodeRepository *NodeRepository) ListNodes(request DaoClusterStatus.ListNodesRequest) ([]*EntityInfluxClusterStatus.NodeEntity, error)
- func (nodeRepository *NodeRepository) RemoveAlamedaNodes(alamedaNodes []*ApiResources.Node) error
Constants ¶
View Source
const ( Node influxdb.Measurement = "node" 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 cluster_status database
func NewContainerRepository ¶
func NewContainerRepository(influxDBCfg *InternalInflux.Config) *ContainerRepository
NewContainerRepository creates the ContainerRepository instance
func (*ContainerRepository) CreateContainers ¶
func (containerRepository *ContainerRepository) CreateContainers(pods []*ApiResources.Pod) error
CreateContainers add containers information container measurement
func (*ContainerRepository) DeleteContainers ¶
func (containerRepository *ContainerRepository) DeleteContainers(pods []*ApiResources.Pod) error
DeleteContainers set containers' field is_deleted to true into container measurement
func (*ContainerRepository) IsTag ¶
func (containerRepository *ContainerRepository) IsTag(column string) bool
IsTag checks the column is tag or not
func (*ContainerRepository) ListAlamedaContainers ¶
func (containerRepository *ContainerRepository) ListAlamedaContainers(namespace, name string, kind ApiResources.Kind, timeRange *ApiCommon.TimeRange) ([]*ApiResources.Pod, error)
ListAlamedaContainers list predicted containers have relation with arguments
func (*ContainerRepository) ListPodsContainers ¶
func (containerRepository *ContainerRepository) ListPodsContainers(pods []*ApiResources.Pod) ([]*EntityInfluxClusterStatus.ContainerEntity, error)
ListPodsContainers list containers information container measurement
type ControllerRepository ¶
type ControllerRepository struct {
// contains filtered or unexported fields
}
func NewControllerRepository ¶
func NewControllerRepository(influxDBCfg *InternalInflux.Config) *ControllerRepository
func (*ControllerRepository) CreateControllers ¶
func (c *ControllerRepository) CreateControllers(controllers []*ApiResources.Controller) error
func (*ControllerRepository) DeleteControllers ¶
func (c *ControllerRepository) DeleteControllers(in *ApiResources.DeleteControllersRequest) error
func (*ControllerRepository) ListControllers ¶
func (c *ControllerRepository) ListControllers(in *ApiResources.ListControllersRequest) ([]*ApiResources.Controller, error)
type NodeRepository ¶
type NodeRepository struct {
// contains filtered or unexported fields
}
func NewNodeRepository ¶
func NewNodeRepository(influxDBCfg *InternalInflux.Config) *NodeRepository
func (*NodeRepository) AddAlamedaNodes ¶
func (nodeRepository *NodeRepository) AddAlamedaNodes(alamedaNodes []*ApiResources.Node) error
AddAlamedaNodes add node information to database
func (*NodeRepository) IsTag ¶
func (nodeRepository *NodeRepository) IsTag(column string) bool
func (*NodeRepository) ListAlamedaNodes ¶
func (nodeRepository *NodeRepository) ListAlamedaNodes(timeRange *ApiCommon.TimeRange) ([]*EntityInfluxClusterStatus.NodeEntity, error)
func (*NodeRepository) ListNodes ¶
func (nodeRepository *NodeRepository) ListNodes(request DaoClusterStatus.ListNodesRequest) ([]*EntityInfluxClusterStatus.NodeEntity, error)
func (*NodeRepository) RemoveAlamedaNodes ¶
func (nodeRepository *NodeRepository) RemoveAlamedaNodes(alamedaNodes []*ApiResources.Node) error
Click to show internal directories.
Click to hide internal directories.