pluginfixtures

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package pluginfixtures provides the minimal simulated Driver plugin used by the process-host E2E tests. It is a real, buildable, install-style binary built only on the public SDK: it never touches real hardware or the network, and it never imports internal/*.

Index

Constants

View Source
const DriverID = "io.test.driver-fixture"

DriverID is the stable driver identifier reported by Describe.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {

	// OnShutdown is invoked after the host delivers the Shutdown RPC.
	OnShutdown func()
	// contains filtered or unexported fields
}

Driver is a minimal simulated DriverServer. It is a no-hardware reference fixture whose only purpose is exercising the full binary -> Host E2E path.

func New

func New(opts ...Option) *Driver

New returns a fresh simulated Driver.

func (*Driver) CloseDevice

CloseDevice accepts the device id.

func (*Driver) ConfigureInstance

ConfigureInstance accepts any bounded configuration.

func (*Driver) Describe

Describe returns a stable descriptor.

func (*Driver) Discover

Discover returns no devices.

func (*Driver) Execute

Execute reports a successful no-op command.

func (*Driver) Health

Health reports serving until shutdown.

func (*Driver) Initialize

Initialize negotiates the driver protocol version.

func (*Driver) OpenDevice

OpenDevice accepts the device id.

func (*Driver) Shutdown

Shutdown marks the driver stopped and notifies the process entrypoint.

func (*Driver) Watch

Watch blocks until the stream is canceled; the fixture publishes no data.

type Option

type Option func(*Driver)

Option tunes a simulated Driver.

func WithEventsFile

func WithEventsFile(path string) Option

WithEventsFile records RPC lifecycle events (one name per line) to path. The E2E host uses it to observe that Shutdown was actually delivered over RPC.

Directories

Path Synopsis
cmd
cloudpath-driver-fixture command
Command cloudpath-driver-fixture is a minimal simulated Driver plugin used by the process-host E2E tests.
Command cloudpath-driver-fixture is a minimal simulated Driver plugin used by the process-host E2E tests.

Jump to

Keyboard shortcuts

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