view

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 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 SearchUserGrants

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

func UserGrantByID

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

func UserGrantByIDs added in v0.20.0

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 added in v0.32.0

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

func UserGrantsByProjectAndUserID added in v0.54.5

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 added in v0.32.0

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