token

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	ID          string `json:"id,omitempty"`
	RootTokenID string `json:"root_token_id"`
}

type Response

type Response struct {
	ID string `json:"id"`
}

type TokenStore

type TokenStore struct {
	// contains filtered or unexported fields
}

func NewTokenStore

func NewTokenStore(u *unseal.Unseal) *TokenStore

func (*TokenStore) CheckToken

func (ts *TokenStore) CheckToken(ctx context.Context, id string) (bool, error)

func (*TokenStore) GenRootToken

func (ts *TokenStore) GenRootToken(ctx context.Context, id string) (*logical.TokenEntry, error)

func (*TokenStore) Lookup

func (ts *TokenStore) Lookup(ctx context.Context, id string) (*logical.TokenEntry, error)

func (*TokenStore) NamespaceByID

func (ts *TokenStore) NamespaceByID(ctx context.Context, id string) (*namespace.Namespace, error)

func (*TokenStore) Salt

func (ts *TokenStore) Salt(ctx context.Context) (*salt.Salt, error)

func (*TokenStore) SaltID

func (ts *TokenStore) SaltID(ctx context.Context, id string) (string, error)

Jump to

Keyboard shortcuts

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