version

package
v0.0.0-...-fd46d7f Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MPL-2.0 Imports: 4 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 {
	rest.Client
}

Client is an interface for accessing the Proxmox version API.

func (*Client) Version

func (c *Client) Version(ctx context.Context) (*ResponseData, error)

Version retrieves the version information.

type ResponseBody

type ResponseBody struct {
	Data *ResponseData `json:"data,omitempty"`
}

ResponseBody contains the body from a version response.

type ResponseData

type ResponseData struct {
	Keyboard     string `json:"keyboard"`
	Release      string `json:"release"`
	RepositoryID string `json:"repoid"`
	Version      string `json:"version"`
}

ResponseData contains the data from a version response.

Jump to

Keyboard shortcuts

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