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
- type Driver
- func (d *Driver) CloseDevice(_ context.Context, req *driver.CloseDeviceRequest) (*driver.CloseDeviceResponse, error)
- func (d *Driver) ConfigureInstance(_ context.Context, req *driver.ConfigureInstanceRequest) (*driver.ConfigureInstanceResponse, error)
- func (d *Driver) Describe(context.Context) (*driver.DriverDescriptor, error)
- func (d *Driver) Discover(context.Context, *driver.DiscoverRequest, driver.DiscoveryWriter) error
- func (d *Driver) Execute(_ context.Context, req *driver.ExecuteRequest) (*driver.ExecuteResponse, error)
- func (d *Driver) Health(context.Context) (*driver.HealthResponse, error)
- func (d *Driver) Initialize(_ context.Context, _ *driver.InitializeRequest) (*driver.InitializeResponse, error)
- func (d *Driver) OpenDevice(_ context.Context, req *driver.OpenDeviceRequest) (*driver.OpenDeviceResponse, error)
- func (d *Driver) Shutdown(_ context.Context, _ *driver.ShutdownRequest) (*driver.ShutdownResponse, error)
- func (d *Driver) Watch(ctx context.Context, _ *driver.WatchRequest, _ driver.DriverMessageWriter) error
- type Option
Constants ¶
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 (*Driver) CloseDevice ¶
func (d *Driver) CloseDevice(_ context.Context, req *driver.CloseDeviceRequest) (*driver.CloseDeviceResponse, error)
CloseDevice accepts the device id.
func (*Driver) ConfigureInstance ¶
func (d *Driver) ConfigureInstance(_ context.Context, req *driver.ConfigureInstanceRequest) (*driver.ConfigureInstanceResponse, error)
ConfigureInstance accepts any bounded configuration.
func (*Driver) Discover ¶
func (d *Driver) Discover(context.Context, *driver.DiscoverRequest, driver.DiscoveryWriter) error
Discover returns no devices.
func (*Driver) Execute ¶
func (d *Driver) Execute(_ context.Context, req *driver.ExecuteRequest) (*driver.ExecuteResponse, error)
Execute reports a successful no-op command.
func (*Driver) Initialize ¶
func (d *Driver) Initialize(_ context.Context, _ *driver.InitializeRequest) (*driver.InitializeResponse, error)
Initialize negotiates the driver protocol version.
func (*Driver) OpenDevice ¶
func (d *Driver) OpenDevice(_ context.Context, req *driver.OpenDeviceRequest) (*driver.OpenDeviceResponse, error)
OpenDevice accepts the device id.
func (*Driver) Shutdown ¶
func (d *Driver) Shutdown(_ context.Context, _ *driver.ShutdownRequest) (*driver.ShutdownResponse, error)
Shutdown marks the driver stopped and notifies the process entrypoint.
func (*Driver) Watch ¶
func (d *Driver) Watch(ctx context.Context, _ *driver.WatchRequest, _ driver.DriverMessageWriter) error
Watch blocks until the stream is canceled; the fixture publishes no data.
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. |