Documentation ¶
Index ¶
- func DeleteUserGrant(db *gorm.DB, table, grantID string) error
- func PutUserGrant(db *gorm.DB, table string, grant *model.UserGrantView) error
- func PutUserGrants(db *gorm.DB, table string, grants ...*model.UserGrantView) error
- func SearchUserGrants(db *gorm.DB, table string, req *grant_model.UserGrantSearchRequest) ([]*model.UserGrantView, uint64, error)
- func UserGrantByID(db *gorm.DB, table, grantID string) (*model.UserGrantView, error)
- func UserGrantByIDs(db *gorm.DB, table, resourceOwnerID, projectID, userID string) (*model.UserGrantView, error)
- func UserGrantsByOrgID(db *gorm.DB, table, orgID string) ([]*model.UserGrantView, error)
- func UserGrantsByOrgIDAndProjectID(db *gorm.DB, table, orgID, projectID string) ([]*model.UserGrantView, error)
- func UserGrantsByProjectAndGrantID(db *gorm.DB, table, projectID, grantID string) ([]*model.UserGrantView, error)
- func UserGrantsByProjectAndUserID(db *gorm.DB, table, projectID, userID string) ([]*model.UserGrantView, error)
- func UserGrantsByProjectID(db *gorm.DB, table, projectID string) ([]*model.UserGrantView, error)
- func UserGrantsByProjectIDAndRole(db *gorm.DB, table, projectID, roleKey string) ([]*model.UserGrantView, error)
- func UserGrantsByUserID(db *gorm.DB, table, userID string) ([]*model.UserGrantView, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PutUserGrant ¶
func PutUserGrants ¶
func SearchUserGrants ¶
func SearchUserGrants(db *gorm.DB, table string, req *grant_model.UserGrantSearchRequest) ([]*model.UserGrantView, uint64, error)
func UserGrantByID ¶
func UserGrantByIDs ¶
func UserGrantsByOrgID ¶
func UserGrantsByProjectID ¶
func UserGrantsByUserID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.