Documentation ¶
Index ¶
- func BooleanIntegerConversion(i *float32) bool
- func EncodeStringList(sl []string) *string
- func FormAgentString(agent bool, fstrim bool, t *string) *string
- func FormDiskString(opts ConfigureVirtualMachineDiskOptions) *string
- func FormIpConfigString(v4 *ConfigureVirtualMachineCloudInitIpConfigOptions, ...) *string
- func FormNetworkInterfaceString(opts ConfigureVirtualMachineNetworkInterfaceOptions) *string
- func FormPCIDeviceString() *string
- func IntToBool(i int) bool
- func PtrFloatToInt64(i *float32) int64
- func PtrInt64ToPtrFloat(i *int64) *float32
- func PtrIntToInt(i *int) int
- func PtrIntToPtrFloat(i *int) *float32
- func PtrStringToString(s *string) string
- func SliceToStringCommaList(s []string) string
- func SliceToStringCommaListPtr(s []string) *string
- func SliceToStringSemiColonList(s []string) string
- func SliceToStringSemiColonListPtr(s []string) *string
- func StringCommaListToSlice(s string) []string
- func StringCommaPtrListToSlice(s *string) []string
- func StringListToString(stringList []string) string
- func StringSemiColonListToSlice(s string) []string
- func StringSemiColonPtrListToSlice(s *string) []string
- func StringSliceToLinedString(l []string) string
- func StringSliceToLinedStringPtr(l []string) *string
- func StringSliceToStringSpacePtr(l []string) *string
- func StringSpaceListToSlice(s string) []string
- func StringSpacePtrListToSlice(s *string) []string
- type ClientConfig
- type CloneVirtualMachineInput
- type ConfigureVirtualMachineAgentOptions
- type ConfigureVirtualMachineCloudInitDnsOptions
- type ConfigureVirtualMachineCloudInitIpConfigOptions
- type ConfigureVirtualMachineCloudInitIpOptions
- type ConfigureVirtualMachineCloudInitOptions
- type ConfigureVirtualMachineCloudInitUserOptions
- type ConfigureVirtualMachineCpuOptions
- type ConfigureVirtualMachineDiskOptions
- type ConfigureVirtualMachineDiskSpeedLimitsOptions
- type ConfigureVirtualMachineInput
- type ConfigureVirtualMachineMemoryOptions
- type ConfigureVirtualMachineNetworkInterfaceOptions
- type ConfigureVirtualPciDeviceOptions
- type CreateLVMInput
- type CreateLVMStorageClassInput
- type CreateLVMThinStorageClassInput
- type CreateLVMThinpoolInput
- type CreateNFSStorageClassInput
- type CreateNetworkBondInput
- type CreateNetworkBridgeInput
- type CreatePoolInput
- type CreateVirtualMachineIsoInput
- type CreateZFSPoolInput
- type CreateZFSStorageClassInput
- type Disk
- type IP
- type LVM
- type LVMNodeStorage
- type LVMStorageClass
- type LVMThinNodeStorage
- type LVMThinStorageClass
- type LVMThinpool
- type ModifyLVMStorageClassInput
- type ModifyLVMThinStorageClassInput
- type ModifyNFSStorageClassInput
- type ModifyZFSStorageClassInput
- type NFSNodeStorage
- type NFSStorageClass
- type NetworkBond
- type NetworkBridge
- type NetworkInterface
- type Node
- type Pool
- type PoolMember
- type Proxmox
- func (c *Proxmox) AddVirtualMachineToResourcePool(ctx context.Context, vmId int, pool string) error
- func (c *Proxmox) ApplyChanges(ctx context.Context, node string) error
- func (c *Proxmox) CloneVirtualMachine(ctx context.Context, input *CloneVirtualMachineInput) error
- func (c *Proxmox) ConfigureVirtualMachine(ctx context.Context, input *ConfigureVirtualMachineInput) error
- func (c *Proxmox) CreateLVM(ctx context.Context, input *CreateLVMInput) error
- func (c *Proxmox) CreateLVMStorageClass(ctx context.Context, input *CreateLVMStorageClassInput) error
- func (c *Proxmox) CreateLVMThinStorageClass(ctx context.Context, input *CreateLVMThinStorageClassInput) error
- func (c *Proxmox) CreateLVMThinpool(ctx context.Context, input *CreateLVMThinpoolInput) error
- func (c *Proxmox) CreateNFSStorageClass(ctx context.Context, input *CreateNFSStorageClassInput) error
- func (c *Proxmox) CreateNetworkBond(ctx context.Context, input *CreateNetworkBondInput) error
- func (c *Proxmox) CreateNetworkBridge(ctx context.Context, input *CreateNetworkBridgeInput) error
- func (c *Proxmox) CreatePool(ctx context.Context, input *CreatePoolInput) error
- func (c *Proxmox) CreateVirtualMachineIso(ctx context.Context, input *CreateVirtualMachineIsoInput) error
- func (c *Proxmox) CreateZFSPool(ctx context.Context, input *CreateZFSPoolInput) error
- func (c *Proxmox) CreateZFSStorageClass(ctx context.Context, input *CreateZFSStorageClassInput) error
- func (c *Proxmox) DeleteLVM(ctx context.Context, node string, pool string) error
- func (c *Proxmox) DeleteLVMSStorageClass(ctx context.Context, name string) error
- func (c *Proxmox) DeleteLVMThinSStorageClass(ctx context.Context, name string) error
- func (c *Proxmox) DeleteLVMThinpool(ctx context.Context, node string, pool string, vg string) error
- func (c *Proxmox) DeleteNFSSStorageClass(ctx context.Context, name string) error
- func (c *Proxmox) DeleteNetworkInterface(ctx context.Context, node string, name string) error
- func (c *Proxmox) DeletePool(ctx context.Context, poolId string) error
- func (c *Proxmox) DeleteVirtualMachine(ctx context.Context, node string, vmid int) error
- func (c *Proxmox) DeleteZFSPool(ctx context.Context, node string, pool string) error
- func (c *Proxmox) DeleteZFSSStorageClass(ctx context.Context, name string) error
- func (c *Proxmox) DescribeLVMNodeStorage(ctx context.Context, node string) ([]*LVMNodeStorage, error)
- func (c *Proxmox) DescribeLVMThinNodeStorage(ctx context.Context, node string) ([]*LVMThinNodeStorage, error)
- func (c *Proxmox) DescribeLocalStorage(ctx context.Context) ([]Storage, error)
- func (c *Proxmox) DescribeNFSNodeStorage(ctx context.Context, node string) ([]*NFSNodeStorage, error)
- func (c *Proxmox) DescribeNetworkBonds(ctx context.Context, node string) ([]NetworkBond, error)
- func (c *Proxmox) DescribeNetworkBridges(ctx context.Context, node string) ([]NetworkBridge, error)
- func (c *Proxmox) DescribeNode(ctx context.Context, node string) (Node, error)
- func (c *Proxmox) DescribePools(ctx context.Context) ([]Pool, error)
- func (c *Proxmox) DescribeStorage(ctx context.Context) ([]Storage, error)
- func (c *Proxmox) DescribeTemplate(ctx context.Context, node string, vmId int) (*VirtualMachine, error)
- func (c *Proxmox) DescribeTemplateFromName(ctx context.Context, node string, name string) (*VirtualMachine, error)
- func (c *Proxmox) DescribeTemplates(ctx context.Context, node string) ([]*VirtualMachine, error)
- func (c *Proxmox) DescribeVirtualMachine(ctx context.Context, node string, vmid int) (*VirtualMachine, error)
- func (c *Proxmox) DescribeVirtualMachines(ctx context.Context, node string) ([]*VirtualMachine, error)
- func (c *Proxmox) DescribeVirtualMachinesOld(ctx context.Context, node string) ([]vm.VirtualMachine, error)
- func (c *Proxmox) DescribeZFSNodeStorage(ctx context.Context, node string) ([]*ZFSNodeStorage, error)
- func (c *Proxmox) DescribeZFSPool(ctx context.Context, node string, pool string) (*ZFSPool, error)
- func (c *Proxmox) DescribeZFSPools(ctx context.Context, node string) ([]ZFSPool, error)
- func (c *Proxmox) DetermineVirtualMachineResourcePool(ctx context.Context, vmId int) (bool, string, error)
- func (c *Proxmox) GetLVM(ctx context.Context, node string, pool string) (*LVM, error)
- func (c *Proxmox) GetLVMStorageClass(ctx context.Context, name string) (*LVMStorageClass, error)
- func (c *Proxmox) GetLVMThinStorageClass(ctx context.Context, name string) (*LVMThinStorageClass, error)
- func (c *Proxmox) GetLVMThinpool(ctx context.Context, node string, pool string) (*LVMThinpool, error)
- func (c *Proxmox) GetNFSStorageClass(ctx context.Context, name string) (*NFSStorageClass, error)
- func (c *Proxmox) GetNetworkBond(ctx context.Context, node string, name string) (*NetworkBond, error)
- func (c *Proxmox) GetNetworkBridge(ctx context.Context, node string, name string) (*NetworkBridge, error)
- func (c *Proxmox) GetNode(ctx context.Context, node string) (*proxmox.NodeSummary, error)
- func (c *Proxmox) GetNodeStorage(ctx context.Context, node string, storage string) (*proxmox.NodeStorageSummary, error)
- func (c *Proxmox) GetPool(ctx context.Context, poolId string) (*proxmox.PoolConfigurationSummary, error)
- func (c *Proxmox) GetStorage(ctx context.Context, node string, storage string) (*proxmox.NodeStorageSummary, error)
- func (c *Proxmox) GetStorageClass(ctx context.Context, storage string) (*proxmox.StorageSummary, error)
- func (c *Proxmox) GetVirtualMachineConfiguration(ctx context.Context, node string, vmId int) (*proxmox.VirtualMachineConfigurationSummary, error)
- func (c *Proxmox) GetVirtualMachineStatus(ctx context.Context, node string, vmid int) (*proxmox.VirtualMachineStatusSummary, error)
- func (c *Proxmox) GetZFSPoolStatus(ctx context.Context, node string, pool string) (proxmox.ZFSPoolStatusSummary, error)
- func (c *Proxmox) GetZFSStorageClass(ctx context.Context, name string) (*ZFSStorageClass, error)
- func (c *Proxmox) ListDisks(ctx context.Context, node string) ([]Disk, error)
- func (c *Proxmox) ListLVMStorageClasses(ctx context.Context) ([]LVMStorageClass, error)
- func (c *Proxmox) ListLVMThinStorageClasses(ctx context.Context) ([]LVMThinStorageClass, error)
- func (c *Proxmox) ListLVMThinpools(ctx context.Context, node string) ([]LVMThinpool, error)
- func (c *Proxmox) ListLVMs(ctx context.Context, node string) ([]LVM, error)
- func (c *Proxmox) ListNFSStorageClasses(ctx context.Context) ([]NFSStorageClass, error)
- func (c *Proxmox) ListNetworkBonds(ctx context.Context, node string) ([]proxmox.NetworkInterfaceSummary, error)
- func (c *Proxmox) ListNetworkBridges(ctx context.Context, node string) ([]proxmox.NetworkInterfaceSummary, error)
- func (c *Proxmox) ListNetworkInterfaces(ctx context.Context, node string) ([]NetworkInterface, error)
- func (c *Proxmox) ListNodeStorage(ctx context.Context, node string) ([]proxmox.NodeStorageSummary, error)
- func (c *Proxmox) ListNodes(ctx context.Context) ([]proxmox.NodeSummary, error)
- func (c *Proxmox) ListNodesNames(ctx context.Context) ([]string, error)
- func (c *Proxmox) ListPools(ctx context.Context) ([]proxmox.PoolSummary, error)
- func (c *Proxmox) ListStorage(ctx context.Context) ([]proxmox.StorageSummary, error)
- func (c *Proxmox) ListTemplates(ctx context.Context, node string) ([]proxmox.VirtualMachineSummary, error)
- func (c *Proxmox) ListVirtualMachines(ctx context.Context, node string) ([]proxmox.VirtualMachineSummary, error)
- func (c *Proxmox) ListZFSPools(ctx context.Context, node string) ([]proxmox.ZFSPoolSummary, error)
- func (c *Proxmox) ListZFSStorageClasses(ctx context.Context) ([]ZFSStorageClass, error)
- func (c *Proxmox) ModifyLVMStorageClass(ctx context.Context, name string, input *ModifyLVMStorageClassInput) error
- func (c *Proxmox) ModifyLVMThinStorageClass(ctx context.Context, name string, input *ModifyLVMThinStorageClassInput) error
- func (c *Proxmox) ModifyNFSStorageClass(ctx context.Context, name string, input *ModifyNFSStorageClassInput) error
- func (c *Proxmox) ModifyZFSStorageClass(ctx context.Context, name string, input *ModifyZFSStorageClassInput) error
- func (c *Proxmox) RemoveVirtualMachineFromResourcePool(ctx context.Context, vmId int, pool string) error
- func (c *Proxmox) ResizeVirtualMachineDisk(ctx context.Context, input *ResizeVirtualMachineDiskInput) error
- func (c *Proxmox) StartVirtualMachine(ctx context.Context, node string, vmid int) error
- func (c *Proxmox) StopVirtualMachine(ctx context.Context, node string, vmid int) error
- func (c *Proxmox) UpdateNetworkBond(ctx context.Context, input *UpdateNetworkBondInput) error
- func (c *Proxmox) UpdateNetworkBridge(ctx context.Context, input *UpdateNetworkBridgeInput) error
- func (c *Proxmox) UpdatePool(ctx context.Context, input *UpdatePoolInput) error
- type ResizeVirtualMachineDiskInput
- type Storage
- type UpdateNetworkBondInput
- type UpdateNetworkBridgeInput
- type UpdatePoolInput
- type VirtualMachine
- type ZFSNodeStorage
- type ZFSPool
- type ZFSStorageClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeStringList ¶ added in v0.0.8
func FormAgentString ¶ added in v0.0.8
func FormDiskString ¶ added in v0.0.8
func FormDiskString(opts ConfigureVirtualMachineDiskOptions) *string
func FormIpConfigString ¶ added in v0.0.8
func FormIpConfigString(v4 *ConfigureVirtualMachineCloudInitIpConfigOptions, v6 *ConfigureVirtualMachineCloudInitIpConfigOptions) *string
func FormNetworkInterfaceString ¶ added in v0.0.8
func FormNetworkInterfaceString(opts ConfigureVirtualMachineNetworkInterfaceOptions) *string
func FormPCIDeviceString ¶ added in v0.0.8
func FormPCIDeviceString() *string
func PtrFloatToInt64 ¶
func PtrInt64ToPtrFloat ¶ added in v0.0.8
func PtrIntToInt ¶
func PtrIntToPtrFloat ¶ added in v0.0.8
func PtrStringToString ¶
func SliceToStringCommaList ¶
func SliceToStringCommaListPtr ¶ added in v0.0.6
func SliceToStringSemiColonList ¶ added in v0.0.8
func SliceToStringSemiColonListPtr ¶ added in v0.0.8
func StringCommaListToSlice ¶
func StringListToString ¶ added in v0.0.8
func StringSliceToLinedString ¶ added in v0.0.8
func StringSliceToLinedStringPtr ¶ added in v0.0.8
func StringSliceToStringSpacePtr ¶ added in v0.0.2
func StringSpaceListToSlice ¶
Types ¶
type ClientConfig ¶
type CloneVirtualMachineInput ¶ added in v0.0.8
type ConfigureVirtualMachineAgentOptions ¶ added in v0.0.8
type ConfigureVirtualMachineCloudInitDnsOptions ¶ added in v0.0.8
type ConfigureVirtualMachineCloudInitIpConfigOptions ¶ added in v0.0.8
type ConfigureVirtualMachineCloudInitIpOptions ¶ added in v0.0.8
type ConfigureVirtualMachineCloudInitIpOptions struct { Position int `json:"position"` V4 *ConfigureVirtualMachineCloudInitIpConfigOptions `json:"v4,omitempty"` V6 *ConfigureVirtualMachineCloudInitIpConfigOptions `json:"v6,omitempty"` }
type ConfigureVirtualMachineCloudInitOptions ¶ added in v0.0.8
type ConfigureVirtualMachineCloudInitOptions struct { User *ConfigureVirtualMachineCloudInitUserOptions `json:"user,omitempty"` Ip []ConfigureVirtualMachineCloudInitIpOptions `json:"ip"` Dns *ConfigureVirtualMachineCloudInitDnsOptions `json:"dns,omitempty"` }
type ConfigureVirtualMachineCloudInitUserOptions ¶ added in v0.0.8
type ConfigureVirtualMachineCpuOptions ¶ added in v0.0.8
type ConfigureVirtualMachineDiskOptions ¶ added in v0.0.8
type ConfigureVirtualMachineDiskOptions struct { Storage string `json:"storage"` FileFormat *string `json:"fileFormat,omitempty"` Size int `json:"size"` UseIOThreads bool `json:"useIOThreads"` Position int `json:"position"` InterfaceType string `json:"interfaceType"` SpeedLimits *ConfigureVirtualMachineDiskSpeedLimitsOptions `json:"speedLimits,omitempty"` SSDEmulation bool `json:"ssdEmulation"` Discard bool `json:"discard"` }
type ConfigureVirtualMachineDiskSpeedLimitsOptions ¶ added in v0.0.8
type ConfigureVirtualMachineInput ¶ added in v0.0.8
type ConfigureVirtualMachineInput struct { Node string `json:"node"` VmId int `json:"vmId"` Name *string `json:"name,omitempty"` Tags []string `json:"tags,omitempty"` Delete []string `json:"delete,omitempty"` Description *string `json:"description,omitempty"` Agent *ConfigureVirtualMachineAgentOptions `json:"agent,omitempty"` Bios *proxmox.VirtualMachineBios `json:"bios,omitempty"` CPU *ConfigureVirtualMachineCpuOptions `json:"cpu,omitempty"` Disks []ConfigureVirtualMachineDiskOptions `json:"disks,omitempty"` PCIDevices []ConfigureVirtualPciDeviceOptions `json:"pciDevices,omitempty"` NetworkInterfaces []ConfigureVirtualMachineNetworkInterfaceOptions `json:"networkInterfaces,omitempty"` Memory *ConfigureVirtualMachineMemoryOptions `json:"memory,omitempty"` CloudInit *ConfigureVirtualMachineCloudInitOptions `json:"cloudInit,omitempty"` OsType *proxmox.VirtualMachineOperatingSystem `json:"osType,omitempty"` StartOnBoot bool `json:"startOnBoot,omitempty"` MachineType *string `json:"machineType,omitempty"` KVMArguments *string `json:"kvmArguments,omitempty"` KeyboardLayout *proxmox.VirtualMachineKeyboard `json:"keyboardLayout,omitempty"` }
type ConfigureVirtualMachineMemoryOptions ¶ added in v0.0.8
type ConfigureVirtualMachineNetworkInterfaceOptions ¶ added in v0.0.8
type ConfigureVirtualMachineNetworkInterfaceOptions struct { Bridge string `json:"bridge"` Enabled bool `json:"enabled"` Firewall bool `json:"firewall"` MAC string `json:"mac"` Model string `json:"model"` RateLimit *int64 `json:"rateLimit,omitempty"` VLAN *int `json:"vlan,omitempty"` MTU *int64 `json:"mtu,omitempty"` Position int `json:"position"` }
type ConfigureVirtualPciDeviceOptions ¶ added in v0.0.8
type CreateLVMInput ¶ added in v0.0.5
type CreateLVMStorageClassInput ¶ added in v0.0.6
type CreateLVMThinStorageClassInput ¶ added in v0.0.6
type CreateLVMThinpoolInput ¶ added in v0.0.5
type CreateNFSStorageClassInput ¶ added in v0.0.6
type CreateNetworkBondInput ¶ added in v0.0.2
type CreateNetworkBridgeInput ¶ added in v0.0.3
type CreatePoolInput ¶
type CreateVirtualMachineIsoInput ¶ added in v0.0.8
type CreateZFSPoolInput ¶ added in v0.0.4
type CreateZFSPoolInput struct { Node string Name string Disks []string RaidLevel proxmox.ZFSRaidLevel }
type CreateZFSStorageClassInput ¶ added in v0.0.6
type IP ¶ added in v0.0.3
func Ipv4FromInterface ¶
func Ipv4FromInterface(iface proxmox.NetworkInterfaceSummary) *IP
func Ipv6FromInterface ¶
func Ipv6FromInterface(iface proxmox.NetworkInterfaceSummary) *IP
type LVMNodeStorage ¶ added in v0.0.7
type LVMStorageClass ¶ added in v0.0.6
type LVMThinNodeStorage ¶ added in v0.0.7
type LVMThinStorageClass ¶ added in v0.0.6
type LVMThinpool ¶ added in v0.0.5
type ModifyLVMStorageClassInput ¶ added in v0.0.6
type ModifyLVMThinStorageClassInput ¶ added in v0.0.6
type ModifyNFSStorageClassInput ¶ added in v0.0.6
type ModifyZFSStorageClassInput ¶ added in v0.0.6
type NFSNodeStorage ¶ added in v0.0.7
type NFSStorageClass ¶ added in v0.0.6
type NetworkBond ¶
type NetworkBridge ¶
type NetworkInterface ¶
type NetworkInterface struct {
Name string
}
type Pool ¶
type Pool struct { Id string Comment string Members []PoolMember }
type PoolMember ¶
type PoolMember struct { Id string Type proxmox.PoolMemberType }
type Proxmox ¶
type Proxmox struct {
// contains filtered or unexported fields
}
func New ¶
func New(c ClientConfig) (*Proxmox, error)
func (*Proxmox) AddVirtualMachineToResourcePool ¶ added in v0.0.8
func (*Proxmox) ApplyChanges ¶ added in v0.0.2
func (*Proxmox) CloneVirtualMachine ¶ added in v0.0.8
func (c *Proxmox) CloneVirtualMachine(ctx context.Context, input *CloneVirtualMachineInput) error
func (*Proxmox) ConfigureVirtualMachine ¶ added in v0.0.8
func (c *Proxmox) ConfigureVirtualMachine(ctx context.Context, input *ConfigureVirtualMachineInput) error
func (*Proxmox) CreateLVM ¶ added in v0.0.5
func (c *Proxmox) CreateLVM(ctx context.Context, input *CreateLVMInput) error
func (*Proxmox) CreateLVMStorageClass ¶ added in v0.0.6
func (c *Proxmox) CreateLVMStorageClass(ctx context.Context, input *CreateLVMStorageClassInput) error
func (*Proxmox) CreateLVMThinStorageClass ¶ added in v0.0.6
func (c *Proxmox) CreateLVMThinStorageClass(ctx context.Context, input *CreateLVMThinStorageClassInput) error
func (*Proxmox) CreateLVMThinpool ¶ added in v0.0.5
func (c *Proxmox) CreateLVMThinpool(ctx context.Context, input *CreateLVMThinpoolInput) error
func (*Proxmox) CreateNFSStorageClass ¶ added in v0.0.6
func (c *Proxmox) CreateNFSStorageClass(ctx context.Context, input *CreateNFSStorageClassInput) error
func (*Proxmox) CreateNetworkBond ¶ added in v0.0.2
func (c *Proxmox) CreateNetworkBond(ctx context.Context, input *CreateNetworkBondInput) error
func (*Proxmox) CreateNetworkBridge ¶ added in v0.0.3
func (c *Proxmox) CreateNetworkBridge(ctx context.Context, input *CreateNetworkBridgeInput) error
func (*Proxmox) CreatePool ¶
func (c *Proxmox) CreatePool(ctx context.Context, input *CreatePoolInput) error
func (*Proxmox) CreateVirtualMachineIso ¶ added in v0.0.8
func (c *Proxmox) CreateVirtualMachineIso(ctx context.Context, input *CreateVirtualMachineIsoInput) error
func (*Proxmox) CreateZFSPool ¶ added in v0.0.4
func (c *Proxmox) CreateZFSPool(ctx context.Context, input *CreateZFSPoolInput) error
func (*Proxmox) CreateZFSStorageClass ¶ added in v0.0.6
func (c *Proxmox) CreateZFSStorageClass(ctx context.Context, input *CreateZFSStorageClassInput) error
func (*Proxmox) DeleteLVMSStorageClass ¶ added in v0.0.6
func (*Proxmox) DeleteLVMThinSStorageClass ¶ added in v0.0.6
func (*Proxmox) DeleteLVMThinpool ¶ added in v0.0.5
func (*Proxmox) DeleteNFSSStorageClass ¶ added in v0.0.6
func (*Proxmox) DeleteNetworkInterface ¶ added in v0.0.3
func (*Proxmox) DeleteVirtualMachine ¶ added in v0.0.8
func (*Proxmox) DeleteZFSPool ¶ added in v0.0.4
func (*Proxmox) DeleteZFSSStorageClass ¶ added in v0.0.6
func (*Proxmox) DescribeLVMNodeStorage ¶ added in v0.0.7
func (*Proxmox) DescribeLVMThinNodeStorage ¶ added in v0.0.7
func (*Proxmox) DescribeLocalStorage ¶
deprecated
func (*Proxmox) DescribeNFSNodeStorage ¶ added in v0.0.7
func (*Proxmox) DescribeNetworkBonds ¶
func (*Proxmox) DescribeNetworkBridges ¶
func (*Proxmox) DescribeNode ¶
func (*Proxmox) DescribePools ¶
func (*Proxmox) DescribeStorage ¶
deprecated
func (*Proxmox) DescribeTemplate ¶ added in v0.0.9
func (*Proxmox) DescribeTemplateFromName ¶ added in v0.0.9
func (*Proxmox) DescribeTemplates ¶
func (*Proxmox) DescribeVirtualMachine ¶ added in v0.0.8
func (*Proxmox) DescribeVirtualMachines ¶
func (*Proxmox) DescribeVirtualMachinesOld ¶ added in v0.0.8
func (*Proxmox) DescribeZFSNodeStorage ¶ added in v0.0.5
func (*Proxmox) DescribeZFSPool ¶ added in v0.0.4
An unefficient method of getting a single ZFS pool
func (*Proxmox) DescribeZFSPools ¶ added in v0.0.4
Describes a ZFS pool and the disks that makes it up This chains several API calls togther to build a ZFSPool struct
Process flow is:
- Get a list of all ZFS pools
- Get the status of each pool
- Get a list of all disks on node
- Match the disks to the pool
- Build a ZFSPool struct and append to a list
- Return a list of ZFSPool structs
func (*Proxmox) DetermineVirtualMachineResourcePool ¶ added in v0.0.8
func (*Proxmox) GetLVMStorageClass ¶ added in v0.0.6
func (*Proxmox) GetLVMThinStorageClass ¶ added in v0.0.6
func (*Proxmox) GetLVMThinpool ¶ added in v0.0.5
func (*Proxmox) GetNFSStorageClass ¶ added in v0.0.6
func (*Proxmox) GetNetworkBond ¶ added in v0.0.2
func (*Proxmox) GetNetworkBridge ¶ added in v0.0.3
func (*Proxmox) GetNodeStorage ¶ added in v0.0.5
func (*Proxmox) GetStorage ¶
func (c *Proxmox) GetStorage(ctx context.Context, node string, storage string) (*proxmox.NodeStorageSummary, error)
deprecated
func (*Proxmox) GetStorageClass ¶ added in v0.0.5
func (*Proxmox) GetVirtualMachineConfiguration ¶
func (*Proxmox) GetVirtualMachineStatus ¶ added in v0.0.8
func (*Proxmox) GetZFSPoolStatus ¶ added in v0.0.4
func (*Proxmox) GetZFSStorageClass ¶ added in v0.0.5
func (*Proxmox) ListLVMStorageClasses ¶ added in v0.0.6
func (c *Proxmox) ListLVMStorageClasses(ctx context.Context) ([]LVMStorageClass, error)
func (*Proxmox) ListLVMThinStorageClasses ¶ added in v0.0.6
func (c *Proxmox) ListLVMThinStorageClasses(ctx context.Context) ([]LVMThinStorageClass, error)
func (*Proxmox) ListLVMThinpools ¶ added in v0.0.5
func (*Proxmox) ListNFSStorageClasses ¶ added in v0.0.6
func (c *Proxmox) ListNFSStorageClasses(ctx context.Context) ([]NFSStorageClass, error)
func (*Proxmox) ListNetworkBonds ¶
func (*Proxmox) ListNetworkBridges ¶
func (*Proxmox) ListNetworkInterfaces ¶
func (*Proxmox) ListNodeStorage ¶
func (*Proxmox) ListNodesNames ¶ added in v0.0.6
func (*Proxmox) ListStorage ¶
func (*Proxmox) ListTemplates ¶
func (*Proxmox) ListVirtualMachines ¶
func (*Proxmox) ListZFSPools ¶ added in v0.0.4
func (*Proxmox) ListZFSStorageClasses ¶ added in v0.0.5
func (c *Proxmox) ListZFSStorageClasses(ctx context.Context) ([]ZFSStorageClass, error)
func (*Proxmox) ModifyLVMStorageClass ¶ added in v0.0.6
func (*Proxmox) ModifyLVMThinStorageClass ¶ added in v0.0.6
func (*Proxmox) ModifyNFSStorageClass ¶ added in v0.0.6
func (*Proxmox) ModifyZFSStorageClass ¶ added in v0.0.6
func (*Proxmox) RemoveVirtualMachineFromResourcePool ¶ added in v0.0.8
func (*Proxmox) ResizeVirtualMachineDisk ¶ added in v0.0.8
func (c *Proxmox) ResizeVirtualMachineDisk(ctx context.Context, input *ResizeVirtualMachineDiskInput) error
func (*Proxmox) StartVirtualMachine ¶ added in v0.0.8
func (*Proxmox) StopVirtualMachine ¶ added in v0.0.8
func (*Proxmox) UpdateNetworkBond ¶ added in v0.0.2
func (c *Proxmox) UpdateNetworkBond(ctx context.Context, input *UpdateNetworkBondInput) error
func (*Proxmox) UpdateNetworkBridge ¶ added in v0.0.3
func (c *Proxmox) UpdateNetworkBridge(ctx context.Context, input *UpdateNetworkBridgeInput) error
func (*Proxmox) UpdatePool ¶
func (c *Proxmox) UpdatePool(ctx context.Context, input *UpdatePoolInput) error
type ResizeVirtualMachineDiskInput ¶ added in v0.0.8
type UpdateNetworkBondInput ¶ added in v0.0.2
type UpdateNetworkBridgeInput ¶ added in v0.0.3
type UpdatePoolInput ¶
type VirtualMachine ¶ added in v0.0.8
type VirtualMachine struct { Node string VmId int Tags []string Name *string Description *string Agent *vm.VirtualMachineAgent Bios proxmox.VirtualMachineBios CPU vm.VirtualMachineCpu Disks []vm.VirtualMachineDisk NetworkInterfaces []vm.VirtualMachineNetworkInterface PCIDevices []vm.VirtualMachinePCIDevice Memory vm.VirtualMachineMemory CloudInit *vm.VirtualMachineCloudInit OsType *proxmox.VirtualMachineOperatingSystem MachineType *string KVMArguments *string StartOnBoot bool KeyboardLayout *proxmox.VirtualMachineKeyboard }
type ZFSNodeStorage ¶ added in v0.0.5
Source Files ¶
- client.go
- clone_vm.go
- configure_vm.go
- lvm_thinpools.go
- lvms.go
- network_bond.go
- network_bridge.go
- network_interfaces.go
- node.go
- node_storage.go
- node_storage_lvm.go
- node_storage_lvmthin.go
- node_storage_nfs.go
- node_storage_zfs.go
- pools.go
- storage_class.go
- storage_class_lvm.go
- storage_class_lvmthin.go
- storage_class_nfs.go
- storage_class_zfs.go
- template.go
- templates.go
- utils.go
- vm.go
- vm_config.go
- vm_resize_disk.go
- vm_resource_pool.go
- vm_status.go
- zfs_pool.go
Click to show internal directories.
Click to hide internal directories.