Documentation ¶
Index ¶
- Variables
- type ChildRecorder
- type FakeDomain
- func (d *FakeDomain) Create() error
- func (d *FakeDomain) Destroy() error
- func (d *FakeDomain) Name() (string, error)
- func (d *FakeDomain) Shutdown() error
- func (d *FakeDomain) State() (virt.DomainState, error)
- func (d *FakeDomain) UUIDString() (string, error)
- func (d *FakeDomain) Undefine() error
- func (d *FakeDomain) Xml() (*libvirtxml.Domain, error)
- 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 FakeSecret
- type FakeStorageConnection
- type FakeStoragePool
- func (p *FakeStoragePool) CreateStorageVol(def *libvirtxml.StorageVolume) (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) Name ¶ added in v0.8.1
func (d *FakeDomain) Name() (string, 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
func (*FakeDomain) Xml ¶ added in v0.9.4
func (d *FakeDomain) Xml() (*libvirtxml.Domain, 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 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) 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.