-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from haiwu/issue_211
fix harbor project quota update bug
- Loading branch information
Showing
2 changed files
with
59 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
package models | ||
|
||
import "time" | ||
|
||
type StorageQuota struct { | ||
Hard Hard `json:"hard"` | ||
} | ||
type Hard struct { | ||
Storage int64 `json:"storage"` | ||
} | ||
type Used struct { | ||
Storage int64 `json:"storage"` | ||
} | ||
type QuotaResponse struct { | ||
CreationTime time.Time `json:"creation_time"` | ||
Hard Hard `json:"hard"` | ||
ID int `json:"id"` | ||
Ref struct { | ||
ID int `json:"id"` | ||
Name string `json:"name"` | ||
Owner string `json:"owner"` | ||
} `json:"ref"` | ||
UpdateTime time.Time `json:"update_time"` | ||
Used Used `json:"used"` | ||
} |