Versions in this module Expand all Collapse all v1 v1.105.6 Aug 6, 2026 Changes in this version + func GetCLIVersionFromHeader(ctx context.Context) string + 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 + func WithMembership(ctx context.Context, m *Membership) context.Context + type APIToken struct + CreatedAt *time.Time + ID string + IsSystem bool + Name string + Policies []*authz.Policy + ProjectID *uuid.UUID + ProjectName *string + Scope string + Token string + WorkflowID *uuid.UUID + WorkflowName *string + func CurrentAPIToken(ctx context.Context) *APIToken + type Membership struct + Resources []*ResourceMembership + UserID uuid.UUID + func CurrentMembership(ctx context.Context) *Membership + type Org struct + CreatedAt *time.Time + ID string + Name string + Suspended bool + func CurrentOrg(ctx context.Context) *Org + type ResourceMembership struct + MembershipID uuid.UUID + ResourceID uuid.UUID + ResourceType authz.ResourceType + Role authz.Role + type User struct + CreatedAt *time.Time + Email string + FirstName string + ID string + LastName string + func CurrentUser(ctx context.Context) *User