lazyvm

package module
Version: v0.0.0-...-91d26f8 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2015 License: MIT Imports: 12 Imported by: 0

README

lazyvm Build Status Build status

Start a vm on incoming remote session connection and put it to sleep on idle.

Documentation

Overview

Package lazyvm provides a proxy for RDP connections, which is capable of starting / stopping on idle Windows instances through VirtualBox manager.

Actually it treats underlying connection as a blackbox, so it can be used with different protocols / OSes. It was just developed for use with rdesktop and Windows.

Index

Constants

This section is empty.

Variables

View Source
var ErrInterrupted = errors.New("interrupted")

ErrInterrupted TODO(rjeczalik)

View Source
var ErrNotExist = errors.New("lazyvm: vm does not exist")

ErrNotExist TODO(rjeczalik)

Functions

func BusyConn

func BusyConn(c net.Conn, wg *sync.WaitGroup, busy *uint64) net.Conn

BusyConn TODO(rjeczalik)

func InterruptibleListen

func InterruptibleListen(network, addr string) (net.Listener, error)

InterruptibleListen TODO(rjeczalik)

Types

type Proxy

type Proxy struct {
	MachineName string // VirtualBox machine name
	Addr        string // network address to listen on, default is ":5000"
	Port        int    // target port of the machine, default is 3389
	// contains filtered or unexported fields
}

Proxy TODO(rjeczalik)

func (*Proxy) Run

func (p *Proxy) Run() error

Run TODO(rjeczalik)

func (*Proxy) Stop

func (p *Proxy) Stop()

Stop TODO(rjeczalik): discard vbox saved state

type VirtualBox

type VirtualBox struct {
	// contains filtered or unexported fields
}

VirtualBox TODO(rjeczalik)

func NewVirtualBox

func NewVirtualBox(name string) (*VirtualBox, error)

NewVirtualBox TODO(rjeczalik)

func (*VirtualBox) Addr

func (vbox *VirtualBox) Addr() (string, error)

Addr TODO(rjeczalik)

func (*VirtualBox) Close

func (vbox *VirtualBox) Close() error

Close TODO(rjeczalik)

func (*VirtualBox) Hibernate

func (vbox *VirtualBox) Hibernate() error

Hibernate TODO(rjeczalik)

func (*VirtualBox) Running

func (vbox *VirtualBox) Running() (bool, error)

Running TODO(rjeczalik)

func (*VirtualBox) Start

func (vbox *VirtualBox) Start() error

Start TODO(rjeczalik)

Directories

Path Synopsis
cmd
lazyvm
Command lazyvm provides standalone command line tools for proxying RDP connections to VirtualBox's Windows instance.
Command lazyvm provides standalone command line tools for proxying RDP connections to VirtualBox's Windows instance.

Jump to

Keyboard shortcuts

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