Documentation ¶
Index ¶
- type API
- func (a *API) AddKey(name, key string) error
- func (a *API) CreateServer(name, sshKeyID, userdata string) (*Server, error)
- func (a *API) DeleteImage(imageID string) error
- func (a *API) DeleteKey(name string) error
- func (a *API) DeleteServer(id string) error
- func (a *API) GC(gracePeriod time.Duration) error
- func (a *API) GetConsoleOutput(id string) (string, error)
- func (a *API) PreflightCheck() error
- func (a *API) ResolveImage(img string) (string, error)
- func (a *API) UploadImage(name, path string) (string, error)
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) CreateServer ¶
func (*API) DeleteImage ¶
func (*API) DeleteServer ¶
Deletes the server, and disassociates & deletes any floating IP associated with the given server.
func (*API) PreflightCheck ¶
type Options ¶
type Options struct { *platform.Options // Config file. Defaults to $HOME/.config/openstack.json. ConfigPath string // Profile name Profile string // Region (e.g. "regionOne") Region string // Instance Flavor ID Flavor string // Image ID Image string // Network ID Network string // Domain ID Domain string // Floating IP Pool FloatingIPPool string }
type Server ¶
type Server struct { Server *servers.Server FloatingIP *floatingips.FloatingIP }
Click to show internal directories.
Click to hide internal directories.