Documentation
¶
Index ¶
- func GetOrganizationNameFromHeader(ctx context.Context) (string, error)
- func GetRawToken(ctx context.Context) (string, error)
- func WithCurrentAPIToken(ctx context.Context, token *APIToken) context.Context
- func WithCurrentOrg(ctx context.Context, org *Org) context.Context
- func WithCurrentUser(ctx context.Context, user *User) context.Context
- type APIToken
- type Org
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrganizationNameFromHeader ¶ added in v0.165.0
func GetRawToken ¶ added in v0.165.0
GetRawToken takes whatever Bearer token is in the request
func WithCurrentAPIToken ¶
Types ¶
type APIToken ¶
func CurrentAPIToken ¶
type Org ¶
func CurrentOrg ¶
type User ¶
Utils to get and set information from context
func CurrentUser ¶
RequestID tries to retrieve requestID from the given context. If it doesn't exist, an empty string is returned.
Click to show internal directories.
Click to hide internal directories.