open-nomad/plugins/drivers
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 clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
utils clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
client.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
driver.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
errors.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
plugin.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
plugin_test.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
server.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
task_handle.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
testing.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
testing_test.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00
utils.go clientv2: base driver plugin (#4671) 2018-10-16 16:53:31 -07:00