From 1db70efd7b1cb6c5a529c57fc08a648847f6ede4 Mon Sep 17 00:00:00 2001 From: Evgeniy Kulikov Date: Tue, 28 Jul 2020 11:43:42 +0300 Subject: [PATCH] NFSSVC-27 Add CID to Bucket struct This is done in order to cache the list of containers in the future --- neofs/api/handler/container.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neofs/api/handler/container.go b/neofs/api/handler/container.go index f31b5554..2c8041bf 100644 --- a/neofs/api/handler/container.go +++ b/neofs/api/handler/container.go @@ -25,6 +25,7 @@ type ( // Bucket container for bucket metadata Bucket struct { + CID refs.CID `xml:"-"` // ignored by response Name string CreationDate string // time string of format "2006-01-02T15:04:05.000Z" } @@ -72,6 +73,7 @@ func (h *handler) getContainerInfo(ctx context.Context, p cnrInfoParams) (*Bucke _ = res return &Bucket{ + CID: p.cid, Name: p.cid.String(), CreationDate: new(time.Time).Format(time.RFC3339), }, nil