libvirtutil

package
v0.0.0-...-e507620 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeObjectName

func EscapeObjectName(path string) string

func OpenConnect

func OpenConnect(uri string, notify chan ConnectEvent)

Types

type ConnectEvent

type ConnectEvent struct {
	Type ConnectEventType
	URI  string
	Conn *libvirt.Connect
}

type ConnectEventType

type ConnectEventType string
var (
	ConnectReady  ConnectEventType = "ready"
	ConnectFailed ConnectEventType = "failed"
)

type StreamIO

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

func NewStreamIO

func NewStreamIO(s *libvirt.Stream) *StreamIO

func (*StreamIO) Close

func (s *StreamIO) Close() error

func (*StreamIO) Read

func (s *StreamIO) Read(p []byte) (int, error)

func (*StreamIO) Write

func (s *StreamIO) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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