Versions in this module Expand all Collapse all v0 v0.9.0 Mar 19, 2016 Changes in this version + const ActionTimeout + const ImageUploadTimeout + const PrivateIP + const PublicIP + const SSHTimeout + const StateActive + const StateError + const StateShutOff + const VolumeActionTimeout + var ErrActionTimeout = errors.New("Openstack action timeout") + var ErrAuthOptions = errors.New("Openstack credentials (username and password) are not set properly") + var ErrAuthenticatingClient = errors.New("Failed to authenticate the client") + var ErrCreatingInstance = errors.New("Failed to create instance") + var ErrInvalidRegion = errors.New("Invalid Openstack region") + var ErrNoFlavor = errors.New("Requested flavor is not found") + var ErrNoIPs = errors.New("No IPs found for instance") + var ErrNoImage = errors.New("Requested image is not found") + var ErrNoInstance = errors.New("No instance found") + var ErrNoInstanceID = errors.New("Missing instance ID") + var ErrNoRegion = errors.New("Missing Openstack region") + type ImageMetadata struct + ContainerFormat string + DiskFormat string + MinDisk int + MinRAM int + Name string + func NewDefaultImageMetadata() ImageMetadata + type VM struct + Credentials ssh.Credentials + FlavorName string + FloatingIP *floatingip.FloatingIP + FloatingIPPool string + IdentityEndpoint string + ImageID string + ImageMetadata ImageMetadata + ImagePath string + InstanceID string + Name string + Networks []string + Password string + Region string + SecurityGroup string + TenantName string + Username string + Volume Volume + func (vm *VM) Destroy() error + func (vm *VM) GetIPs() ([]net.IP, error) + func (vm *VM) GetName() string + func (vm *VM) GetSSH(options ssh.Options) (ssh.Client, error) + func (vm *VM) GetState() (string, error) + func (vm *VM) Halt() error + func (vm *VM) Provision() error + func (vm *VM) Resume() error + func (vm *VM) Start() error + func (vm *VM) Suspend() error + type Volume struct + Device string + ID string + Name string + Size int + Type string + func NewDefaultVolume() Volume