Replaces the operations graphConnector reference with an interface. Restore and Backups have separate, unique interfaces. <!-- PR description--> --- #### Does this PR need a docs update or release note? - [x] ⛔ No #### Type of change - [x] 🌻 Feature #### Issue(s) * #2825 #### Test Plan - [x] ⚡ Unit test - [x] 💚 E2E
18 lines
285 B
Go
18 lines
285 B
Go
package data
|
|
|
|
type CollectionStats struct {
|
|
Folders,
|
|
Objects,
|
|
Successes int
|
|
Bytes int64
|
|
Details string
|
|
}
|
|
|
|
func (cs CollectionStats) IsZero() bool {
|
|
return cs.Folders+cs.Objects+cs.Successes+int(cs.Bytes) == 0
|
|
}
|
|
|
|
func (cs CollectionStats) String() string {
|
|
return cs.Details
|
|
}
|