Documentation ¶
Index ¶
- type Core
- func (c *Core) AuthenticationLog(username, authMethod, remoteAddr string)
- func (c *Core) CancelConfirmByRequestInfo(ticketId string) error
- func (c *Core) CheckConfirmStatusByRequestInfo(ticketId string) (model.TicketState, error)
- func (c *Core) CheckIfNeedAssetLoginConfirm(userId, username, assetId, assetName, sysUsername string) (res model.AssetLoginTicketInfo, err error)
- func (c *Core) Close()
- func (c *Core) CreateSession(session model.Session) error
- func (c *Core) GenOTPassword(name string) string
- func (c *Core) GetAllUserPermsAssets(nodeIDs []string) ([]map[string]interface{}, model.NodeList, error)
- func (c *Core) GetAssetById(assetID string) (model.Asset, error)
- func (c *Core) GetAssetByName(name string) (model.Asset, error)
- func (c *Core) GetSystemUsersByUserIdAndAssetId(userID string, assetID string) (sysUsers []model.SystemUser, err error)
- func (c *Core) GetTerminalConfig() (model.TerminalConfig, error)
- func (c *Core) GetUser(name string) (model.User, error)
- func (c *Core) InsertLog(tp, user, msg string)
- func (c *Core) InteractiveLog(user string)
- func (c *Core) LimitTryLogin(user string)
- func (c *Core) QueryAllAsset() ([]string, error)
- func (c *Core) QueryAllNode() ([]string, error)
- func (c *Core) QueryAllSystemUser() ([]string, error)
- func (c *Core) QueryAllUser() ([]string, error)
- func (c *Core) QueryAllUserSecret() ([]string, error)
- func (c *Core) QueryAssetUserExpire(userID string, assetID string) (*model.ExpireInfo, error)
- func (c *Core) QueryAssetUserInfo() ([]string, error)
- func (c *Core) QueryAssetUserVscodePerm(userID string, assetID string) (bool, error)
- func (c *Core) QueryDirectLoginInfo(userID string, directLogin map[string]string) (asset model.Asset, sysUser model.SystemUser, err error)
- func (c *Core) QueryLoginTicket() ([]string, error)
- func (c *Core) QueryPengdingLoginTicket() ([]string, error)
- func (c *Core) QueryUserLog() ([]string, error)
- func (c *Core) SessionDisconnect(id string) error
- func (c *Core) SessionFailed(id string, cause error) error
- func (c *Core) SessionSuccess(id string) error
- func (c *Core) UpdateTicketState(ticketId string, state string, user string) error
- func (c *Core) UserAuthenticate(username string, pass string, pubKey string) (model.User, bool)
- func (c *Core) UserIsBlocked(user string) bool
- type DB
- type Genji
- func (g *Genji) Close() error
- func (g *Genji) GetTerminalConfig() (model.TerminalConfig, error)
- func (g *Genji) InsertData(sql string, data ...interface{}) error
- func (g *Genji) QueryOneField(f interface{}, sql string, cond ...interface{}) error
- func (g *Genji) QueryOneFieldMutilRows(sql string, cond ...interface{}) ([]string, error)
- func (g *Genji) QueryStruct(st interface{}, sql string, cond ...interface{}) error
- func (g *Genji) QueryStructs(mod int, sql string, cond ...interface{}) (interface{}, error)
- func (g *Genji) QueryTwoField(f1 interface{}, f2 interface{}, sql string, cond ...interface{}) error
- func (g *Genji) UpdateData(sql string, args ...interface{}) error
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func (*Core) AuthenticationLog ¶
func (*Core) CancelConfirmByRequestInfo ¶
func (*Core) CheckConfirmStatusByRequestInfo ¶
func (c *Core) CheckConfirmStatusByRequestInfo(ticketId string) (model.TicketState, error)
func (*Core) CheckIfNeedAssetLoginConfirm ¶
func (c *Core) CheckIfNeedAssetLoginConfirm(userId, username, assetId, assetName, sysUsername string) (res model.AssetLoginTicketInfo, err error)
func (*Core) GenOTPassword ¶
func (*Core) GetAllUserPermsAssets ¶
func (*Core) GetSystemUsersByUserIdAndAssetId ¶
func (*Core) GetTerminalConfig ¶
func (c *Core) GetTerminalConfig() (model.TerminalConfig, error)
func (*Core) InteractiveLog ¶
func (*Core) LimitTryLogin ¶
func (*Core) QueryAllAsset ¶
func (*Core) QueryAllNode ¶
func (*Core) QueryAllSystemUser ¶
func (*Core) QueryAllUser ¶
func (*Core) QueryAllUserSecret ¶
func (*Core) QueryAssetUserExpire ¶
func (*Core) QueryAssetUserInfo ¶
func (*Core) QueryAssetUserVscodePerm ¶
func (*Core) QueryDirectLoginInfo ¶
func (*Core) QueryLoginTicket ¶
func (*Core) QueryPengdingLoginTicket ¶
func (*Core) QueryUserLog ¶
func (*Core) SessionDisconnect ¶
func (*Core) SessionSuccess ¶
func (*Core) UpdateTicketState ¶
func (*Core) UserAuthenticate ¶
func (*Core) UserIsBlocked ¶
type DB ¶
type DB interface { Close() error GetTerminalConfig() (model.TerminalConfig, error) QueryStruct(st interface{}, sql string, cond ...interface{}) error QueryStructs(mod int, sql string, cond ...interface{}) (interface{}, error) QueryOneField(f interface{}, sql string, cond ...interface{}) error QueryTwoField(f1 interface{}, f2 interface{}, sql string, cond ...interface{}) error QueryOneFieldMutilRows(sql string, cond ...interface{}) ([]string, error) InsertData(sql string, data ...interface{}) error UpdateData(sql string, args ...interface{}) error }
type Genji ¶
type Genji struct {
// contains filtered or unexported fields
}
func (*Genji) GetTerminalConfig ¶
func (g *Genji) GetTerminalConfig() (model.TerminalConfig, error)
func (*Genji) InsertData ¶
func (*Genji) QueryOneField ¶
func (*Genji) QueryOneFieldMutilRows ¶
func (*Genji) QueryStruct ¶
func (*Genji) QueryStructs ¶
func (*Genji) QueryTwoField ¶
func (*Genji) UpdateData ¶
type Model ¶
type Model interface { model.Asset | model.Node | model.User | model.SystemUser | model.AssetUserInfo | model.UserLog | model.LoginTicket | model.UserSecret }
Click to show internal directories.
Click to hide internal directories.