open-nomad/plugins/base
Nick Ethier bcc5c4a8bd clientv2: base driver plugin (#4671)
Driver plugin framework to facilitate development of driver plugins.

Implementing plugins only need to implement the DriverPlugin interface.
The framework proxies this interface to the go-plugin GRPC interface generated
from the driver.proto spec.

A testing harness is provided to allow implementing drivers to test the full
lifecycle of the driver plugin. An example use:

func TestMyDriver(t *testing.T) {
    harness := NewDriverHarness(t, &MyDiverPlugin{})
    // The harness implements the DriverPlugin interface and can be used as such
    taskHandle, err := harness.StartTask(...)
}
2018-10-16 16:53:31 -07:00
..
proto Review comments 2018-08-13 11:01:44 -07:00
base.go Review comments 2018-08-13 11:01:44 -07:00
client.go initial device go-plugin 2018-08-16 16:49:09 -07:00
plugin.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
plugin_test.go initial device go-plugin 2018-08-16 16:49:09 -07:00
server.go Review comments 2018-08-13 11:01:44 -07:00
testing.go initial device go-plugin 2018-08-16 16:49:09 -07:00