Documentation
¶
Index ¶
- Variables
- func AvailableNodeNames() string
- type Client
- type Config
- type LXCAction
- type LXCStatus
- type Node
- func (n *Node) Get(ctx context.Context, path string, v any) error
- func (n *Node) Key() string
- func (n *Node) LXCAction(ctx context.Context, vmid int, action LXCAction) error
- func (n *Node) LXCGetIPs(ctx context.Context, vmid int) (res []net.IP, err error)
- func (n *Node) LXCGetIPsFromConfig(ctx context.Context, vmid int) (res []net.IP, err error)
- func (n *Node) LXCGetIPsFromInterfaces(ctx context.Context, vmid int) ([]net.IP, error)
- func (n *Node) LXCIsRunning(ctx context.Context, vmid int) (bool, error)
- func (n *Node) LXCIsStopped(ctx context.Context, vmid int) (bool, error)
- func (n *Node) LXCName(ctx context.Context, vmid int) (string, error)
- func (n *Node) LXCSetShutdownTimeout(ctx context.Context, vmid int, timeout time.Duration) error
- func (n *Node) LXCStatus(ctx context.Context, vmid int) (LXCStatus, error)
- func (n *Node) MarshalJSON() ([]byte, error)
- func (n *Node) Name() string
- func (n *Node) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Clients = pool.New[*Client]("proxmox_clients")
View Source
var Nodes = pool.New[*Node]("proxmox_nodes")
Functions ¶
func AvailableNodeNames ¶
func AvailableNodeNames() string
Types ¶
type Client ¶
type Client struct { *proxmox.Client proxmox.Cluster Version *proxmox.Version }
func (*Client) MarshalJSON ¶ added in v0.11.1
type Config ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) LXCGetIPs ¶
LXCGetIPs returns the ip addresses of the container it first tries to get the ip addresses from the config if that fails, it gets the ip addresses from the interfaces
func (*Node) LXCGetIPsFromConfig ¶
LXCGetIPsFromConfig returns the ip addresses of the container from the config
func (*Node) LXCGetIPsFromInterfaces ¶
LXCGetIPsFromInterfaces returns the ip addresses of the container from the interfaces it will return nothing if the container is stopped
func (*Node) LXCIsRunning ¶
func (*Node) LXCIsStopped ¶
func (*Node) LXCSetShutdownTimeout ¶
func (*Node) MarshalJSON ¶ added in v0.11.1
Click to show internal directories.
Click to hide internal directories.