migrationproxy

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSourceProxy

func NewSourceProxy(unixSocketPath string, tcpTargetAddress string) *migrationProxy

Source proxy exposes a unix socket server and pipes to an outbound TCP connection.

func NewTargetProxy

func NewTargetProxy(tcpBindAddress string, tcpBindPort int, libvirtdSocketPath string) *migrationProxy

Target proxy listens on a tcp socket and pipes to a libvirtd unix socket

func SourceUnixFile

func SourceUnixFile(virtShareDir string, key string) string

Types

type ProxyManager

type ProxyManager interface {
	StartTargetListener(key string, targetUnixFile string) error
	GetTargetListenerPort(key string) int
	StopTargetListener(key string)

	StartSourceListener(key string, targetAddress string) error
	GetSourceListenerFile(key string) string
	StopSourceListener(key string)
}

func NewMigrationProxyManager

func NewMigrationProxyManager(virtShareDir string) ProxyManager

Jump to

Keyboard shortcuts

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