version

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(c HTTPClient) *Client

func (*Client) Index

func (c *Client) Index(ctx context.Context) (IndexResponse, error)

Index API version details, including some parts of the global datacenter config.

type Console added in v0.0.15

type Console string
const (
	Console_APPLET  Console = "applet"
	Console_VV      Console = "vv"
	Console_HTML5   Console = "html5"
	Console_XTERMJS Console = "xtermjs"
)

func PtrConsole added in v0.0.15

func PtrConsole(i Console) *Console

type HTTPClient

type HTTPClient interface {
	Do(context.Context, string, string, interface{}, interface{}) error
}

type IndexResponse

type IndexResponse struct {
	Release string `url:"release" json:"release"` // The current Proxmox VE point release in `x.y` format.
	Repoid  string `url:"repoid" json:"repoid"`   // The short git revision from which this version was build.
	Version string `url:"version" json:"version"` // The full pve-manager package version of this node.

	// The following parameters are optional
	Console *Console `url:"console,omitempty" json:"console,omitempty"` // The default console viewer to use.
}

Jump to

Keyboard shortcuts

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