Documentation ¶
Index ¶
- Constants
- type Fetcher
- type IP
- type IPInfo
- type IPType
- type IPs
- type LocationInfo
- type Memory
- func (m *Memory) Destroy() error
- func (m *Memory) GetLocation(host string) (*model.Location, error)
- func (m *Memory) Initialize(c *plugin.ConfigEntry) error
- func (m *Memory) Name() string
- func (m *Memory) Range(handler func(host string, location *model.Location) (bool, error)) error
- func (m *Memory) Size() int32
- type Request
- type Response
Constants ¶
View Source
const ( FetchSuccess = 200000 // 成功 FetchForbiden = 401000 // 无权限 FetchBadRequest = 400001 // 分页参数错误 FetchException = 500000 // 服务端错误 )
View Source
const (
// PluginName plugin name
PluginName = "memory"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPInfo ¶ added in v1.14.0
type IPInfo struct { IP string `json:"ip"` Type IPType `json:"type"` Region LocationInfo `json:"region"` Zone LocationInfo `json:"zone"` Campus LocationInfo `json:"campus"` }
IPInfo ip info
type LocationInfo ¶ added in v1.14.0
type LocationInfo struct { Name string `json:"name"` Metadata map[string]interface{} `json:"metadata"` }
LocationInfo
type Memory ¶
Memory 定义MemoryCMDB类
func (*Memory) GetLocation ¶
GetLocation 实现CMDB插件接口
func (*Memory) Initialize ¶
func (m *Memory) Initialize(c *plugin.ConfigEntry) error
Initialize 初始化函数
Click to show internal directories.
Click to hide internal directories.