internal

package
v1.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

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

func (s *IdentityStore) Get(ctx context.Context, key string, id *store.Identity) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL