azssh

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToWebsocket

func ConnectToWebsocket(url string, resize chan<- TerminalSize)

ConnectToWebsocket wires up STDIN and STDOUT to a websocket, allowing you to use it as a terminal

func GetToken

func GetToken() string

GetToken retrieves a valid OAuth token for use with Azure Resource Manager APIs

func ProvisionCloudShell

func ProvisionCloudShell(token string, shellType string, initialSize TerminalSize, resize <-chan TerminalSize) string

ProvisionCloudShell sets up a Cloud Shell and a websocket to connect into it

Types

type TerminalSize added in v0.0.3

type TerminalSize struct {
	Rows int
	Cols int
}

func GetTerminalSize added in v0.0.3

func GetTerminalSize() TerminalSize

GetTerminalSize gets the size of the current terminal

Jump to

Keyboard shortcuts

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