view

package
v1.56.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveUserSessions added in v0.107.0

func ActiveUserSessions(db *gorm.DB, table string) ([]*model.UserSessionView, error)

func ChangesQuery added in v0.119.0

func ChangesQuery(userID string, latestSequence, limit uint64, sortAscending bool, retention time.Duration) *es_models.SearchQuery

func DeleteApplicationRefreshTokens added in v1.8.0

func DeleteApplicationRefreshTokens(db *gorm.DB, table string, appIDs []string) error

func DeleteApplicationTokens added in v0.93.0

func DeleteApplicationTokens(db *gorm.DB, table string, appIDs []string) error

func DeleteExternalIDP added in v0.87.0

func DeleteExternalIDP(db *gorm.DB, table, externalUserID, idpConfigID string) error

func DeleteExternalIDPsByUserID added in v0.90.0

func DeleteExternalIDPsByUserID(db *gorm.DB, table, userID string) error

func DeleteNotifyUser added in v0.17.0

func DeleteNotifyUser(db *gorm.DB, table, userID string) error

func DeleteRefreshToken added in v1.8.0

func DeleteRefreshToken(db *gorm.DB, table, tokenID string) error

func DeleteSessionRefreshTokens added in v1.8.0

func DeleteSessionRefreshTokens(db *gorm.DB, table, agentID, userID string) error

func DeleteSessionTokens added in v0.93.0

func DeleteSessionTokens(db *gorm.DB, table, agentID, userID string) error

func DeleteToken added in v0.93.0

func DeleteToken(db *gorm.DB, table, tokenID string) error

func DeleteTokensFromRefreshToken added in v1.53.0

func DeleteTokensFromRefreshToken(db *gorm.DB, table, refreshTokenID string) error

func DeleteUser

func DeleteUser(db *gorm.DB, table, userID string) error

func DeleteUserMembership added in v0.66.0

func DeleteUserMembership(db *gorm.DB, table, userID, aggregateID, objectID string, membertype usr_model.MemberType) error

func DeleteUserMembershipsByAggregateID added in v0.91.5

func DeleteUserMembershipsByAggregateID(db *gorm.DB, table, aggregateID string) error

func DeleteUserMembershipsByAggregateIDAndObjectID added in v0.91.5

func DeleteUserMembershipsByAggregateIDAndObjectID(db *gorm.DB, table, aggregateID, objectID string) error

func DeleteUserMembershipsByUserID added in v0.90.0

func DeleteUserMembershipsByUserID(db *gorm.DB, table, userID string) error

func DeleteUserRefreshTokens added in v1.8.0

func DeleteUserRefreshTokens(db *gorm.DB, table, userID string) error

func DeleteUserSessions added in v0.31.3

func DeleteUserSessions(db *gorm.DB, table, userID string) error

func DeleteUserTokens added in v0.93.0

func DeleteUserTokens(db *gorm.DB, table, userID string) error

func ExternalIDPByExternalUserIDAndIDPConfigID added in v0.87.0

func ExternalIDPByExternalUserIDAndIDPConfigID(db *gorm.DB, table, externalUserID, idpConfigID string) (*model.ExternalIDPView, error)

func ExternalIDPByExternalUserIDAndIDPConfigIDAndResourceOwner added in v0.87.0

func ExternalIDPByExternalUserIDAndIDPConfigIDAndResourceOwner(db *gorm.DB, table, externalUserID, idpConfigID, resourceOwner string) (*model.ExternalIDPView, error)

func ExternalIDPsByIDPConfigID added in v0.87.0

func ExternalIDPsByIDPConfigID(db *gorm.DB, table, idpConfigID string) ([]*model.ExternalIDPView, error)

func ExternalIDPsByIDPConfigIDAndResourceOwner added in v0.119.0

func ExternalIDPsByIDPConfigIDAndResourceOwner(db *gorm.DB, table, idpConfigID, resourceOwner string) ([]*model.ExternalIDPView, error)

func ExternalIDPsByIDPConfigIDAndResourceOwners added in v0.119.0

func ExternalIDPsByIDPConfigIDAndResourceOwners(db *gorm.DB, table, idpConfigID string, resourceOwners []string) ([]*model.ExternalIDPView, error)

func ExternalIDPsByUserID added in v0.87.0

func ExternalIDPsByUserID(db *gorm.DB, table, userID string) ([]*model.ExternalIDPView, error)

func GetGlobalUserByLoginName added in v0.78.0

func GetGlobalUserByLoginName(db *gorm.DB, table, loginName string) (*model.UserView, error)

func IsUserUnique

func IsUserUnique(db *gorm.DB, table, userName, email string) (bool, error)

func NotifyUserByID added in v0.17.0

func NotifyUserByID(db *gorm.DB, table, userID string) (*model.NotifyUser, error)

func NotifyUsersByOrgID added in v0.48.0

func NotifyUsersByOrgID(db *gorm.DB, table, orgID string) ([]*model.NotifyUser, error)

func PutExternalIDP added in v0.87.0

func PutExternalIDP(db *gorm.DB, table string, idp *model.ExternalIDPView) error

func PutExternalIDPs added in v0.87.0

func PutExternalIDPs(db *gorm.DB, table string, externalIDPs ...*model.ExternalIDPView) error

func PutNotifyUser added in v0.17.0

func PutNotifyUser(db *gorm.DB, table string, project *model.NotifyUser) error

