middleware

package
v1.3.0-rc Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auditor

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

func NewAuditor

func NewAuditor(bdl *bundle.Bundle) *Auditor

NewAuditor return a steve Auditor with bundle. bdl needs withCoreServices to create audit events.

func (*Auditor) AuditMiddleWare

func (a *Auditor) AuditMiddleWare(next http.Handler) http.Handler

AuditMiddleWare audit for steve server by bundle.

type Authenticator

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

func NewAuthenticator

func NewAuthenticator(bdl *bundle.Bundle) *Authenticator

NewAuthenticator return a steve Authenticator with bundle. bdl need withCoreServices to check permission.

func (*Authenticator) AuthMiddleware

func (a *Authenticator) AuthMiddleware(next http.Handler) http.Handler

AuthMiddleware authenticate for steve server by bundle.

type Chain

type Chain []mux.MiddlewareFunc

func (Chain) Handler

func (c Chain) Handler(handler http.Handler) http.Handler

type ShellHandler

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

func NewShellHandler

func NewShellHandler(ctx context.Context) *ShellHandler

NewShellHandler create a new ShellHandler

func (*ShellHandler) HandleShell

func (s *ShellHandler) HandleShell(next http.Handler) http.Handler

HandleShell forwards the request to cluster-agent pod

Jump to

Keyboard shortcuts

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