access_list

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DATA = `` /* 11293-byte string literal not displayed */

DATA ... todo fix

Variables

This section is empty.

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() (err error)
	GetFullAccessList(roleName string) (accessList AccessList, err error)
	GetShotAccessList(role *m.Role) (err error)
	List() *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