func PutRefreshToken added in v1.8.0

func PutRefreshToken(db *gorm.DB, table string, token *usr_model.RefreshTokenView) error

func PutRefreshTokens added in v1.8.0

func PutRefreshTokens(db *gorm.DB, table string, tokens ...*usr_model.RefreshTokenView) error

func PutToken added in v0.93.0

func PutToken(db *gorm.DB, table string, token *usr_model.TokenView) error

func PutTokens added in v0.93.0

func PutTokens(db *gorm.DB, table string, tokens ...*usr_model.TokenView) error

func PutUser

func PutUser(db *gorm.DB, table string, user *model.UserView) error

func PutUserMembership added in v0.66.0

func PutUserMembership(db *gorm.DB, table string, user *model.UserMembershipView) error

func PutUserMemberships added in v0.66.0

func PutUserMemberships(db *gorm.DB, table string, users ...*model.UserMembershipView) error

func PutUserSession added in v0.16.0

func PutUserSession(db *gorm.DB, table string, session *model.UserSessionView) error

func PutUserSessions added in v0.77.2

func PutUserSessions(db *gorm.DB, table string, sessions ...*model.UserSessionView) error

func PutUsers added in v0.64.4

func PutUsers(db *gorm.DB, table string, users ...*model.UserView) error

func RefreshTokenByID added in v1.8.0

func RefreshTokenByID(db *gorm.DB, table, tokenID string) (*usr_model.RefreshTokenView, error)

func RefreshTokensByUserID added in v1.8.0

func RefreshTokensByUserID(db *gorm.DB, table, userID string) ([]*usr_model.RefreshTokenView, error)

func SearchExternalIDPs added in v0.87.0

func SearchExternalIDPs(db *gorm.DB, table string, req *usr_model.ExternalIDPSearchRequest) ([]*model.ExternalIDPView, uint64, error)

func SearchRefreshTokens added in v1.8.0

func SearchRefreshTokens(db *gorm.DB, table string, req *model.RefreshTokenSearchRequest) ([]*usr_model.RefreshTokenView, uint64, error)

func SearchUserMemberships added in v0.66.0

func SearchUserMemberships(db *gorm.DB, table string, req *usr_model.UserMembershipSearchRequest) ([]*model.UserMembershipView, uint64, error)

func SearchUsers

func SearchUsers(db *gorm.DB, table string, req *usr_model.UserSearchRequest) ([]*model.UserView, uint64, error)

func TokenByID added in v0.93.0

func TokenByID(db *gorm.DB, table, tokenID string) (*usr_model.TokenView, error)

func TokensByUserID added in v0.93.0

func TokensByUserID(db *gorm.DB, table, userID string) ([]*usr_model.TokenView, error)

func UserByID

func UserByID(db *gorm.DB, table, userID string) (*model.UserView, error)

func UserByIDAndResourceOwner added in v1.34.9

func UserByIDAndResourceOwner(db *gorm.DB, table, userID, resourceOwner string) (*model.UserView, error)

func UserByIDQuery added in v0.119.0

func UserByIDQuery(id string, latestSequence uint64) (*es_models.SearchQuery, error)

func UserByLoginName added in v0.26.0

func UserByLoginName(db *gorm.DB, table, loginName string) (*model.UserView, error)

func UserByLoginNameAndResourceOwner added in v0.87.0

func UserByLoginNameAndResourceOwner(db *gorm.DB, table, loginName, resourceOwner string) (*model.UserView, error)

func UserByUserName

func UserByUserName(db *gorm.DB, table, userName string) (*model.UserView, error)

func UserIDsByDomain added in v0.74.4

func UserIDsByDomain(db *gorm.DB, table, orgDomain string) ([]string, error)

func UserMFAs added in v0.108.0

func UserMFAs(db *gorm.DB, table, userID string) ([]*usr_model.MultiFactor, error)

func UserMembershipByIDs added in v0.66.0

func UserMembershipByIDs(db *gorm.DB, table, userID, aggregateID, objectID string, membertype usr_model.MemberType) (*model.UserMembershipView, error)

func UserMembershipsByAggregateID added in v0.66.0

func UserMembershipsByAggregateID(db *gorm.DB, table, aggregateID string) ([]*model.UserMembershipView, error)

func UserMembershipsByResourceOwner added in v0.82.4

func UserMembershipsByResourceOwner(db *gorm.DB, table, resourceOwner string) ([]*model.UserMembershipView, error)

func UserMembershipsByUserID added in v1.12.2

func UserMembershipsByUserID(db *gorm.DB, table, userID string) ([]*model.UserMembershipView, error)

func UserQuery added in v0.119.0

func UserQuery(latestSequence uint64) *es_models.SearchQuery

func UserSessionByIDs added in v0.16.0

func UserSessionByIDs(db *gorm.DB, table, agentID, userID string) (*model.UserSessionView, error)

func UserSessionsByAgentID added in v0.16.0

func UserSessionsByAgentID(db *gorm.DB, table, agentID string) ([]*model.UserSessionView, error)

func UserSessionsByUserID added in v0.20.0

func UserSessionsByUserID(db *gorm.DB, table, userID string) ([]*model.UserSessionView, error)

func UsersByOrgID added in v0.26.0

func UsersByOrgID(db *gorm.DB, table, orgID string) ([]*model.UserView, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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