jujushell

package module
v0.0.0-...-511b1a1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

README

GoDoc Build Status

Juju Shell

The Juju Shell is a WebSocket server allowing access to the Juju CLI through xterm.js.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(p Params) (http.Handler, error)

NewServer returns a new handler that handles juju shell requests.

Types

type Params

type Params struct {
	// AllowedUsers holds a list of names of users allowed to use the service.
	AllowedUsers []string
	// ImageName holds the name of the LXD image to use to create containers.
	ImageName string
	// JujuAddrs holds the addresses of the current Juju controller.
	JujuAddrs []string
	// JujuCert holds the controller CA certificate in PEM format.
	JujuCert string
	// LXDSocketPath holds the path to the LXD unix socket.
	LXDSocketPath string
	// Profiles holds the LXD profiles to use when launching containers.
	Profiles []string
	// SessionDuration holds time duration before expiring container sessions.
	SessionDuration time.Duration
	// WelcomeMessage optionally holds an initial welcome message for users.
	WelcomeMessage string
}

Params holds parameters for running the server.

Directories

Path Synopsis
cmd
internal
api

Jump to

Keyboard shortcuts

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