proxmox

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MPL-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.21.0

type Client interface {
	// Access returns a client for managing access control.
	Access() *access.Client

	// Cluster returns a client for managing the cluster.
	Cluster() *cluster.Client

	// Node returns a client for managing resources on a specific node.
	Node(nodeName string) *nodes.Client

	// Pool returns a client for managing resource pools.
	Pool() *pools.Client

	// Storage returns a client for managing storage.
	Storage() *storage.Client

	// Version returns a client for getting the version of the Proxmox Virtual Environment API.
	Version() *version.Client

	// API returns a lower-level REST API client.
	API() api.Client

	// SSH returns a lower-level SSH client.
	SSH() ssh.Client

	// TempDir returns (possibly overridden) os.TempDir().
	TempDir() string
}

Client defines a client interface for the Proxmox Virtual Environment API.

func NewClient added in v0.21.0

func NewClient(apiClient api.Client, sshClient ssh.Client, tmpDirOverride string) Client

NewClient creates a new API client.

Jump to

Keyboard shortcuts

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