Versions in this module Expand all Collapse all v0 v0.0.4 Sep 21, 2024 Changes in this version type GetNodeDisksListData + Wearout IntOrString v0.0.3 Aug 8, 2024 Changes in this version type CPUInfo + CPUs int + HVM string + MHz string type CurrentKernel + SysName string type GetNodeCertificatesInfoData + PEM string type GetNodeLxcData + CPUs int type GetNodeQemuData + CPUs int + PID int type GetNodeStatusData + KSM KSM type GetNodesData + SSLFingerprint string + type IntOrString string + func (is *IntOrString) UnmarshalJSON(data []byte) error + type KSM struct + Shared int + type RootFS struct + Avail int + Free int + Total int + Used int v0.0.2 May 12, 2024 Changes in this version type ClusterService + func (s *ClusterService) GetClusterResources() (*GetClusterResourcesResponse, *http.Response, error) + type GetClusterResourcesData struct + CPU *float64 + CgroupMode *int + Content *string + Disk *int + DiskRead *int + DiskWrite *int + HAState *string + ID string + Level *string + MaxCPU *int + MaxDisk *int + MaxMem *int + Mem *int + Name *string + NetIn *int + NetOut *int + Node string + PluginType *string + SDN *string + Shared *int + Status string + Storage *string + Template *int + Type string + Uptime *int + VMID *int + type GetClusterResourcesResponse struct + Data []GetClusterResourcesData v0.0.1 Mar 26, 2024 Changes in this version + type BootInfo struct + Mode string + SecureBoot int + type CPUInfo struct + Cores int + Cpus int + Flags string + Hvm string + Mhz string + Model string + Sockets int + UserHz int + type Client struct + Cluster *ClusterService + Nodes *NodeService + func NewClient(tokenID string, token string, options ...ClientOptionFunc) (*Client, error) + func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewRequest(method, path string, opt interface{}) (*http.Request, error) + type ClientOptionFunc func(*Client) error + func WithBaseURL(urlStr string) ClientOptionFunc + func WithHTTPClient(client *http.Client) ClientOptionFunc + type ClusterService struct + func (s *ClusterService) GetClusterStatus() (*GetClusterStatusResponse, *http.Response, error) + type CurrentKernel struct + Machine string + Release string + Sysname string + Version string + type GetClusterStatusData struct + ID string + IP *string + Level *string + Local *int + Name string + NodeID *int + Online *int + Quorate *int + Type string + Version *int + type GetClusterStatusResponse struct + Data []GetClusterStatusData + type GetNodeCertificatesInfoData struct + Filename string + Fingerprint string + Issuer string + NotAfter int + NotBefore int + Pem string + PublicKeyBits int + PublicKeyType string + San []string + Subject string + type GetNodeCertificatesInfoResponse struct + Data []GetNodeCertificatesInfoData + type GetNodeDisksListData struct + Bluestore int + ByIDLink string + DevPath string + GPT int + Health string + Model string + OSDEncrypted int + RPM int + Serial string + Size int + Type string + Used string + Vendor string + WWN string + type GetNodeDisksListResponse struct + Data []GetNodeDisksListData + type GetNodeLxcData struct + CPU float64 + Cpus int + Disk int + DiskRead int + DiskWrite int + MaxDisk int + MaxMem int + MaxSwap int + Mem int + Name string + NetIn int + NetOut int + Status string + Type string + Uptime int + VMID string + type GetNodeLxcResponse struct + Data []GetNodeLxcData + type GetNodeQemuData struct + CPU float64 + Cpus int + Disk int + DiskRead int + DiskWrite int + MaxDisk int + MaxMem int + Mem int + Name string + NetIn int + NetOut int + Pid int + Status string + Uptime int + VMID int + type GetNodeQemuResponse struct + Data []GetNodeQemuData + type GetNodeStatusData struct + BootInfo BootInfo + CPU float64 + CPUInfo CPUInfo + CurrentKernel CurrentKernel + Idle int + Ksm Ksm + Kversion string + LoadAvg []string + Memory Memory + PveVersion string + RootFs RootFs + Swap Swap + Uptime int + Wait float64 + type GetNodeStatusResponse struct + Data GetNodeStatusData + type GetNodeStorageData struct + Active int + Avail int + Content string + Enabled int + Shared int + Storage string + Total int + Type string + Used int + UsedFraction float64 + type GetNodeStorageResponse struct + Data []GetNodeStorageData + type GetNodeVersionData struct + Release string + RepoID string + Version string + type GetNodeVersionResponse struct + Data GetNodeVersionData + type GetNodesData struct + CPU float64 + Disk int + ID string + Level string + MaxCPU int + MaxDisk int + MaxMem int + Mem int + Node string + SslFingerprint string + Status string + Type string + Uptime int + type GetNodesResponse struct + Data []GetNodesData + type Ksm struct + Shared int + type Memory struct + Free int + Total int + Used int + type NodeService struct + func (s *NodeService) GetNodeCertificatesInfo(name string) (*GetNodeCertificatesInfoResponse, *http.Response, error) + func (s *NodeService) GetNodeDisksList(name string) (*GetNodeDisksListResponse, *http.Response, error) + func (s *NodeService) GetNodeLxc(name string) (*GetNodeLxcResponse, *http.Response, error) + func (s *NodeService) GetNodeQemu(name string) (*GetNodeQemuResponse, *http.Response, error) + func (s *NodeService) GetNodeStatus(name string) (*GetNodeStatusResponse, *http.Response, error) + func (s *NodeService) GetNodeStorage(name string) (*GetNodeStorageResponse, *http.Response, error) + func (s *NodeService) GetNodeVersion(name string) (*GetNodeVersionResponse, *http.Response, error) + func (s *NodeService) GetNodes() (*GetNodesResponse, *http.Response, error) + type RootFs struct + Avail int + Free int + Total int + Used int + type Swap struct + Free int + Total int + Used int