handler

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(ctx context.Context, conn *websocket.Conn, r *http.Request, g *global.Global)

Attach attach to container to view stdout/stderr of the container

func AuthAPI

func AuthAPI(h http.Handler, g *global.Global) http.Handler

AuthAPI judge whether the request has right to our API

func Authorize

func Authorize(params auth.AuthorizeParams, g *global.Global) middleware.Responder

Authorize is the callback api in SSO

func Enter

func Enter(ctx context.Context, conn *websocket.Conn, r *http.Request, g *global.Global)

Enter enter to container

func GetConfig

GetConfig return the corresponding of entry

func HandleWebsocket

func HandleWebsocket(ctx context.Context, f websocketHandlerFunc, r *http.Request, g *global.Global) middleware.Responder

HandleWebsocket handle websocket request

func ListCommands

ListCommands list commands in database

func ListSessions

ListSessions list sessions in database

func Logout

Logout delete access_token in cookie

func Ping

func Ping(params ping.PingParams) middleware.Responder

Ping return health status

func ReplaySession

func ReplaySession(ctx context.Context, conn *websocket.Conn, r *http.Request, g *global.Global)

ReplaySession replay the session

Types

This section is empty.

Jump to

Keyboard shortcuts

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