console

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: MIT Imports: 3 Imported by: 0

README

Console

Build Status Go Report Card GoDoc Docker Automated build GitHub license

Driver

  • Docker - Docker client
  • SSH - SSH client
  • Shell - Local shell

GUI

  • Web console - Web Shell
  • PC console - Build with electron
  • Config Management - Connection configuration management
  • Session Management - Multi session management

Misc

  • Proxy - Network Proxy
  • Auth - Authentication

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, driver Driver)

Types

type Driver

type Driver func(host string) (Sessions, error)

type ReqCreateExec

type ReqCreateExec struct {
	Name string `json:"name,omitempty"`
	Host string `json:"host,omitempty"`
	CId  string `json:"cid,omitempty"`
	Cmd  string `json:"cmd,omitempty"`
}

type ReqResizeExecTTY

type ReqResizeExecTTY struct {
	EId    string `json:"eid,omitempty"`
	Height int    `json:"height,omitempty"`
	Width  int    `json:"width,omitempty"`
}

type RespCreateExec

type RespCreateExec struct {
	EId string `json:"eid,omitempty"`
}

type Sessions

type Sessions interface {
	CreateExec(req *ReqCreateExec) (*RespCreateExec, error)
	StartExec(id string, ws io.ReadWriter) error
	ResizeExecTTY(req *ReqResizeExecTTY) error
}

func GetDrivers

func GetDrivers(name, host string) (Sessions, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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