package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev
# Packages
servers unit tests.
# Functions
ChangeAdminPassword alters the administrator or root password for a specified server.
ConfirmResize confirms a previous resize operation on a server.
Create requests a server to be provisioned to the user in the current tenant.
CreateImage makes a request against the nova API to schedule an image to be created of the server.
CreateMetadatum will create or update the key-value pair with the given key for the given server ID.
Delete requests that a server previously provisioned be removed from your account.
DeleteMetadatum will delete the key-value pair with the given key for the given server ID.
ExtractAddresses interprets the results of a single page from a ListAddresses() call, producing a map of addresses.
ExtractNetworkAddresses interprets the results of a single page from a ListAddressesByNetwork() call, producing a slice of addresses.
ExtractServers interprets the results of a single page from a List() call, producing a slice of Server entities.
No description provided by the author
ForceDelete forces the deletion of a server.
Get requests details on a single server, by ID.
GetPassword makes a request against the nova API to get the encrypted administrative password.
IDFromName is a convienience function that returns a server's ID given its name.
List makes a request against the API to list servers accessible to you.
ListAddresses makes a request against the API to list the servers IP addresses.
ListAddressesByNetwork makes a request against the API to list the servers IP addresses for the given network.
Metadata requests all the metadata for the given server ID.
Metadatum requests the key-value pair with the given key for the given server ID.
Reboot requests that a given server reboot.
Rebuild will reprovision the server according to the configuration options provided in the RebuildOpts struct.
ResetMetadata will create multiple new key-value pairs for the given server ID.
Resize instructs the provider to change the flavor of the server.
RevertResize cancels a previous resize operation on a server.
ShowConsoleOutput makes a request against the nova API to get console log from the server.
Update requests that various attributes of the indicated server be changed.
UpdateMetadata updates (or creates) all the metadata specified by opts for the given server ID.
WaitForStatus will continually poll a server until it successfully transitions to a specified status.
# Constants
These constants determine how a server should be rebooted.
These constants determine how a server should be rebooted.
These constants determine how a server should be rebooted.
These constants determine how a server should be rebooted.
# Structs
ActionResult represents the result of server action operations, like reboot.
Address represents an IP address.
AddressPage abstracts the raw results of making a ListAddresses() request against the API.
CreateImageOpts provides options to pass to the CreateImage request.
CreateImageResult is the response from a CreateImage operation.
CreateMetadatumResult contains the result of a Create operation.
CreateOpts specifies server creation parameters.
CreateResult is the response from a Create operation.
DeleteMetadatumResult contains the result of a Delete operation.
DeleteResult is the response from a Delete operation.
ErrInvalidHowParameterProvided is the error when an unknown value is given for the `how` argument.
ErrNeitherFlavorIDNorFlavorNameProvided is the error when neither the flavor ID nor the flavor name is provided for a server operation.
ErrNeitherImageIDNorImageNameProvided is the error when neither the image ID nor the image name is provided for a server operation.
ErrNoAdminPassProvided is the error when an administrative password isn't provided for a server operation.
No description provided by the author
ErrNoIDProvided is the error when a server ID isn't provided for a server operation.
ErrNoImageIDProvided is the error when an image ID isn't provided for a server operation.
ErrServer is a generic error type for servers HTTP operations.
ErrServerNotFound is the error when a 404 is received during server HTTP operations.
No description provided by the author
File is used within CreateOpts and RebuildOpts to inject a file into the server at launch.
GetMetadataResult contains the result of a Get operation.
GetMetadatumResult contains the result of a Get operation.
GetPasswordResult represent the result of a get os-server-password operation.
GetResult is the response from a Get operation.
ListOpts allows the filtering and sorting of paginated collections through the API.
MetadataResult contains the result of a call for (potentially) multiple key-value pairs.
MetadatumResult contains the result of a call for individual a single key-value pair.
Network is used within CreateOpts to control a new server's network attachments.
NetworkAddressPage abstracts the raw results of making a ListAddressesByNetwork() request against the API.
RebootOpts provides options to the reboot request.
RebuildOpts represents the configuration options used in a server rebuild operation.
RebuildResult is the response from a Rebuild operation.
ResetMetadataResult contains the result of a Reset operation.
ResizeOpts represents the configuration options used to control a Resize operation.
Server represents a server/instance in the OpenStack cloud.
ServerPage abstracts the raw results of making a List() request against the API.
ShowConsoleOutputOpts satisfies the ShowConsoleOutputOptsBuilder.
ShowConsoleOutputResult represents the result of console output from a server.
UpdateMetadataResult contains the result of an Update operation.
UpdateOpts specifies the base attributes that may be updated on an existing server.
UpdateResult is the response from an Update operation.
# Interfaces
CreateImageOptsBuilder allows extensions to add additional parameters to the CreateImage request.
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
ListOptsBuilder allows extensions to add additional parameters to the List request.
MetadatumOptsBuilder allows extensions to add additional parameters to the Create request.
RebootOptsBuilder allows extensions to add additional parameters to the reboot request.
RebuildOptsBuilder allows extensions to provide additional parameters to the rebuild request.
ResetMetadataOptsBuilder allows extensions to add additional parameters to the Reset request.
ResizeOptsBuilder allows extensions to add additional parameters to the resize request.
ShowConsoleOutputOptsBuilder is the interface types must satisfy in order to be used as ShowConsoleOutput options.
UpdateMetadataOptsBuilder allows extensions to add additional parameters to the Create request.
UpdateOptsBuilder allows extensions to add additional attributes to the Update request.
# Type aliases
MetadataOpts is a map that contains key-value pairs.
MetadatumOpts is a map of length one that contains a key-value pair.
Personality is an array of files that are injected into the server at launch.
RebootMethod describes the mechanisms by which a server reboot can be requested.