Documentation ¶
Index ¶
Constants ¶
View Source
const ( BkCloudIDKey = "bk_cloud_id" BkHostInnerIPKey = "bk_host_innerip" BkBizIDKey = "bk_biz_id" BkSetIDKey = "bk_set_id" BkModuleIDKey = "bk_module_id" BkObjectIDKey = "bk_obj_id" BkInstIDKey = "bk_inst_id" CustomerToposKey = "layer" AssociationsKey = "associations" ChildLayerKey = "child" DefaultLength = 10 )
View Source
const (
DefaultPath = "/var/lib/gse/host/hostid"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher interface { Start() error Stop() Reload(ctx context.Context, address string, length int, mustFileExist bool) error GetInfo() (Info, error) GetInfoByLevelID(name string, id int) (Info, error) GetInfoByCloudIdAndIp(bkCloudId, bkInnerIp string) (Info, error) GetUpdateTime() time.Time GetCloudId() string GetHostInnerIp() string UpdateOnce() error }
Watcher :
Click to show internal directories.
Click to hide internal directories.