Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityStore ¶
type IdentityStore struct {
// contains filtered or unexported fields
}
IdentityStore is a short-term store for identity information associated with a specified key. It wraps a KeyValueStore.
func NewIdentityStore ¶
func NewIdentityStore(kvstore simplekv.Store, store store.Store) *IdentityStore
NewIdentityStore creates a new IdentityStore using the given KeyValueStore for backing storage.
func (*IdentityStore) Get ¶
Get retrieves the Identity with the given key from the store. If there is no such token, or the token has expired, then the returned error will have a cause of store.ErrNotFound.
func (*IdentityStore) Put ¶
func (s *IdentityStore) Put(ctx context.Context, id *store.Identity, expire time.Time) (string, error)
Put adds the given Identity to the store, returning the key that should be used to later retrieve the identity. The Identity will only be available in the store until the given expire time.
Click to show internal directories.
Click to hide internal directories.