Documentation
¶
Overview ¶
Package schema contains the ent schema
Index ¶
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 GroupSettings ¶ added in v0.1.1
GroupSettings holds the schema definition for the GroupSettings entity.
func (GroupSettings) Annotations ¶ added in v0.1.1
func (GroupSettings) Annotations() []schema.Annotation
Annotations of the GroupSettings
func (GroupSettings) Edges ¶ added in v0.1.1
func (GroupSettings) Edges() []ent.Edge
Edges of the GroupSettings.
func (GroupSettings) Fields ¶ added in v0.1.1
func (GroupSettings) Fields() []ent.Field
Fields of the GroupSettings.
func (GroupSettings) Mixin ¶ added in v0.1.1
func (GroupSettings) Mixin() []ent.Mixin
Mixin of the GroupSettings
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 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
type OrganizationSettings ¶ added in v0.1.1
OrganizationSettings holds the schema definition for the OrganizationSettings entity
func (OrganizationSettings) Annotations ¶ added in v0.1.1
func (OrganizationSettings) Annotations() []schema.Annotation
Annotations of the OrganizationSettings
func (OrganizationSettings) Edges ¶ added in v0.1.1
func (OrganizationSettings) Edges() []ent.Edge
Edges of the OrganizationSettings
func (OrganizationSettings) Fields ¶ added in v0.1.1
func (OrganizationSettings) Fields() []ent.Field
Fields of the OrganizationSettings
func (OrganizationSettings) Mixin ¶ added in v0.1.1
func (OrganizationSettings) Mixin() []ent.Mixin
Mixin of the OrganizationSettings
type PersonalAccessToken ¶
PersonalAccessToken holds the schema definition for the PersonalAccessToken entity.
func (PersonalAccessToken) Annotations ¶
func (PersonalAccessToken) Annotations() []schema.Annotation
Annotations of the Organization
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) Indexes ¶
func (PersonalAccessToken) Indexes() []ent.Index
func (PersonalAccessToken) Mixin ¶
func (PersonalAccessToken) Mixin() []ent.Mixin
Mixin of the RefreshToken
type RefreshToken ¶ added in v0.1.1
RefreshToken holds the schema definition for the RefreshToken entity
func (RefreshToken) Edges ¶ added in v0.1.1
func (RefreshToken) Edges() []ent.Edge
Edges of the RefreshToken
func (RefreshToken) Fields ¶ added in v0.1.1
func (RefreshToken) Fields() []ent.Field
Fields of the RefreshToken
func (RefreshToken) Mixin ¶ added in v0.1.1
func (RefreshToken) Mixin() []ent.Mixin
Mixin of the RefreshToken
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 UserSettings ¶ added in v0.1.1
UserSettings holds the schema definition for the User entity.
func (UserSettings) Annotations ¶ added in v0.1.1
func (UserSettings) Annotations() []schema.Annotation
Annotations of the UserSettings
func (UserSettings) Edges ¶ added in v0.1.1
func (UserSettings) Edges() []ent.Edge
Edges of the UserSettings
func (UserSettings) Fields ¶ added in v0.1.1
func (UserSettings) Fields() []ent.Field
Fields of the UserSettings
func (UserSettings) Mixin ¶ added in v0.1.1
func (UserSettings) Mixin() []ent.Mixin
Mixin of the UserSettings