Documentation ¶
Index ¶
- Variables
- type CheckInfoData
- func (c CheckInfoData) CopyCheckInfo() map[string]map[string]float64
- func (c *CheckInfoData) DeleteCheckedIpCheckInfo(ip string)
- func (c *CheckInfoData) GetLenCheckInfo() int
- func (c *CheckInfoData) SetCheckInfo(checkedIp, pluginName string, weight float64, score int)
- func (c *CheckInfoData) SetCheckedIpCheckInfo(checkedIp string)
- func (c CheckInfoData) TraverseCheckedIpCheckInfo() []string
- type CommunicateData
- type ConfigMapListData
- type NodeListData
- func (n NodeListData) CopyNodeListData() []metav1.PartialObjectMetadata
- func (n *NodeListData) DeleteNodeListDataByNode(node metav1.PartialObjectMetadata)
- func (n *NodeListData) GetLenListData() int
- func (n *NodeListData) SetNodeListDataByNode(node metav1.PartialObjectMetadata)
- func (n *NodeListData) SetNodeListDataByNodeSlice(nodeslice []runtime.Object)
- type ResultData
- func (r ResultData) CopyLocalResultData(localip string) map[string]ResultDetail
- func (r ResultData) CopyResultDataAll() map[string]map[string]ResultDetail
- func (r *ResultData) DeleteResultData(ip string)
- func (r ResultData) GetLocalResultData(localip string) map[string]ResultDetail
- func (r ResultData) GetResultDataAll() map[string]map[string]ResultDetail
- func (r *ResultData) SetResult(c *CommunicateData)
- func (r *ResultData) SetResultFromCheckInfo(LocalIp, desip string, result ResultDetail)
- type ResultDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CheckOnce sync.Once CheckInfoDataMu sync.Mutex CheckInfoResult CheckInfoData )
View Source
var ( ConfigMapListOnce sync.Once ConfigMapListMu sync.Mutex ConfigMapList ConfigMapListData )
View Source
var ( NodeListOnce sync.Once NodeListMu sync.Mutex NodeList NodeListData )
View Source
var ( Result ResultData ResultDataMu sync.Mutex ResultOnce sync.Once )
Functions ¶
This section is empty.
Types ¶
type CheckInfoData ¶
type CheckInfoData struct { CheckInfo map[string]map[string]float64 //string:checked ip string:Plugin name int:check score CheckInfoDataMu *sync.Mutex }
func NewCheckInfoData ¶
func NewCheckInfoData() CheckInfoData
func (CheckInfoData) CopyCheckInfo ¶
func (c CheckInfoData) CopyCheckInfo() map[string]map[string]float64
func (*CheckInfoData) DeleteCheckedIpCheckInfo ¶
func (c *CheckInfoData) DeleteCheckedIpCheckInfo(ip string)
func (*CheckInfoData) GetLenCheckInfo ¶
func (c *CheckInfoData) GetLenCheckInfo() int
func (*CheckInfoData) SetCheckInfo ¶
func (c *CheckInfoData) SetCheckInfo(checkedIp, pluginName string, weight float64, score int)
func (*CheckInfoData) SetCheckedIpCheckInfo ¶
func (c *CheckInfoData) SetCheckedIpCheckInfo(checkedIp string)
func (CheckInfoData) TraverseCheckedIpCheckInfo ¶
func (c CheckInfoData) TraverseCheckedIpCheckInfo() []string
type CommunicateData ¶
type CommunicateData struct { SourceIP string `json:"sourceIP,omitempty"` //clientIP,checker ip ResultDetail map[string]ResultDetail `json:"resultDetail,omitempty"` //checdedip checkdetail Hmac string `json:"hmac,omitempty"` }
type ConfigMapListData ¶
type ConfigMapListData struct { ConfigMapList v1.ConfigMapList ConfigMapListMu *sync.Mutex }
func NewConfigMapListData ¶
func NewConfigMapListData() ConfigMapListData
func (*ConfigMapListData) DeleteConfigListData ¶
func (n *ConfigMapListData) DeleteConfigListData(cm v1.ConfigMap)
func (*ConfigMapListData) SetConfigListData ¶
func (n *ConfigMapListData) SetConfigListData(cm v1.ConfigMap)
type NodeListData ¶
type NodeListData struct { NodeList []metav1.PartialObjectMetadata NodeListMu *sync.Mutex }
func NewNodeListData ¶
func NewNodeListData() NodeListData
func (NodeListData) CopyNodeListData ¶
func (n NodeListData) CopyNodeListData() []metav1.PartialObjectMetadata
func (*NodeListData) DeleteNodeListDataByNode ¶
func (n *NodeListData) DeleteNodeListDataByNode(node metav1.PartialObjectMetadata)
func (*NodeListData) GetLenListData ¶
func (n *NodeListData) GetLenListData() int
func (*NodeListData) SetNodeListDataByNode ¶
func (n *NodeListData) SetNodeListDataByNode(node metav1.PartialObjectMetadata)
func (*NodeListData) SetNodeListDataByNodeSlice ¶
func (n *NodeListData) SetNodeListDataByNodeSlice(nodeslice []runtime.Object)
type ResultData ¶
type ResultData struct {
// contains filtered or unexported fields
}
func NewResultData ¶
func NewResultData() ResultData
func (ResultData) CopyLocalResultData ¶
func (r ResultData) CopyLocalResultData(localip string) map[string]ResultDetail
func (ResultData) CopyResultDataAll ¶
func (r ResultData) CopyResultDataAll() map[string]map[string]ResultDetail
func (*ResultData) DeleteResultData ¶
func (r *ResultData) DeleteResultData(ip string)
func (ResultData) GetLocalResultData ¶ added in v0.8.2
func (r ResultData) GetLocalResultData(localip string) map[string]ResultDetail
func (ResultData) GetResultDataAll ¶ added in v0.8.2
func (r ResultData) GetResultDataAll() map[string]map[string]ResultDetail
func (*ResultData) SetResult ¶
func (r *ResultData) SetResult(c *CommunicateData)
func (*ResultData) SetResultFromCheckInfo ¶
func (r *ResultData) SetResultFromCheckInfo(LocalIp, desip string, result ResultDetail)
type ResultDetail ¶
Click to show internal directories.
Click to hide internal directories.