manager

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsoleCopywritingFailed = []string{
	"#######################################################################\r\n",
	"#                    Welcome To BKDevOps Console                      #\r\n",
	"#                该环境已经处于调试状态,禁止同时连接多个会话          #\r\n",
	"#######################################################################\r\n",
}

ConsoleCopywritingFailed is a response string

Functions

func ResponseJSON

func ResponseJSON(w http.ResponseWriter, status int, v interface{}) error

ResponseJSON response to client

Types

type Manager

type Manager interface {
	//start
	Start() error

	//handler container web console
	StartExec(http.ResponseWriter, *http.Request, *types.WebSocketConfig)
	CreateExec(http.ResponseWriter, *http.Request, *types.WebSocketConfig)
	ResizeExec(http.ResponseWriter, *http.Request, *types.WebSocketConfig)
}

Manager is an interface

func NewManager

func NewManager(conf *config.ConsoleProxyConfig) Manager

NewManager create a Manager object

Jump to

Keyboard shortcuts

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