dcui

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

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

Access represents the value to be set for DCUI

type Manager

type Manager struct {
	*rest.Client
}

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

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) (bool, error)

Get returns enabled state of Direct Console User Interface (DCUI TTY2).

func (*Manager) Set

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

Set enables state of Direct Console User Interface (DCUI TTY2).

Jump to

Keyboard shortcuts

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