Documentation ¶
Index ¶
- Constants
- type Context
- func (c *Context) Analytics() *analytics.Segment
- func (c *Context) GetLicenseName() string
- func (c *Context) GetOrgID() string
- func (c *Context) GetSubject() string
- func (c *Context) GetUserGroups() []string
- func (c *Context) GetUserID() string
- func (c *Context) IsAdmin() bool
- func (c *Context) IsAnonymous() bool
- func (c *Context) WithAnonymousInfo(profileName, email, subject, picture string, emailVerified *bool) *Context
- func (c *Context) WithApiURL(apiURL string) *Context
- func (c *Context) WithGrpcURL(grpcURL string) *Context
- func (c *Context) WithOrgLicense(orgLicense string) *Context
- func (c *Context) WithOrgLicenseData(licenseData *json.RawMessage) *Context
- func (c *Context) WithOrgName(orgName string) *Context
- func (c *Context) WithSlackID(slackID string) *Context
- func (c *Context) WithUserInfo(name, email, status, picture string, groups []string) *Context
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 NewOrganizationContext ¶
NewOrganizationContext returns a context without a user
func ParseContext ¶
func (*Context) GetLicenseName ¶
func (*Context) GetSubject ¶
func (*Context) GetUserGroups ¶
func (*Context) IsAnonymous ¶
func (*Context) WithAnonymousInfo ¶
func (*Context) WithApiURL ¶
func (*Context) WithGrpcURL ¶
func (*Context) WithOrgLicense ¶
func (*Context) WithOrgLicenseData ¶
func (c *Context) WithOrgLicenseData(licenseData *json.RawMessage) *Context
func (*Context) WithOrgName ¶
func (*Context) WithSlackID ¶
Click to show internal directories.
Click to hide internal directories.