diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-04-27 19:55:34 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-04-27 19:55:34 +0200 |
| commit | 62ea09de889bd5c5048540ab4c44fcdb5002467a (patch) | |
| tree | 36920c8d3c8384071f209d2731c8c3f58fc45c5a /container.go | |
| parent | 61cbe4314ea1f626a8b785628d053e2af52c1ddd (diff) | |
| download | go-schwift-62ea09de889bd5c5048540ab4c44fcdb5002467a.tar.gz | |
add Account.isEqualTo, Container.isEqualTo
Diffstat (limited to 'container.go')
| -rw-r--r-- | container.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/container.go b/container.go index 1d310aa..80aeca3 100644 --- a/container.go +++ b/container.go @@ -30,6 +30,10 @@ type Container struct { headers *ContainerHeaders } +func (c *Container) isEqualTo(other *Container) bool { + return other.name == c.name && other.a.isEqualTo(c.a) +} + //Container returns a handle to the container with the given name within this //account. This function does not issue any HTTP requests, and therefore cannot //ensure that the container exists. Use the Exists() function to check for the |
