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 --- account.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'account.go') diff --git a/account.go b/account.go index 936b9e1..4277163 100644 --- a/account.go +++ b/account.go @@ -36,6 +36,10 @@ type Account struct { caps *Capabilities } +func (a *Account) isEqualTo(other *Account) bool { + return other.baseURL == a.baseURL && other.name == a.name +} + var endpointURLRegexp = regexp.MustCompile(`^(.*/)v1/(.*)/$`) //InitializeAccount takes something that implements the Backend interface, and -- cgit v1.2.3