From 0eab6bf51e2fe22de6c877e01149b49bba283792 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 7 Jun 2018 14:01:49 +0200 Subject: add URL() method also to Container, not just to Object --- object.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'object.go') diff --git a/object.go b/object.go index ee022e3..e2cea84 100644 --- a/object.go +++ b/object.go @@ -581,7 +581,9 @@ func (o *Object) SymlinkHeaders() (headers ObjectHeaders, target *Object, err er return *o.symlinkHeaders, target, nil } -//URL returns the canonical url for the object in the objectstore +//URL returns the canonical URL for the object on the server. This is +//particularly useful when the ReadACL on the account or container is set to +//allow anonymous read access. func (o *Object) URL() (string, error) { return Request{ ContainerName: o.c.name, -- cgit v1.2.3