schema

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package schema contains the ent schema

Index

Constants

This section is empty.

Variables

View Source
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

type Entitlement struct {
	ent.Schema
}

Entitlement holds the schema definition for the Entitlement entity.

func (Entitlement) Annotations

func (Entitlement) Annotations() []schema.Annotation

Annotations of the Entitlement

func (Entitlement) Edges

func (Entitlement) Edges() []ent.Edge

Edges of the Entitlement

func (Entitlement) Fields

func (Entitlement) Fields() []ent.Field

Fields of the Entitlement.

func (Entitlement) Mixin

func (Entitlement) Mixin() []ent.Mixin

Mixin of the Entitlement

type Group

type Group struct {
	ent.Schema
}

Group holds the schema definition for the Group entity

func (Group) Annotations

func (Group) Annotations() []schema.Annotation

Annotations of the Group

func (Group) Edges

func (Group) Edges() []ent.Edge

Edges of the Group

func (Group) Fields

func (Group) Fields() []ent.Field

Fields of the Group

func (Group) Hooks

func (Group) Hooks() []ent.Hook

Hooks of the Group

func (Group) Indexes

func (Group) Indexes() []ent.Index

Indexes of the Group

func (Group) Interceptors

func (Group) Interceptors() []ent.Interceptor

Interceptors of the Group

func (Group) Mixin

func (Group) Mixin() []ent.Mixin

Mixin of the Group

func (Group) Policy

func (Group) Policy() ent.Policy

Policy of the group

type GroupSetting

type GroupSetting struct {
	ent.Schema
}

GroupSetting holds the schema definition for the GroupSetting entity.

func (GroupSetting) Annotations

func (GroupSetting) Annotations() []schema.Annotation

Annotations of the GroupSetting

func (GroupSetting) Edges

func (GroupSetting) Edges() []ent.Edge

Edges of the GroupSetting.

func (GroupSetting) Fields

func (GroupSetting) Fields() []ent.Field

Fields of the GroupSetting.

func (GroupSetting) Mixin

func (GroupSetting) Mixin() []ent.Mixin

Mixin of the GroupSetting

type Integration

type Integration struct {
	ent.Schema
}

Integration maps configured integrations (github, slack, etc.) to organizations

func (Integration) Annotations

func (Integration) Annotations() []schema.Annotation

Annotations of the Integration

func (Integration) Edges

func (Integration) Edges() []ent.Edge

Edges of the Integration

func (Integration) Fields

func (Integration) Fields() []ent.Field

Fields of the Integration

func (Integration) Mixin

func (Integration) Mixin() []ent.Mixin

Mixin of the Integration

type OauthProvider

type OauthProvider struct {
	ent.Schema
}

OauthProvider holds the schema definition for the OauthProvider entity

func (OauthProvider) Annotations

func (OauthProvider) Annotations() []schema.Annotation

Annotations of the OauthProvider

func (OauthProvider) Edges

func (OauthProvider) Edges() []ent.Edge

Edges of the OauthProvider

func (OauthProvider) Fields

func (OauthProvider) Fields() []ent.Field

Fields of the OauthProvider

func (OauthProvider) Mixin

func (OauthProvider) Mixin() []ent.Mixin

Mixin of the OauthProvider

type OhAuthTooToken

type OhAuthTooToken struct {
	ent.Schema
}

OhAuthTooToken holds the schema definition for the OhAuthTooToken entity

func (OhAuthTooToken) Annotations

func (OhAuthTooToken) Annotations() []schema.Annotation

Annotations of the OhAuthTooToken

func (OhAuthTooToken) Edges

func (OhAuthTooToken) Edges() []ent.Edge

Edges of the OhAuthTooToken

func (OhAuthTooToken) Fields

func (OhAuthTooToken) Fields() []ent.Field

Fields of the OhAuthTooToken

func (OhAuthTooToken) Mixin

func (OhAuthTooToken) Mixin() []ent.Mixin

Mixin of the OhAuthTooToken

type Organization

type Organization struct {
	ent.Schema
}

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) Edges

func (Organization) Edges() []ent.Edge

Edges of the Organization

func (Organization) Fields

func (Organization) Fields() []ent.Field

Fields of the Organization

func (Organization) Hooks

func (Organization) Hooks() []ent.Hook

Hooks 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) Mixin

func (Organization) Mixin() []ent.Mixin

Mixin of the Organization

func (Organization) Policy

func (Organization) Policy() ent.Policy

Policy defines the privacy policy of the Organization.

type OrganizationSetting

type OrganizationSetting struct {
	ent.Schema
}

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

type PersonalAccessToken struct {
	ent.Schema
}

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

type Session struct {
	ent.Schema
}

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

func (Session) Edges

func (Session) Edges() []ent.Edge

Edges of the Session

func (Session) Fields

func (Session) Fields() []ent.Field

Fields of the Session

func (Session) Hooks

func (Session) Hooks() []ent.Hook

Hooks of the Session

func (Session) Indexes

func (Session) Indexes() []ent.Index

Indexes of the Session

func (Session) Mixin

func (Session) Mixin() []ent.Mixin

Mixin of the Session

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Annotations

func (User) Annotations() []schema.Annotation

Annotations of the User

func (User) Edges

func (User) Edges() []ent.Edge

Edges of the User

func (User) Fields

func (User) Fields() []ent.Field

Fields of the User.

func (User) Hooks

func (User) Hooks() []ent.Hook

func (User) Indexes

func (User) Indexes() []ent.Index

Indexes of the User

func (User) Mixin

func (User) Mixin() []ent.Mixin

Mixin of the User

func (User) Policy

func (User) Policy() ent.Policy

Policy defines the privacy policy of the User. TODO: implement privacy policy on the user

type UserSetting

type UserSetting struct {
	ent.Schema
}

UserSetting holds the schema definition for the User entity.

func (UserSetting) Annotations

func (UserSetting) Annotations() []schema.Annotation

Annotations of the UserSetting

func (UserSetting) Edges

func (UserSetting) Edges() []ent.Edge

Edges of the UserSetting

func (UserSetting) Fields

func (UserSetting) Fields() []ent.Field

Fields of the UserSetting

func (UserSetting) Mixin

func (UserSetting) Mixin() []ent.Mixin

Mixin of the UserSetting

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL