Skip to content

Commit ca432f4

Browse files
committed
dockerui/types.Mount: add JSON tags
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 8fe39cf commit ca432f4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

frontend/dockerui/types/mount.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ const (
1919
)
2020

2121
type Mount struct {
22-
Type MountType
23-
From string
24-
Source string
25-
Target string
26-
ReadOnly bool
27-
SizeLimit int64
28-
CacheID string
29-
CacheSharing ShareMode
30-
Required bool
31-
Mode *uint64
32-
UID *uint64
33-
GID *uint64
22+
Type MountType `json:"type,omitempty"`
23+
From string `json:"from,omitempty"`
24+
Source string `json:"source,omitempty"`
25+
Target string `json:"target,omitempty"`
26+
ReadOnly bool `json:"readOnly,omitempty"`
27+
SizeLimit int64 `json:"sizeLimit,omitempty"`
28+
CacheID string `json:"cacheID,omitempty"`
29+
CacheSharing ShareMode `json:"cacheSharing,omitempty"`
30+
Required bool `json:"required,omitempty"`
31+
Mode *uint64 `json:"mode,omitempty"`
32+
UID *uint64 `json:"uid,omitempty"`
33+
GID *uint64 `json:"gid,omitempty"`
3434
}

0 commit comments

Comments
 (0)