Documentation ¶
Index ¶
- type Builder
- type CertStore
- type Client
- type CmdRunner
- type DestroyVMError
- type Driver
- type FS
- type FetchLogsError
- type HelpText
- type ImportVMError
- type Invalid
- func (i *Invalid) GetDebugLogs() error
- func (i *Invalid) Provision(opts *StartOpts) error
- func (i *Invalid) Resume() error
- func (i *Invalid) SSH() error
- func (i *Invalid) Start(opts *StartOpts) error
- func (i *Invalid) Status() string
- func (i *Invalid) Stop() error
- func (i *Invalid) Suspend() error
- func (i *Invalid) Target(autoTarget bool) error
- func (i *Invalid) Trust(startOps *StartOpts) error
- func (i *Invalid) VerifyStartOpts(opts *StartOpts) error
- type LogFetcher
- type Network
- type NotCreated
- func (n *NotCreated) GetDebugLogs() error
- func (n *NotCreated) Provision(opts *StartOpts) error
- func (n *NotCreated) Resume() error
- func (n *NotCreated) SSH() error
- func (n *NotCreated) Start(opts *StartOpts) error
- func (n *NotCreated) Status() string
- func (n *NotCreated) Stop() error
- func (n *NotCreated) Suspend() error
- func (n *NotCreated) Target(autoTarget bool) error
- func (n *NotCreated) Trust(startOps *StartOpts) error
- func (n *NotCreated) VerifyStartOpts(opts *StartOpts) error
- type Paused
- func (p *Paused) GetDebugLogs() error
- func (p *Paused) Provision(opts *StartOpts) error
- func (p *Paused) Resume() error
- func (p *Paused) SSH() error
- func (p *Paused) Start(opts *StartOpts) error
- func (p *Paused) Status() string
- func (p *Paused) Stop() error
- func (p *Paused) Suspend() error
- func (p *Paused) Target(autoTarget bool) error
- func (p *Paused) Trust(startOps *StartOpts) error
- func (p *Paused) VerifyStartOpts(opts *StartOpts) error
- type ProvisionVMError
- type ResumeVMError
- type Running
- func (r *Running) GetDebugLogs() error
- func (r *Running) Provision(opts *StartOpts) error
- func (r *Running) Resume() error
- func (r *Running) SSH() error
- func (r *Running) Start(opts *StartOpts) error
- func (r *Running) Status() string
- func (r *Running) Stop() error
- func (r *Running) Suspend() error
- func (r *Running) Target(autoTarget bool) error
- func (r *Running) Trust(startOpts *StartOpts) error
- func (r *Running) VerifyStartOpts(opts *StartOpts) error
- type SSH
- type Saved
- func (s *Saved) GetDebugLogs() error
- func (s *Saved) Provision(opts *StartOpts) error
- func (s *Saved) Resume() error
- func (s *Saved) SSH() error
- func (s *Saved) Start(opts *StartOpts) error
- func (s *Saved) Status() string
- func (s *Saved) Stop() error
- func (s *Saved) Suspend() error
- func (s *Saved) Target(autoTarget bool) error
- func (s *Saved) Trust(startOps *StartOpts) error
- func (s *Saved) VerifyStartOpts(opts *StartOpts) error
- type StartOpts
- type StartVMError
- type StopVMError
- type Stopped
- func (s *Stopped) GetDebugLogs() error
- func (s *Stopped) Provision(opts *StartOpts) error
- func (s *Stopped) Resume() error
- func (s *Stopped) SSH() error
- func (s *Stopped) Start(opts *StartOpts) error
- func (s *Stopped) Status() string
- func (s *Stopped) Stop() error
- func (s *Stopped) Suspend() error
- func (s *Stopped) Target(autoTarget bool) error
- func (s *Stopped) Trust(startOps *StartOpts) error
- func (s *Stopped) VerifyStartOpts(opts *StartOpts) error
- type SuspendVMError
- type TargetError
- type TrustError
- type UI
- type Unprovisioned
- func (u *Unprovisioned) GetDebugLogs() error
- func (u *Unprovisioned) Provision(opts *StartOpts) error
- func (u *Unprovisioned) Resume() error
- func (u *Unprovisioned) SSH() error
- func (u *Unprovisioned) Start(opts *StartOpts) error
- func (u *Unprovisioned) Status() string
- func (u *Unprovisioned) Stop() error
- func (u *Unprovisioned) Suspend() error
- func (u *Unprovisioned) Target(autoTarget bool) error
- func (u *Unprovisioned) Trust(startOps *StartOpts) error
- func (u *Unprovisioned) VerifyStartOpts(opts *StartOpts) error
- type VBox
- type VBoxBuilder
- type VM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestroyVMError ¶
type DestroyVMError struct {
Err error
}
func (*DestroyVMError) Error ¶
func (e *DestroyVMError) Error() string
type FetchLogsError ¶
type FetchLogsError struct {
Err error
}
func (*FetchLogsError) Error ¶
func (e *FetchLogsError) Error() string
type ImportVMError ¶
type ImportVMError struct {
Err error
}
func (*ImportVMError) Error ¶
func (e *ImportVMError) Error() string
type Invalid ¶
type Invalid struct {
Err error
}
func (*Invalid) GetDebugLogs ¶
func (*Invalid) VerifyStartOpts ¶
type LogFetcher ¶
type LogFetcher interface {
FetchLogs() error
}
type NotCreated ¶
type NotCreated struct { VBox VBox UI UI Builder Builder Config *config.Config VMConfig *config.VMConfig FS FS Network Network }
func (*NotCreated) GetDebugLogs ¶
func (n *NotCreated) GetDebugLogs() error
func (*NotCreated) Provision ¶
func (n *NotCreated) Provision(opts *StartOpts) error
func (*NotCreated) Resume ¶
func (n *NotCreated) Resume() error
func (*NotCreated) SSH ¶
func (n *NotCreated) SSH() error
func (*NotCreated) Start ¶
func (n *NotCreated) Start(opts *StartOpts) error
func (*NotCreated) Status ¶
func (n *NotCreated) Status() string
func (*NotCreated) Stop ¶
func (n *NotCreated) Stop() error
func (*NotCreated) Suspend ¶
func (n *NotCreated) Suspend() error
func (*NotCreated) Target ¶
func (n *NotCreated) Target(autoTarget bool) error
func (*NotCreated) Trust ¶
func (n *NotCreated) Trust(startOps *StartOpts) error
func (*NotCreated) VerifyStartOpts ¶
func (n *NotCreated) VerifyStartOpts(opts *StartOpts) error
type Paused ¶
type Paused struct { VMConfig *config.VMConfig Config *config.Config UI UI VBox VBox SSHClient SSH FS FS }
func (*Paused) GetDebugLogs ¶
func (*Paused) VerifyStartOpts ¶
type ProvisionVMError ¶
type ProvisionVMError struct {
Err error
}
func (*ProvisionVMError) Error ¶
func (e *ProvisionVMError) Error() string
type ResumeVMError ¶
type ResumeVMError struct {
Err error
}
func (*ResumeVMError) Error ¶
func (e *ResumeVMError) Error() string
type Running ¶
type Running struct { Config *config.Config VMConfig *config.VMConfig VBox VBox FS FS UI UI SSHClient SSH Builder Builder LogFetcher LogFetcher CertStore CertStore CmdRunner CmdRunner HelpText HelpText }
func (*Running) GetDebugLogs ¶
func (*Running) VerifyStartOpts ¶
type SSH ¶
type SSH interface { GenerateAddress() (host string, port string, err error) StartSSHSession(addresses []ssh.SSHAddress, privateKey []byte, timeout time.Duration, stdin io.Reader, stdout io.Writer, stderr io.Writer) error WaitForSSH(addresses []ssh.SSHAddress, privateKey []byte, timeout time.Duration) error RunSSHCommand(command string, addresses []ssh.SSHAddress, privateKey []byte, timeout time.Duration, stdout io.Writer, stderr io.Writer) error GetSSHOutput(command string, addresses []ssh.SSHAddress, privateKey []byte, timeout time.Duration) (combinedOutput string, err error) }
type Saved ¶
type Saved struct { VMConfig *config.VMConfig Config *config.Config FS FS UI UI VBox VBox SSHClient SSH }
func (*Saved) GetDebugLogs ¶
func (*Saved) VerifyStartOpts ¶
type StartVMError ¶
type StartVMError struct {
Err error
}
func (*StartVMError) Error ¶
func (e *StartVMError) Error() string
type StopVMError ¶
type StopVMError struct {
Err error
}
func (*StopVMError) Error ¶
func (e *StopVMError) Error() string
type Stopped ¶
type Stopped struct { Config *config.Config VMConfig *config.VMConfig FS FS VBox VBox SSHClient SSH UI UI Builder Builder }
func (*Stopped) GetDebugLogs ¶
func (*Stopped) VerifyStartOpts ¶
type SuspendVMError ¶
type SuspendVMError struct {
Err error
}
func (*SuspendVMError) Error ¶
func (e *SuspendVMError) Error() string
type TargetError ¶
type TargetError struct {
Err error
}
func (*TargetError) Error ¶
func (e *TargetError) Error() string
type TrustError ¶
type TrustError struct {
Err error
}
func (*TrustError) Error ¶
func (e *TrustError) Error() string
type Unprovisioned ¶
type Unprovisioned struct { FS FS SSHClient SSH UI UI VBox VBox LogFetcher LogFetcher Config *config.Config VMConfig *config.VMConfig HelpText HelpText Client Client }
func (*Unprovisioned) GetDebugLogs ¶
func (u *Unprovisioned) GetDebugLogs() error
func (*Unprovisioned) Provision ¶
func (u *Unprovisioned) Provision(opts *StartOpts) error
func (*Unprovisioned) Resume ¶
func (u *Unprovisioned) Resume() error
func (*Unprovisioned) SSH ¶
func (u *Unprovisioned) SSH() error
func (*Unprovisioned) Start ¶
func (u *Unprovisioned) Start(opts *StartOpts) error
func (*Unprovisioned) Status ¶
func (u *Unprovisioned) Status() string
func (*Unprovisioned) Stop ¶
func (u *Unprovisioned) Stop() error
func (*Unprovisioned) Suspend ¶
func (u *Unprovisioned) Suspend() error
func (*Unprovisioned) Target ¶
func (u *Unprovisioned) Target(autoTarget bool) error
func (*Unprovisioned) Trust ¶
func (u *Unprovisioned) Trust(startOps *StartOpts) error
func (*Unprovisioned) VerifyStartOpts ¶
func (u *Unprovisioned) VerifyStartOpts(opts *StartOpts) error
type VBox ¶
type VBox interface { StartVM(vmConfig *config.VMConfig) error StopVM(vmConfig *config.VMConfig) error ResumeSavedVM(vmConfig *config.VMConfig) error ResumePausedVM(vmConfig *config.VMConfig) error SuspendVM(vmConfig *config.VMConfig) error PowerOffVM(vmConfig *config.VMConfig) error ImportVM(vmConfig *config.VMConfig) error VMStatus(vmName string) (state string, err error) VMConfig(vmName string) (vmConfig *config.VMConfig, err error) }
type VBoxBuilder ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.