aboutsummaryrefslogtreecommitdiff
path: root/website.go
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-06-24 12:07:28 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-06-24 12:07:28 +0200
commit898122c19ecba8b7e2abaa8472feb62304e273b5 (patch)
treec0d48e001d94dc643ee5d0f3aa925ae43d31092c /website.go
parent64363b29e062f65022bc422c1a8b7d00727c254a (diff)
downloadguichet-898122c19ecba8b7e2abaa8472feb62304e273b5.tar.gz
guichet-898122c19ecba8b7e2abaa8472feb62304e273b5.zip
rework inspect page
Diffstat (limited to 'website.go')
-rw-r--r--website.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/website.go b/website.go
index d0bed9c..ed39d28 100644
--- a/website.go
+++ b/website.go
@@ -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,