Documentation ¶
Overview ¶
Package keypairs provides information and interaction with the keypair API resource for the Rackspace Cloud Servers service.
Index ¶
- func Create(client *gophercloud.ServiceClient, opts os.CreateOptsBuilder) os.CreateResult
- func Delete(client *gophercloud.ServiceClient, name string) os.DeleteResult
- func ExtractKeyPairs(page pagination.Page) ([]os.KeyPair, error)
- func Get(client *gophercloud.ServiceClient, name string) os.GetResult
- func List(client *gophercloud.ServiceClient) pagination.Pager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(client *gophercloud.ServiceClient, opts os.CreateOptsBuilder) os.CreateResult
Create requests the creation of a new keypair on the server, or to import a pre-existing keypair.
func Delete ¶
func Delete(client *gophercloud.ServiceClient, name string) os.DeleteResult
Delete requests the deletion of a previous stored KeyPair from the server.
func ExtractKeyPairs ¶
func ExtractKeyPairs(page pagination.Page) ([]os.KeyPair, error)
ExtractKeyPairs interprets a page of results as a slice of KeyPairs.
func Get ¶
func Get(client *gophercloud.ServiceClient, name string) os.GetResult
Get returns public data about a previously uploaded KeyPair.
func List ¶
func List(client *gophercloud.ServiceClient) pagination.Pager
List returns a Pager that allows you to iterate over a collection of KeyPairs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.