Documentation ¶
Index ¶
- Constants
- type Acme
- type Acmedomain
- type Acmedomains
- type AplDownloadAplinfoRequest
- type AplinfoRequest
- type Cf
- type Client
- func (c *Client) AplDownloadAplinfo(ctx context.Context, req AplDownloadAplinfoRequest) (string, error)
- func (c *Client) Aplinfo(ctx context.Context, req AplinfoRequest) ([]map[string]interface{}, error)
- func (c *Client) DeleteSubscription(ctx context.Context, req DeleteSubscriptionRequest) error
- func (c *Client) Dns(ctx context.Context, req DnsRequest) (DnsResponse, error)
- func (c *Client) Execute(ctx context.Context, req ExecuteRequest) ([]map[string]interface{}, error)
- func (c *Client) Find(ctx context.Context, req FindRequest) ([]map[string]interface{}, error)
- func (c *Client) GetConfig(ctx context.Context, req GetConfigRequest) (GetConfigResponse, error)
- func (c *Client) GetEtcHosts(ctx context.Context, req GetEtcHostsRequest) (GetEtcHostsResponse, error)
- func (c *Client) GetSubscription(ctx context.Context, req GetSubscriptionRequest) (map[string]interface{}, error)
- func (c *Client) Index(ctx context.Context) ([]IndexResponse, error)
- func (c *Client) Journal(ctx context.Context, req JournalRequest) ([]string, error)
- func (c *Client) Migrateall(ctx context.Context, req MigrateallRequest) (string, error)
- func (c *Client) Netstat(ctx context.Context, req NetstatRequest) ([]map[string]interface{}, error)
- func (c *Client) NodeCmdStatus(ctx context.Context, req NodeCmdStatusRequest) error
- func (c *Client) QueryUrlMetadata(ctx context.Context, req QueryUrlMetadataRequest) (QueryUrlMetadataResponse, error)
- func (c *Client) Report(ctx context.Context, req ReportRequest) (string, error)
- func (c *Client) Rrd(ctx context.Context, req RrdRequest) (RrdResponse, error)
- func (c *Client) Rrddata(ctx context.Context, req RrddataRequest) ([]map[string]interface{}, error)
- func (c *Client) SetOptionsConfig(ctx context.Context, req SetOptionsConfigRequest) error
- func (c *Client) SetSubscription(ctx context.Context, req SetSubscriptionRequest) error
- func (c *Client) SetTimezoneTime(ctx context.Context, req SetTimezoneTimeRequest) error
- func (c *Client) Spiceshell(ctx context.Context, req SpiceshellRequest) (SpiceshellResponse, error)
- func (c *Client) Startall(ctx context.Context, req StartallRequest) (string, error)
- func (c *Client) Status(ctx context.Context, req StatusRequest) (map[string]interface{}, error)
- func (c *Client) Stopall(ctx context.Context, req StopallRequest) (string, error)
- func (c *Client) Syslog(ctx context.Context, req SyslogRequest) ([]SyslogResponse, error)
- func (c *Client) Termproxy(ctx context.Context, req TermproxyRequest) (TermproxyResponse, error)
- func (c *Client) Time(ctx context.Context, req TimeRequest) (TimeResponse, error)
- func (c *Client) UpdateDns(ctx context.Context, req UpdateDnsRequest) error
- func (c *Client) UpdateSubscription(ctx context.Context, req UpdateSubscriptionRequest) error
- func (c *Client) Version(ctx context.Context, req VersionRequest) (VersionResponse, error)
- func (c *Client) Vncshell(ctx context.Context, req VncshellRequest) (VncshellResponse, error)
- func (c *Client) Vncwebsocket(ctx context.Context, req VncwebsocketRequest) (VncwebsocketResponse, error)
- func (c *Client) Wakeonlan(ctx context.Context, req WakeonlanRequest) (string, error)
- func (c *Client) WriteEtcHosts(ctx context.Context, req WriteEtcHostsRequest) error
- type Cmd
- type Command
- type DeleteSubscriptionRequest
- type DnsRequest
- type DnsResponse
- type ExecuteRequest
- type FindRequest
- type GetConfigRequest
- type GetConfigResponse
- type GetEtcHostsRequest
- type GetEtcHostsResponse
- type GetSubscriptionRequest
- type HTTPClient
- type IndexResponse
- type JournalRequest
- type MigrateallRequest
- type NetstatRequest
- type NodeCmdStatusRequest
- type Property
- type QueryUrlMetadataRequest
- type QueryUrlMetadataResponse
- type ReportRequest
- type RrdRequest
- type RrdResponse
- type RrddataRequest
- type SetOptionsConfigRequest
- type SetSubscriptionRequest
- type SetTimezoneTimeRequest
- type SpiceshellRequest
- type SpiceshellResponse
- type StartallRequest
- type Status
- type StatusRequest
- type StopallRequest
- type SyslogRequest
- type SyslogResponse
- type TermproxyRequest
- type TermproxyResponse
- type TimeRequest
- type TimeResponse
- type Timeframe
- type UpdateDnsRequest
- type UpdateSubscriptionRequest
- type VersionRequest
- type VersionResponse
- type VncshellRequest
- type VncshellResponse
- type VncwebsocketRequest
- type VncwebsocketResponse
- type WakeonlanRequest
- type WriteEtcHostsRequest
Constants ¶
const ( Cf_AVERAGE Cf = "AVERAGE" Cf_MAX Cf = "MAX" Cmd_CEPH_INSTALL Cmd = "ceph_install" Cmd_LOGIN Cmd = "login" Cmd_UPGRADE Cmd = "upgrade" Command_REBOOT Command = "reboot" Command_SHUTDOWN Command = "shutdown" Property_ACME Property = "acme" Property_ACMEDOMAIN0 Property = "acmedomain0" Property_ACMEDOMAIN1 Property = "acmedomain1" Property_ACMEDOMAIN2 Property = "acmedomain2" Property_ACMEDOMAIN3 Property = "acmedomain3" Property_ACMEDOMAIN4 Property = "acmedomain4" Property_ACMEDOMAIN5 Property = "acmedomain5" Property_DESCRIPTION Property = "description" Property_STARTALL_ONBOOT_DELAY Property = "startall-onboot-delay" Property_WAKEONLAN Property = "wakeonlan" Status_UNKNOWN Status = "unknown" Status_ONLINE Status = "online" Status_OFFLINE Status = "offline" Timeframe_HOUR Timeframe = "hour" Timeframe_DAY Timeframe = "day" Timeframe_WEEK Timeframe = "week" Timeframe_MONTH Timeframe = "month" Timeframe_YEAR Timeframe = "year" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acme ¶ added in v0.0.10
type Acme struct { // The following parameters are optional Account *string `url:"account,omitempty" json:"account,omitempty"` // ACME account config file name. Domains *string `url:"domains,omitempty" json:"domains,omitempty"` // List of domains for this node's ACME certificate }
Node specific ACME settings.
func (Acme) EncodeValues ¶ added in v0.0.10
func (*Acme) UnmarshalJSON ¶ added in v0.0.19
type Acmedomain ¶ added in v0.0.15
type Acmedomain struct { Domain string `url:"domain" json:"domain"` // domain for this node's ACME certificate // The following parameters are optional Alias *string `url:"alias,omitempty" json:"alias,omitempty"` // Alias for the Domain to verify ACME Challenge over DNS Plugin *string `url:"plugin,omitempty" json:"plugin,omitempty"` // The ACME plugin ID }
ACME domain and validation plugin
func (Acmedomain) EncodeValues ¶ added in v0.0.15
func (t Acmedomain) EncodeValues(key string, v *url.Values) error
func (*Acmedomain) UnmarshalJSON ¶ added in v0.0.19
func (t *Acmedomain) UnmarshalJSON(d []byte) error
type Acmedomains ¶ added in v0.0.15
type Acmedomains []*Acmedomain
Array of Acmedomain
func (Acmedomains) EncodeValues ¶ added in v0.0.15
func (t Acmedomains) EncodeValues(key string, v *url.Values) error
type AplinfoRequest ¶
type AplinfoRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(c HTTPClient) *Client
func (*Client) AplDownloadAplinfo ¶
func (c *Client) AplDownloadAplinfo(ctx context.Context, req AplDownloadAplinfoRequest) (string, error)
AplDownloadAplinfo Download appliance templates.
func (*Client) DeleteSubscription ¶
func (c *Client) DeleteSubscription(ctx context.Context, req DeleteSubscriptionRequest) error
DeleteSubscription Delete subscription key of this node.
func (*Client) Dns ¶
func (c *Client) Dns(ctx context.Context, req DnsRequest) (DnsResponse, error)
Dns Read DNS settings.
func (*Client) GetConfig ¶
func (c *Client) GetConfig(ctx context.Context, req GetConfigRequest) (GetConfigResponse, error)
GetConfig Get node configuration options.
func (*Client) GetEtcHosts ¶
func (c *Client) GetEtcHosts(ctx context.Context, req GetEtcHostsRequest) (GetEtcHostsResponse, error)
GetEtcHosts Get the content of /etc/hosts.
func (*Client) GetSubscription ¶
func (c *Client) GetSubscription(ctx context.Context, req GetSubscriptionRequest) (map[string]interface{}, error)
GetSubscription Read subscription info.
func (*Client) Index ¶
func (c *Client) Index(ctx context.Context) ([]IndexResponse, error)
Index Cluster node index.
func (*Client) Migrateall ¶
Migrateall Migrate all VMs and Containers.
func (*Client) NodeCmdStatus ¶
func (c *Client) NodeCmdStatus(ctx context.Context, req NodeCmdStatusRequest) error
NodeCmdStatus Reboot or shutdown a node.
func (*Client) QueryUrlMetadata ¶
func (c *Client) QueryUrlMetadata(ctx context.Context, req QueryUrlMetadataRequest) (QueryUrlMetadataResponse, error)
QueryUrlMetadata Query metadata of an URL: file size, file name and mime type.
func (*Client) Rrd ¶
func (c *Client) Rrd(ctx context.Context, req RrdRequest) (RrdResponse, error)
Rrd Read node RRD statistics (returns PNG)
func (*Client) SetOptionsConfig ¶
func (c *Client) SetOptionsConfig(ctx context.Context, req SetOptionsConfigRequest) error
SetOptionsConfig Set node configuration options.
func (*Client) SetSubscription ¶
func (c *Client) SetSubscription(ctx context.Context, req SetSubscriptionRequest) error
SetSubscription Set subscription key.
func (*Client) SetTimezoneTime ¶
func (c *Client) SetTimezoneTime(ctx context.Context, req SetTimezoneTimeRequest) error
SetTimezoneTime Set time zone.
func (*Client) Spiceshell ¶
func (c *Client) Spiceshell(ctx context.Context, req SpiceshellRequest) (SpiceshellResponse, error)
Spiceshell Creates a SPICE shell.
func (*Client) Startall ¶
Startall Start all VMs and containers located on this node (by default only those with onboot=1).
func (*Client) Syslog ¶
func (c *Client) Syslog(ctx context.Context, req SyslogRequest) ([]SyslogResponse, error)
Syslog Read system log
func (*Client) Termproxy ¶
func (c *Client) Termproxy(ctx context.Context, req TermproxyRequest) (TermproxyResponse, error)
Termproxy Creates a VNC Shell proxy.
func (*Client) Time ¶
func (c *Client) Time(ctx context.Context, req TimeRequest) (TimeResponse, error)
Time Read server time and time zone settings.
func (*Client) UpdateDns ¶
func (c *Client) UpdateDns(ctx context.Context, req UpdateDnsRequest) error
UpdateDns Write DNS settings.
func (*Client) UpdateSubscription ¶
func (c *Client) UpdateSubscription(ctx context.Context, req UpdateSubscriptionRequest) error
UpdateSubscription Update subscription info.
func (*Client) Version ¶
func (c *Client) Version(ctx context.Context, req VersionRequest) (VersionResponse, error)
Version API version details
func (*Client) Vncshell ¶
func (c *Client) Vncshell(ctx context.Context, req VncshellRequest) (VncshellResponse, error)
Vncshell Creates a VNC Shell proxy.
func (*Client) Vncwebsocket ¶
func (c *Client) Vncwebsocket(ctx context.Context, req VncwebsocketRequest) (VncwebsocketResponse, error)
Vncwebsocket Opens a websocket for VNC traffic.
func (*Client) WriteEtcHosts ¶
func (c *Client) WriteEtcHosts(ctx context.Context, req WriteEtcHostsRequest) error
WriteEtcHosts Write /etc/hosts.
type DeleteSubscriptionRequest ¶
type DeleteSubscriptionRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type DnsRequest ¶
type DnsRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type DnsResponse ¶
type DnsResponse struct { // The following parameters are optional Dns1 *string `url:"dns1,omitempty" json:"dns1,omitempty"` // First name server IP address. Dns2 *string `url:"dns2,omitempty" json:"dns2,omitempty"` // Second name server IP address. Dns3 *string `url:"dns3,omitempty" json:"dns3,omitempty"` // Third name server IP address. Search *string `url:"search,omitempty" json:"search,omitempty"` // Search domain for host-name lookup. }
type ExecuteRequest ¶
type FindRequest ¶
type FindRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type GetConfigRequest ¶
type GetConfigResponse ¶
type GetConfigResponse struct { // The following parameters are optional Acme *Acme `url:"acme,omitempty" json:"acme,omitempty"` // Node specific ACME settings. Acmedomains *Acmedomains `url:"acmedomain[n],omitempty" json:"acmedomain[n],omitempty"` // ACME domain and validation plugin Description *string `url:"description,omitempty" json:"description,omitempty"` // Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file. Digest *string `url:"digest,omitempty" json:"digest,omitempty"` // Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. StartallOnbootDelay *int `url:"startall-onboot-delay,omitempty" json:"startall-onboot-delay,omitempty"` // Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled. Wakeonlan *string `url:"wakeonlan,omitempty" json:"wakeonlan,omitempty"` // MAC address for wake on LAN }
func (*GetConfigResponse) UnmarshalJSON ¶ added in v0.0.19
func (t *GetConfigResponse) UnmarshalJSON(d []byte) error
type GetEtcHostsRequest ¶
type GetEtcHostsRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type GetEtcHostsResponse ¶
type GetEtcHostsResponse struct { Data string `url:"data" json:"data"` // The content of /etc/hosts. // The following parameters are optional Digest *string `url:"digest,omitempty" json:"digest,omitempty"` // Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. }
type GetSubscriptionRequest ¶
type GetSubscriptionRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type HTTPClient ¶
type IndexResponse ¶
type IndexResponse struct { Node string `url:"node" json:"node"` // The cluster node name. Status Status `url:"status" json:"status"` // Node status. // The following parameters are optional Cpu *float64 `url:"cpu,omitempty" json:"cpu,omitempty"` // CPU utilization. Level *string `url:"level,omitempty" json:"level,omitempty"` // Support level. Maxcpu *int `url:"maxcpu,omitempty" json:"maxcpu,omitempty"` // Number of available CPUs. Maxmem *int `url:"maxmem,omitempty" json:"maxmem,omitempty"` // Number of available memory in bytes. Mem *int `url:"mem,omitempty" json:"mem,omitempty"` // Used memory in bytes. SslFingerprint *string `url:"ssl_fingerprint,omitempty" json:"ssl_fingerprint,omitempty"` // The SSL fingerprint for the node certificate. Uptime *int `url:"uptime,omitempty" json:"uptime,omitempty"` // Node uptime in seconds. }
type JournalRequest ¶
type JournalRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Endcursor *string `url:"endcursor,omitempty" json:"endcursor,omitempty"` // End before the given Cursor. Conflicts with 'until' Lastentries *int `url:"lastentries,omitempty" json:"lastentries,omitempty"` // Limit to the last X lines. Conflicts with a range. Since *int `url:"since,omitempty" json:"since,omitempty"` // Display all log since this UNIX epoch. Conflicts with 'startcursor'. Startcursor *string `url:"startcursor,omitempty" json:"startcursor,omitempty"` // Start after the given Cursor. Conflicts with 'since' Until *int `url:"until,omitempty" json:"until,omitempty"` // Display all log until this UNIX epoch. Conflicts with 'endcursor'. }
type MigrateallRequest ¶
type MigrateallRequest struct { Node string `url:"node" json:"node"` // The cluster node name. Target string `url:"target" json:"target"` // Target node. // The following parameters are optional Maxworkers *int `url:"maxworkers,omitempty" json:"maxworkers,omitempty"` // Maximal number of parallel migration job. If not set use 'max_workers' from datacenter.cfg, one of both must be set! Vms *string `url:"vms,omitempty" json:"vms,omitempty"` // Only consider Guests with these IDs. WithLocalDisks *util.PVEBool `url:"with-local-disks,omitempty" json:"with-local-disks,omitempty"` // Enable live storage migration for local disk }
type NetstatRequest ¶
type NetstatRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type NodeCmdStatusRequest ¶
type QueryUrlMetadataRequest ¶
type QueryUrlMetadataRequest struct { Node string `url:"node" json:"node"` // The cluster node name. Url string `url:"url" json:"url"` // The URL to query the metadata from. // The following parameters are optional VerifyCertificates *util.PVEBool `url:"verify-certificates,omitempty" json:"verify-certificates,omitempty"` // If false, no SSL/TLS certificates will be verified. }
type ReportRequest ¶
type ReportRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type RrdRequest ¶
type RrdRequest struct { Ds string `url:"ds" json:"ds"` // The list of datasources you want to display. Node string `url:"node" json:"node"` // The cluster node name. Timeframe Timeframe `url:"timeframe" json:"timeframe"` // Specify the time frame you are interested in. // The following parameters are optional Cf *Cf `url:"cf,omitempty" json:"cf,omitempty"` // The RRD consolidation function }
type RrdResponse ¶
type RrdResponse struct {
Filename string `url:"filename" json:"filename"`
}
type RrddataRequest ¶
type RrddataRequest struct { Node string `url:"node" json:"node"` // The cluster node name. Timeframe Timeframe `url:"timeframe" json:"timeframe"` // Specify the time frame you are interested in. // The following parameters are optional Cf *Cf `url:"cf,omitempty" json:"cf,omitempty"` // The RRD consolidation function }
type SetOptionsConfigRequest ¶
type SetOptionsConfigRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Acme *Acme `url:"acme,omitempty" json:"acme,omitempty"` // Node specific ACME settings. Acmedomains *Acmedomains `url:"acmedomain[n],omitempty" json:"acmedomain[n],omitempty"` // ACME domain and validation plugin Delete *string `url:"delete,omitempty" json:"delete,omitempty"` // A list of settings you want to delete. Description *string `url:"description,omitempty" json:"description,omitempty"` // Description for the Node. Shown in the web-interface node notes panel. This is saved as comment inside the configuration file. Digest *string `url:"digest,omitempty" json:"digest,omitempty"` // Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. StartallOnbootDelay *int `url:"startall-onboot-delay,omitempty" json:"startall-onboot-delay,omitempty"` // Initial delay in seconds, before starting all the Virtual Guests with on-boot enabled. Wakeonlan *string `url:"wakeonlan,omitempty" json:"wakeonlan,omitempty"` // MAC address for wake on LAN }
func (*SetOptionsConfigRequest) UnmarshalJSON ¶ added in v0.0.19
func (t *SetOptionsConfigRequest) UnmarshalJSON(d []byte) error
type SetSubscriptionRequest ¶
type SetTimezoneTimeRequest ¶
type SpiceshellRequest ¶
type SpiceshellRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Cmd *Cmd `url:"cmd,omitempty" json:"cmd,omitempty"` // Run specific command or default to login. CmdOpts *string `url:"cmd-opts,omitempty" json:"cmd-opts,omitempty"` // Add parameters to a command. Encoded as null terminated strings. Proxy *string `url:"proxy,omitempty" json:"proxy,omitempty"` // SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). }
type SpiceshellResponse ¶
type SpiceshellResponse struct { Host string `url:"host" json:"host"` Password string `url:"password" json:"password"` Proxy string `url:"proxy" json:"proxy"` TlsPort int `url:"tls-port" json:"tls-port"` Type string `url:"type" json:"type"` }
Returned values can be directly passed to the 'remote-viewer' application.
type StartallRequest ¶
type StartallRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Force *util.PVEBool `url:"force,omitempty" json:"force,omitempty"` // Issue start command even if virtual guest have 'onboot' not set or set to off. Vms *string `url:"vms,omitempty" json:"vms,omitempty"` // Only consider guests from this comma separated list of VMIDs. }
type StatusRequest ¶
type StatusRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type StopallRequest ¶
type SyslogRequest ¶
type SyslogRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Limit *int `url:"limit,omitempty" json:"limit,omitempty"` Service *string `url:"service,omitempty" json:"service,omitempty"` // Service ID Since *string `url:"since,omitempty" json:"since,omitempty"` // Display all log since this date-time string. Start *int `url:"start,omitempty" json:"start,omitempty"` Until *string `url:"until,omitempty" json:"until,omitempty"` // Display all log until this date-time string. }
type SyslogResponse ¶
type TermproxyRequest ¶
type TermproxyRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Cmd *Cmd `url:"cmd,omitempty" json:"cmd,omitempty"` // Run specific command or default to login. CmdOpts *string `url:"cmd-opts,omitempty" json:"cmd-opts,omitempty"` // Add parameters to a command. Encoded as null terminated strings. }
type TermproxyResponse ¶
type TimeRequest ¶
type TimeRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type TimeResponse ¶
type UpdateDnsRequest ¶
type UpdateDnsRequest struct { Node string `url:"node" json:"node"` // The cluster node name. Search string `url:"search" json:"search"` // Search domain for host-name lookup. // The following parameters are optional Dns1 *string `url:"dns1,omitempty" json:"dns1,omitempty"` // First name server IP address. Dns2 *string `url:"dns2,omitempty" json:"dns2,omitempty"` // Second name server IP address. Dns3 *string `url:"dns3,omitempty" json:"dns3,omitempty"` // Third name server IP address. }
type VersionRequest ¶
type VersionRequest struct {
Node string `url:"node" json:"node"` // The cluster node name.
}
type VersionResponse ¶
type VersionResponse struct { Release string `url:"release" json:"release"` // The current installed Proxmox VE Release Repoid string `url:"repoid" json:"repoid"` // The short git commit hash ID from which this version was build Version string `url:"version" json:"version"` // The current installed pve-manager package version }
type VncshellRequest ¶
type VncshellRequest struct { Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Cmd *Cmd `url:"cmd,omitempty" json:"cmd,omitempty"` // Run specific command or default to login. CmdOpts *string `url:"cmd-opts,omitempty" json:"cmd-opts,omitempty"` // Add parameters to a command. Encoded as null terminated strings. Height *int `url:"height,omitempty" json:"height,omitempty"` // sets the height of the console in pixels. Websocket *util.PVEBool `url:"websocket,omitempty" json:"websocket,omitempty"` // use websocket instead of standard vnc. Width *int `url:"width,omitempty" json:"width,omitempty"` // sets the width of the console in pixels. }
type VncshellResponse ¶
type VncwebsocketRequest ¶
type VncwebsocketResponse ¶
type VncwebsocketResponse struct {
Port string `url:"port" json:"port"`
}
type WakeonlanRequest ¶
type WakeonlanRequest struct {
Node string `url:"node" json:"node"` // target node for wake on LAN packet
}
type WriteEtcHostsRequest ¶
type WriteEtcHostsRequest struct { Data string `url:"data" json:"data"` // The target content of /etc/hosts. Node string `url:"node" json:"node"` // The cluster node name. // The following parameters are optional Digest *string `url:"digest,omitempty" json:"digest,omitempty"` // Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. }