mirror of https://github.com/docker/docs.git
docker-remove-redundant-json-tags
In previous patch I had introduce json:"-" tags to be on safer side to make sure certain fields are not marshalled/unmarshalled. But struct fields starting with small letter are not exported so they will not be marshalled anyway. So remove json:"-" tags from there. Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
ff56531de4
commit
0f57c90245
|
@ -64,23 +64,23 @@ type MetaData struct {
|
||||||
type DeviceSet struct {
|
type DeviceSet struct {
|
||||||
MetaData `json:"-"`
|
MetaData `json:"-"`
|
||||||
sync.Mutex `json:"-"` // Protects Devices map and serializes calls into libdevmapper
|
sync.Mutex `json:"-"` // Protects Devices map and serializes calls into libdevmapper
|
||||||
root string `json:"-"`
|
root string
|
||||||
devicePrefix string `json:"-"`
|
devicePrefix string
|
||||||
TransactionId uint64 `json:"-"`
|
TransactionId uint64 `json:"-"`
|
||||||
NewTransactionId uint64 `json:"-"`
|
NewTransactionId uint64 `json:"-"`
|
||||||
NextDeviceId int `json:"next_device_id"`
|
NextDeviceId int `json:"next_device_id"`
|
||||||
|
|
||||||
// Options
|
// Options
|
||||||
dataLoopbackSize int64 `json:"-"`
|
dataLoopbackSize int64
|
||||||
metaDataLoopbackSize int64 `json:"-"`
|
metaDataLoopbackSize int64
|
||||||
baseFsSize uint64 `json:"-"`
|
baseFsSize uint64
|
||||||
filesystem string `json:"-"`
|
filesystem string
|
||||||
mountOptions string `json:"-"`
|
mountOptions string
|
||||||
mkfsArgs []string `json:"-"`
|
mkfsArgs []string
|
||||||
dataDevice string `json:"-"`
|
dataDevice string
|
||||||
metadataDevice string `json:"-"`
|
metadataDevice string
|
||||||
doBlkDiscard bool `json:"-"`
|
doBlkDiscard bool
|
||||||
thinpBlockSize uint32 `json:"-"`
|
thinpBlockSize uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
type DiskUsage struct {
|
type DiskUsage struct {
|
||||||
|
|
Loading…
Reference in New Issue