cloudservers

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionResult

type ActionResult struct {
	gophercloud.ErrResult
}

ActionResult represents the result of server action operations, like reboot. Call its ExtractErr method to determine if the action succeeded or failed.

func ResetPassword

func ResetPassword(client *gophercloud.ServiceClient, serverID, newPassword string) (r ActionResult)

type ChangeOpts

type ChangeOpts struct {
	AdminPass string    `json:"adminpass,omitempty"`
	KeyName   string    `json:"keyname,omitempty"`
	UserID    string    `json:"userid,omitempty"`
	ImageID   string    `json:"imageid" required:"true"`
	MetaData  *MetaData `json:"metadata,omitempty"`
}

func (ChangeOpts) ToServerChangeMap

func (opts ChangeOpts) ToServerChangeMap() (map[string]interface{}, error)

type ChangeOptsBuilder

type ChangeOptsBuilder interface {
	// Returns value that can be passed to json.Marshal
	ToServerChangeMap() (map[string]interface{}, error)
}

type ChangeResult

type ChangeResult struct {
	gophercloud.Result
}

func ChangeOS

func ChangeOS(client *gophercloud.ServiceClient, serverID string, opts ChangeOptsBuilder) (r ChangeResult)

func (ChangeResult) ExtractJob

func (r ChangeResult) ExtractJob() (*Job, error)

type Job

type Job struct {
	ID string `json:"job_id"`
}

type MetaData

type MetaData struct {
	UserData string `json:"user_data,omitempty"`
}

Jump to

Keyboard shortcuts

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