run

package
v0.5.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: Apache-2.0 Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(ao *attachOptions) error

func Create

func Create(co *createOptions) error

func Exec added in v0.5.0

func Exec(eo *execOptions) error

func Images

func Images(io *imagesOptions) error

func ImportImage

func ImportImage(source string) (*api.Image, error)

func ImportKernel

func ImportKernel(source string) (*api.Kernel, error)

func Inspect added in v0.4.0

func Inspect(io *inspectOptions) error

func Kernels

func Kernels(ko *kernelsOptions) error

func Logs

func Logs(lo *logsOptions) error

func NewAttachOptions added in v0.3.0

func NewAttachOptions(vmMatch string) (ao *attachOptions, err error)

func NewImagesOptions added in v0.3.0

func NewImagesOptions() (io *imagesOptions, err error)

func NewKernelsOptions added in v0.3.0

func NewKernelsOptions() (ko *kernelsOptions, err error)

func NewLogsOptions added in v0.3.0

func NewLogsOptions(vmMatch string) (lo *logsOptions, err error)

func Ps

func Ps(po *psOptions) error

func Rm

func Rm(ro *rmOptions) error

func Rmi

func Rmi(ro *rmiOptions) error

func Rmk

func Rmk(ro *rmkOptions) error

func Run

func Run(ro *runOptions) error

func SSH added in v0.3.0

func SSH(so *sshOptions) error

func Start

func Start(so *startOptions) error

func Stop

func Stop(so *stopOptions) error

Types

type CreateFlags added in v0.3.0

type CreateFlags struct {
	PortMappings []string
	CopyFiles    []string
	// This is a placeholder value here for now.
	// If it was set using flags, it will be copied over to
	// the API type. TODO: When we later have internal types
	// this can go away
	SSH        api.SSH
	ConfigFile string
	VM         *api.VM
}

func NewCreateFlags added in v0.4.0

func NewCreateFlags() *CreateFlags

func (*CreateFlags) NewCreateOptions added in v0.3.0

func (cf *CreateFlags) NewCreateOptions(args []string) (*createOptions, error)

type ExecFlags added in v0.5.0

type ExecFlags struct {
	Timeout      uint32
	IdentityFile string
}

func (*ExecFlags) NewExecOptions added in v0.5.0

func (ef *ExecFlags) NewExecOptions(vmMatch string, command ...string) (eo *execOptions, err error)

type InspectFlags added in v0.4.0

type InspectFlags struct {
	OutputFormat string
}

func (*InspectFlags) NewInspectOptions added in v0.4.0

func (i *InspectFlags) NewInspectOptions(k, objectMatch string) (*inspectOptions, error)

type PsFlags added in v0.3.0

type PsFlags struct {
	All bool
}

func (*PsFlags) NewPsOptions added in v0.3.0

func (pf *PsFlags) NewPsOptions() (po *psOptions, err error)

type RmFlags added in v0.3.0

type RmFlags struct {
	Force bool
}

func (*RmFlags) NewRmOptions added in v0.3.0

func (rf *RmFlags) NewRmOptions(vmMatches []string) (ro *rmOptions, err error)

type RmiFlags added in v0.3.0

type RmiFlags struct {
	Force bool
}

func (*RmiFlags) NewRmiOptions added in v0.3.0

func (rf *RmiFlags) NewRmiOptions(imageMatches []string) (*rmiOptions, error)

type RmkFlags added in v0.3.0

type RmkFlags struct {
	Force bool
}

func (*RmkFlags) NewRmkOptions added in v0.3.0

func (rf *RmkFlags) NewRmkOptions(kernelMatches []string) (*rmkOptions, error)

type RunFlags added in v0.3.0

type RunFlags struct {
	*CreateFlags
	*StartFlags
}

func (*RunFlags) NewRunOptions added in v0.3.0

func (rf *RunFlags) NewRunOptions(args []string) (*runOptions, error)

type SSHFlags added in v0.3.0

type SSHFlags struct {
	Timeout      uint32
	IdentityFile string
}

func (*SSHFlags) NewSSHOptions added in v0.3.0

func (sf *SSHFlags) NewSSHOptions(vmMatch string) (so *sshOptions, err error)

type StartFlags added in v0.3.0

type StartFlags struct {
	Interactive bool
	Debug       bool
}

func (*StartFlags) NewStartOptions added in v0.3.0

func (sf *StartFlags) NewStartOptions(vmMatch string) (*startOptions, error)

type StopFlags added in v0.3.0

type StopFlags struct {
	Kill bool
}

func (*StopFlags) NewStopOptions added in v0.3.0

func (sf *StopFlags) NewStopOptions(vmMatches []string) (so *stopOptions, err error)

Jump to

Keyboard shortcuts

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