roleBuilder

package
v4.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleBuilder

type RoleBuilder struct {
	Endpoints []string
	Caller    *RoleConfigurer
	// contains filtered or unexported fields
}

func (*RoleBuilder) Authenticated

func (r *RoleBuilder) Authenticated() *RoleConfigurer

func (*RoleBuilder) DenyAll

func (r *RoleBuilder) DenyAll() *RoleConfigurer

func (*RoleBuilder) HasAnyRoles

func (r *RoleBuilder) HasAnyRoles(roles ...string) *RoleConfigurer

func (*RoleBuilder) PermitAll

func (r *RoleBuilder) PermitAll() *RoleConfigurer

type RoleConfigurer

type RoleConfigurer struct {
	RequestRoad *roadBuillder.RoadBuilder[authorization.RoleModel]
	// contains filtered or unexported fields
}

func (RoleConfigurer) AntMatcher

func (r RoleConfigurer) AntMatcher(endpoints ...string) *RoleBuilder

func (RoleConfigurer) AnyRequest

func (r RoleConfigurer) AnyRequest() *RoleBuilder

type SecurityConfig

type SecurityConfig interface {
	Config(security *RoleConfigurer)
}

Jump to

Keyboard shortcuts

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