cmd

package
v0.0.0-...-850ae45 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DEBUG_ARGS = 0
View Source
const DESTROY_ARGS = 0
View Source
const DOWNLOAD_ARGS = 0
View Source
const IMPORT_ARGS = 1
View Source
const RESUME_ARGS = 0
View Source
const SSH_ARGS = 0
View Source
const START_ARGS = 0
View Source
const STATUS_ARGS = 0
View Source
const STOP_ARGS = 0
View Source
const SUSPEND_ARGS = 0
View Source
const TARGET_ARGS = 0
View Source
const TRUST_ARGS = 0
View Source
const UNTRUST_ARGS = 0
View Source
const VERSION_ARGS = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoCmd

type AutoCmd interface {
	Run() error
}

type AutoTrustCmd

type AutoTrustCmd struct {
	VMBuilder VMBuilder
	VBox      VBox
	Config    *config.Config
}

func (*AutoTrustCmd) Run

func (t *AutoTrustCmd) Run() error

type Builder

type Builder struct {
	Client            Client
	Config            *config.Config
	DownloaderFactory DownloaderFactory
	EULAUI            EULAUI
	FS                FS
	UI                UI
	VBox              VBox
	VMBuilder         VMBuilder
}

func (*Builder) Cmd

func (b *Builder) Cmd(subcommand string) (Cmd, error)

type CertStore

type CertStore interface {
	Unstore() error
}

type Client

type Client interface {
	AcceptEULA() error
	IsEULAAccepted() (bool, error)
	GetEULA() (eula string, err error)
}

type Cmd

type Cmd interface {
	Parse([]string) error
	Run() error
}

type DebugCmd

type DebugCmd struct {
	VBox      VBox
	VMBuilder VMBuilder
	Config    *config.Config
}

func (*DebugCmd) Parse

func (d *DebugCmd) Parse(args []string) error

func (*DebugCmd) Run

func (d *DebugCmd) Run() error

type DestroyCmd

type DestroyCmd struct {
	VBox       VBox
	UI         UI
	FS         FS
	UntrustCmd Cmd
	Config     *config.Config
}

func (*DestroyCmd) Parse

func (d *DestroyCmd) Parse(args []string) error

func (*DestroyCmd) Run

func (d *DestroyCmd) Run() error

type DestroyVMError

type DestroyVMError struct {
	Err error
}

func (*DestroyVMError) Error

func (e *DestroyVMError) Error() string

type DownloadCmd

type DownloadCmd struct {
	VBox              VBox
	UI                UI
	EULAUI            EULAUI
	Client            Client
	DownloaderFactory DownloaderFactory
	FS                FS
	Config            *config.Config
}

func (*DownloadCmd) Parse

func (d *DownloadCmd) Parse(args []string) error

func (*DownloadCmd) Run

func (d *DownloadCmd) Run() error

type Downloader

type Downloader interface {
	IsOVACurrent() (bool, error)
	Download() error
}

type DownloaderFactory

type DownloaderFactory interface {
	Create() (downloader downloader.Downloader, err error)
}

type EULARefusedError

type EULARefusedError struct{}

func (*EULARefusedError) Error

func (e *EULARefusedError) Error() string

type EULAUI

type EULAUI interface {
	ConfirmText(string) bool
	Init() error
	Close() error
}

type FS

type FS interface {
	Write(path string, contents io.Reader, append bool) error
	Copy(source string, destination string) error
	Exists(path string) (exists bool, err error)
	MD5(path string) (md5 string, err error)
	Read(path string) (contents []byte, err error)
	Remove(path string) error
	TempDir() (string, error)
}

type ImportCmd

type ImportCmd struct {
	OVAPath           string
	DownloaderFactory DownloaderFactory
	UI                UI
	Config            *config.Config
	FS                FS
}

func (*ImportCmd) Parse

func (i *ImportCmd) Parse(args []string) error

func (*ImportCmd) Run

func (i *ImportCmd) Run() error

