Help us shape the future of Go! Take the 2026 Go Developer Survey

pauseunpause

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pauseunpause provides functionality to pause and unpause servers that have been provisioned by the OpenStack Compute service.

Example to Pause and Unpause a Server

serverID := "32c8baf7-1cdb-4cc2-bc31-c3a55b89f56b"
err := pauseunpause.Pause(computeClient, serverID).ExtractErr()
if err != nil {
	panic(err)
}

err = pauseunpause.Unpause(computeClient, serverID).ExtractErr()
if err != nil {
	panic(err)
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PauseResult

type PauseResult struct {
	gophercloud.ErrResult
}

PauseResult is the response from a Pause operation. Call its ExtractErr method to determine if the request succeeded or failed.

func Pause

func Pause(client *gophercloud.ServiceClient, id string) (r PauseResult)

Pause is the operation responsible for pausing a Compute server.

type UnpauseResult

type UnpauseResult struct {
	gophercloud.ErrResult
}

UnpauseResult is the response from an Unpause operation. Call its ExtractErr method to determine if the request succeeded or failed.

func Unpause

func Unpause(client *gophercloud.ServiceClient, id string) (r UnpauseResult)

Unpause is the operation responsible for unpausing a Compute server.

Directories

Path Synopsis
pauseunpause unit tests
pauseunpause unit tests

Jump to

Keyboard shortcuts

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