view

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteUserGrant

func DeleteUserGrant(db *gorm.DB, table, grantID string) error

func PutUserGrant

func PutUserGrant(db *gorm.DB, table string, grant *model.UserGrantView) error

func PutUserGrants

func PutUserGrants(db *gorm.DB, table string, grants ...*model.UserGrantView) error

func SearchUserGrants

func SearchUserGrants(db *gorm.DB, table string, req *grant_model.UserGrantSearchRequest) ([]*model.UserGrantView, uint64, error)

func UserGrantByID

func UserGrantByID(db *gorm.DB, table, grantID string) (*model.UserGrantView, error)

func UserGrantByIDs

func UserGrantByIDs(db *gorm.DB, table, resourceOwnerID, projectID, userID string) (*model.UserGrantView, error)

func UserGrantsByOrgID

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

func UserGrantsByOrgIDAndProjectID

func UserGrantsByOrgIDAndProjectID(db *gorm.DB, table, orgID, projectID string) ([]*model.UserGrantView, error)

func UserGrantsByProjectAndGrantID

func UserGrantsByProjectAndGrantID(db *gorm.DB, table, projectID, grantID string) ([]*model.UserGrantView, error)

func UserGrantsByProjectAndUserID

func UserGrantsByProjectAndUserID(db *gorm.DB, table, projectID, userID string) ([]*model.UserGrantView, error)

func UserGrantsByProjectID

func UserGrantsByProjectID(db *gorm.DB, table, projectID string) ([]*model.UserGrantView, error)

func UserGrantsByProjectIDAndRole

func UserGrantsByProjectIDAndRole(db *gorm.DB, table, projectID, roleKey string) ([]*model.UserGrantView, error)

func UserGrantsByUserID

func UserGrantsByUserID(db *gorm.DB, table, userID string) ([]*model.UserGrantView, 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