memory

package
v1.13.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName plugin name
	PluginName = "memory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

Memory 定义MemoryCMDB类

func (*Memory) Destroy

func (m *Memory) Destroy() error

Destroy 销毁函数

func (*Memory) GetLocation

func (m *Memory) GetLocation(host string) (*model.Location, error)

GetLocation 实现CMDB插件接口

func (*Memory) Initialize

func (m *Memory) Initialize(c *plugin.ConfigEntry) error

Initialize 初始化函数

func (*Memory) Name

func (m *Memory) Name() string

Name 返回插件名

func (*Memory) Range

func (m *Memory) Range(handler func(host string, location *model.Location) (bool, error)) error

Range 实现CMDB插件接口

func (*Memory) Size

func (m *Memory) Size() int32

Size 实现CMDB插件接口

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL