example

package
v3.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIServerAddress api server address
	APIServerAddress = "http://127.0.0.1:8080/api/v1"
)

Variables

This section is empty.

Functions

func AddProc

func AddProc(ownerID, appID string) error

AddProc add process info

func AssginHostToSpecialModule

func AssginHostToSpecialModule() error

AssginHostToSpecialModule assgin host to a special module

func BindModuleInfo

func BindModuleInfo(ownerID, appID, procID, moduleName string) error

BindModuleInfo bind a process detail info by id

func CreateApp

func CreateApp(ownerID string) (int, error)

CreateApp create a app

func CreateFieldGroup

func CreateFieldGroup(ownerID, objID string) (int, error)

CreateFieldGroup create a field group

func CreateHostSearchHistory

func CreateHostSearchHistory() error

CreateHostSearchHistory create host search history

func CreateInst

func CreateInst(appID, parentID int, ownerID, objID string) (int, error)

CreateInst create a common inst

func CreateMainlineObject

func CreateMainlineObject(ownerID, objID, associationObjID, classificationID string) (int, error)

CreateMainlineObject create a main line object

func CreateModule

func CreateModule(setID, appID, parentID int, ownerID string) (int, error)

CreateModule create a module

func CreateObject

func CreateObject() (int, error)

CreateObject create a common object

func CreateObjectCls

func CreateObjectCls() (int, error)

CreateObjectCls create a classification for a object

func CreateSet

func CreateSet(appID int) (int, error)

CreateSet create a set

func DeleteApp

func DeleteApp(ownerID string, appID int) error

DeleteApp delete a app

func DeleteFieldGroup

func DeleteFieldGroup(id int) error

DeleteFieldGroup delete the field group by id

func DeleteHostBatch

func DeleteHostBatch(ownerID string) error

DeleteHostBatch delete a lot of hosts once

func DeleteHostFavourite

func DeleteHostFavourite(id string) error

DeleteHostFavourite delete the host favourite by id

func DeleteInst

func DeleteInst(ownerID, objID string, instID int) error

DeleteInst delete a inst

func DeleteMainlineObject

func DeleteMainlineObject(ownerID, objID string) error

DeleteMainlineObject delete a main line object

func DeleteModule

func DeleteModule(appID, setID, moduleID int) error

DeleteModule delete the module by condition

func DeleteObject

func DeleteObject(id int) error

DeleteObject delete the object by id

func DeleteObjectCls

func DeleteObjectCls(id int) error

DeleteObjectCls delete the object classification by id

func DeleteProcDetailInfo

func DeleteProcDetailInfo(ownerID, appID, procID string) error

DeleteProcDetailInfo delete a process detail info by id

func DeletePropertyGroup

func DeletePropertyGroup(ownerID, objID, propertyID, groupID string) error

DeletePropertyGroup delete the property group

func DeleteSet

func DeleteSet(appID, id int) error

DeleteSet delete the set by id

func GetProcDetailInfo

func GetProcDetailInfo(ownerID, appID, procID string) error

GetProcDetailInfo get a process detail info by id

func HostFavourite

func HostFavourite() error

HostFavourite search the host favourite

func HostSearchFavourite

func HostSearchFavourite() error

HostSearchFavourite search the host favourite

func HostUpdateFavourite

func HostUpdateFavourite(id string) error

HostUpdateFavourite update the host favourite

func MoveHostToFaultModule

func MoveHostToFaultModule() error

MoveHostToFaultModule assgin host to a fault module

func MoveHostToIDleModule

func MoveHostToIDleModule() error

MoveHostToIDleModule assgin host to a idle module

func MoveHostToResource

func MoveHostToResource() error

MoveHostToResource assgin host to a resource module

func MoveHostsToModule

func MoveHostsToModule() error

MoveHostsToModule move some hosts to a module

func SearchAllInsts

func SearchAllInsts(ownerID, objID string, appID int) error

SearchAllInsts search all insts

func SearchApp

func SearchApp(ownerID string) error

SearchApp search a app

func SearchBaseHostDetail

func SearchBaseHostDetail(hostID string) error

SearchBaseHostDetail search base host detail

func SearchFieldGroup

func SearchFieldGroup(ownerID, objID string) error

SearchFieldGroup search the field group by condition

func SearchHostDetail

func SearchHostDetail(ownerID, hostID string) error

SearchHostDetail search host detail

func SearchHostHistory

func SearchHostHistory() error

SearchHostHistory search host history

func SearchHostSnapshot

func SearchHostSnapshot(hostID string) error

SearchHostSnapshot search host snapshot

func SearchHosts

func SearchHosts() error

SearchHosts search hosts by condition

func SearchInst

func SearchInst(ownerID, objID string, appID, instID int) error

SearchInst search the inst by condition

func SearchModule

func SearchModule(ownerID string, appID, setID int) error

SearchModule search the module by condition

func SearchObjectCls

func SearchObjectCls(id int) error

SearchObjectCls search all objects by classificationid

func SearchObjectTopo

func SearchObjectTopo() error

SearchObjectTopo search the object topo

func SearchObjectWithAssociationByCls

func SearchObjectWithAssociationByCls(ownerID string) error

SearchObjectWithAssociationByCls select all object with association by classification

func SearchObjects

func SearchObjects() error

SearchObjects search the objects

func SearchProc

func SearchProc(ownerID, appID string) error

SearchProc search process info

func SearchProcBindModuleInfo

func SearchProcBindModuleInfo(ownerID, appID, procID string) error

SearchProcBindModuleInfo update a process detail info by id

func SearchSet

func SearchSet(ownerID string, appID int) error

SearchSet search the set by condition

func SearchTopoInst

func SearchTopoInst(ownerID string, appID int) error

SearchTopoInst search the main object topo inst

func SearchTopoInstChild

func SearchTopoInstChild(ownerID, objID string, appID, instID int) error

SearchTopoInstChild search the topo inst child

func SearchTopoObject

func SearchTopoObject(ownerID string) error

SearchTopoObject search the topo objects by ownerID

func UnBindModuleInfo

func UnBindModuleInfo(ownerID, appID, procID, moduleName string) error

UnBindModuleInfo bind a process detail info by id

func UpdateApp

func UpdateApp(ownerID string, appID int) error

UpdateApp update a app

func UpdateFieldGroup

func UpdateFieldGroup() error

UpdateFieldGroup update a field group

func UpdateHostFavouriteIncr

func UpdateHostFavouriteIncr(id string) error

UpdateHostFavouriteIncr get favourite used count

func UpdateHosts

func UpdateHosts() error

UpdateHosts update the hosts

func UpdateInst

func UpdateInst(ownerID, objID string, parentID, appID, instID int) error

UpdateInst update the inst information

func UpdateModule

func UpdateModule(appID, setID, moduleID int) error

UpdateModule update the module by condition

func UpdateObject

func UpdateObject(id int) error

UpdateObject update the object by id

func UpdateObjectCls

func UpdateObjectCls(id int) error

UpdateObjectCls update the object classification by id

func UpdateProcDetailInfo

func UpdateProcDetailInfo(ownerID, appID, procID string) error

UpdateProcDetailInfo update a process detail info by id

func UpdatePropertyGroup

func UpdatePropertyGroup(ownerID, objectID string) error

UpdatePropertyGroup update property group

func UpdateSet

func UpdateSet(appID, id int) error

UpdateSet update the set by id

Types

This section is empty.

Jump to

Keyboard shortcuts

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