Documentation ¶
Index ¶
- func BooleanIntegerConversion(i *float32) bool
- func IntToBool(i int) bool
- func PtrFloatToInt64(i *float32) int64
- func PtrIntToInt(i *int) int
- func PtrStringToString(s *string) string
- func SliceToStringCommaList(s []string) string
- func StringCommaListToSlice(s string) []string
- func StringCommaPtrListToSlice(s *string) []string
- func StringSemiColonListToSlice(s string) []string
- func StringSemiColonPtrListToSlice(s *string) []string
- func StringSpaceListToSlice(s string) []string
- func StringSpacePtrListToSlice(s *string) []string
- type ClientConfig
- type CreatePoolInput
- type Disk
- type NetworkBond
- type NetworkBridge
- type NetworkInterface
- type NetworkInterfaceIpv4
- type NetworkInterfaceIpv6
- type Node
- type Pool
- type PoolMember
- type Proxmox
- func (c *Proxmox) CreatePool(ctx context.Context, input *CreatePoolInput) error
- func (c *Proxmox) DeletePool(ctx context.Context, poolId string) error
- func (c *Proxmox) DescribeLocalStorage(ctx context.Context) ([]Storage, 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) DescribeTemplates(ctx context.Context, node string) ([]vm.VirtualMachine, error)
- func (c *Proxmox) DescribeVirtualMachines(ctx context.Context, node string) ([]vm.VirtualMachine, error)
- func (c *Proxmox) GetNode(ctx context.Context, node string) (*proxmox.NodeSummary, 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) GetVirtualMachineConfiguration(ctx context.Context, node string, vmId int) (*proxmox.VirtualMachineConfigurationSummary, error)
- func (c *Proxmox) ListDisks(ctx context.Context, node string) ([]Disk, 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) 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) UpdatePool(ctx context.Context, input *UpdatePoolInput) error
- type Storage
- type UpdatePoolInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PtrFloatToInt64 ¶
func PtrIntToInt ¶
func PtrStringToString ¶
func SliceToStringCommaList ¶
func StringCommaListToSlice ¶
func StringSpaceListToSlice ¶
Types ¶
type ClientConfig ¶
type CreatePoolInput ¶
type NetworkBond ¶
type NetworkBond struct { Active bool Autostart bool HashPolicy proxmox.NetworkInterfaceBondHashPolicy Mode proxmox.NetworkInterfaceBondMode MiiMon string Interfaces []string Name string Node string }
type NetworkBridge ¶
type NetworkBridge struct { Active bool Autostart bool VLANAware bool Interfaces []string Name string Node string IPv4 *NetworkInterfaceIpv4 IPv6 *NetworkInterfaceIpv6 }
type NetworkInterface ¶
type NetworkInterface struct {
Name string
}
type NetworkInterfaceIpv4 ¶
func Ipv4FromInterface ¶
func Ipv4FromInterface(iface proxmox.NetworkInterfaceSummary) *NetworkInterfaceIpv4
type NetworkInterfaceIpv6 ¶
func Ipv6FromInterface ¶
func Ipv6FromInterface(iface proxmox.NetworkInterfaceSummary) *NetworkInterfaceIpv6
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) CreatePool ¶
func (c *Proxmox) CreatePool(ctx context.Context, input *CreatePoolInput) error
func (*Proxmox) DescribeLocalStorage ¶
func (*Proxmox) DescribeNetworkBonds ¶
func (*Proxmox) DescribeNetworkBridges ¶
func (*Proxmox) DescribeNode ¶
func (*Proxmox) DescribePools ¶
func (*Proxmox) DescribeStorage ¶
func (*Proxmox) DescribeTemplates ¶
func (*Proxmox) DescribeVirtualMachines ¶
func (*Proxmox) GetStorage ¶
func (*Proxmox) GetVirtualMachineConfiguration ¶
func (*Proxmox) ListNetworkBonds ¶
func (*Proxmox) ListNetworkBridges ¶
func (*Proxmox) ListNetworkInterfaces ¶
func (*Proxmox) ListNodeStorage ¶
func (*Proxmox) ListStorage ¶
func (*Proxmox) ListTemplates ¶
func (*Proxmox) ListVirtualMachines ¶
func (*Proxmox) UpdatePool ¶
func (c *Proxmox) UpdatePool(ctx context.Context, input *UpdatePoolInput) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.