ServerTools

package
v0.0.0-...-c2194a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachNetworkToOpts

func AttachNetworkToOpts(opts *servers.CreateOpts, n []networks.Network)

func AttachVolume

func AttachVolume(client *gophercloud.ServiceClient, volume *volumes.Volume, server *servers.Server)

func CreateServer

func CreateServer(client *gophercloud.ServiceClient, serverName, imageName, flavorName string, n []networks.Network) *servers.Server

func CreateServerWithOptions

func CreateServerWithOptions(client *gophercloud.ServiceClient, opts servers.CreateOpts) *servers.Server

func CreateVolume

func CreateVolume(client *gophercloud.ServiceClient, volumeName string) *volumes.Volume

func DeleteServer

func DeleteServer(client *gophercloud.ServiceClient, serverId string)

func FindServerByExactName

func FindServerByExactName(client *gophercloud.ServiceClient, name string) (servers.Server, error)

FindServerByExactName will search the current tenant for servers matching that name, if more than one server is found an error will be returned to indicate that no unique server could be retrieved. (searching by ID would be required)

func FindServersByName

func FindServersByName(client *gophercloud.ServiceClient, name string) []servers.Server

func GetAllServers

func GetAllServers(client *gophercloud.ServiceClient) []servers.Server

func GetBlockStorageClient

func GetBlockStorageClient() *gophercloud.ServiceClient

func GetOSClient

func GetOSClient() *gophercloud.ServiceClient

func ListAllKeypairs

func ListAllKeypairs(client *gophercloud.ServiceClient)

func ListServersInCurrentTenant

func ListServersInCurrentTenant(client *gophercloud.ServiceClient, t string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL