Documentation ¶
Index ¶
- type DB
- func (d *DB) AddBlob(sess db.Session, tenantId string, hash string) error
- func (d *DB) AddDomain(domain *entities.TenantDomain) (int64, error)
- func (d *DB) AddSystemEvent(data *entities.SystemEvent) error
- func (d *DB) AddSystemKV(tenantId string, data *entities.SystemKV) error
- func (d *DB) AddTargetApp(data *entities.TargetApp) (int64, error)
- func (d *DB) AddTargetHook(data *entities.TargetHook) (int64, error)
- func (d *DB) AddTenant(tenant *entities.Tenant) error
- func (d *DB) AddUser(user *entities.User, data *entities.UserData) error
- func (d *DB) AddUserDevice(tenantId string, user string, data *entities.UserDevice) error
- func (d *DB) AddUserGroup(group *entities.UserGroup) error
- func (d *DB) AddUserGroupAuth(data *entities.UserGroupAuth) error
- func (d *DB) AddUserGroupData(data *entities.UserGroupData) error
- func (d *DB) AddUserMessage(msg *entities.UserMessage) (int64, error)
- func (d *DB) AgentDel(tenantId, pid, agentId string) error
- func (d *DB) AgentExtensionDel(tenantId, pid, aid string, id int64) error
- func (d *DB) AgentExtensionGet(tenantId, pid, aid string, id int64) (*entities.AgentExtension, error)
- func (d *DB) AgentExtensionList(tenantId, pid, aid string) ([]*entities.AgentExtension, error)
- func (d *DB) AgentExtensionListByPlug(tenantId, pid string) ([]*entities.AgentExtension, error)
- func (d *DB) AgentExtensionNew(tenantId string, data *entities.AgentExtension) error
- func (d *DB) AgentExtensionUpdate(tenantId, pid, aid string, id int64, data map[string]interface{}) error
- func (d *DB) AgentGet(tenantId, pid, id string) (*entities.Agent, error)
- func (d *DB) AgentLinkDel(tenantId, pid, aid string, id int64) error
- func (d *DB) AgentLinkGet(tenantId, pid, aid string, id int64) (*entities.AgentLink, error)
- func (d *DB) AgentLinkList(tenantId, pid, aid string) ([]*entities.AgentLink, error)
- func (d *DB) AgentLinkListByPlug(tenantId, pid string) ([]*entities.AgentLink, error)
- func (d *DB) AgentLinkListReverse(tenantId, pid, aid string) ([]*entities.AgentLink, error)
- func (d *DB) AgentLinkNew(tenantId string, data *entities.AgentLink) error
- func (d *DB) AgentLinkUpdate(tenantId, pid, aid string, id int64, data map[string]interface{}) error
- func (d *DB) AgentList(tenantId, pid string) ([]*entities.Agent, error)
- func (d *DB) AgentNew(tenantId string, data *entities.Agent) error
- func (d *DB) AgentResourceDel(tenantId, pid, aid, slug string) error
- func (d *DB) AgentResourceGet(tenantId, pid, aid, slug string) (*entities.AgentResource, error)
- func (d *DB) AgentResourceList(tenantId, pid, aid string) ([]*entities.AgentResource, error)
- func (d *DB) AgentResourceNew(tenantId string, data *entities.AgentResource) error
- func (d *DB) AgentResourceUpdate(tenantId, pid, aid, slug string, data map[string]interface{}) error
- func (d *DB) AgentUpdate(tenantId, pid, id string, data map[string]interface{}) error
- func (d *DB) BprintDel(tenantId, id string) error
- func (d *DB) BprintGet(tenantId, id string) (*entities.BPrint, error)
- func (d *DB) BprintList(tenantId, group string) ([]*entities.BPrint, error)
- func (d *DB) BprintNew(tenantId string, et *entities.BPrint) error
- func (d *DB) BprintUpdate(tenantId, id string, data map[string]interface{}) error
- func (d *DB) DeleteUserMessages(tenantId, userId string, id []int64) error
- func (d *DB) Execute(qstr string) error
- func (d *DB) GetDomain(tenantId string, id int64) (*entities.TenantDomain, error)
- func (d *DB) GetDomainByName(tenantId string, name string) (*entities.TenantDomain, error)
- func (d *DB) GetFlowMap(tenantId string) (*flowmap.Data, error)
- func (d *DB) GetInnerDriver() interface{}
- func (d *DB) GetSystemKV(tenantId, key, ktype string) (*entities.SystemKV, error)
- func (d *DB) GetTargetApp(tenantId, ttype string, id int64) (*entities.TargetApp, error)
- func (d *DB) GetTargetHook(tenantId, ttype string, id int64) (*entities.TargetHook, error)
- func (d *DB) GetTenant(slug string) (*entities.Tenant, error)
- func (d *DB) GetUserByEmail(tenantId string, email string) (*entities.User, error)
- func (d *DB) GetUserByID(tenantId string, username string) (*entities.User, error)
- func (d *DB) GetUserData(tenantId string, slug string) (*entities.UserData, error)
- func (d *DB) GetUserDevice(tenantId string, user string, id int64) (*entities.UserDevice, error)
- func (d *DB) GetUserGroup(tenantId string, slug string) (*entities.UserGroup, error)
- func (d *DB) GetUserGroupAuth(tenantId string, gslug string, id int64) (*entities.UserGroupAuth, error)
- func (d *DB) GetUserGroupData(tenantId string, gslug string, id int64) (*entities.UserGroupData, error)
- func (d *DB) ListDomain(tenantId string) ([]*entities.TenantDomain, error)
- func (d *DB) ListResourcePairs(tenantId string, pid, aid string) ([]entities.ResourcePair, error)
- func (d *DB) ListSystemEvent(last int64) ([]*entities.SystemEvent, error)
- func (d *DB) ListSystemKV(tenantId, ktype, prefix string, last int64) ([]*entities.SystemKV, error)
- func (d *DB) ListTargetApp(tenantId string, cond map[string]any) ([]*entities.TargetApp, error)
- func (d *DB) ListTargetAppByPlug(tenantId, plug string) ([]*entities.TargetApp, error)
- func (d *DB) ListTargetAppByType(tenantId, ttype, target string) ([]*entities.TargetApp, error)
- func (d *DB) ListTargetAppByUgroup(tenantId, ugroup string) ([]*entities.TargetApp, error)
- func (d *DB) ListTargetHook(tenantId string, cond map[string]any) ([]*entities.TargetHook, error)
- func (d *DB) ListTargetHookByPlug(tenantId, plug string) ([]*entities.TargetHook, error)
- func (d *DB) ListTargetHookByType(tenantId, ttype, target string) ([]*entities.TargetHook, error)
- func (d *DB) ListTenant() ([]*entities.Tenant, error)
- func (d *DB) ListUserDevice(tenantId string, user string) ([]*entities.UserDevice, error)
- func (d *DB) ListUserGroupAuth(tenantId string, gslug string) ([]*entities.UserGroupAuth, error)
- func (d *DB) ListUserGroupData(tenantId string, gslug string) ([]*entities.UserGroupData, error)
- func (d *DB) ListUserGroups(tenantId string) ([]*entities.UserGroup, error)
- func (d *DB) ListUserMessages(tenantId string, data *entities.UserMessageReq) ([]*entities.UserMessage, error)
- func (d *DB) ListUsers(tenantId string) ([]*entities.User, error)
- func (d *DB) ListUsersByGroup(tenantId string, groupid string) ([]*entities.User, error)
- func (d *DB) ListUsersMulti(tenantId string, users ...string) ([]*entities.User, error)
- func (d *DB) Ping() error
- func (d *DB) PlugDel(tenantId, pid string) error
- func (d *DB) PlugGet(tenantId, pid string) (*entities.Plug, error)
- func (d *DB) PlugList(tenantId string, cond map[string]any) ([]*entities.Plug, error)
- func (d *DB) PlugListByBprint(tenantId, bprint string) ([]*entities.Plug, error)
- func (d *DB) PlugNew(tenantId string, pg *entities.Plug) error
- func (d *DB) PlugUpdate(tenantId string, id string, data map[string]interface{}) error
- func (d *DB) QuerySystemEvent(query store.EventQuery) ([]*entities.SystemEvent, error)
- func (d *DB) ReadUserMessages(tenantId, userId string, id []int64) error
- func (d *DB) RemoveBlob(sess db.Session, tenantId string, hash string) error
- func (d *DB) RemoveDomain(tenantId string, id int64) error
- func (d *DB) RemoveSystemEvent(id int64) error
- func (d *DB) RemoveSystemKV(tenantId, key, ktype string) error
- func (d *DB) RemoveTargetApp(tenantId, ttype string, id int64) error
- func (d *DB) RemoveTargetHook(tenantId, ttype string, id int64) error
- func (d *DB) RemoveTenant(slug string) error
- func (d *DB) RemoveUser(tenantId string, username string) error
- func (d *DB) RemoveUserDevice(tenantId string, user string, id int64) error
- func (d *DB) RemoveUserGroup(tenantId string, slug string) error
- func (d *DB) RemoveUserGroupAuth(tenantId, gslug string, id int64) error
- func (d *DB) RemoveUserGroupData(tenantId, gslug string, id int64) error
- func (d *DB) RemoveUserMessage(tenantId string, userId string, id int64) error
- func (d *DB) RepoDel(tenantId string, id int64) error
- func (d *DB) RepoGet(tenantId string, id int64) (*entities.Repo, error)
- func (d *DB) RepoList(tenantId string) ([]*entities.Repo, error)
- func (d *DB) RepoNew(tenantId string, data *entities.Repo) error
- func (d *DB) RepoUpdate(tenantId string, id int64, data map[string]interface{}) error
- func (d *DB) ResourceDel(tenantId, rid string) error
- func (d *DB) ResourceGet(tenantId, rid string) (*entities.Resource, error)
- func (d *DB) ResourceList(tenantId string, cond map[string]any) ([]*entities.Resource, error)
- func (d *DB) ResourceNew(tenantId string, obj *entities.Resource) error
- func (d *DB) ResourceUpdate(tenantId string, id string, data map[string]interface{}) error
- func (d *DB) ResourcesByTarget(tenantId string, target string) ([]*entities.Resource, error)
- func (d *DB) ResourcesMulti(tenantId string, rids ...string) ([]*entities.Resource, error)
- func (d *DB) UpdateDomain(tenantId string, id int64, data map[string]interface{}) error
- func (d *DB) UpdateSystemKV(tenantId, key, ktype string, data map[string]any) error
- func (d *DB) UpdateTargetApp(tenantId, ttype string, id int64, data map[string]any) error
- func (d *DB) UpdateTargetHook(tenantId, ttype string, id int64, data map[string]any) error
- func (d *DB) UpdateTenant(slug string, data map[string]interface{}) error
- func (d *DB) UpdateUser(tenantId, user string, data map[string]interface{}) error
- func (d *DB) UpdateUserData(tenantId, slug string, data map[string]interface{}) error
- func (d *DB) UpdateUserDevice(tenantId string, user string, id int64, data map[string]any) error
- func (d *DB) UpdateUserGroup(tenantId, slug string, data map[string]interface{}) error
- func (d *DB) UpdateUserGroupAuth(tenantId string, gslug string, id int64, data map[string]interface{}) error
- func (d *DB) UpdateUserGroupData(tenantId string, gslug string, id int64, data map[string]interface{}) error
- func (d *DB) UserMessageSetRead(tenantId, user string, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddSystemEvent ¶
func (d *DB) AddSystemEvent(data *entities.SystemEvent) error
func (*DB) AddTargetHook ¶
func (d *DB) AddTargetHook(data *entities.TargetHook) (int64, error)
func (*DB) AddUserDevice ¶
func (*DB) AddUserGroupAuth ¶
func (d *DB) AddUserGroupAuth(data *entities.UserGroupAuth) error
func (*DB) AddUserGroupData ¶
func (d *DB) AddUserGroupData(data *entities.UserGroupData) error
func (*DB) AddUserMessage ¶
func (d *DB) AddUserMessage(msg *entities.UserMessage) (int64, error)
func (*DB) AgentExtensionDel ¶
func (*DB) AgentExtensionGet ¶
func (*DB) AgentExtensionList ¶
func (d *DB) AgentExtensionList(tenantId, pid, aid string) ([]*entities.AgentExtension, error)
func (*DB) AgentExtensionListByPlug ¶
func (d *DB) AgentExtensionListByPlug(tenantId, pid string) ([]*entities.AgentExtension, error)
func (*DB) AgentExtensionNew ¶
func (d *DB) AgentExtensionNew(tenantId string, data *entities.AgentExtension) error
func (*DB) AgentExtensionUpdate ¶
func (*DB) AgentLinkGet ¶
func (*DB) AgentLinkList ¶
func (*DB) AgentLinkListByPlug ¶
func (*DB) AgentLinkListReverse ¶
func (*DB) AgentLinkNew ¶
func (*DB) AgentLinkUpdate ¶
func (*DB) AgentResourceDel ¶
func (*DB) AgentResourceGet ¶
func (d *DB) AgentResourceGet(tenantId, pid, aid, slug string) (*entities.AgentResource, error)
func (*DB) AgentResourceList ¶
func (d *DB) AgentResourceList(tenantId, pid, aid string) ([]*entities.AgentResource, error)
func (*DB) AgentResourceNew ¶
func (d *DB) AgentResourceNew(tenantId string, data *entities.AgentResource) error
func (*DB) AgentResourceUpdate ¶
func (*DB) AgentUpdate ¶
func (*DB) BprintUpdate ¶
func (*DB) DeleteUserMessages ¶
func (*DB) GetDomainByName ¶
func (*DB) GetInnerDriver ¶
func (d *DB) GetInnerDriver() interface{}
func (*DB) GetSystemKV ¶
func (*DB) GetTargetApp ¶
func (*DB) GetTargetHook ¶
func (*DB) GetUserByEmail ¶
func (*DB) GetUserByID ¶
func (*DB) GetUserData ¶
func (*DB) GetUserDevice ¶
func (*DB) GetUserGroup ¶
func (*DB) GetUserGroupAuth ¶
func (*DB) GetUserGroupData ¶
func (*DB) ListDomain ¶
func (d *DB) ListDomain(tenantId string) ([]*entities.TenantDomain, error)
func (*DB) ListResourcePairs ¶
func (*DB) ListSystemEvent ¶
func (d *DB) ListSystemEvent(last int64) ([]*entities.SystemEvent, error)
func (*DB) ListSystemKV ¶
func (*DB) ListTargetApp ¶
func (*DB) ListTargetAppByPlug ¶
func (*DB) ListTargetAppByType ¶
func (*DB) ListTargetAppByUgroup ¶
func (*DB) ListTargetHook ¶
func (*DB) ListTargetHookByPlug ¶
func (d *DB) ListTargetHookByPlug(tenantId, plug string) ([]*entities.TargetHook, error)
func (*DB) ListTargetHookByType ¶
func (d *DB) ListTargetHookByType(tenantId, ttype, target string) ([]*entities.TargetHook, error)
func (*DB) ListUserDevice ¶
func (*DB) ListUserGroupAuth ¶
func (*DB) ListUserGroupData ¶
func (*DB) ListUserGroups ¶
func (*DB) ListUserMessages ¶
func (d *DB) ListUserMessages(tenantId string, data *entities.UserMessageReq) ([]*entities.UserMessage, error)
func (*DB) ListUsersByGroup ¶
func (*DB) ListUsersMulti ¶
func (*DB) PlugListByBprint ¶
func (*DB) PlugUpdate ¶
func (*DB) QuerySystemEvent ¶
func (d *DB) QuerySystemEvent(query store.EventQuery) ([]*entities.SystemEvent, error)
func (*DB) ReadUserMessages ¶
func (*DB) RemoveBlob ¶
func (*DB) RemoveSystemEvent ¶
func (*DB) RemoveSystemKV ¶
func (*DB) RemoveTenant ¶
func (*DB) RemoveUserDevice ¶
func (*DB) RemoveUserGroupAuth ¶
func (*DB) RemoveUserGroupData ¶
func (*DB) RemoveUserMessage ¶
func (*DB) RepoUpdate ¶
func (*DB) ResourceDel ¶
func (*DB) ResourceList ¶
func (*DB) ResourceUpdate ¶
func (*DB) ResourcesByTarget ¶
func (*DB) ResourcesMulti ¶
func (*DB) UpdateDomain ¶
func (*DB) UpdateSystemKV ¶
func (*DB) UpdateTargetApp ¶
func (*DB) UpdateTargetHook ¶
func (*DB) UpdateUser ¶
func (*DB) UpdateUserData ¶
func (*DB) UpdateUserDevice ¶
func (*DB) UpdateUserGroup ¶
func (*DB) UpdateUserGroupAuth ¶
func (*DB) UpdateUserGroupData ¶
Click to show internal directories.
Click to hide internal directories.