aboutsummaryrefslogtreecommitdiff
path: root/container.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-10 10:49:58 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-10 10:49:58 +0100
commit9a8ec45e50647e134e5a6e14c3738d6627298b97 (patch)
treeca5f8d6c45444d78e445889a341aeb81b71037a2 /container.go
parent8dfe7249e015e1a03a911d441cab8c4bb0c7d4c9 (diff)
downloadgo-schwift-9a8ec45e50647e134e5a6e14c3738d6627298b97.tar.gz
sketch out the initial Object API
Diffstat (limited to 'container.go')
-rw-r--r--container.go10
1 files changed, 5 insertions, 5 deletions
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