version

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 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 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 *string `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