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 SliceToStringCommaListPtr(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 CreateLVMInput
- type CreateLVMStorageClassInput
- type CreateLVMThinStorageClassInput
- type CreateLVMThinpoolInput
- type CreateNFSStorageClassInput
- type CreateNetworkBondInput
- type CreateNetworkBridgeInput
- type CreatePoolInput
- 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) ApplyChanges(ctx context.Context, node string) 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) 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) 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) DescribeTemplates(ctx context.Context, node string) ([]vm.VirtualMachine, error)
- func (c *Proxmox) DescribeVirtualMachines(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) 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) 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) 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 ZFSNodeStorage
- type ZFSPool
- type ZFSStorageClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PtrFloatToInt64 ¶
func PtrIntToInt ¶
func PtrStringToString ¶
func SliceToStringCommaList ¶
func SliceToStringCommaListPtr ¶ added in v0.0.6
func StringCommaListToSlice ¶
func StringSliceToStringSpacePtr ¶ added in v0.0.2
func StringSpaceListToSlice ¶
Types ¶
type ClientConfig ¶
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 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) ApplyChanges ¶ added in v0.0.2
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) 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) 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) DescribeTemplates ¶
func (*Proxmox) DescribeVirtualMachines ¶
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) 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) 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) 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 ¶
type ZFSNodeStorage ¶ added in v0.0.5
Source Files ¶
- client.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
- utils.go
- vm.go
- zfs_pool.go
Click to show internal directories.
Click to hide internal directories.