webconsole

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const (
	SERVICE_TYPE    = "webconsole"
	SERVICE_VERSION = ""
)
View Source
const (
	VNC         = "vnc"
	RDP         = "rdp"
	ALIYUN      = "aliyun"
	QCLOUD      = "qcloud"
	OPENSTACK   = "openstack"
	SPICE       = "spice"
	WMKS        = "wmks"
	WS          = "websocket"
	VMRC        = "vmrc"
	ZSTACK      = "zstack"
	CTYUN       = "ctyun"
	HUAWEI      = "huawei"
	HCS         = "hcs"
	APSARA      = "apsara"
	JDCLOUD     = "jdcloud"
	CLOUDPODS   = "cloudpods"
	PROXMOX     = "proxmox"
	VOLC_ENGINE = "volcengine"
	BAIDU       = "baidu"
	SANGFOR     = "sangfor"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClimcSshInfo

type ClimcSshInfo struct {
	IpAddr      string                `json:"ip_addr"`
	Username    string                `json:"username"`
	Command     string                `json:"command"`
	Args        []string              `json:"args"`
	Env         map[string]string     `json:"env"`
	DisplayInfo *SK8sShellDisplayInfo `json:"display_info"`
}

type CommandLogListInput

type CommandLogListInput struct {
	apis.Meta
	apis.OpsLogListInput
}

type SK8sRequest

type SK8sRequest struct {
	Cluster   string `json:"cluster"`
	Namespace string `json:"namespace"`
	Container string `json:"container"`
}

type SK8sShellDisplayInfo

type SK8sShellDisplayInfo struct {
	InstanceName string   `json:"instanceName"`
	IPs          []string `json:"ips,omitempty"`
}

type SK8sShellRequest

type SK8sShellRequest struct {
	SK8sRequest

	Command string            `json:"command"`
	Args    []string          `json:"args"`
	Env     map[string]string `json:"env"`

	DisplayInfo *SK8sShellDisplayInfo `json:"display_info"`
}

type ServerRemoteConsoleResponse

type ServerRemoteConsoleResponse struct {
	AccessUrl     string `json:"access_url"`
	ConnectParams string `json:"connect_params"`
	Session       string `json:"session,omitempty"`

	apis.Meta
}

func (*ServerRemoteConsoleResponse) GetConnectParams

func (resp *ServerRemoteConsoleResponse) GetConnectParams() string

func (*ServerRemoteConsoleResponse) GetConnectProtocol

func (resp *ServerRemoteConsoleResponse) GetConnectProtocol() (string, error)

Jump to

Keyboard shortcuts

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