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 StringSliceToStringSpacePtr(l []string) *string
- func StringSpaceListToSlice(s string) []string
- func StringSpacePtrListToSlice(s *string) []string
- type ClientConfig
- type CreateNetworkBondInput
- type CreateNetworkBridgeInput
- type CreatePoolInput
- type CreateZFSPoolInput
- type Disk
- type IP
- type NetworkBond
- type NetworkBridge
- type NetworkInterface
- type Node
- type Pool
- type PoolMember
- type Proxmox
- func (c *Proxmox) ApplyChanges(ctx context.Context, node string) 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) CreateZFSPool(ctx context.Context, input *CreateZFSPoolInput) 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) DeleteZFSPool(ctx context.Context, node string, pool 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) DescribeZFSPool(ctx context.Context, node string, pool string) (*ZFSPool, error)
- func (c *Proxmox) DescribeZFSPools(ctx context.Context, node string) ([]ZFSPool, 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) 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) GetZFSPoolStatus(ctx context.Context, node string, pool string) (proxmox.ZFSPoolStatusSummary, 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) ListZFSPools(ctx context.Context, node string) ([]proxmox.ZFSPoolSummary, 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 Storage
- type UpdateNetworkBondInput
- type UpdateNetworkBridgeInput
- type UpdatePoolInput
- type ZFSPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PtrFloatToInt64 ¶
func PtrIntToInt ¶
func PtrStringToString ¶
func SliceToStringCommaList ¶
func StringCommaListToSlice ¶
func StringSliceToStringSpacePtr ¶ added in v0.0.2
func StringSpaceListToSlice ¶
Types ¶
type ClientConfig ¶
type CreateNetworkBondInput ¶ added in v0.0.2
type CreateNetworkBridgeInput ¶ added in v0.0.3
type CreatePoolInput ¶
type CreateZFSPoolInput ¶ added in v0.0.4
type CreateZFSPoolInput struct { Node string Name string Disks []string RaidLevel proxmox.ZFSRaidLevel }
type IP ¶ added in v0.0.3
func Ipv4FromInterface ¶
func Ipv4FromInterface(iface proxmox.NetworkInterfaceSummary) *IP
func Ipv6FromInterface ¶
func Ipv6FromInterface(iface proxmox.NetworkInterfaceSummary) *IP
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) ApplyChanges ¶ added in v0.0.2
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) CreateZFSPool ¶ added in v0.0.4
func (c *Proxmox) CreateZFSPool(ctx context.Context, input *CreateZFSPoolInput) error
func (*Proxmox) DeleteNetworkInterface ¶ added in v0.0.3
func (*Proxmox) DeleteZFSPool ¶ added in v0.0.4
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) 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) GetNetworkBond ¶ added in v0.0.2
func (*Proxmox) GetNetworkBridge ¶ added in v0.0.3
func (*Proxmox) GetStorage ¶
func (*Proxmox) GetVirtualMachineConfiguration ¶
func (*Proxmox) GetZFSPoolStatus ¶ added in v0.0.4
func (*Proxmox) ListNetworkBonds ¶
func (*Proxmox) ListNetworkBridges ¶
func (*Proxmox) ListNetworkInterfaces ¶
func (*Proxmox) ListNodeStorage ¶
func (*Proxmox) ListStorage ¶
func (*Proxmox) ListTemplates ¶
func (*Proxmox) ListVirtualMachines ¶
func (*Proxmox) ListZFSPools ¶ added in v0.0.4
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 UpdateNetworkBondInput ¶ added in v0.0.2
type UpdateNetworkBridgeInput ¶ added in v0.0.3
type UpdatePoolInput ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.