clipboard

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for darwin/amd64

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