1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00
Files
incus/shared/api/instance_console.go
Stéphane Graber ef20f4cd6f shared/api: Remove LXD mentions
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2023-08-30 00:45:54 -04:00

31 lines
798 B
Go

package api
// InstanceConsoleControl represents a message on the instance console "control" socket.
//
// API extension: instances.
type InstanceConsoleControl struct {
Command string `json:"command" yaml:"command"`
Args map[string]string `json:"args" yaml:"args"`
}
// InstanceConsolePost represents an instance console request.
//
// swagger:model
//
// API extension: instances.
type InstanceConsolePost struct {
// Console width in columns (console type only)
// Example: 80
Width int `json:"width" yaml:"width"`
// Console height in rows (console type only)
// Example: 24
Height int `json:"height" yaml:"height"`
// Type of console to attach to (console or vga)
// Example: console
//
// API extension: console_vga_type
Type string `json:"type" yaml:"type"`
}