Documentation ¶
Index ¶
- Constants
- type ApplicationRepository
- type ClusterRepository
- type ContainerRepository
- func (p *ContainerRepository) ClusterNamespacePodName(values map[string]string) string
- func (p *ContainerRepository) CreateContainers(containers map[string][]*DaoClusterTypes.Container) error
- func (p *ContainerRepository) DeleteContainers(request DaoClusterTypes.DeleteContainersRequest) error
- func (p *ContainerRepository) IsTag(column string) bool
- func (p *ContainerRepository) ListContainers(request DaoClusterTypes.ListContainersRequest) (map[string][]*DaoClusterTypes.Container, error)
- type ControllerRepository
- func (c *ControllerRepository) CreateControllers(controllers []*DaoClusterTypes.Controller) error
- func (c *ControllerRepository) DeleteControllers(in *ApiResources.DeleteControllersRequest) error
- func (c *ControllerRepository) ListControllers(request DaoClusterTypes.ListControllersRequest) ([]*DaoClusterTypes.Controller, error)
- type NamespaceRepository
- type NodeRepository
- func (p *NodeRepository) CreateNodes(nodes []*DaoClusterTypes.Node) error
- func (p *NodeRepository) DeleteNodes(alamedaNodes []*ApiResources.Node) error
- func (p *NodeRepository) IsTag(column string) bool
- func (p *NodeRepository) ListNodes(request DaoClusterTypes.ListNodesRequest) ([]*DaoClusterTypes.Node, error)
- type PodRepository
- func (p *PodRepository) CreatePods(pods []*DaoClusterTypes.Pod) error
- func (p *PodRepository) DeletePods(request DaoClusterTypes.DeletePodsRequest) error
- func (p *PodRepository) IsTag(column string) bool
- func (p *PodRepository) ListPods(request DaoClusterTypes.ListPodsRequest) ([]*DaoClusterTypes.Pod, error)
Constants ¶
View Source
const ( Container influxdb.Measurement = "container" Pod influxdb.Measurement = "pod" 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 ApplicationRepository ¶
type ApplicationRepository struct {
// contains filtered or unexported fields
}
func NewApplicationRepositoryWithConfig ¶
func NewApplicationRepositoryWithConfig(influxDBCfg InternalInflux.Config) *ApplicationRepository
func (*ApplicationRepository) CreateApplications ¶
func (c *ApplicationRepository) CreateApplications(applications []*DaoClusterTypes.Application) error
func (*ApplicationRepository) ListApplications ¶
func (c *ApplicationRepository) ListApplications(request DaoClusterTypes.ListApplicationsRequest) ([]*DaoClusterTypes.Application, error)
type ClusterRepository ¶
type ClusterRepository struct {
// contains filtered or unexported fields
}
func NewClusterRepositoryWithConfig ¶
func NewClusterRepositoryWithConfig(influxDBCfg InternalInflux.Config) *ClusterRepository
func (*ClusterRepository) CreateClusters ¶
func (c *ClusterRepository) CreateClusters(clusters []*DaoClusterTypes.Cluster) error
func (*ClusterRepository) ListClusters ¶
func (c *ClusterRepository) ListClusters(request DaoClusterTypes.ListClustersRequest) ([]*DaoClusterTypes.Cluster, error)
type ContainerRepository ¶
type ContainerRepository struct {
// contains filtered or unexported fields
}
func NewContainerRepository ¶
func NewContainerRepository(influxDBCfg *InternalInflux.Config) *ContainerRepository
func (*ContainerRepository) ClusterNamespacePodName ¶
func (p *ContainerRepository) ClusterNamespacePodName(values map[string]string) string
func (*ContainerRepository) CreateContainers ¶
func (p *ContainerRepository) CreateContainers(containers map[string][]*DaoClusterTypes.Container) error
CreateContainers add containers information container measurement
func (*ContainerRepository) DeleteContainers ¶
func (p *ContainerRepository) DeleteContainers(request DaoClusterTypes.DeleteContainersRequest) error
DeleteContainers set containers' field is_deleted to true into container measurement
func (*ContainerRepository) IsTag ¶
func (p *ContainerRepository) IsTag(column string) bool
func (*ContainerRepository) ListContainers ¶
func (p *ContainerRepository) ListContainers(request DaoClusterTypes.ListContainersRequest) (map[string][]*DaoClusterTypes.Container, error)
ListContainers list predicted containers have relation with arguments
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 []*DaoClusterTypes.Controller) error
func (*ControllerRepository) DeleteControllers ¶
func (c *ControllerRepository) DeleteControllers(in *ApiResources.DeleteControllersRequest) error
func (*ControllerRepository) ListControllers ¶
func (c *ControllerRepository) ListControllers(request DaoClusterTypes.ListControllersRequest) ([]*DaoClusterTypes.Controller, error)
type NamespaceRepository ¶
type NamespaceRepository struct {
// contains filtered or unexported fields
}
func NewNamespaceRepositoryWithConfig ¶
func NewNamespaceRepositoryWithConfig(influxDBCfg InternalInflux.Config) *NamespaceRepository
func (*NamespaceRepository) CreateNamespaces ¶
func (c *NamespaceRepository) CreateNamespaces(namespaces []*DaoClusterTypes.Namespace) error
func (*NamespaceRepository) ListNamespaces ¶
func (c *NamespaceRepository) ListNamespaces(request DaoClusterTypes.ListNamespacesRequest) ([]*DaoClusterTypes.Namespace, error)
type NodeRepository ¶
type NodeRepository struct {
// contains filtered or unexported fields
}
func NewNodeRepository ¶
func NewNodeRepository(influxDBCfg *InternalInflux.Config) *NodeRepository
func (*NodeRepository) CreateNodes ¶
func (p *NodeRepository) CreateNodes(nodes []*DaoClusterTypes.Node) error
func (*NodeRepository) DeleteNodes ¶
func (p *NodeRepository) DeleteNodes(alamedaNodes []*ApiResources.Node) error
func (*NodeRepository) IsTag ¶
func (p *NodeRepository) IsTag(column string) bool
func (*NodeRepository) ListNodes ¶
func (p *NodeRepository) ListNodes(request DaoClusterTypes.ListNodesRequest) ([]*DaoClusterTypes.Node, error)
type PodRepository ¶
type PodRepository struct {
// contains filtered or unexported fields
}
func NewPodRepository ¶
func NewPodRepository(influxDBCfg *InternalInflux.Config) *PodRepository
func (*PodRepository) CreatePods ¶
func (p *PodRepository) CreatePods(pods []*DaoClusterTypes.Pod) error
func (*PodRepository) DeletePods ¶
func (p *PodRepository) DeletePods(request DaoClusterTypes.DeletePodsRequest) error
func (*PodRepository) IsTag ¶
func (p *PodRepository) IsTag(column string) bool
func (*PodRepository) ListPods ¶
func (p *PodRepository) ListPods(request DaoClusterTypes.ListPodsRequest) ([]*DaoClusterTypes.Pod, error)
Click to show internal directories.
Click to hide internal directories.