context

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ParamScope = "scope"

Variables

View Source
var JWTTokenString = &contextKey{}
View Source
var MemberDirectMemberOnly = &contextKey{}
View Source
var MemberEmails = &contextKey{}
View Source
var MemberQueryOnCondition = &contextKey{}
View Source
var MemberRole = &contextKey{}
View Source
var ReleaseSyncToRepo = &contextKey{}
View Source
var TemplateListRecursively = &contextKey{}
View Source
var TemplateListSelfOnly = &contextKey{}
View Source
var TemplateOnlyRefCount = &contextKey{}
View Source
var TemplateWithFullPath = &contextKey{}
View Source
var TemplateWithRelease = &contextKey{}

Functions

func GetScope

func GetScope(ctx context.Context, req *http.Request) string

func ScopeFromContext

func ScopeFromContext(ctx context.Context) (string, bool)

func SetScope

func SetScope(c *gin.Context, scope string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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