mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
chore(ci): remove ineffective omitempty tags (#5037)
This commit is contained in:
@@ -63,10 +63,10 @@ func (f *ContentFormat) SupportsPasswordChange() bool {
|
||||
// MutableParameters represents parameters of the content manager that can be mutated after the repository
|
||||
// is created.
|
||||
type MutableParameters struct {
|
||||
Version Version `json:"version,omitempty"` // version number, must be "1", "2" or "3"
|
||||
MaxPackSize int `json:"maxPackSize,omitempty"` // maximum size of a pack object
|
||||
IndexVersion int `json:"indexVersion,omitempty"` // force particular index format version (1,2,..)
|
||||
EpochParameters epoch.Parameters `json:"epochParameters,omitempty"` // epoch manager parameters
|
||||
Version Version `json:"version,omitempty"` // version number, must be "1", "2" or "3"
|
||||
MaxPackSize int `json:"maxPackSize,omitempty"` // maximum size of a pack object
|
||||
IndexVersion int `json:"indexVersion,omitempty"` // force particular index format version (1,2,..)
|
||||
EpochParameters epoch.Parameters `json:"epochParameters"` // epoch manager parameters
|
||||
}
|
||||
|
||||
// Validate validates the parameters.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// repository.
|
||||
type UpgradeLockIntent struct {
|
||||
OwnerID string `json:"ownerID,omitempty"`
|
||||
CreationTime time.Time `json:"creationTime,omitempty"`
|
||||
CreationTime time.Time `json:"creationTime"`
|
||||
AdvanceNoticeDuration time.Duration `json:"advanceNoticeDuration,omitempty"`
|
||||
IODrainTimeout time.Duration `json:"ioDrainTimeout,omitempty"`
|
||||
StatusPollInterval time.Duration `json:"statusPollInterval,omitempty"`
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
type IndirectObjectEntry struct {
|
||||
Start int64 `json:"s,omitempty"`
|
||||
Length int64 `json:"l,omitempty"`
|
||||
Object ID `json:"o,omitempty"`
|
||||
Object ID `json:"o"`
|
||||
}
|
||||
|
||||
func (i *IndirectObjectEntry) endOffset() int64 {
|
||||
|
||||
@@ -126,7 +126,7 @@ type DirEntry struct {
|
||||
ModTime fs.UTCTimestamp `json:"mtime,omitempty"`
|
||||
UserID uint32 `json:"uid,omitempty"`
|
||||
GroupID uint32 `json:"gid,omitempty"`
|
||||
ObjectID object.ID `json:"obj,omitempty"`
|
||||
ObjectID object.ID `json:"obj"`
|
||||
DirSummary *fs.DirectorySummary `json:"summ,omitempty"`
|
||||
}
|
||||
|
||||
@@ -187,8 +187,8 @@ func (m *Manifest) Clone() *Manifest {
|
||||
type StorageStats struct {
|
||||
// amount of new unique data in this snapshot that wasn't there before.
|
||||
// note that this depends on ordering of snapshots.
|
||||
NewData StorageUsageDetails `json:"newData,omitempty"`
|
||||
RunningTotal StorageUsageDetails `json:"runningTotal,omitempty"`
|
||||
NewData StorageUsageDetails `json:"newData"`
|
||||
RunningTotal StorageUsageDetails `json:"runningTotal"`
|
||||
}
|
||||
|
||||
// StorageUsageDetails provides details about snapshot storage usage.
|
||||
|
||||
Reference in New Issue
Block a user