Fix vet errors about json tags for unexported fields

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2014-12-12 11:01:46 -08:00
parent a7ae7fed73
commit c7ff6bf691
1 changed files with 10 additions and 10 deletions

View File

@ -45,15 +45,15 @@ type Transaction struct {
} }
type DevInfo struct { type DevInfo struct {
Hash string `json:"-"` Hash string `json:"-"`
DeviceId int `json:"device_id"` DeviceId int `json:"device_id"`
Size uint64 `json:"size"` Size uint64 `json:"size"`
TransactionId uint64 `json:"transaction_id"` TransactionId uint64 `json:"transaction_id"`
Initialized bool `json:"initialized"` Initialized bool `json:"initialized"`
devices *DeviceSet `json:"-"` devices *DeviceSet
mountCount int `json:"-"` mountCount int
mountPath string `json:"-"` mountPath string
// The global DeviceSet lock guarantees that we serialize all // The global DeviceSet lock guarantees that we serialize all
// the calls to libdevmapper (which is not threadsafe), but we // the calls to libdevmapper (which is not threadsafe), but we
@ -65,12 +65,12 @@ type DevInfo struct {
// the global lock while holding the per-device locks all // the global lock while holding the per-device locks all
// device locks must be aquired *before* the device lock, and // device locks must be aquired *before* the device lock, and
// multiple device locks should be aquired parent before child. // multiple device locks should be aquired parent before child.
lock sync.Mutex `json:"-"` lock sync.Mutex
} }
type MetaData struct { type MetaData struct {
Devices map[string]*DevInfo `json:"Devices"` Devices map[string]*DevInfo `json:"Devices"`
devicesLock sync.Mutex `json:"-"` // Protects all read/writes to Devices map devicesLock sync.Mutex // Protects all read/writes to Devices map
} }
type DeviceSet struct { type DeviceSet struct {