diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-06-24 12:07:28 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-06-24 12:07:28 +0200 |
commit | 898122c19ecba8b7e2abaa8472feb62304e273b5 (patch) | |
tree | c0d48e001d94dc643ee5d0f3aa925ae43d31092c /website.go | |
parent | 64363b29e062f65022bc422c1a8b7d00727c254a (diff) | |
download | guichet-898122c19ecba8b7e2abaa8472feb62304e273b5.tar.gz guichet-898122c19ecba8b7e2abaa8472feb62304e273b5.zip |
rework inspect page
Diffstat (limited to 'website.go')
-rw-r--r-- | website.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,6 +55,7 @@ func NewWebsiteIdFromBucketInfo(binfo *garage.BucketInfo) *WebsiteId { // ----- type WebsiteDescribe struct { + Username string `json:"username"` AllowedWebsites *QuotaStat `json:"quota_website_count"` BurstBucketQuotaSize string `json:"burst_bucket_quota_size"` Websites []*WebsiteId `json:"vhosts"` @@ -232,6 +233,7 @@ func (w *WebsiteController) Describe() (*WebsiteDescribe, error) { } return &WebsiteDescribe{ + w.User.Username, &w.WebsiteCount, w.User.Quota.WebsiteSizeBurstedPretty(), r, |