middlewares

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzMiddleware

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

func (*AuthzMiddleware) IsApplicationAdmin

func (a *AuthzMiddleware) IsApplicationAdmin(handler http.Handler) http.Handler

func (*AuthzMiddleware) IsRepositoryAdmin

func (a *AuthzMiddleware) IsRepositoryAdmin(handler http.Handler) http.Handler

func (*AuthzMiddleware) IsRepositoryMember

func (a *AuthzMiddleware) IsRepositoryMember(handler http.Handler) http.Handler

func (*AuthzMiddleware) IsRepositorySupervisor

func (a *AuthzMiddleware) IsRepositorySupervisor(handler http.Handler) http.Handler

func (*AuthzMiddleware) IsWorkspaceAdmin

func (a *AuthzMiddleware) IsWorkspaceAdmin(handler http.Handler) http.Handler

func (*AuthzMiddleware) IsWorkspaceMember

func (a *AuthzMiddleware) IsWorkspaceMember(handler http.Handler) http.Handler

type IAuthzMiddleware

type IAuthzMiddleware interface {
	IsApplicationAdmin(next http.Handler) http.Handler
	IsWorkspaceMember(next http.Handler) http.Handler
	IsWorkspaceAdmin(next http.Handler) http.Handler
	IsRepositoryMember(next http.Handler) http.Handler
	IsRepositoryAdmin(next http.Handler) http.Handler
	IsRepositorySupervisor(next http.Handler) http.Handler
}

func NewAuthzMiddleware

func NewAuthzMiddleware(grpcCon grpc.ClientConnInterface) IAuthzMiddleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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