Documentation ¶
Index ¶
- Variables
- type ChildRecorder
- type FakeDomain
- type FakeDomainConnection
- func (dc *FakeDomainConnection) DefineDomain(def *libvirtxml.Domain) (virt.VirtDomain, error)
- func (dc *FakeDomainConnection) DefineSecret(def *libvirtxml.Secret) (virt.VirtSecret, error)
- func (dc *FakeDomainConnection) ListDomains() ([]virt.VirtDomain, error)
- func (dc *FakeDomainConnection) LookupDomainByName(name string) (virt.VirtDomain, error)
- func (dc *FakeDomainConnection) LookupDomainByUUIDString(uuid string) (virt.VirtDomain, error)
- func (dc *FakeDomainConnection) LookupSecretByUUIDString(uuid string) (virt.VirtSecret, error)
- func (dc *FakeDomainConnection) LookupSecretByUsageName(usageType string, usageName string) (virt.VirtSecret, error)
- func (dc *FakeDomainConnection) SetIgnoreShutdown(ignoreShutdown bool)
- type FakeImageManager
- type FakeSecret
- type FakeStorageConnection
- type FakeStoragePool
- func (p *FakeStoragePool) CreateStorageVol(def *libvirtxml.StorageVolume) (virt.VirtStorageVolume, error)
- func (p *FakeStoragePool) CreateStorageVolClone(def *libvirtxml.StorageVolume, from virt.VirtStorageVolume) (virt.VirtStorageVolume, error)
- func (p *FakeStoragePool) ImageToVolume(def *libvirtxml.StorageVolume, sourcePath string) (virt.VirtStorageVolume, error)
- func (p *FakeStoragePool) ListAllVolumes() ([]virt.VirtStorageVolume, error)
- func (p *FakeStoragePool) LookupVolumeByName(name string) (virt.VirtStorageVolume, error)
- func (p *FakeStoragePool) RemoveVolumeByName(name string) error
- type FakeStorageVolume
- type Record
- type Recorder
- type TopLevelRecorder
Constants ¶
This section is empty.
Variables ¶
View Source
var NullRecorder = &nullRecorder{}
Functions ¶
This section is empty.
Types ¶
type ChildRecorder ¶
type ChildRecorder struct {
// contains filtered or unexported fields
}
func NewChildRecorder ¶
func NewChildRecorder(parent Recorder, prefix string) *ChildRecorder
func (*ChildRecorder) Child ¶
func (r *ChildRecorder) Child(prefix string) *ChildRecorder
func (*ChildRecorder) Rec ¶
func (r *ChildRecorder) Rec(name string, data interface{})
type FakeDomain ¶
type FakeDomain struct {
// contains filtered or unexported fields
}
func (*FakeDomain) Create ¶
func (d *FakeDomain) Create() error
func (*FakeDomain) Destroy ¶
func (d *FakeDomain) Destroy() error
func (*FakeDomain) Shutdown ¶
func (d *FakeDomain) Shutdown() error
func (*FakeDomain) State ¶
func (d *FakeDomain) State() (virt.DomainState, error)
func (*FakeDomain) UUIDString ¶
func (d *FakeDomain) UUIDString() (string, error)
func (*FakeDomain) Undefine ¶
func (d *FakeDomain) Undefine() error
type FakeDomainConnection ¶
type FakeDomainConnection struct {
// contains filtered or unexported fields
}
func NewFakeDomainConnection ¶
func NewFakeDomainConnection(rec Recorder) *FakeDomainConnection
func (*FakeDomainConnection) DefineDomain ¶
func (dc *FakeDomainConnection) DefineDomain(def *libvirtxml.Domain) (virt.VirtDomain, error)
func (*FakeDomainConnection) DefineSecret ¶
func (dc *FakeDomainConnection) DefineSecret(def *libvirtxml.Secret) (virt.VirtSecret, error)
func (*FakeDomainConnection) ListDomains ¶
func (dc *FakeDomainConnection) ListDomains() ([]virt.VirtDomain, error)
func (*FakeDomainConnection) LookupDomainByName ¶
func (dc *FakeDomainConnection) LookupDomainByName(name string) (virt.VirtDomain, error)
func (*FakeDomainConnection) LookupDomainByUUIDString ¶
func (dc *FakeDomainConnection) LookupDomainByUUIDString(uuid string) (virt.VirtDomain, error)
func (*FakeDomainConnection) LookupSecretByUUIDString ¶
func (dc *FakeDomainConnection) LookupSecretByUUIDString(uuid string) (virt.VirtSecret, error)
func (*FakeDomainConnection) LookupSecretByUsageName ¶ added in v0.8.0
func (dc *FakeDomainConnection) LookupSecretByUsageName(usageType string, usageName string) (virt.VirtSecret, error)
func (*FakeDomainConnection) SetIgnoreShutdown ¶
func (dc *FakeDomainConnection) SetIgnoreShutdown(ignoreShutdown bool)
type FakeImageManager ¶ added in v0.8.0
type FakeImageManager struct {
// contains filtered or unexported fields
}
func NewFakeImageManager ¶ added in v0.8.0
func NewFakeImageManager(rec Recorder, storagePool *FakeStoragePool) *FakeImageManager
func (*FakeImageManager) GetImageVolume ¶ added in v0.8.0
func (im *FakeImageManager) GetImageVolume(imageName string) (virt.VirtStorageVolume, error)
type FakeSecret ¶
type FakeSecret struct {
// contains filtered or unexported fields
}
func (*FakeSecret) Remove ¶
func (s *FakeSecret) Remove() error
func (*FakeSecret) SetValue ¶
func (s *FakeSecret) SetValue(value []byte) error
type FakeStorageConnection ¶
type FakeStorageConnection struct {
// contains filtered or unexported fields
}
func NewFakeStorageConnection ¶
func NewFakeStorageConnection(rec Recorder) *FakeStorageConnection
func (*FakeStorageConnection) CreateStoragePool ¶
func (sc *FakeStorageConnection) CreateStoragePool(def *libvirtxml.StoragePool) (virt.VirtStoragePool, error)
func (*FakeStorageConnection) LookupStoragePoolByName ¶
func (sc *FakeStorageConnection) LookupStoragePoolByName(name string) (virt.VirtStoragePool, error)
type FakeStoragePool ¶
type FakeStoragePool struct {
// contains filtered or unexported fields
}
func NewFakeStoragePool ¶ added in v0.8.0
func NewFakeStoragePool(rec Recorder, name, poolPath string) *FakeStoragePool
func (*FakeStoragePool) CreateStorageVol ¶
func (p *FakeStoragePool) CreateStorageVol(def *libvirtxml.StorageVolume) (virt.VirtStorageVolume, error)
func (*FakeStoragePool) CreateStorageVolClone ¶
func (p *FakeStoragePool) CreateStorageVolClone(def *libvirtxml.StorageVolume, from virt.VirtStorageVolume) (virt.VirtStorageVolume, error)
func (*FakeStoragePool) ImageToVolume ¶
func (p *FakeStoragePool) ImageToVolume(def *libvirtxml.StorageVolume, sourcePath string) (virt.VirtStorageVolume, error)
func (*FakeStoragePool) ListAllVolumes ¶
func (p *FakeStoragePool) ListAllVolumes() ([]virt.VirtStorageVolume, error)
func (*FakeStoragePool) LookupVolumeByName ¶
func (p *FakeStoragePool) LookupVolumeByName(name string) (virt.VirtStorageVolume, error)
func (*FakeStoragePool) RemoveVolumeByName ¶
func (p *FakeStoragePool) RemoveVolumeByName(name string) error
type FakeStorageVolume ¶
type FakeStorageVolume struct {
// contains filtered or unexported fields
}
func (*FakeStorageVolume) Format ¶
func (v *FakeStorageVolume) Format() error
func (*FakeStorageVolume) Name ¶
func (v *FakeStorageVolume) Name() string
func (*FakeStorageVolume) Path ¶
func (v *FakeStorageVolume) Path() (string, error)
func (*FakeStorageVolume) Remove ¶
func (v *FakeStorageVolume) Remove() error
func (*FakeStorageVolume) Size ¶
func (v *FakeStorageVolume) Size() (uint64, error)
type Record ¶
type Record struct { Name string `json:"name"` Data interface{} `json:"data,omitempty"` }
type TopLevelRecorder ¶
type TopLevelRecorder struct {
// contains filtered or unexported fields
}
func NewToplevelRecorder ¶
func NewToplevelRecorder() *TopLevelRecorder
func (*TopLevelRecorder) AddFilter ¶
func (r *TopLevelRecorder) AddFilter(filter string)
func (*TopLevelRecorder) Child ¶
func (r *TopLevelRecorder) Child(prefix string) *ChildRecorder
func (*TopLevelRecorder) Content ¶
func (r *TopLevelRecorder) Content() []*Record
func (*TopLevelRecorder) Rec ¶
func (r *TopLevelRecorder) Rec(name string, data interface{})
Click to show internal directories.
Click to hide internal directories.