Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSavingTokenIsDisabled = errors.New("saving tokens is disabled")
View Source
var ErrStoreNotInitialized = errors.New("the tokens store has not been initialized")
Functions ¶
Types ¶
type EmptyStore ¶
type EmptyStore struct{}
EmptyStore can be used to disable the support for long-living API tokens.
func NewEmptyStore ¶
func NewEmptyStore() *EmptyStore
func (EmptyStore) DeleteToken ¶
func (e EmptyStore) DeleteToken(_ string) error
func (EmptyStore) ListTokens ¶
func (e EmptyStore) ListTokens() ([]session.TokenSummary, error)
func (EmptyStore) TokenExists ¶
func (e EmptyStore) TokenExists(_ string) (bool, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteToken ¶
func (*Store) ListTokens ¶
func (s *Store) ListTokens() ([]session.TokenSummary, error)
Click to show internal directories.
Click to hide internal directories.