Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
03d02867
Commit
03d02867
authored
6 years ago
by
Alex Dadgar
Browse files
Options
Download
Email Patches
Plain Diff
Describe public interface of Fingerprint
parent
e11a510b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/device/client.go
+4
-0
plugins/device/client.go
with
4 additions
and
0 deletions
+4
-0
plugins/device/client.go
+
4
-
0
View file @
03d02867
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help