aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-04-27 19:55:34 +0200
committerStefan Majewsky <majewsky@gmx.net>2018-04-27 19:55:34 +0200
commit62ea09de889bd5c5048540ab4c44fcdb5002467a (patch)
tree36920c8d3c8384071f209d2731c8c3f58fc45c5a /account.go
parent61cbe4314ea1f626a8b785628d053e2af52c1ddd (diff)
downloadgo-schwift-62ea09de889bd5c5048540ab4c44fcdb5002467a.tar.gz
add Account.isEqualTo, Container.isEqualTo
Diffstat (limited to 'account.go')
-rw-r--r--account.go4
1 files changed, 4 insertions, 0 deletions
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