gophercloud: github.com/rackspace/gophercloud/openstack/compute/v2/extensions/adminactions Index | Files

package adminactions

import "github.com/rackspace/gophercloud/openstack/compute/v2/extensions/adminactions"

Package provides access to the "Admin Actions" of the Compute API, including migrations, live-migrations, reset-state, etc.

Index

Package Files

doc.go requests.go

func CreateBackup Uses

func CreateBackup(client *gophercloud.ServiceClient, id string, opts CreateBackupOpts) gophercloud.ErrResult

ResetNetwork is the admin operation to create a backup of a Compute Server.

func InjectNetworkInfo Uses

func InjectNetworkInfo(client *gophercloud.ServiceClient, id string) gophercloud.ErrResult

InjectNetworkInfo is the admin operation which injects network info into a Compute Server.

func LiveMigrate Uses

func LiveMigrate(client *gophercloud.ServiceClient, id string, opts LiveMigrateOpts) gophercloud.ErrResult

ResetNetwork is the admin operation to reset the network on a Compute Server.

func Migrate Uses

func Migrate(client *gophercloud.ServiceClient, id string) gophercloud.ErrResult

Migrate is the admin operation to migrate a Compute Server.

func ResetNetwork Uses

func ResetNetwork(client *gophercloud.ServiceClient, id string) gophercloud.ErrResult

ResetNetwork is the admin operation to reset the network on a Compute Server.

func ResetState Uses

func ResetState(client *gophercloud.ServiceClient, id string, state string) gophercloud.ErrResult

ResetState is the admin operation to reset the state of a server.

type CreateBackupOpts Uses

type CreateBackupOpts struct {
    // Name: required, name of the backup.
    Name string

    // BackupType: required, type of the backup, such as "daily".
    BackupType string

    // Rotation: the number of backups to retain.
    Rotation int
}

func (CreateBackupOpts) ToCreateBackupMap Uses

func (opts CreateBackupOpts) ToCreateBackupMap() (map[string]interface{}, error)

ToBackupCreateMap assembles a request body based on the contents of a CreateOpts.

type LiveMigrateOpts Uses

type LiveMigrateOpts struct {
    // Host: optional, If you omit this parameter, the scheduler chooses a host.
    Host string

    // BlockMigration:  defaults to false. Set to true to migrate local disks
    // by using block migration. If the source or destination host uses shared storage
    // and you set this value to true, the live migration fails.
    BlockMigration bool

    //DiskOverCommit: defaults to false. Set to true to enable over commit when the
    // destination host is checked for available disk space.
    DiskOverCommit bool
}

func (LiveMigrateOpts) ToLiveMigrateMap Uses

func (opts LiveMigrateOpts) ToLiveMigrateMap() (map[string]interface{}, error)

ToServerCreateMap assembles a request body based on the contents of a CreateOpts.

Package adminactions imports 2 packages (graph). Updated 2016-07-23. Refresh now. Tools for package owners.