clipboard

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package clipboard configures host-guest clipboard sharing via SPICE agent.

It creates a VZVirtioConsoleDeviceConfiguration with a SPICE agent port attachment that enables bidirectional clipboard sync (text and images). Requires macOS 13+ on the host and spice-vdagent running in the guest.

Basic usage:

consoleDevice, err := clipboard.NewConfig()
if err != nil {
	log.Fatal(err)
}
// Add consoleDevice to your VM configuration's console devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

NewConfig creates a Virtio console device configured for SPICE agent clipboard sharing. The returned device should be added to the VM's console device list.

Clipboard sharing only functions when the guest has spice-vdagent running. For macOS guests this requires macOS 15+ with SPICE guest tools installed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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