From 9a8ec45e50647e134e5a6e14c3738d6627298b97 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 10 Feb 2018 10:49:58 +0100 Subject: sketch out the initial Object API --- container.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'container.go') diff --git a/container.go b/container.go index accae8e..7f5097f 100644 --- a/container.go +++ b/container.go @@ -63,8 +63,10 @@ func (c *Container) Exists() (bool, error) { return true, nil } -//Headers returns the ContainerHeaders for this account. If the ContainerHeaders -//has not been cached yet, a HEAD request is issued on the account. +//Headers returns the ContainerHeaders for this container. If the ContainerHeaders +//has not been cached yet, a HEAD request is issued on the container. +// +//This operation fails with http.StatusNotFound if the container does not exist. func (c *Container) Headers() (ContainerHeaders, error) { if c.headers != nil { return *c.headers, nil @@ -151,7 +153,7 @@ func (c *Container) Delete(headers ContainerHeaders, opts *RequestOptions) error } //Invalidate clears the internal cache of this Container instance. The next call -//to Headers() on this instance will issue a HEAD request on the account. +//to Headers() on this instance will issue a HEAD request on the container. func (c *Container) Invalidate() { c.headers = nil } @@ -171,5 +173,3 @@ func (c *Container) EnsureExists() (*Container, error) { }.Do(c.a.client) return c, err } - -// TODO object listing -- cgit v1.2.3