Versions in this module Expand all Collapse all v0 v0.3.0 Oct 28, 2026 v0.2.0 Oct 5, 2026 Changes in this version + var ErrInvalidClusterURL = errors.New("invalid cluster URL") v0.1.0 Sep 29, 2026 Changes in this version + var ErrClusterNotFound = errors.New("cluster not found") + var ErrClustersNotFound = errors.New("clusters not found") + var ErrHAGroupNotFound = errors.New("ha-group not found") + var ErrInstanceNotFound = errors.New("instance not found") + var ErrNodeInaccessible = errors.New("node is inaccessible") + var ErrResourceNotFound = errors.New("resource not found") + var ErrZoneNotFound = errors.New("zone not found") + type Cluster struct + func (c *Cluster) Check(ctx context.Context) error + func (c *Cluster) DeleteVM(ctx context.Context, vm *pxcluster.Resource) error + func (c *Cluster) Get(ctx context.Context, kind ResourceKind, id string) (*pxcluster.Resource, error) + func (c *Cluster) GetNextID(ctx context.Context, hint int) (int, error) + func (c *Cluster) GetNodeHAGroups(ctx context.Context, node string) ([]string, error) + func (c *Cluster) GetVMConfig(ctx context.Context, vmID int) (*VMDetails, error) + func (c *Cluster) List(ctx context.Context, kind ResourceKind, opts ...ListOption) ([]pxcluster.Resource, error) + type ClusterConfig struct + CAFile string + Insecure bool + Name string + Password string + Region string + TokenID string + TokenIDFile string + TokenSecret string + TokenSecretFile string + URL string + Username string + type ListOption func(*listOptions) + func SkipTemplates() ListOption + func WithMatch(fn func(*pxcluster.Resource) (bool, error)) ListOption + func WithStorageID(id string) ListOption + func WithUUID(uuid string) ListOption + func WithVMID(vmid int) ListOption + type Option func(*poolOptions) + func WithCacheTTL(kind ResourceKind, ttl time.Duration) Option + func WithRESTOption(opts ...proxmoxrest.Option) Option + type ProxmoxPool struct + func NewProxmoxPool(config []*ClusterConfig, options ...Option) (*ProxmoxPool, error) + func (p *ProxmoxPool) Cluster(cluster string) *Cluster + func (p *ProxmoxPool) Get(cluster string) (*proxmoxrest.Client, error) + func (p *ProxmoxPool) List() []string + func (p *ProxmoxPool) Set(cluster string, client *proxmoxrest.Client) + type ResourceKind int + const ResourceKindLXC + const ResourceKindNode + const ResourceKindStorage + const ResourceKindVM + type VMDetails struct + CPUs int + MaxMem int64 + Name string + Node string + Type string + UUID string + VMID int