Documentation
¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, imageURL string, imageName string, loc string) error
- func (c *Client) Delete(ctx context.Context, name string, loc string) error
- func (c *Client) Exists(ctx context.Context, name string, loc string) (bool, error)
- func (c *Client) GetLocations() map[string]interface{}
- type Config
- type Credentials
- type Location
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the Proxmox REST API client
func (*Client) GetLocations ¶
GetLocations returns all configured Proxmox locations
type Credentials ¶
type Credentials struct {
URL string `yaml:"url"` // e.g. "proxmox.example.com:8006"
User string `yaml:"user"` // e.g. "root"
Realm string `yaml:"realm"` // e.g. "pam" (defaults to "pam")
TokenID string `yaml:"tokenId"` // e.g. "mytoken"
Secret string `yaml:"secret"` // the API token secret
Insecure bool `yaml:"insecure"` // skip TLS verification
}
Credentials holds the authentication details for the Proxmox API
type Location ¶
type Location struct {
Node string `yaml:"node"` // Proxmox node name (e.g. "pve")
StoragePool string `yaml:"storagePool"` // target storage for VM disk (e.g. "local-lvm")
ImportStorage string `yaml:"importStorage"` // storage for downloaded images (defaults to "local")
Bridge string `yaml:"bridge"` // network bridge (e.g. "vmbr0")
}
Location holds a single Proxmox location configuration
Click to show internal directories.
Click to hide internal directories.