Documentation
¶
Index ¶
- Constants
- type Connection
- func (c *Connection) Close()
- func (c *Connection) CreateDomain(name string) error
- func (c *Connection) CreateNetwork(name string) error
- func (c *Connection) CreateStorageVolume(params CreateStorageVolumeParams) (*libvirtxml.StorageVolume, error)
- func (c *Connection) DefineDomain(params DefineDomainParams) error
- func (c *Connection) DefineNATNetwork(params DefineNetworkParams) error
- func (c *Connection) DeleteStorageVolume(pool, name string) error
- func (c *Connection) DestroyDomain(name string) error
- func (c *Connection) DestroyNetwork(name string) error
- func (c *Connection) DomainIsActive(name string) (bool, error)
- func (c *Connection) GenerateUniqueMACAddresses(count int) ([]string, error)
- func (c *Connection) GetCapabilities() (*libvirtxml.Capabilities, error)
- func (c *Connection) GetDomain(domain string) (*libvirtxml.Domain, error)
- func (c *Connection) GetNetwork(network string) (*libvirtxml.Network, error)
- func (c *Connection) GetStoragePool(pool string) (*libvirtxml.StoragePool, error)
- func (c *Connection) GetStorageVolume(pool, volume string) (*libvirtxml.StorageVolume, error)
- func (c *Connection) ListAllDomains() ([]libvirtxml.Domain, error)
- func (c *Connection) ListDomainInterfaceAddresses(domainName string) ([]string, error)
- func (c *Connection) NetworkIsActive(name string) (bool, error)
- func (c *Connection) ShutdownDomain(name string) error
- func (c *Connection) UndefineDomain(name string) error
- func (c *Connection) UndefineNetwork(name string) error
- type CreateStorageVolumeParams
- type DefineDomainParams
- type DefineNetworkParams
- type FilesystemMount
Constants ¶
View Source
const MetadataXMLNamespace = "https://github.com/bcrusu/kcm"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(uri string) (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close()
func (*Connection) CreateDomain ¶
func (c *Connection) CreateDomain(name string) error
func (*Connection) CreateNetwork ¶
func (c *Connection) CreateNetwork(name string) error
func (*Connection) CreateStorageVolume ¶
func (c *Connection) CreateStorageVolume(params CreateStorageVolumeParams) (*libvirtxml.StorageVolume, error)
func (*Connection) DefineDomain ¶
func (c *Connection) DefineDomain(params DefineDomainParams) error
func (*Connection) DefineNATNetwork ¶
func (c *Connection) DefineNATNetwork(params DefineNetworkParams) error
func (*Connection) DeleteStorageVolume ¶
func (c *Connection) DeleteStorageVolume(pool, name string) error
func (*Connection) DestroyDomain ¶
func (c *Connection) DestroyDomain(name string) error
func (*Connection) DestroyNetwork ¶
func (c *Connection) DestroyNetwork(name string) error
func (*Connection) DomainIsActive ¶
func (c *Connection) DomainIsActive(name string) (bool, error)
func (*Connection) GenerateUniqueMACAddresses ¶
func (c *Connection) GenerateUniqueMACAddresses(count int) ([]string, error)
func (*Connection) GetCapabilities ¶
func (c *Connection) GetCapabilities() (*libvirtxml.Capabilities, error)
func (*Connection) GetDomain ¶
func (c *Connection) GetDomain(domain string) (*libvirtxml.Domain, error)
func (*Connection) GetNetwork ¶
func (c *Connection) GetNetwork(network string) (*libvirtxml.Network, error)
func (*Connection) GetStoragePool ¶
func (c *Connection) GetStoragePool(pool string) (*libvirtxml.StoragePool, error)
func (*Connection) GetStorageVolume ¶
func (c *Connection) GetStorageVolume(pool, volume string) (*libvirtxml.StorageVolume, error)
func (*Connection) ListAllDomains ¶
func (c *Connection) ListAllDomains() ([]libvirtxml.Domain, error)
func (*Connection) ListDomainInterfaceAddresses ¶
func (c *Connection) ListDomainInterfaceAddresses(domainName string) ([]string, error)
func (*Connection) NetworkIsActive ¶
func (c *Connection) NetworkIsActive(name string) (bool, error)
func (*Connection) ShutdownDomain ¶
func (c *Connection) ShutdownDomain(name string) error
func (*Connection) UndefineDomain ¶
func (c *Connection) UndefineDomain(name string) error
func (*Connection) UndefineNetwork ¶
func (c *Connection) UndefineNetwork(name string) error
type DefineDomainParams ¶
type DefineNetworkParams ¶
type FilesystemMount ¶
Click to show internal directories.
Click to hide internal directories.