migrationproxy

package
v0.32.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const (
	LibvirtDirectMigrationPort = 49152
	LibvirtBlockMigrationPort  = 49153
)

Variables

This section is empty.

Functions

func ConstructProxyKey added in v0.15.0

func ConstructProxyKey(id string, port int) string

func GetMigrationPortsList added in v0.15.0

func GetMigrationPortsList(isBlockMigration bool) (ports []int)

func NewSourceProxy

func NewSourceProxy(unixSocketPath string, tcpTargetAddress string, serverTLSConfig *tls.Config, clientTLSConfig *tls.Config) *migrationProxy

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

func NewTargetProxy

func NewTargetProxy(tcpBindAddress string, tcpBindPort int, serverTLSConfig *tls.Config, clientTLSConfig *tls.Config, libvirtdSocketPath string) *migrationProxy

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

func SourceUnixFile

func SourceUnixFile(baseDir string, key string) string

Types

type ProxyManager

type ProxyManager interface {
	StartTargetListener(key string, targetUnixFiles []string) error
	GetTargetListenerPorts(key string) map[string]int
	StopTargetListener(key string)

	StartSourceListener(key string, targetAddress string, destSrcPortMap map[string]int, baseDir string) error
	GetSourceListenerFiles(key string) []string
	StopSourceListener(key string)
}

func NewMigrationProxyManager

func NewMigrationProxyManager(serverTLSConfig *tls.Config, clientTLSConfig *tls.Config) ProxyManager

Jump to

Keyboard shortcuts

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