access_list

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

DATA ...

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 struct {
	List *AccessList
	// contains filtered or unexported fields
}

AccessListService ...

func NewAccessListService

func NewAccessListService(adaptors *adaptors.Adaptors) *AccessListService

NewAccessListService ...

func (*AccessListService) GetFullAccessList

func (a *AccessListService) GetFullAccessList(role *m.Role) (accessList AccessList, err error)

GetFullAccessList ...

func (*AccessListService) GetShotAccessList

func (a *AccessListService) GetShotAccessList(role *m.Role) (err error)

GetShotAccessList ...

func (*AccessListService) ReadConfig

func (a *AccessListService) ReadConfig() (err error)

ReadConfig ...

Jump to

Keyboard shortcuts

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