access_list

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DATA embed.FS

Functions

This section is empty.

Types

type AccessItem

type AccessItem struct {
	Actions     []string `json:"actions"`
	Method      string   `json:"method"`
	Description string   `json:"description"`
	RoleName    string   `json:"role_name"`
}

AccessItem ...

type AccessLevels

type AccessLevels map[string]AccessItem

AccessLevels ...

func NewAccessLevels

func NewAccessLevels() AccessLevels

NewAccessLevels ...

type AccessList

type AccessList map[string]AccessLevels

AccessList ...

func NewAccessList

func NewAccessList() AccessList

NewAccessList ...

type AccessListService

type AccessListService interface {
	ReadConfig(ctx context.Context) (err error)
	GetFullAccessList(ctx context.Context, roleName string) (accessList AccessList, err error)
	GetShotAccessList(ctx context.Context, role *m.Role) (err error)
	List(ctx context.Context) *AccessList
}

AccessListService ...

func NewAccessListService

func NewAccessListService(adaptors *adaptors.Adaptors) AccessListService

NewAccessListService ...

Jump to

Keyboard shortcuts

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