Documentation ¶
Overview ¶
Package tmodel ....
Index ¶
- Variables
- func GenericSave(ctx context.Context, body []byte, table string, key string) error
- func GetAllKeysFromTable(ctx context.Context, table string, dbtype common.DbType) ([]string, error)
- func GetResource(ctx context.Context, Table, key string, dbtype common.DbType) (string, *errors.Error)
- type Plugin
- type Target
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GetDBConnectionFunc is pointer func for common.GetDBConnection GetDBConnectionFunc = common.GetDBConnection )
Functions ¶
func GenericSave ¶
GenericSave will save any resource data into the database
func GetAllKeysFromTable ¶
GetAllKeysFromTable fetches all keys in a given table
Types ¶
type Plugin ¶
type Plugin struct { IP string Port string Username string Password []byte ID string PluginType string PreferredAuthType string }
Plugin is the model for plugin information
type Target ¶
type Target struct { ManagerAddress string `json:"ManagerAddress"` Password []byte `json:"Password"` UserName string `json:"UserName"` PostBody []byte `json:"PostBody"` DeviceUUID string `json:"DeviceUUID"` PluginID string `json:"PluginID"` }
Target is for sending the requst to south bound/plugin
Click to show internal directories.
Click to hide internal directories.