qemu
import "github.com/analog-substance/carbon/pkg/providers/qemu"
Index
func New() types.Provider
type Environment struct {
// contains filtered or unexported fields
}
func (*Environment) CreateVM
func (e *Environment) CreateVM(options types.MachineLaunchOptions) error
func (e *Environment) DestroyImage(imageID string) error
func (*Environment) DestroyVM
func (e *Environment) DestroyVM(id string) error
func (e *Environment) ImageBuilds() ([]types.ImageBuild, error)
func (*Environment) Images
func (e *Environment) Images() ([]types.Image, error)
func (*Environment) Name
func (e *Environment) Name() string
func (*Environment) Profile
func (e *Environment) Profile() types.Profile
func (*Environment) RestartVM
func (e *Environment) RestartVM(id string) error
func (*Environment) StartVM
func (e *Environment) StartVM(id string) error
func (*Environment) StopVM
func (e *Environment) StopVM(id string) error
func (*Environment) VMs
func (e *Environment) VMs() []types.VM
type Profile struct {
types.Profile
}
func NewProfile(name string, providerInstance *Provider, config common.ProfileConfig) *Profile
func (p *Profile) Environments() []types.Environment
type Provider struct {
types.Provider
// contains filtered or unexported fields
}
func (p *Provider) IsAvailable() bool
func (*Provider) Profiles
func (p *Provider) Profiles() []types.Profile
1 - api
import "github.com/analog-substance/carbon/pkg/providers/qemu/api"
Index
type Domain struct {
LVDomain *libvirt.Domain
LVDomainState *libvirt.DomainState
ID string
Name string
PublicIPAddresses []string
PrivateIPAddresses []string
CurrentUpTime time.Duration
// contains filtered or unexported fields
}
func (*Domain) Destroy
func (d *Domain) Destroy() error
func (*Domain) Reboot
func (d *Domain) Reboot() error
func (*Domain) Start
func (d *Domain) Start() error
func (*Domain) Suspend
func (d *Domain) Suspend() error
type QEMU struct {
// contains filtered or unexported fields
}
func Connect(libVirtURL string) (*QEMU, error)
func (q *QEMU) AllNetworks() ([]libvirt.Network, error)
func (*QEMU) Close
func (q *QEMU) Close() error
func (q *QEMU) CreateDomain(name string, storageVol *StorageVolume) (*Domain, error)
func (q *QEMU) GetDomain(id string) (*Domain, error)
func (q *QEMU) GetDomains() ([]*Domain, error)
func (q *QEMU) GetStoragePool(name string) (*StoragePool, error)
func (q *QEMU) GetStoragePools() ([]*StoragePool, error)
type StoragePool struct {
LVStoragePool *libvirt.StoragePool
Volumes []*StorageVolume
// contains filtered or unexported fields
}
func (s *StoragePool) GetVolumes() ([]*StorageVolume, error)
func (s *StoragePool) ImportImage(name string, imageFile string) (*StorageVolume, error)
type StorageVolume struct {
LVStorageVolume *libvirt.StorageVol
// contains filtered or unexported fields
}