Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityStore ¶ added in v1.4.3
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 ¶ added in v1.4.3
func NewIdentityStore(kvstore simplekv.Store, store store.Store) *IdentityStore
NewIdentityStore creates a new IdentityStore using the given KeyValueStore for backing storage.
func (*IdentityStore) Get ¶ added in v1.4.3
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 ¶ added in v1.4.3
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.