Documentation ¶
Index ¶
- func CreateCert(commonName string, duration time.Duration) (key, cert []byte, err error)
- func InitCaCert()
- func InitClusterStatus()
- func InitKubeSec()
- func KubeUpdateClusterThreatStat(ctx context.Context, cluster_id *string)
- func KubeUpdateThreatStatProc()
- func LoadCaCert() []byte
- type ClusterRsp
- type KubeAlarmRawData
- type KubeClusterInfoSimpleItem
- type KubeThreatPreviewDataItem
- type KubeThreatSourceDataItem
- type KubeThreatSourceIpStatistics
- type KubeThreatStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCert ¶
func InitCaCert ¶
func InitCaCert()
func InitClusterStatus ¶
func InitClusterStatus()
func InitKubeSec ¶
func InitKubeSec()
func KubeUpdateThreatStatProc ¶
func KubeUpdateThreatStatProc()
func LoadCaCert ¶
func LoadCaCert() []byte
Types ¶
type ClusterRsp ¶
type KubeAlarmRawData ¶
type KubeAlarmRawData struct {
RawData map[string]interface{} `json:"raw_data"`
}
************************************* RAW *************************************
type KubeThreatPreviewDataItem ¶
type KubeThreatPreviewDataItem struct { Name string `json:"name,omitempty" bson:"name,omitempty"` Percentage float64 `json:"percentage,omitempty" bson:"percentage,omitempty"` Quantity int32 `json:"quantity,omitempty" bson:"quantity,omitempty"` }
func KubeAggresRuleNameInfos ¶
type KubeThreatSourceDataItem ¶
type KubeThreatSourceDataItem struct {
SourceIP string `json:"source_ip,omitempty" bson:"source_ip,omitempty"`
}
func KubeQuerySourceInfos ¶
type KubeThreatStatistics ¶
type KubeThreatStatistics struct { ClusterId string `json:"cluster_id,omitempty" bson:"cluster_id,omitempty"` SourceDist []KubeThreatPreviewDataItem `json:"source_distribution,omitempty" bson:"source_distribution,omitempty"` ThreatDist []KubeThreatPreviewDataItem `json:"threat_distribution,omitempty" bson:"threat_distribution,omitempty"` AbnormalDist []KubeThreatPreviewDataItem `json:"abnormal_distribution,omitempty" bson:"abnormal_distribution,omitempty"` ResourceDist []KubeThreatPreviewDataItem `json:"threatres_distribution,omitempty" bson:"threatres_distribution,omitempty"` ExploitDist []KubeThreatPreviewDataItem `json:"vul_exploit_distribution" bson:"vul_exploit_distribution"` UpdateTime string `json:"update_time,omitempty" bson:"update_time,omitempty"` }
Click to show internal directories.
Click to hide internal directories.