instdata

package
v3.0.8-alpha.10+incomp... Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataH storage.DI

Functions

func CreateHost

func CreateHost(input interface{}, idName *string) (int, error)

CreateHost create host

func CreateObject

func CreateObject(objType string, input interface{}, idName *string) (int, error)

CreateObject add new object

func CreateSubscription

func CreateSubscription(input *types.Subscription) (int64, error)

func DelHostByCondition

func DelHostByCondition(condition interface{}) error

DelHostByCondition delete host by condition

func DelObjByCondition

func DelObjByCondition(objType string, condition interface{}) error

DelObjByCondition delete object by condition

func DelSubscriptionByCondition

func DelSubscriptionByCondition(condition interface{}) error

func GetCntByCondition

func GetCntByCondition(objType string, condition interface{}) (int, error)

GetCntByCondition get count by condition

func GetHostByCondition

func GetHostByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error

GetHostByCondition query

func GetHostCntByCondition

func GetHostCntByCondition(condition interface{}) (int, error)

GetHostCntByCondition query host count by condition

func GetIDNameByType

func GetIDNameByType(objType string) string

GetIDNameByType get id name by type

func GetObjectByCondition

func GetObjectByCondition(defLang language.DefaultCCLanguageIf, objType string, fields []string, condition, result interface{}, sort string, skip, limit int) error

GetObjectByCondition get object by condition

func GetObjectByID

func GetObjectByID(objType string, fields []string, id int, result interface{}, sort string) error

GetObjectByID get object by id

func GetOneHostByCondition

func GetOneHostByCondition(fields []string, condition, result interface{}) error

func GetOneSubscriptionByCondition

func GetOneSubscriptionByCondition(condition, result interface{}) error

func GetSubscriptionByCondition

func GetSubscriptionByCondition(fields []string, condition, result interface{}, sort string, skip, limit int) error

func GetSubscriptionCntByCondition

func GetSubscriptionCntByCondition(condition interface{}) (int, error)

func UpdateHostByCondition

func UpdateHostByCondition(data interface{}, condition interface{}) error

UpdateHostByCondition update host by condition

func UpdateObjByCondition

func UpdateObjByCondition(objType string, data interface{}, condition interface{}) error

UpdateObjByCondition update object by condition

func UpdateSubscriptionByCondition

func UpdateSubscriptionByCondition(data interface{}, condition interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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