rackspace / gophercloud

A Go SDK for OpenStack. IN FEATURE FREEZE. See Issue #592
http://gophercloud.io
Other
456 stars 181 forks source link

[WIP] Add KeyName option for servers #550

Closed hironobu-s closed 8 years ago

hironobu-s commented 8 years ago

This adds KeyName property to CreateOpts struct, and It will be able to create the instance with ssh public key.

https://developer.rackspace.com/docs/cloud-servers/v2/developer-guide/#post-create-server-servers

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-0.008%) to 79.964% when pulling 4786f049d093c84905ed506488023f1c7dee3365 on hironobu-s:add-key-name-option into 3dc52174c26169aeae623cb224278dfac476ca08 on rackspace:master.

jrperritt commented 8 years ago

In OpenStack, keypairs are an extension. Use the keypairs package: https://github.com/rackspace/gophercloud/blob/master/openstack/compute/v2/extensions/keypairs/requests.go#L14

hironobu-s commented 8 years ago

Thank you for your advice!