client

package
v0.0.0-...-d03f5eb Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, instanceName string) error

Connect opens a shell to the VM via

func Copy

func Copy(ctx context.Context, instanceName string, recurse, host bool, src, dest string) error

Copy copies files between the host and the guest using scp

func Create

func Create(ctx context.Context, instanceName, workloadName string, debug bool, update bool, customSpec *types.VMSpec) error

Create sets up the VM

func Delete

func Delete(ctx context.Context, instanceName string) error

Delete the VM

func Instances

func Instances(ctx context.Context) error

Instances provides information about all of the current instances

func Quit

func Quit(ctx context.Context, instanceName string) error

Quit forceably kills VM

func Run

func Run(ctx context.Context, instanceName, command string) error

Run connects to the VM via SSH and runs the desired command

func Setup

func Setup(ctx context.Context) error

Setup Installs dependencies

func Start

func Start(ctx context.Context, instanceName string, customSpec *types.VMSpec) error

Start launches the VM

func Status

func Status(ctx context.Context, instanceName string) error

Status prints out VM information

func Stop

func Stop(ctx context.Context, instanceName string) error

Stop requests the VM shuts down cleanly

func Teardown

func Teardown(ctx context.Context) error

Teardown disables the ccloudvm service and deletes all existing instances

Types

This section is empty.

Jump to

Keyboard shortcuts

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