garm/vendor/github.com/lxc/lxd/shared/api/instance_console.go
Gabriel Adrian Samfira bbbe67bf7c Vendor packages and add Makefile
* Vendors packages
  * Adds a Makefile that uses docker to build a static binary against musl
using alpine linux.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-06-30 10:20:32 +00:00

30 lines
799 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 a LXD 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"`
}