Skip to content

Commit

Permalink
Merge pull request opencontainers#531 from wking/pointer-omitempty
Browse files Browse the repository at this point in the history
specs-go/config: Make KernelTCP and ClassID omitempty
  • Loading branch information
hqhq authored Aug 26, 2016
2 parents 9c0fcee + 980ed05 commit 069e8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ type Memory struct {
// Kernel memory limit (in bytes).
Kernel *uint64 `json:"kernel,omitempty"`
// Kernel memory limit for tcp (in bytes)
KernelTCP *uint64 `json:"kernelTCP"`
KernelTCP *uint64 `json:"kernelTCP,omitempty"`
// How aggressive the kernel will swap memory pages. Range from 0 to 100.
Swappiness *uint64 `json:"swappiness,omitempty"`
}
Expand Down Expand Up @@ -294,7 +294,7 @@ type Pids struct {
// Network identification and priority configuration
type Network struct {
// Set class identifier for container's network packets
ClassID *uint32 `json:"classID"`
ClassID *uint32 `json:"classID,omitempty"`
// Set priority of network traffic for container
Priorities []InterfacePriority `json:"priorities,omitempty"`
}
Expand Down

0 comments on commit 069e8e1

Please sign in to comment.