rackspacecompute

package
v0.0.0-...-4f62784 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloudserver

type Cloudserver struct {
	Name      string `json:"name"`
	ImageRef  string `json:"imageRef"`
	FlavorRef string `json:"flavorRef"`
}

Cloudserver represents a node of cloud server on rackspace

type Rackspacecompute

type Rackspacecompute struct {
	Server Cloudserver `json:"server"`
}

Rackspacecompute represents a request to create a Rackspace compute instance.

func (*Rackspacecompute) CreateNode

func (rackspacecompute *Rackspacecompute) CreateNode(request interface{}) (resp interface{}, err error)

CreateNode function creates a new rackspacecompute instance.

func (*Rackspacecompute) DeleteNode

func (rackspacecompute *Rackspacecompute) DeleteNode(request interface{}) (resp interface{}, err error)

DeleteNode function deletes a rackspacecompute instance.

func (*Rackspacecompute) RebootNode

func (rackspacecompute *Rackspacecompute) RebootNode(request interface{}) (resp interface{}, err error)

RebootNode function reboots a rackspacecompute instance.

func (*Rackspacecompute) StartNode

func (rackspacecompute *Rackspacecompute) StartNode(request interface{}) (resp interface{}, err error)

StartNode function starts a rackspacecompute instance.

func (*Rackspacecompute) StopNode

func (rackspacecompute *Rackspacecompute) StopNode(request interface{}) (resp interface{}, err error)

StopNode function stops a rackspacecompute instance.

Jump to

Keyboard shortcuts

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