Documentation ¶
Index ¶
- func AuthMiddleware(backendRepo repository.BackendRepository, ...) echo.MiddlewareFunc
- func WithAssumedStubAuth(next func(ctx echo.Context) error, ...) func(ctx echo.Context) error
- func WithAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- func WithClusterAdminAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- func WithWorkspaceAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- type AuthInfo
- type AuthInterceptor
- type HttpAuthContext
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(backendRepo repository.BackendRepository, workspaceRepo repository.WorkspaceRepository) echo.MiddlewareFunc
func WithAssumedStubAuth ¶
func WithClusterAdminAuth ¶
func WithWorkspaceAuth ¶
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(backendRepo repository.BackendRepository, workspaceRepo repository.WorkspaceRepository) *AuthInterceptor
func (*AuthInterceptor) Stream ¶
func (ai *AuthInterceptor) Stream() grpc.StreamServerInterceptor
func (*AuthInterceptor) Unary ¶
func (ai *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
type HttpAuthContext ¶
type HttpAuthContext struct { echo.Context AuthInfo *AuthInfo }
Click to show internal directories.
Click to hide internal directories.