Documentation ¶
Overview ¶
Package schema contains the ent schema
Index ¶
- Variables
- type Entitlement
- type Group
- type GroupSetting
- type Integration
- type OauthProvider
- type OhAuthTooToken
- type Organization
- func (Organization) Annotations() []schema.Annotation
- func (Organization) Edges() []ent.Edge
- func (Organization) Fields() []ent.Field
- func (Organization) Hooks() []ent.Hook
- func (Organization) Indexes() []ent.Index
- func (Organization) Interceptors() []ent.Interceptor
- func (Organization) Mixin() []ent.Mixin
- func (Organization) Policy() ent.Policy
- type OrganizationSetting
- type PersonalAccessToken
- type Session
- type User
- type UserSetting
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidTokenSize is returned when session token size is invalid ErrInvalidTokenSize = errors.New("invalid token size") // ErrContainsSpaces is returned when field contains spaces ErrContainsSpaces = errors.New("field should not contain spaces") )
Functions ¶
This section is empty.
Types ¶
type Entitlement ¶
Entitlement holds the schema definition for the Entitlement entity.
func (Entitlement) Annotations ¶
func (Entitlement) Annotations() []schema.Annotation
Annotations of the Entitlement
type GroupSetting ¶
GroupSetting holds the schema definition for the GroupSetting entity.
func (GroupSetting) Annotations ¶
func (GroupSetting) Annotations() []schema.Annotation
Annotations of the GroupSetting
type Integration ¶
Integration maps configured integrations (github, slack, etc.) to organizations
func (Integration) Annotations ¶
func (Integration) Annotations() []schema.Annotation
Annotations of the Integration
type OauthProvider ¶
OauthProvider holds the schema definition for the OauthProvider entity
func (OauthProvider) Annotations ¶
func (OauthProvider) Annotations() []schema.Annotation
Annotations of the OauthProvider
type OhAuthTooToken ¶
OhAuthTooToken holds the schema definition for the OhAuthTooToken entity
func (OhAuthTooToken) Annotations ¶
func (OhAuthTooToken) Annotations() []schema.Annotation
Annotations of the OhAuthTooToken
func (OhAuthTooToken) Fields ¶
func (OhAuthTooToken) Fields() []ent.Field
Fields of the OhAuthTooToken
type Organization ¶
Organization holds the schema definition for the Organization entity - organizations are the top level tenancy construct in the system
func (Organization) Annotations ¶
func (Organization) Annotations() []schema.Annotation
Annotations of the Organization
func (Organization) Indexes ¶
func (Organization) Indexes() []ent.Index
func (Organization) Interceptors ¶
func (Organization) Interceptors() []ent.Interceptor
Interceptors of the Organization
func (Organization) Policy ¶
func (Organization) Policy() ent.Policy
Policy defines the privacy policy of the Organization.
type OrganizationSetting ¶
OrganizationSetting holds the schema definition for the OrganizationSetting entity
func (OrganizationSetting) Annotations ¶
func (OrganizationSetting) Annotations() []schema.Annotation
Annotations of the OrganizationSetting
func (OrganizationSetting) Edges ¶
func (OrganizationSetting) Edges() []ent.Edge
Edges of the OrganizationSetting
func (OrganizationSetting) Fields ¶
func (OrganizationSetting) Fields() []ent.Field
Fields of the OrganizationSetting
func (OrganizationSetting) Mixin ¶
func (OrganizationSetting) Mixin() []ent.Mixin
Mixin of the OrganizationSetting
type PersonalAccessToken ¶
PersonalAccessToken holds the schema definition for the PersonalAccessToken entity.
func (PersonalAccessToken) Annotations ¶
func (PersonalAccessToken) Annotations() []schema.Annotation
Annotations of the PersonalAccessToken
func (PersonalAccessToken) Edges ¶
func (PersonalAccessToken) Edges() []ent.Edge
Edges of the PersonalAccessToken
func (PersonalAccessToken) Fields ¶
func (PersonalAccessToken) Fields() []ent.Field
Fields of the PersonalAccessToken
func (PersonalAccessToken) Hooks ¶
func (PersonalAccessToken) Hooks() []ent.Hook
Hooks of the AccessToken
func (PersonalAccessToken) Indexes ¶
func (PersonalAccessToken) Indexes() []ent.Index
Indexes of the PersonalAccessToken
func (PersonalAccessToken) Mixin ¶
func (PersonalAccessToken) Mixin() []ent.Mixin
Mixin of the PersonalAccessToken
type Session ¶
Session holds authentication sessions. They can either be first-party web auth sessions or OAuth sessions. Sessions should persist in the database for some time duration after expiration, but with the "disabled" boolean set to true.
func (Session) Annotations ¶
func (Session) Annotations() []schema.Annotation
Annotations of the Session
type UserSetting ¶
UserSetting holds the schema definition for the User entity.
func (UserSetting) Annotations ¶
func (UserSetting) Annotations() []schema.Annotation
Annotations of the UserSetting