Documentation ¶
Index ¶
- type AuthzMiddleware
- func (a *AuthzMiddleware) IsApplicationAdmin(handler http.Handler) http.Handler
- func (a *AuthzMiddleware) IsRepositoryAdmin(handler http.Handler) http.Handler
- func (a *AuthzMiddleware) IsRepositoryMember(handler http.Handler) http.Handler
- func (a *AuthzMiddleware) IsRepositorySupervisor(handler http.Handler) http.Handler
- func (a *AuthzMiddleware) IsWorkspaceAdmin(handler http.Handler) http.Handler
- func (a *AuthzMiddleware) IsWorkspaceMember(handler http.Handler) http.Handler
- type IAuthzMiddleware
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
Click to show internal directories.
Click to hide internal directories.