Skip to content

Commit

Permalink
Merge pull request #586 from Mashimiao/specs-config-fix-required-type
Browse files Browse the repository at this point in the history
specs-go/config: fix required items type
  • Loading branch information
crosbymichael committed Oct 31, 2016
2 parents e91c55e + ef9ce84 commit 32aa94e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs-go/config.go
Expand Up @@ -208,9 +208,9 @@ type LinuxRlimit struct {
// LinuxHugepageLimit structure corresponds to limiting kernel hugepages
type LinuxHugepageLimit struct {
// Pagesize is the hugepage size
Pagesize *string `json:"pageSize,omitempty"`
Pagesize string `json:"pageSize"`
// Limit is the limit of "hugepagesize" hugetlb usage
Limit *uint64 `json:"limit,omitempty"`
Limit uint64 `json:"limit"`
}

// LinuxInterfacePriority for network interfaces
Expand Down Expand Up @@ -242,7 +242,7 @@ type LinuxWeightDevice struct {
type LinuxThrottleDevice struct {
linuxBlockIODevice
// Rate is the IO rate limit per cgroup per device
Rate *uint64 `json:"rate,omitempty"`
Rate uint64 `json:"rate"`
}

// LinuxBlockIO for Linux cgroup 'blkio' resource management
Expand Down Expand Up @@ -300,7 +300,7 @@ type LinuxCPU struct {
// LinuxPids for Linux cgroup 'pids' resource management (Linux 4.3)
type LinuxPids struct {
// Maximum number of PIDs. Default is "no limit".
Limit *int64 `json:"limit,omitempty"`
Limit int64 `json:"limit"`
}

// LinuxNetwork identification and priority configuration
Expand Down

0 comments on commit 32aa94e

Please sign in to comment.