Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type CreateOpts struct { // Name is a friendly name to refer to this KeyPair in other services. Name string `json:"name" required:"true"` // PublicKey [optional] is a pregenerated OpenSSH-formatted public key. // If provided, this key will be imported and no new key will be created. PublicKey string `json:"public_key,omitempty"` }
func (CreateOpts) ToKeyPairCreateMap ¶
func (opts CreateOpts) ToKeyPairCreateMap() (map[string]interface{}, error)
ToSecurityGroupsCreateMap converts CreateOpts structures to map[string]interface{}
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional parameters to the create request.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
Create create key pair
type DeleteResult ¶
type DeleteResult struct {
golangsdk.ErrResult
}
func Delete ¶
func Delete(client *golangsdk.ServiceClient, keyPairID string) (r DeleteResult)
Delete delete the key pair
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
type ListKeyPairsOptsBuilder ¶
type ListOpts ¶
func (ListOpts) ToListKeyPairsQuery ¶
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
func List ¶
func List(client *golangsdk.ServiceClient, opts ListKeyPairsOptsBuilder) (r ListResult)
Click to show internal directories.
Click to hide internal directories.