compute

package
v0.0.0-...-2acabb3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(provider *gophercloud.ProviderClient, endpointOpts gophercloud.EndpointOpts, cfg *config.OpenStack) (*Client, error)

func (*Client) Base

func (c *Client) Base() *gophercloud.ServiceClient

func (*Client) CreateServer

func (c *Client) CreateServer(createOpts servers.CreateOpts, createWithBootVolume bool) (*_servers.Server, error)

func (*Client) DeleteServer

func (c *Client) DeleteServer(serverID string) error

func (*Client) GetServer

func (c *Client) GetServer(serverID string) (*_servers.Server, error)

func (*Client) ListServers

func (c *Client) ListServers(listOpts servers.ListOpts) ([]_servers.Server, error)

func (*Client) RestartServer

func (c *Client) RestartServer(serverID string) error

func (*Client) RestoreServer

func (c *Client) RestoreServer(createOpts servers.CreateOpts, bootVolumeId string) (string, error)

func (*Client) SetMicroVersion

func (c *Client) SetMicroVersion(microVersion string)

func (*Client) StartServer

func (c *Client) StartServer(serverID string) error

func (*Client) StopServer

func (c *Client) StopServer(serverID string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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