acl

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionTrim = regexp.MustCompile(`^/v\d+/`)

VersionTrim is ...

Functions

func GetAdminCerts

func GetAdminCerts() ([]string, error)

GetAdminCerts Get all Admin certification files from a given path.

func GetCertsPath

func GetCertsPath() []string

GetCertsPath Get all certification files include admin's and common user's from a given path.

func GetUserCerts

func GetUserCerts() ([]string, error)

GetUserCerts Get all user certification files from a given path.

Types

type Enforcer

type Enforcer struct {
	// contains filtered or unexported fields
}

Enforcer does enforce

func NewEnforcer

func NewEnforcer() (*Enforcer, error)

NewEnforcer creates enforcer

func (*Enforcer) Enforce

func (e *Enforcer) Enforce(request *restful.Request, sub string) bool

Enforce does enforce based on request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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