proxmox

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ClusterName gets populated with the proxmox cluster's cluster name on clustered PVE instances
	ClusterName string
)

Functions

func GetClusterStatus

func GetClusterStatus() (*proxmox.GetClusterStatusResponse, error)

GetClusterStatus returns a proxmox GetClusterStatusResponse object or an error from the /cluster/status endpoint

func GetNodeCertificatesInfo

func GetNodeCertificatesInfo(name string) (*proxmox.GetNodeCertificatesInfoResponse, error)

GetNodeCertificatesInfo returns the certificates for a node

func GetNodeDisksList

func GetNodeDisksList(name string) (*proxmox.GetNodeDisksListResponse, error)

GetNodeDisksList returns the disks for a node

func GetNodeLxc

func GetNodeLxc(name string) (*proxmox.GetNodeLxcResponse, error)

GetNodeLxc returns the LXCs for a node

func GetNodeQemu

func GetNodeQemu(name string) (*proxmox.GetNodeQemuResponse, error)

GetNodeQemu returns the virtual machines for a node

func GetNodeStatus

func GetNodeStatus(name string) (*proxmox.GetNodeStatusResponse, error)

GetNodeStatus returns a proxmox Node object or an error from the /nodes/%s/status endpoint

func GetNodeStorage

func GetNodeStorage(name string) (*proxmox.GetNodeStorageResponse, error)

GetNodeStorage returns the storage for a node

func GetNodes

func GetNodes() (*proxmox.GetNodesResponse, error)

GetNodes returns a proxmox NodeStatuses object or an error from the /nodes endpoint

func Init

func Init(endpoints []string, tokenID, token string, tlsVerify bool) error

Init constructs a proxmox API client for this package taking in a token

Types

This section is empty.

Jump to

Keyboard shortcuts

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