type OldDriverError

type OldDriverError struct{}

func (*OldDriverError) Error

func (e *OldDriverError) Error() string

type OldVMError

type OldVMError struct{}

func (*OldVMError) Error

func (e *OldVMError) Error() string

type ResumeCmd

type ResumeCmd struct {
	VBox      VBox
	VMBuilder VMBuilder
	Config    *config.Config
}

func (*ResumeCmd) Parse

func (r *ResumeCmd) Parse(args []string) error

func (*ResumeCmd) Run

func (r *ResumeCmd) Run() error

type SSHCmd

type SSHCmd struct {
	VMBuilder VMBuilder
	VBox      VBox
	Config    *config.Config
}

func (*SSHCmd) Parse

func (s *SSHCmd) Parse(args []string) error

func (*SSHCmd) Run

func (s *SSHCmd) Run() error

type StartCmd

type StartCmd struct {
	Opts         *vm.StartOpts
	VBox         VBox
	VMBuilder    VMBuilder
	Config       *config.Config
	AutoTrustCmd AutoCmd
	DownloadCmd  Cmd
	TargetCmd    Cmd
	UI           UI
	// contains filtered or unexported fields
}

func (*StartCmd) Parse

func (s *StartCmd) Parse(args []string) error

func (*StartCmd) Run

func (s *StartCmd) Run() error

type StatusCmd

type StatusCmd struct {
	VBox      VBox
	VMBuilder VMBuilder
	Config    *config.Config
	UI        UI
}

func (*StatusCmd) Parse

func (s *StatusCmd) Parse(args []string) error

func (*StatusCmd) Run

func (s *StatusCmd) Run() error

type StopCmd

type StopCmd struct {
	VBox      VBox
	VMBuilder VMBuilder
	Config    *config.Config
}

func (*StopCmd) Parse

func (s *StopCmd) Parse(args []string) error

func (*StopCmd) Run

func (s *StopCmd) Run() error

type SuspendCmd

type SuspendCmd struct {
	VBox      VBox
	VMBuilder VMBuilder
	Config    *config.Config
}

func (*SuspendCmd) Parse

func (s *SuspendCmd) Parse(args []string) error

func (*SuspendCmd) Run

func (s *SuspendCmd) Run() error

type TargetCmd

type TargetCmd struct {
	VMBuilder  VMBuilder
	VBox       VBox
	Config     *config.Config
	AutoTarget bool
}

func (*TargetCmd) Parse

func (t *TargetCmd) Parse(args []string) error

func (*TargetCmd) Run

func (t *TargetCmd) Run() error

type TrustCmd

type TrustCmd struct {
	Opts      *vm.StartOpts
	VMBuilder VMBuilder
	VBox      VBox
	Config    *config.Config
	// contains filtered or unexported fields
}

func (*TrustCmd) Parse

func (t *TrustCmd) Parse(args []string) error

func (*TrustCmd) Run

func (t *TrustCmd) Run() error

type UI

type UI interface {
	AskForPassword(string) string
	Say(message string, args ...interface{})
	Confirm(message string) bool
}

type UntrustCmd

type UntrustCmd struct {
	CertStore CertStore
}

func (*UntrustCmd) Parse

func (u *UntrustCmd) Parse(args []string) error

func (*UntrustCmd) Run

func (u *UntrustCmd) Run() error

type VBox

type VBox interface {
	GetVMName() (name string, err error)
	VMConfig(vmName string) (vmConfig *config.VMConfig, err error)
	DestroyPCFDevVMs() (err error)
	Version() (version *vboxdriver.VBoxDriverVersion, err error)
}

type VMBuilder

type VMBuilder interface {
	VM(name string) (vm vm.VM, err error)
}

type VersionCmd

type VersionCmd struct {
	Config *config.Config
	UI     UI
}

func (*VersionCmd) Parse

func (v *VersionCmd) Parse(args []string) error

func (*VersionCmd) Run

func (v *VersionCmd) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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