access_list

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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"`
}

type AccessLevels

type AccessLevels map[string]AccessItem

func NewAccessLevels

func NewAccessLevels() AccessLevels

type AccessList

type AccessList map[string]AccessLevels

func NewAccessList

func NewAccessList() AccessList

type AccessListService

type AccessListService struct {
	List *AccessList
	// contains filtered or unexported fields
}

func NewAccessListService

func NewAccessListService(adaptors *adaptors.Adaptors) *AccessListService

func (*AccessListService) GetFullAccessList

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

func (*AccessListService) GetShotAccessList

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

func (*AccessListService) ReadConfig

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

Jump to

Keyboard shortcuts

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