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
346444be
Unverified
Commit
346444be
authored
5 years ago
by
Danielle Lancashire
Browse files
Options
Download
Email Patches
Plain Diff
api: Add HostVolumeInfo to response parsing
parent
869f1da3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/nodes.go
+8
-0
api/nodes.go
with
8 additions
and
0 deletions
+8
-0
api/nodes.go
+
8
-
0
View file @
346444be
...
...
@@ -436,6 +436,13 @@ type DriverInfo struct {
UpdateTime
time
.
Time
}
// HostVolumeInfo is used to return metadata about a given HostVolume.
type
HostVolumeInfo
struct
{
Source
string
ReadOnly
bool
Hidden
bool
}
// Node is used to deserialize a node entry.
type
Node
struct
{
ID
string
...
...
@@ -459,6 +466,7 @@ type Node struct {
StatusUpdatedAt
int64
Events
[]
*
NodeEvent
Drivers
map
[
string
]
*
DriverInfo
HostVolumes
map
[
string
]
*
HostVolumeInfo
CreateIndex
uint64
ModifyIndex
uint64
}
...
...
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