Skip to content

Commit 84251a4

Browse files
committed
specs-go: export LinuxBlockIODevice
Previously unexported linuxBlockIODevice prevented fully defined LinuxWeightDevice and LinuxThrottleDevice literals, making them less user-friendly than the rest of the interface. Signed-off-by: Antti Kervinen <[email protected]>
1 parent 9c848d9 commit 84251a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

specs-go/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ type LinuxInterfacePriority struct {
250250
Priority uint32 `json:"priority"`
251251
}
252252

253-
// linuxBlockIODevice holds major:minor format supported in blkio cgroup
254-
type linuxBlockIODevice struct {
253+
// LinuxBlockIODevice holds major:minor format supported in blkio cgroup
254+
type LinuxBlockIODevice struct {
255255
// Major is the device's major number.
256256
Major int64 `json:"major"`
257257
// Minor is the device's minor number.
@@ -260,7 +260,7 @@ type linuxBlockIODevice struct {
260260

261261
// LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice
262262
type LinuxWeightDevice struct {
263-
linuxBlockIODevice
263+
LinuxBlockIODevice
264264
// Weight is the bandwidth rate for the device.
265265
Weight *uint16 `json:"weight,omitempty"`
266266
// LeafWeight is the bandwidth rate for the device while competing with the cgroup's child cgroups, CFQ scheduler only
@@ -269,7 +269,7 @@ type LinuxWeightDevice struct {
269269

270270
// LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair
271271
type LinuxThrottleDevice struct {
272-
linuxBlockIODevice
272+
LinuxBlockIODevice
273273
// Rate is the IO rate limit per cgroup per device
274274
Rate uint64 `json:"rate"`
275275
}

0 commit comments

Comments
 (0)