From 62ea09de889bd5c5048540ab4c44fcdb5002467a Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Fri, 27 Apr 2018 19:55:34 +0200 Subject: add Account.isEqualTo, Container.isEqualTo --- container.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'container.go') 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 -- cgit v1.2.3