Documentation
¶
Index ¶
- Variables
- type ActionCreatorFunc
- type Actions
- type EmptyCleanup
- type ServerAction
- type ServerActionNop
- type ServerActionTest
- func (t ServerActionTest) CreateBlankVolume() (*cinder.Volume, error)
- func (t *ServerActionTest) GetRootVolume() (*nova.VolumeAttachment, error)
- func (t ServerActionTest) MakesureServerRunning() error
- func (t *ServerActionTest) RefreshServer() error
- func (t ServerActionTest) ServerId() string
- func (t *ServerActionTest) ServerMustHasNotInterface(portId string) error
- func (t *ServerActionTest) ServerMustHasNotVolume(volumeId string) error
- func (t ServerActionTest) ServerMustNotError() error
- func (t *ServerActionTest) SetConfig(c common.CaseConfig)
- func (t *ServerActionTest) WaitServerTaskFinished(showProgress bool) error
- func (t *ServerActionTest) WaitSnapshotCreated(snapshotId string) error
- func (t *ServerActionTest) WaitVolumeTaskDone(volumeId string) error
- type ServerAttachHotPlug
- type ServerAttachNet
- type ServerAttachPort
- type ServerAttachVolume
- type ServerDetachInterface
- type ServerDetachVolume
- type ServerExtendVolume
- type ServerHardReboot
- type ServerLiveMigrate
- type ServerMigrate
- type ServerPause
- type ServerReboot
- type ServerRebuild
- type ServerRename
- type ServerResize
- type ServerResume
- type ServerRevertToSnapshot
- type ServerSetName
- type ServerShelve
- type ServerSnapshot
- type ServerStart
- type ServerStop
- type ServerSuspend
- type ServerTogglePause
- type ServerToggleShelve
- type ServerToggleSuspend
- type ServerUnpause
- type ServerUnshelve
- type ServerVolumeHotPlug
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ACTION_REBOOT = "reboot" ACTION_HARD_REBOOT = "hard_reboot" ACTION_STOP = "stop" ACTION_START = "start" ACTION_PAUSE = "pause" ACTION_UNPAUSE = "unpause" ACTION_MIGRATE = "migrate" ACTION_LIVE_MIGRATE = "live_migrate" ACTION_SHELVE = "shelve" ACTION_UNSHELVE = "unshelve" ACTION_TOGGLE_SHELVE = "toggle_shelve" ACTION_REBUILD = "rebuild" ACTION_RESIZE = "resize" ACTION_RENAME = "rename" ACTION_SET_NAME = "setname" ACTION_SUSPEND = "suspend" ACTION_RESUME = "resume" ACTION_TOGGLE_SUSPEND = "toggle_suspend" ACTION_ATTACH_NET = "net_attach" ACTION_ATTACH_PORT = "port_attach" ACTION_DETACH_PORT = "port_detach" ACTION_INTERFACE_HOTPLUG = "interface_hotplug" ACTION_ATTACH_VOLUME = "volume_attach" ACTION_DETACH_VOLUME = "volume_detach" ACTION_VOLUME_HOTPLUG = "volume_hotplug" ACTION_VOLUME_EXTEND = "volume_extend" ACTION_REVERT_SYSTEM = "revert_system" ACTION_SYSTEM_SNAPSHOT = "system_snapshot" ACTION_NOP = "nop" )
View Source
var ErrServerHasTask = errors.New("server has task")
View Source
var TEST_FLAVORS = []nova.Flavor{}
View Source
var VALID_ACTIONS = Actions{}
Functions ¶
This section is empty.
Types ¶
type ActionCreatorFunc ¶
type ActionCreatorFunc func(server *nova.Server, client *openstack.Openstack) ServerAction
type EmptyCleanup ¶
type EmptyCleanup struct {
}
func (EmptyCleanup) TearDown ¶
func (t EmptyCleanup) TearDown() error
type ServerAction ¶
type ServerActionNop ¶
type ServerActionNop struct {
ServerActionTest
EmptyCleanup
}
func (*ServerActionNop) Skip ¶
func (t *ServerActionNop) Skip() (bool, string)
func (ServerActionNop) Start ¶
func (t ServerActionNop) Start() error
type ServerActionTest ¶
type ServerActionTest struct {
Server *nova.Server
Client *openstack.Openstack
Config common.CaseConfig
// contains filtered or unexported fields
}
func (ServerActionTest) CreateBlankVolume ¶
func (t ServerActionTest) CreateBlankVolume() (*cinder.Volume, error)
func (*ServerActionTest) GetRootVolume ¶
func (t *ServerActionTest) GetRootVolume() (*nova.VolumeAttachment, error)
func (ServerActionTest) MakesureServerRunning ¶
func (t ServerActionTest) MakesureServerRunning() error
func (*ServerActionTest) RefreshServer ¶
func (t *ServerActionTest) RefreshServer() error
func (ServerActionTest) ServerId ¶
func (t ServerActionTest) ServerId() string
func (*ServerActionTest) ServerMustHasNotInterface ¶
func (t *ServerActionTest) ServerMustHasNotInterface(portId string) error
func (*ServerActionTest) ServerMustHasNotVolume ¶
func (t *ServerActionTest) ServerMustHasNotVolume(volumeId string) error
func (ServerActionTest) ServerMustNotError ¶
func (t ServerActionTest) ServerMustNotError() error
func (*ServerActionTest) SetConfig ¶
func (t *ServerActionTest) SetConfig(c common.CaseConfig)
func (*ServerActionTest) WaitServerTaskFinished ¶
func (t *ServerActionTest) WaitServerTaskFinished(showProgress bool) error
func (*ServerActionTest) WaitSnapshotCreated ¶
func (t *ServerActionTest) WaitSnapshotCreated(snapshotId string) error
func (*ServerActionTest) WaitVolumeTaskDone ¶
func (t *ServerActionTest) WaitVolumeTaskDone(volumeId string) error
type ServerAttachHotPlug ¶
type ServerAttachHotPlug struct {
ServerActionTest
EmptyCleanup
// contains filtered or unexported fields
}
func (*ServerAttachHotPlug) Skip ¶
func (t *ServerAttachHotPlug) Skip() (bool, string)
func (*ServerAttachHotPlug) Start ¶
func (t *ServerAttachHotPlug) Start() error
func (ServerAttachHotPlug) TearDown ¶
func (t ServerAttachHotPlug) TearDown() error
type ServerAttachNet ¶
type ServerAttachNet struct {
ServerActionTest
EmptyCleanup
}
func (ServerAttachNet) Start ¶
func (t ServerAttachNet) Start() error
type ServerAttachPort ¶
type ServerAttachPort struct {
ServerActionTest
EmptyCleanup
}
func (ServerAttachPort) Start ¶
func (t ServerAttachPort) Start() error
type ServerAttachVolume ¶
type ServerAttachVolume struct {
ServerActionTest
EmptyCleanup
}
func (ServerAttachVolume) Start ¶
func (t ServerAttachVolume) Start() error
type ServerDetachInterface ¶
type ServerDetachInterface struct {
ServerActionTest
EmptyCleanup
}
func (ServerDetachInterface) Start ¶
func (t ServerDetachInterface) Start() error
type ServerDetachVolume ¶
type ServerDetachVolume struct {
ServerActionTest
EmptyCleanup
}
func (ServerDetachVolume) Start ¶
func (t ServerDetachVolume) Start() error
type ServerExtendVolume ¶
type ServerExtendVolume struct {
ServerActionTest
EmptyCleanup
}
func (ServerExtendVolume) Start ¶
func (t ServerExtendVolume) Start() error
type ServerHardReboot ¶
type ServerHardReboot struct {
ServerActionTest
EmptyCleanup
}
func (ServerHardReboot) Start ¶
func (t ServerHardReboot) Start() error
type ServerLiveMigrate ¶
type ServerLiveMigrate struct {
ServerActionTest
EmptyCleanup
// contains filtered or unexported fields
}
func (ServerLiveMigrate) Skip ¶
func (t ServerLiveMigrate) Skip() (bool, string)
func (*ServerLiveMigrate) Start ¶
func (t *ServerLiveMigrate) Start() error
func (ServerLiveMigrate) TearDown ¶
func (t ServerLiveMigrate) TearDown() error
type ServerMigrate ¶
type ServerMigrate struct {
ServerActionTest
EmptyCleanup
}
func (ServerMigrate) Start ¶
func (t ServerMigrate) Start() error
type ServerPause ¶
type ServerPause struct {
ServerActionTest
EmptyCleanup
}
func (*ServerPause) Skip ¶
func (t *ServerPause) Skip() (bool, string)
func (ServerPause) Start ¶
func (t ServerPause) Start() error
type ServerReboot ¶
type ServerReboot struct {
ServerActionTest
EmptyCleanup
}
func (*ServerReboot) Skip ¶
func (t *ServerReboot) Skip() (bool, string)
func (ServerReboot) Start ¶
func (t ServerReboot) Start() error
type ServerRebuild ¶
type ServerRebuild struct {
ServerActionTest
EmptyCleanup
}
func (ServerRebuild) Start ¶
func (t ServerRebuild) Start() error
type ServerRename ¶
type ServerRename struct {
ServerActionTest
EmptyCleanup
}
func (*ServerRename) Skip ¶
func (t *ServerRename) Skip() (bool, string)
func (ServerRename) Start ¶
func (t ServerRename) Start() error
type ServerResize ¶
type ServerResize struct {
ServerActionTest
EmptyCleanup
}
func (ServerResize) Start ¶
func (t ServerResize) Start() error
type ServerResume ¶
type ServerResume struct {
ServerActionTest
EmptyCleanup
}
func (*ServerResume) Skip ¶
func (t *ServerResume) Skip() (bool, string)
func (ServerResume) Start ¶
func (t ServerResume) Start() error
type ServerRevertToSnapshot ¶
type ServerRevertToSnapshot struct {
ServerActionTest
EmptyCleanup
// contains filtered or unexported fields
}
func (*ServerRevertToSnapshot) Start ¶
func (t *ServerRevertToSnapshot) Start() error
func (ServerRevertToSnapshot) TearDown ¶
func (t ServerRevertToSnapshot) TearDown() error
type ServerSetName ¶
type ServerSetName struct {
ServerActionTest
EmptyCleanup
}
func (*ServerSetName) Skip ¶
func (t *ServerSetName) Skip() (bool, string)
func (ServerSetName) Start ¶
func (t ServerSetName) Start() error
type ServerShelve ¶
type ServerShelve struct {
ServerActionTest
EmptyCleanup
}
func (*ServerShelve) Skip ¶
func (t *ServerShelve) Skip() (bool, string)
func (ServerShelve) Start ¶
func (t ServerShelve) Start() error
type ServerSnapshot ¶
type ServerSnapshot struct {
ServerActionTest
EmptyCleanup
// contains filtered or unexported fields
}
func (*ServerSnapshot) Start ¶
func (t *ServerSnapshot) Start() error
func (ServerSnapshot) TearDown ¶
func (t ServerSnapshot) TearDown() error
type ServerStart ¶
type ServerStart struct {
ServerActionTest
EmptyCleanup
}
func (ServerStart) Skip ¶
func (t ServerStart) Skip() (bool, string)
func (ServerStart) Start ¶
func (t ServerStart) Start() error
type ServerStop ¶
type ServerStop struct {
ServerActionTest
EmptyCleanup
}
func (ServerStop) Skip ¶
func (t ServerStop) Skip() (bool, string)
func (ServerStop) Start ¶
func (t ServerStop) Start() error
type ServerSuspend ¶
type ServerSuspend struct {
ServerActionTest
EmptyCleanup
}
func (ServerSuspend) Start ¶
func (t ServerSuspend) Start() error
type ServerTogglePause ¶
type ServerTogglePause struct{ ServerActionTest }
func (ServerTogglePause) Start ¶
func (t ServerTogglePause) Start() error
type ServerToggleShelve ¶
type ServerToggleShelve struct {
ServerActionTest
EmptyCleanup
}
func (ServerToggleShelve) Start ¶
func (t ServerToggleShelve) Start() error
type ServerToggleSuspend ¶
type ServerToggleSuspend struct {
ServerActionTest
EmptyCleanup
}
func (ServerToggleSuspend) Start ¶
func (t ServerToggleSuspend) Start() error
type ServerUnpause ¶
type ServerUnpause struct {
ServerActionTest
EmptyCleanup
}
func (*ServerUnpause) Skip ¶
func (t *ServerUnpause) Skip() (bool, string)
func (ServerUnpause) Start ¶
func (t ServerUnpause) Start() error
type ServerUnshelve ¶
type ServerUnshelve struct {
ServerActionTest
EmptyCleanup
}
func (*ServerUnshelve) Skip ¶
func (t *ServerUnshelve) Skip() (bool, string)
func (ServerUnshelve) Start ¶
func (t ServerUnshelve) Start() error
type ServerVolumeHotPlug ¶
type ServerVolumeHotPlug struct {
ServerActionTest
EmptyCleanup
// contains filtered or unexported fields
}
func (*ServerVolumeHotPlug) Start ¶
func (t *ServerVolumeHotPlug) Start() error
func (ServerVolumeHotPlug) TearDown ¶
func (t ServerVolumeHotPlug) TearDown() error
Click to show internal directories.
Click to hide internal directories.