rbac

package
v0.0.0-...-41ad4b5 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionFieldFilterCondition = []base.SerializersField{
		{
			Field: "resource",
			Type:  base.LikeExpressionEnum,
		},
		{
			Field: "verb",
			Type:  base.EqualExpressionEnum,
		},
	}
	RoleFiledFilterCondition = []base.SerializersField{
		{
			Field: "name",
			Type:  base.LikeExpressionEnum,
		},
	}
	APIKeyFilterCondition = []base.SerializersField{
		{
			Field: "name",
			Type:  base.LikeExpressionEnum,
		},
		{
			Field: "owner",
			Type:  base.LikeExpressionEnum,
		},
	}
)

Functions

func ActionCreate

func ActionCreate(c echo.Context) error

func ActionDelete

func ActionDelete(c echo.Context) error

func ActionList

func ActionList(c echo.Context) error

func ActionUpdate

func ActionUpdate(c echo.Context) error

func CreateAPIKey

func CreateAPIKey(c echo.Context) error

func DeleteAPIKey

func DeleteAPIKey(c echo.Context) error

func ListAPIKeys

func ListAPIKeys(c echo.Context) error
func MenuList(c echo.Context) error
func MenuListExpand(c echo.Context) error
func MenuPermissionList(ctx echo.Context) error

func RoleCreate

func RoleCreate(c echo.Context) error

func RoleDelete

func RoleDelete(c echo.Context) error

func RoleList

func RoleList(c echo.Context) error

func RoleRelAvailableGroups

func RoleRelAvailableGroups(c echo.Context) error

func RoleRelAvailableResourceList

func RoleRelAvailableResourceList(c echo.Context) error

func RoleRelAvailableUsers

func RoleRelAvailableUsers(c echo.Context) error

func RoleRelGroupCreate

func RoleRelGroupCreate(c echo.Context) error

func RoleRelGroupDelete

func RoleRelGroupDelete(c echo.Context) error

func RoleRelGroupList

func RoleRelGroupList(c echo.Context) error

func RoleRelUserCreate

func RoleRelUserCreate(c echo.Context) error

func RoleRelUserDelete

func RoleRelUserDelete(c echo.Context) error

func RoleRelUserList

func RoleRelUserList(c echo.Context) error

func RoleResourceCreate

func RoleResourceCreate(c echo.Context) error

func RoleResourceDelete

func RoleResourceDelete(c echo.Context) error

func RoleResourceList

func RoleResourceList(c echo.Context) error

func RoleUpdate

func RoleUpdate(c echo.Context) error

Types

type APIActionSerializer

type APIActionSerializer struct {
	Filter map[string]interface{}
	// contains filtered or unexported fields
}

func NewAPIActionSerializer

func NewAPIActionSerializer() *APIActionSerializer

func (*APIActionSerializer) ExtraFilter

func (c *APIActionSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}

func (*APIActionSerializer) GetParams

func (*APIActionSerializer) Order

func (c *APIActionSerializer) Order() []string

func (*APIActionSerializer) Preload

func (c *APIActionSerializer) Preload() []string

func (*APIActionSerializer) QueryBeforeHook

func (c *APIActionSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*APIActionSerializer) Response

func (c *APIActionSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

type APIKeySerializer

type APIKeySerializer struct {
	Filter map[string]interface{}
	// contains filtered or unexported fields
}

func NewAPIKeySerializer

func NewAPIKeySerializer() *APIKeySerializer

func (*APIKeySerializer) ExtraFilter

func (c *APIKeySerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}

func (*APIKeySerializer) GetParams

func (c *APIKeySerializer) GetParams() base.SerializersParams

func (*APIKeySerializer) Order

func (c *APIKeySerializer) Order() []string

func (*APIKeySerializer) Preload

func (c *APIKeySerializer) Preload() []string

func (*APIKeySerializer) QueryBeforeHook

func (c *APIKeySerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*APIKeySerializer) Response

func (c *APIKeySerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

type APIRoleRelGroupSerializer

type APIRoleRelGroupSerializer struct {
	Filter map[string]interface{}
	// contains filtered or unexported fields
}

func NewAPIRoleRelGroupSerializer

func NewAPIRoleRelGroupSerializer() *APIRoleRelGroupSerializer

func (*APIRoleRelGroupSerializer) ExtraFilter

func (c *APIRoleRelGroupSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}

func (*APIRoleRelGroupSerializer) GetParams

func (*APIRoleRelGroupSerializer) Order

func (c *APIRoleRelGroupSerializer) Order() []string

func (*APIRoleRelGroupSerializer) Preload

func (c *APIRoleRelGroupSerializer) Preload() []string

func (*APIRoleRelGroupSerializer) QueryBeforeHook

func (c *APIRoleRelGroupSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*APIRoleRelGroupSerializer) Response

func (c *APIRoleRelGroupSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

type APIRoleRelUserSerializer

type APIRoleRelUserSerializer struct {
	Filter map[string]interface{}
	// contains filtered or unexported fields
}

func NewAPIRoleRelUserSerializer

func NewAPIRoleRelUserSerializer() *APIRoleRelUserSerializer

func (*APIRoleRelUserSerializer) ExtraFilter

func (c *APIRoleRelUserSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}

func (*APIRoleRelUserSerializer) GetParams

func (*APIRoleRelUserSerializer) Order

func (c *APIRoleRelUserSerializer) Order() []string

func (*APIRoleRelUserSerializer) Preload

func (c *APIRoleRelUserSerializer) Preload() []string

func (*APIRoleRelUserSerializer) QueryBeforeHook

func (c *APIRoleRelUserSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*APIRoleRelUserSerializer) Response

func (c *APIRoleRelUserSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

type APIRoleResourceSerializer

type APIRoleResourceSerializer struct {
	Filter map[string]interface{}
	// contains filtered or unexported fields
}

func NewAPIRoleResourceSerializer

func NewAPIRoleResourceSerializer() *APIRoleResourceSerializer

func (*APIRoleResourceSerializer) ExtraFilter

func (c *APIRoleResourceSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}

func (*APIRoleResourceSerializer) GetParams

func (*APIRoleResourceSerializer) Order

func (c *APIRoleResourceSerializer) Order() []string

func (*APIRoleResourceSerializer) Preload

func (c *APIRoleResourceSerializer) Preload() []string

func (*APIRoleResourceSerializer) QueryBeforeHook

func (c *APIRoleResourceSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*APIRoleResourceSerializer) Response

func (c *APIRoleResourceSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

type APIRoleSerializer

type APIRoleSerializer struct {
	Filter map[string]interface{}
	// contains filtered or unexported fields
}

func NewAPIRoleSerializer

func NewAPIRoleSerializer() *APIRoleSerializer

func (*APIRoleSerializer) ExtraFilter

func (c *APIRoleSerializer) ExtraFilter(query map[string]interface{}) map[string]interface{}

func (*APIRoleSerializer) GetParams

func (c *APIRoleSerializer) GetParams() base.SerializersParams

func (*APIRoleSerializer) Order

func (c *APIRoleSerializer) Order() []string

func (*APIRoleSerializer) Preload

func (c *APIRoleSerializer) Preload() []string

func (*APIRoleSerializer) QueryBeforeHook

func (c *APIRoleSerializer) QueryBeforeHook(ctx echo.Context, tx *gorm.DB, query map[string]interface{}) (*gorm.DB, error)

func (*APIRoleSerializer) Response

func (c *APIRoleSerializer) Response(data base.ResponseContent, query map[string]interface{}) base.ResponseContent

Jump to

Keyboard shortcuts

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