schema

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 17 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) Indexes

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

Indexes of the Group

func (Group) Mixin

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

Mixin of the Group

type GroupSettings added in v0.1.1

type GroupSettings struct {
	ent.Schema
}

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

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

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

Mixin of the Organization

type OrganizationSettings added in v0.1.1

type OrganizationSettings struct {
	ent.Schema
}

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

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

type RefreshToken struct {
	ent.Schema
}

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

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

type UserSettings added in v0.1.1

type UserSettings struct {
	ent.Schema
}

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

Jump to

Keyboard shortcuts

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