Documentation ¶
Index ¶
Constants ¶
View Source
const ( Created state = iota Stopped Running )
Variables ¶
This section is empty.
Functions ¶
func LoadVMMetadataFilterable ¶
func LoadVMMetadataFilterable(id string) (filter.Filterable, error)
Types ¶
type VMFilter ¶
type VMFilter struct {
// contains filtered or unexported fields
}
func NewVMFilter ¶
func NewVMFilterAll ¶
type VMMetadata ¶
func LoadVMMetadata ¶
func LoadVMMetadata(id string) (*VMMetadata, error)
func NewVMMetadata ¶
func NewVMMetadata(id, name string, od *VMObjectData) *VMMetadata
func ToVMMetadata ¶
func ToVMMetadata(f filter.Filterable) (*VMMetadata, error)
func ToVMMetadataAll ¶
func ToVMMetadataAll(a []filter.Filterable) ([]*VMMetadata, error)
func (*VMMetadata) CopyImage ¶
func (md *VMMetadata) CopyImage() error
func (*VMMetadata) KernelID ¶
func (md *VMMetadata) KernelID() string
func (*VMMetadata) Running ¶
func (md *VMMetadata) Running() bool
func (*VMMetadata) SetState ¶
func (md *VMMetadata) SetState(s state) error
func (*VMMetadata) Size ¶
func (md *VMMetadata) Size() (int64, error)
func (*VMMetadata) VMOD ¶
func (md *VMMetadata) VMOD() *VMObjectData
The md.ObjectData.(*VMObjectData) assert won't panic as this method can only receive *VMMetadata objects
type VMObjectData ¶
func NewVMObjectData ¶
func NewVMObjectData(imageID, kernelID string, vCPUs, memory int64) *VMObjectData
Click to show internal directories.
Click to hide internal directories.