Versions in this module Expand all Collapse all v0 v0.7.1 Dec 27, 2019 Changes in this version + const HardReboot + const OSReboot + const PowerCycle + const SoftReboot + func ExtractAddresses(r pagination.Page) (map[string][]Address, error) + func ExtractServersInto(r pagination.Page, v interface{}) error + func IDFromName(client *gophercloud.ServiceClient, name string) (string, error) + func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + func ListAddresses(client *gophercloud.ServiceClient, id string) pagination.Pager + func ListAddressesByNetwork(client *gophercloud.ServiceClient, id, network string) pagination.Pager + func WaitForStatus(c *gophercloud.ServiceClient, id, status string, secs int) error + type ActionResult struct + func ChangeAdminPassword(client *gophercloud.ServiceClient, id, newPassword string) (r ActionResult) + func ConfirmResize(client *gophercloud.ServiceClient, id string) (r ActionResult) + func ForceDelete(client *gophercloud.ServiceClient, id string) (r ActionResult) + func Reboot(client *gophercloud.ServiceClient, id string, opts RebootOptsBuilder) (r ActionResult) + func Resize(client *gophercloud.ServiceClient, id string, opts ResizeOptsBuilder) (r ActionResult) + func RevertResize(client *gophercloud.ServiceClient, id string) (r ActionResult) + type Address struct + Address string + Version int + func ExtractNetworkAddresses(r pagination.Page) ([]Address, error) + type AddressPage struct + func (r AddressPage) IsEmpty() (bool, error) + type AttachedVolume struct + ID string + type CreateImageOpts struct + Metadata map[string]string + Name string + func (opts CreateImageOpts) ToServerCreateImageMap() (map[string]interface{}, error) + type CreateImageOptsBuilder interface + ToServerCreateImageMap func() (map[string]interface{}, error) + type CreateImageResult struct + func CreateImage(client *gophercloud.ServiceClient, id string, opts CreateImageOptsBuilder) (r CreateImageResult) + func (r CreateImageResult) ExtractImageID() (string, error) + type CreateMetadatumResult struct + func CreateMetadatum(client *gophercloud.ServiceClient, id string, opts MetadatumOptsBuilder) (r CreateMetadatumResult) + type CreateOpts struct + AccessIPv4 string + AccessIPv6 string + AdminPass string + AvailabilityZone string + ConfigDrive *bool + FlavorName string + FlavorRef string + ImageName string + ImageRef string + Max int + Metadata map[string]string + Min int + Name string + Networks []Network + Personality Personality + SecurityGroups []string + ServiceClient *gophercloud.ServiceClient + Tags []string + UserData []byte + func (opts CreateOpts) ToServerCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToServerCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Server, error) + func (r CreateResult) ExtractInto(v interface{}) error + func (r CreateResult) ExtractTags() ([]string, error) + type DeleteMetadatumResult struct + func DeleteMetadatum(client *gophercloud.ServiceClient, id, key string) (r DeleteMetadatumResult) + type DeleteResult struct + func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult) + type ErrInvalidHowParameterProvided struct + type ErrNeitherFlavorIDNorFlavorNameProvided struct + func (e ErrNeitherFlavorIDNorFlavorNameProvided) Error() string + type ErrNeitherImageIDNorImageNameProvided struct + func (e ErrNeitherImageIDNorImageNameProvided) Error() string + type ErrNoAdminPassProvided struct + type ErrNoClientProvidedForIDByName struct + func (e ErrNoClientProvidedForIDByName) Error() string + type ErrNoIDProvided struct + type ErrNoImageIDProvided struct + type ErrServer struct + ID string + func (se ErrServer) Error() string + func (se ErrServer) Error404(e gophercloud.ErrUnexpectedResponseCode) error + type ErrServerNotFound struct + func (e ErrServerNotFound) Error() string + type Fault struct + Code int + Created time.Time + Details string + Message string + type File struct + Contents []byte + Path string + func (f *File) MarshalJSON() ([]byte, error) + type GetMetadataResult struct + func Metadata(client *gophercloud.ServiceClient, id string) (r GetMetadataResult) + type GetMetadatumResult struct + func Metadatum(client *gophercloud.ServiceClient, id, key string) (r GetMetadatumResult) + type GetPasswordResult struct + func GetPassword(client *gophercloud.ServiceClient, serverId string) (r GetPasswordResult) + func (r GetPasswordResult) ExtractPassword(privateKey *rsa.PrivateKey) (string, error) + type GetResult struct + func Get(client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Server, error) + func (r GetResult) ExtractInto(v interface{}) error + func (r GetResult) ExtractTags() ([]string, error) + type ListOpts struct + AllTenants bool + ChangesSince string + Flavor string + Host string + Image string + Ip string + Limit int + Marker string + Name string + NotTags string + NotTagsAny string + Status string + Tags string + TagsAny string + TenantID string + func (opts ListOpts) ToServerListQuery() (string, error) + type ListOptsBuilder interface + ToServerListQuery func() (string, error) + type MetadataOpts map[string]string + func (opts MetadataOpts) ToMetadataResetMap() (map[string]interface{}, error) + func (opts MetadataOpts) ToMetadataUpdateMap() (map[string]interface{}, error) + type MetadataResult struct + func (r MetadataResult) Extract() (map[string]string, error) + type MetadatumOpts map[string]string + func (opts MetadatumOpts) ToMetadatumCreateMap() (map[string]interface{}, string, error) + type MetadatumOptsBuilder interface + ToMetadatumCreateMap func() (map[string]interface{}, string, error) + type MetadatumResult struct + func (r MetadatumResult) Extract() (map[string]string, error) + type Network struct + FixedIP string + Port string + UUID string + type NetworkAddressPage struct + func (r NetworkAddressPage) IsEmpty() (bool, error) + type Personality []*File + type RebootMethod string + type RebootOpts struct + Type RebootMethod + func (opts RebootOpts) ToServerRebootMap() (map[string]interface{}, error) + type RebootOptsBuilder interface + ToServerRebootMap func() (map[string]interface{}, error) + type RebuildOpts struct + AccessIPv4 string + AccessIPv6 string + AdminPass string + ImageID string + ImageName string + Metadata map[string]string + Name string + Personality Personality + ServiceClient *gophercloud.ServiceClient + func (opts RebuildOpts) ToServerRebuildMap() (map[string]interface{}, error) + type RebuildOptsBuilder interface + ToServerRebuildMap func() (map[string]interface{}, error) + type RebuildResult struct + func Rebuild(client *gophercloud.ServiceClient, id string, opts RebuildOptsBuilder) (r RebuildResult) + func (r RebuildResult) Extract() (*Server, error) + func (r RebuildResult) ExtractInto(v interface{}) error + func (r RebuildResult) ExtractTags() ([]string, error) + type ResetMetadataOptsBuilder interface + ToMetadataResetMap func() (map[string]interface{}, error) + type ResetMetadataResult struct + func ResetMetadata(client *gophercloud.ServiceClient, id string, opts ResetMetadataOptsBuilder) (r ResetMetadataResult) + type ResizeOpts struct + FlavorRef string + func (opts ResizeOpts) ToServerResizeMap() (map[string]interface{}, error) + type ResizeOptsBuilder interface + ToServerResizeMap func() (map[string]interface{}, error) + type Server struct + AccessIPv4 string + AccessIPv6 string + Addresses map[string]interface{} + AdminPass string + AttachedVolumes []AttachedVolume + Created time.Time + Fault Fault + Flavor map[string]interface{} + HostID string + ID string + Image map[string]interface{} + KeyName string + Links []interface{} + Metadata map[string]string + Name string + Progress int + SecurityGroups []map[string]interface{} + Status string + TenantID string + Updated time.Time + UserID string + func ExtractServers(r pagination.Page) ([]Server, error) + func (r *Server) UnmarshalJSON(b []byte) error + type ServerPage struct + func (r ServerPage) IsEmpty() (bool, error) + func (r ServerPage) NextPageURL() (string, error) + type ShowConsoleOutputOpts struct + Length int + func (opts ShowConsoleOutputOpts) ToServerShowConsoleOutputMap() (map[string]interface{}, error) + type ShowConsoleOutputOptsBuilder interface + ToServerShowConsoleOutputMap func() (map[string]interface{}, error) + type ShowConsoleOutputResult struct + func ShowConsoleOutput(client *gophercloud.ServiceClient, id string, ...) (r ShowConsoleOutputResult) + func (r ShowConsoleOutputResult) Extract() (string, error) + type TagsExt struct + Tags []string + type UpdateMetadataOptsBuilder interface + ToMetadataUpdateMap func() (map[string]interface{}, error) + type UpdateMetadataResult struct + func UpdateMetadata(client *gophercloud.ServiceClient, id string, opts UpdateMetadataOptsBuilder) (r UpdateMetadataResult) + type UpdateOpts struct + AccessIPv4 string + AccessIPv6 string + Name string + func (opts UpdateOpts) ToServerUpdateMap() (map[string]interface{}, error) + type UpdateOptsBuilder interface + ToServerUpdateMap func() (map[string]interface{}, error) + type UpdateResult struct + func Update(client *gophercloud.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult) + func (r UpdateResult) Extract() (*Server, error) + func (r UpdateResult) ExtractInto(v interface{}) error + func (r UpdateResult) ExtractTags() ([]string, error)