Documentation ¶
Index ¶
- type BankVaultsStore
- func (s BankVaultsStore) List(ctx context.Context, userID string) ([]token.Token, error)
- func (s BankVaultsStore) Lookup(_ context.Context, userID string, tokenID string) (token.Token, error)
- func (s BankVaultsStore) Revoke(_ context.Context, userID string, tokenID string) error
- func (s BankVaultsStore) Store(ctx context.Context, userID string, tokenID string, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BankVaultsStore ¶
type BankVaultsStore struct {
// contains filtered or unexported fields
}
BankVaultsStore stores user tokens in a Bank-Vaults store.
func NewBankVaultsStore ¶
func NewBankVaultsStore(store auth.TokenStore) BankVaultsStore
NewBankVaultsStore returns a new BankVaultsStore.
func (BankVaultsStore) Lookup ¶
func (s BankVaultsStore) Lookup(_ context.Context, userID string, tokenID string) (token.Token, error)
Lookup finds a user token.
Click to show internal directories.
Click to hide internal directories.