Documentation
¶
Index ¶
- type Action
- func Chain(actions ...Action) Action
- func CopyInstanceFile(name string, instanceFile string, outputFile string) Action
- func DeleteInstance(name string) Action
- func ExecInstance(name string, bashScript string, args ...string) Action
- func ExportImage(imageAliasName string, outputFile string) Action
- func LaunchInstance(name string, launchOpts *lxc.LaunchOptions) Action
- func PublishImage(instanceName string, imageAliasName string, info PublishImageInfo) Action
- func StopInstance(name string) Action
- func Wait(duration time.Duration) Action
- type PublishImageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
func CopyInstanceFile ¶
CopyInstanceFile is an Action that copies the contents of an instance file on the local disk.
func DeleteInstance ¶
DeleteInstance is an Action that deletes the instance with specified name.
func ExecInstance ¶
ExecInstance is an Action that executes a bash script on the instance, with an optional list of arguments.
func ExportImage ¶
ExportImage is an Action that downloads a unified image tarball and saves to a local file.
func LaunchInstance ¶
func LaunchInstance(name string, launchOpts *lxc.LaunchOptions) Action
LaunchInstance is an Action that launches an instance and waits for its agent to come up.
func PublishImage ¶
func PublishImage(instanceName string, imageAliasName string, info PublishImageInfo) Action
PublishImage is an Action that publishes an image from an existing instance.
func StopInstance ¶
StopInstance is an Action that stops the instance with specified name.
Click to show internal directories.
Click to hide internal directories.