storagev2

package
v0.0.0-...-c6e0241 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ContextKey string = "storagev2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*types.APIContext
	// contains filtered or unexported fields
}

func NewContext

func NewContext(userID, orgID string) *Context

func NewOrganizationContext

func NewOrganizationContext(orgID string) *Context

NewOrganizationContext returns a context without a user

func ParseContext

func ParseContext(c *gin.Context) *Context

func (*Context) Analytics

func (c *Context) Analytics() *analytics.Segment

func (*Context) GetLicenseName

func (c *Context) GetLicenseName() string

func (*Context) GetOrgID

func (c *Context) GetOrgID() string

func (*Context) GetSubject

func (c *Context) GetSubject() string

func (*Context) GetUserGroups

func (c *Context) GetUserGroups() []string

func (*Context) GetUserID

func (c *Context) GetUserID() string

func (*Context) IsAdmin

func (c *Context) IsAdmin() bool

func (*Context) IsAnonymous

func (c *Context) IsAnonymous() bool

func (*Context) WithAnonymousInfo

func (c *Context) WithAnonymousInfo(profileName, email, subject, picture string, emailVerified *bool) *Context

func (*Context) WithApiURL

func (c *Context) WithApiURL(apiURL string) *Context

func (*Context) WithGrpcURL

func (c *Context) WithGrpcURL(grpcURL string) *Context

func (*Context) WithOrgLicense

func (c *Context) WithOrgLicense(orgLicense string) *Context

func (*Context) WithOrgLicenseData

func (c *Context) WithOrgLicenseData(licenseData *json.RawMessage) *Context

func (*Context) WithOrgName

func (c *Context) WithOrgName(orgName string) *Context

func (*Context) WithSlackID

func (c *Context) WithSlackID(slackID string) *Context

func (*Context) WithUserInfo

func (c *Context) WithUserInfo(name, email, status, picture string, groups []string) *Context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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