shell

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const Path = "/api/appliance/access/shell"

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access struct {
	Enabled bool `json:"enabled"`
	Timeout int  `json:"timeout"`
}

Access represents shell configuration.

type Manager

type Manager struct {
	*rest.Client
}

Manager provides convenience methods to get/set enabled state of BASH.

func NewManager

func NewManager(client *rest.Client) *Manager

NewManager creates a new Manager with the given client

func (*Manager) Get

func (m *Manager) Get(ctx context.Context) (Access, error)

Get returns enabled state of BASH, that is, access to BASH from within the controlled CLI.

func (*Manager) Set

func (m *Manager) Set(ctx context.Context, inp Access) error

Set enables state of BASH, that is access to BASH from within the controlled CLI.

Jump to

Keyboard shortcuts

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