aboutsummaryrefslogtreecommitdiffhomepage
path: root/identity/identity.go
diff options
context:
space:
mode:
Diffstat (limited to 'identity/identity.go')
-rw-r--r--identity/identity.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/identity/identity.go b/identity/identity.go
index 8fce16479..b002f34f0 100644
--- a/identity/identity.go
+++ b/identity/identity.go
@@ -64,13 +64,18 @@ type Identity interface {
// Manager manages identities, and is itself a Provider of Identity.
type Manager interface {
- IdentitiesProvider
- Provider
+ SearchProvider
Add(ids ...Provider)
- Search(id Identity) Provider
Reset()
}
+// SearchProvider provides access to the chained set of identities.
+type SearchProvider interface {
+ Provider
+ IdentitiesProvider
+ Search(id Identity) Provider
+}
+
// A PathIdentity is a common identity identified by a type and a path, e.g. "layouts" and "_default/single.html".
type PathIdentity struct {
Type string