Commit 03d02867 authored by Alex Dadgar's avatar Alex Dadgar
Browse files

Describe public interface of Fingerprint

parent e11a510b
Showing with 4 additions and 0 deletions
+4 -0
...@@ -20,6 +20,10 @@ type devicePluginClient struct { ...@@ -20,6 +20,10 @@ type devicePluginClient struct {
client proto.DevicePluginClient client proto.DevicePluginClient
} }
// Fingerprint is used to retrieve the set of devices and their health from the
// device plugin. An error may be immediately returned if the fingerprint call
// could not be made or as part of the streaming response. If the context is
// cancelled, the error will be propogated.
func (d *devicePluginClient) Fingerprint(ctx context.Context) (<-chan *FingerprintResponse, error) { func (d *devicePluginClient) Fingerprint(ctx context.Context) (<-chan *FingerprintResponse, error) {
var req proto.FingerprintRequest var req proto.FingerprintRequest
stream, err := d.client.Fingerprint(ctx, &req) stream, err := d.client.Fingerprint(ctx, &req)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment