Documentation ¶
Overview ¶
Package schema contains the ent schema
Index ¶
- Variables
- type EmailVerificationToken
- func (EmailVerificationToken) Annotations() []schema.Annotation
- func (EmailVerificationToken) Edges() []ent.Edge
- func (EmailVerificationToken) Fields() []ent.Field
- func (EmailVerificationToken) Hooks() []ent.Hook
- func (EmailVerificationToken) Indexes() []ent.Index
- func (EmailVerificationToken) Mixin() []ent.Mixin
- func (EmailVerificationToken) Policy() ent.Policy
- type Entitlement
- type Group
- type GroupMembership
- func (GroupMembership) Annotations() []schema.Annotation
- func (GroupMembership) Edges() []ent.Edge
- func (GroupMembership) Fields() []ent.Field
- func (GroupMembership) Hooks() []ent.Hook
- func (GroupMembership) Indexes() []ent.Index
- func (GroupMembership) Mixin() []ent.Mixin
- func (GroupMembership) Policy() ent.Policy
- type GroupSetting
- type Integration
- type Invite
- type OauthProvider
- type OhAuthTooToken
- type OrgMembership
- func (OrgMembership) Annotations() []schema.Annotation
- func (OrgMembership) Edges() []ent.Edge
- func (OrgMembership) Fields() []ent.Field
- func (OrgMembership) Hooks() []ent.Hook
- func (OrgMembership) Indexes() []ent.Index
- func (OrgMembership) Mixin() []ent.Mixin
- func (OrgMembership) Policy() ent.Policy
- type OrgOwnerMixin
- 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 PasswordResetToken
- func (PasswordResetToken) Annotations() []schema.Annotation
- func (PasswordResetToken) Edges() []ent.Edge
- func (PasswordResetToken) Fields() []ent.Field
- func (PasswordResetToken) Hooks() []ent.Hook
- func (PasswordResetToken) Indexes() []ent.Index
- func (PasswordResetToken) Mixin() []ent.Mixin
- func (PasswordResetToken) Policy() ent.Policy
- type PersonalAccessToken
- func (PersonalAccessToken) Annotations() []schema.Annotation
- func (PersonalAccessToken) Edges() []ent.Edge
- func (PersonalAccessToken) Fields() []ent.Field
- func (PersonalAccessToken) Hooks() []ent.Hook
- func (PersonalAccessToken) Indexes() []ent.Index
- func (PersonalAccessToken) Interceptors() []ent.Interceptor
- func (PersonalAccessToken) Mixin() []ent.Mixin
- func (PersonalAccessToken) Policy() ent.Policy
- type Subscriber
- func (Subscriber) Annotations() []schema.Annotation
- func (Subscriber) Edges() []ent.Edge
- func (Subscriber) Fields() []ent.Field
- func (Subscriber) Hooks() []ent.Hook
- func (Subscriber) Indexes() []ent.Index
- func (Subscriber) Interceptors() []ent.Interceptor
- func (Subscriber) Mixin() []ent.Mixin
- func (Subscriber) Policy() ent.Policy
- type TFASettings
- type User
- type UserOwnedMixin
- type UserSetting
- func (UserSetting) Annotations() []schema.Annotation
- func (UserSetting) Edges() []ent.Edge
- func (UserSetting) Fields() []ent.Field
- func (UserSetting) Hooks() []ent.Hook
- func (d UserSetting) Interceptors() []ent.Interceptor
- func (UserSetting) Mixin() []ent.Mixin
- func (UserSetting) Policy() ent.Policy
- type Webauthn
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") // ErrPermissionDenied is returned when the user is not authorized to perform the requested query or mutation ErrPermissionDenied = errors.New("you are not authorized to perform this action") )
Functions ¶
This section is empty.
Types ¶
type EmailVerificationToken ¶ added in v0.2.2
EmailVerificationToken holds the schema definition for the EmailVerificationToken entity
func (EmailVerificationToken) Annotations ¶ added in v0.2.2
func (EmailVerificationToken) Annotations() []schema.Annotation
Annotations of the EmailVerificationToken
func (EmailVerificationToken) Edges ¶ added in v0.2.2
func (EmailVerificationToken) Edges() []ent.Edge
Edges of the EmailVerificationToken
func (EmailVerificationToken) Fields ¶ added in v0.2.2
func (EmailVerificationToken) Fields() []ent.Field
Fields of the EmailVerificationToken
func (EmailVerificationToken) Hooks ¶ added in v0.2.2
func (EmailVerificationToken) Hooks() []ent.Hook
Hooks of the EmailVerificationToken
func (EmailVerificationToken) Indexes ¶ added in v0.2.2
func (EmailVerificationToken) Indexes() []ent.Index
Indexes of the EmailVerificationToken
func (EmailVerificationToken) Mixin ¶ added in v0.2.2
func (EmailVerificationToken) Mixin() []ent.Mixin
Mixin of the EmailVerificationToken
func (EmailVerificationToken) Policy ¶ added in v0.2.4
func (EmailVerificationToken) Policy() ent.Policy
Policy of the EmailVerificationToken
type Entitlement ¶
Entitlement holds the schema definition for the Entitlement entity.
func (Entitlement) Annotations ¶
func (Entitlement) Annotations() []schema.Annotation
Annotations of the Entitlement
type GroupMembership ¶ added in v0.2.4
GroupMembership holds the schema definition for the GroupMembership entity
func (GroupMembership) Annotations ¶ added in v0.2.4
func (GroupMembership) Annotations() []schema.Annotation
Annotations of the GroupMembership
func (GroupMembership) Edges ¶ added in v0.2.4
func (GroupMembership) Edges() []ent.Edge
Edges of the GroupMembership
func (GroupMembership) Fields ¶ added in v0.2.4
func (GroupMembership) Fields() []ent.Field
Fields of the GroupMembership
func (GroupMembership) Hooks ¶ added in v0.2.5
func (GroupMembership) Hooks() []ent.Hook
Hooks of the GroupMembership
func (GroupMembership) Indexes ¶ added in v0.2.5
func (GroupMembership) Indexes() []ent.Index
Indexes of the GroupMembership
func (GroupMembership) Mixin ¶ added in v0.2.4
func (GroupMembership) Mixin() []ent.Mixin
Mixin of the GroupMembership
func (GroupMembership) Policy ¶ added in v0.3.2
func (GroupMembership) Policy() ent.Policy
Policy of the GroupMembership
type GroupSetting ¶
GroupSetting holds the schema definition for the GroupSetting entity
func (GroupSetting) Annotations ¶
func (GroupSetting) Annotations() []schema.Annotation
Annotations of the GroupSetting
func (GroupSetting) Policy ¶ added in v0.3.5
func (GroupSetting) Policy() ent.Policy
Policy defines the privacy policy 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
func (Integration) Policy ¶ added in v0.3.6
func (Integration) Policy() ent.Policy
Policy of the Integration
type Invite ¶ added in v0.2.6
Invite holds the schema definition for the Invite entity
func (Invite) Annotations ¶ added in v0.2.6
func (Invite) Annotations() []schema.Annotation
Annotations of the Invite
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 OrgMembership ¶ added in v0.2.4
OrgMembership holds the schema definition for the OrgMembership entity
func (OrgMembership) Annotations ¶ added in v0.2.4
func (OrgMembership) Annotations() []schema.Annotation
Annotations of the OrgMembership
func (OrgMembership) Edges ¶ added in v0.2.4
func (OrgMembership) Edges() []ent.Edge
Edges of the OrgMembership
func (OrgMembership) Fields ¶ added in v0.2.4
func (OrgMembership) Fields() []ent.Field
Fields of the OrgMembership
func (OrgMembership) Hooks ¶ added in v0.2.5
func (OrgMembership) Hooks() []ent.Hook
Hooks of the OrgMembership
func (OrgMembership) Indexes ¶ added in v0.2.5
func (OrgMembership) Indexes() []ent.Index
func (OrgMembership) Mixin ¶ added in v0.2.4
func (OrgMembership) Mixin() []ent.Mixin
Mixin of the OrgMembership
func (OrgMembership) Policy ¶ added in v0.3.2
func (OrgMembership) Policy() ent.Policy
Policy of the OrgMembership
type OrgOwnerMixin ¶ added in v0.2.4
type OrgOwnerMixin struct { mixin.Schema // Ref table for the id Ref string // Optional makes the owner id field not required Optional bool // SkipOASGeneration skips open api spec generation for the field SkipOASGeneration bool // AllowWhere includes the owner_id field in gql generated fields AllowWhere bool }
func (OrgOwnerMixin) Edges ¶ added in v0.2.4
func (orgOwned OrgOwnerMixin) Edges() []ent.Edge
Edges of the OrgOwnerMixin
func (OrgOwnerMixin) Fields ¶ added in v0.2.4
func (orgOwned OrgOwnerMixin) Fields() []ent.Field
Fields of the OrgOwnerMixin
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
func (OrganizationSetting) Policy ¶ added in v0.3.5
func (OrganizationSetting) Policy() ent.Policy
Policy defines the privacy policy of the OrganizationSetting
type PasswordResetToken ¶ added in v0.2.3
PasswordResetToken holds the schema definition for the PasswordResetToken entity
func (PasswordResetToken) Annotations ¶ added in v0.2.3
func (PasswordResetToken) Annotations() []schema.Annotation
Annotations of the PasswordResetToken
func (PasswordResetToken) Edges ¶ added in v0.2.3
func (PasswordResetToken) Edges() []ent.Edge
Edges of the PasswordResetToken
func (PasswordResetToken) Fields ¶ added in v0.2.3
func (PasswordResetToken) Fields() []ent.Field
Fields of the PasswordResetToken
func (PasswordResetToken) Hooks ¶ added in v0.2.3
func (PasswordResetToken) Hooks() []ent.Hook
Hooks of the PasswordResetToken
func (PasswordResetToken) Indexes ¶ added in v0.2.3
func (PasswordResetToken) Indexes() []ent.Index
Indexes of the PasswordResetToken
func (PasswordResetToken) Mixin ¶ added in v0.2.3
func (PasswordResetToken) Mixin() []ent.Mixin
Mixin of the PasswordResetToken
func (PasswordResetToken) Policy ¶ added in v0.2.4
func (PasswordResetToken) Policy() ent.Policy
Policy of the PasswordResetToken
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 PersonalAccessToken
func (PersonalAccessToken) Indexes ¶
func (PersonalAccessToken) Indexes() []ent.Index
Indexes of the PersonalAccessToken
func (PersonalAccessToken) Interceptors ¶ added in v0.3.3
func (PersonalAccessToken) Interceptors() []ent.Interceptor
Interceptors of the PersonalAccessToken
func (PersonalAccessToken) Mixin ¶
func (PersonalAccessToken) Mixin() []ent.Mixin
Mixin of the PersonalAccessToken
func (PersonalAccessToken) Policy ¶ added in v0.3.3
func (PersonalAccessToken) Policy() ent.Policy
Policy of the PersonalAccessToken
type Subscriber ¶ added in v0.3.6
Subscriber holds the schema definition for the Subscriber entity
func (Subscriber) Annotations ¶ added in v0.3.6
func (Subscriber) Annotations() []schema.Annotation
Annotations of the Subscriber
func (Subscriber) Edges ¶ added in v0.3.6
func (Subscriber) Edges() []ent.Edge
Edges of the Subscriber
func (Subscriber) Fields ¶ added in v0.3.6
func (Subscriber) Fields() []ent.Field
Fields of the Subscriber
func (Subscriber) Hooks ¶ added in v0.3.6
func (Subscriber) Hooks() []ent.Hook
func (Subscriber) Indexes ¶ added in v0.3.6
func (Subscriber) Indexes() []ent.Index
Indexes of the Subscriber
func (Subscriber) Interceptors ¶ added in v0.3.6
func (Subscriber) Interceptors() []ent.Interceptor
Interceptors of the Subscriber
func (Subscriber) Mixin ¶ added in v0.3.6
func (Subscriber) Mixin() []ent.Mixin
Mixin of the Subscriber
func (Subscriber) Policy ¶ added in v0.3.6
func (Subscriber) Policy() ent.Policy
Policy of the Subscriber
type TFASettings ¶ added in v0.3.6
TFASettings holds the schema definition for the TFASettings entity
func (TFASettings) Annotations ¶ added in v0.3.6
func (TFASettings) Annotations() []schema.Annotation
Annotations of the TFASettings
func (TFASettings) Fields ¶ added in v0.3.6
func (TFASettings) Fields() []ent.Field
Fields of the TFASettings
func (TFASettings) Hooks ¶ added in v0.3.6
func (TFASettings) Hooks() []ent.Hook
Hooks of the TFASettings
func (TFASettings) Mixin ¶ added in v0.3.6
func (TFASettings) Mixin() []ent.Mixin
Mixin of the TFASettings
type User ¶
User holds the schema definition for the User entity.
func (User) Interceptors ¶ added in v0.2.4
func (d User) Interceptors() []ent.Interceptor
Interceptors of the User.
type UserOwnedMixin ¶ added in v0.2.4
type UserOwnedMixin struct { mixin.Schema Ref string Optional bool AllowUpdate bool SkipOASGeneration bool SoftDeleteIndex bool }
func (UserOwnedMixin) Edges ¶ added in v0.2.4
func (userOwned UserOwnedMixin) Edges() []ent.Edge
Edges of the UserOwnedMixin
func (UserOwnedMixin) Fields ¶ added in v0.2.4
func (userOwned UserOwnedMixin) Fields() []ent.Field
Fields of the UserOwnedMixin
func (UserOwnedMixin) Indexes ¶ added in v0.3.6
func (userOwned UserOwnedMixin) Indexes() []ent.Index
Indexes of the UserOwnedMixin
type UserSetting ¶
UserSetting holds the schema definition for the User entity.
func (UserSetting) Annotations ¶
func (UserSetting) Annotations() []schema.Annotation
Annotations of the UserSetting
func (UserSetting) Hooks ¶ added in v0.3.4
func (UserSetting) Hooks() []ent.Hook
Hooks of the UserSetting.
func (UserSetting) Interceptors ¶ added in v0.3.4
func (d UserSetting) Interceptors() []ent.Interceptor
Interceptors of the UserSetting.
func (UserSetting) Policy ¶ added in v0.3.4
func (UserSetting) Policy() ent.Policy
type Webauthn ¶ added in v0.3.0
Webauthn holds the schema definition for the Webauthn entity
func (Webauthn) Annotations ¶ added in v0.3.0
func (Webauthn) Annotations() []schema.Annotation
Annotations of the Webauthn
Source Files ¶
- doc.go
- emailverificationtoken.go
- entitlement.go
- errors.go
- group.go
- groupmembership.go
- groupsetting.go
- integration.go
- invite.go
- oauthprovider.go
- ohauthtootoken.go
- org_owned_mixin.go
- organization.go
- organizationsetting.go
- orgmembership.go
- passwordresettoken.go
- personalaccesstoken.go
- subscriber.go
- tfasettings.go
- user.go
- user_owned_mixin.go
- usersetting.go
- webauthn.go