app

package
v0.0.0-...-04b2c92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the app type in the database.
	Label = "app"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldRedirectURI holds the string denoting the redirect_uri field in the database.
	FieldRedirectURI = "redirect_uri"
	// FieldAppKey holds the string denoting the app_key field in the database.
	FieldAppKey = "app_key"
	// FieldAppSecret holds the string denoting the app_secret field in the database.
	FieldAppSecret = "app_secret"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldTokenValidity holds the string denoting the token_validity field in the database.
	FieldTokenValidity = "token_validity"
	// FieldRefreshTokenValidity holds the string denoting the refresh_token_validity field in the database.
	FieldRefreshTokenValidity = "refresh_token_validity"
	FieldLogo = "logo"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPrivate holds the string denoting the private field in the database.
	FieldPrivate = "private"
	// FieldOwnerOrgID holds the string denoting the owner_org_id field in the database.
	FieldOwnerOrgID = "owner_org_id"
	// EdgeMenus holds the string denoting the menus edge name in mutations.
	EdgeMenus = "menus"
	// EdgeActions holds the string denoting the actions edge name in mutations.
	EdgeActions = "actions"
	// EdgeResources holds the string denoting the resources edge name in mutations.
	EdgeResources = "resources"
	// EdgeRoles holds the string denoting the roles edge name in mutations.
	EdgeRoles = "roles"
	// EdgePolicies holds the string denoting the policies edge name in mutations.
	EdgePolicies = "policies"
	// EdgeOrgs holds the string denoting the orgs edge name in mutations.
	EdgeOrgs = "orgs"
	// EdgeDicts holds the string denoting the dicts edge name in mutations.
	EdgeDicts = "dicts"
	// EdgeOrgApp holds the string denoting the org_app edge name in mutations.
	EdgeOrgApp = "org_app"
	// Table holds the table name of the app in the database.
	Table = "app"
	// MenusTable is the table that holds the menus relation/edge.
	MenusTable = "app_menu"
	// MenusInverseTable is the table name for the AppMenu entity.
	// It exists in this package in order to avoid circular dependency with the "appmenu" package.
	MenusInverseTable = "app_menu"
	// MenusColumn is the table column denoting the menus relation/edge.
	MenusColumn = "app_id"
	// ActionsTable is the table that holds the actions relation/edge.
	ActionsTable = "app_action"
	// ActionsInverseTable is the table name for the AppAction entity.
	// It exists in this package in order to avoid circular dependency with the "appaction" package.
	ActionsInverseTable = "app_action"
	// ActionsColumn is the table column denoting the actions relation/edge.
	ActionsColumn = "app_id"
	// ResourcesTable is the table that holds the resources relation/edge.
	ResourcesTable = "app_res"
	// ResourcesInverseTable is the table name for the AppRes entity.
	// It exists in this package in order to avoid circular dependency with the "appres" package.
	ResourcesInverseTable = "app_res"
	// ResourcesColumn is the table column denoting the resources relation/edge.
	ResourcesColumn = "app_id"
	// RolesTable is the table that holds the roles relation/edge.
	RolesTable = "app_role"
	// RolesInverseTable is the table name for the AppRole entity.
	// It exists in this package in order to avoid circular dependency with the "approle" package.
	RolesInverseTable = "app_role"
	// RolesColumn is the table column denoting the roles relation/edge.
	RolesColumn = "app_id"
	// PoliciesTable is the table that holds the policies relation/edge.
	PoliciesTable = "app_policy"
	// PoliciesInverseTable is the table name for the AppPolicy entity.
	// It exists in this package in order to avoid circular dependency with the "apppolicy" package.
	PoliciesInverseTable = "app_policy"
	// PoliciesColumn is the table column denoting the policies relation/edge.
	PoliciesColumn = "app_id"
	// OrgsTable is the table that holds the orgs relation/edge. The primary key declared below.
	OrgsTable = "org_app"
	// OrgsInverseTable is the table name for the Org entity.
	// It exists in this package in order to avoid circular dependency with the "org" package.
	OrgsInverseTable = "org"
	// DictsTable is the table that holds the dicts relation/edge.
	DictsTable = "app_dict"
	// DictsInverseTable is the table name for the AppDict entity.
	// It exists in this package in order to avoid circular dependency with the "appdict" package.
	DictsInverseTable = "app_dict"
	// DictsColumn is the table column denoting the dicts relation/edge.
	DictsColumn = "app_id"
	// OrgAppTable is the table that holds the org_app relation/edge.
	OrgAppTable = "org_app"
	// OrgAppInverseTable is the table name for the OrgApp entity.
	// It exists in this package in order to avoid circular dependency with the "orgapp" package.
	OrgAppInverseTable = "org_app"
	// OrgAppColumn is the table column denoting the org_app relation/edge.
	OrgAppColumn = "app_id"
)
View Source
const DefaultStatus typex.SimpleStatus = "active"

Variables

View Source
var (
	Hooks [3]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// RedirectURIValidator is a validator for the "redirect_uri" field. It is called by the builders before save.
	RedirectURIValidator func(string) error
	// AppSecretValidator is a validator for the "app_secret" field. It is called by the builders before save.
	AppSecretValidator func(string) error
	// ScopesValidator is a validator for the "scopes" field. It is called by the builders before save.
	ScopesValidator func(string) error
	// LogoValidator is a validator for the "logo" field. It is called by the builders before save.
	LogoValidator func(string) error
	// DefaultPrivate holds the default value on creation for the "private" field.
	DefaultPrivate bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout/ent/runtime"

Columns holds all SQL columns for app fields.

View Source
var (
	// OrgsPrimaryKey and OrgsColumn2 are the table columns denoting the
	// primary key for the orgs relation (M2M).
	OrgsPrimaryKey = []string{"org_id", "app_id"}
)

Functions

func And

func And(predicates ...predicate.App) predicate.App

And groups predicates with the AND operator between them.

func AppKey

func AppKey(v string) predicate.App

AppKey applies equality check predicate on the "app_key" field. It's identical to AppKeyEQ.

func AppKeyContains

func AppKeyContains(v string) predicate.App

AppKeyContains applies the Contains predicate on the "app_key" field.

func AppKeyContainsFold

func AppKeyContainsFold(v string) predicate.App

AppKeyContainsFold applies the ContainsFold predicate on the "app_key" field.

func AppKeyEQ

func AppKeyEQ(v string) predicate.App

AppKeyEQ applies the EQ predicate on the "app_key" field.

func AppKeyEqualFold

func AppKeyEqualFold(v string) predicate.App

AppKeyEqualFold applies the EqualFold predicate on the "app_key" field.

func AppKeyGT

func AppKeyGT(v string) predicate.App

AppKeyGT applies the GT predicate on the "app_key" field.

func AppKeyGTE

func AppKeyGTE(v string) predicate.App

AppKeyGTE applies the GTE predicate on the "app_key" field.

func AppKeyHasPrefix

func AppKeyHasPrefix(v string) predicate.App

AppKeyHasPrefix applies the HasPrefix predicate on the "app_key" field.

func AppKeyHasSuffix

func AppKeyHasSuffix(v string) predicate.App

AppKeyHasSuffix applies the HasSuffix predicate on the "app_key" field.

func AppKeyIn

func AppKeyIn(vs ...string) predicate.App

AppKeyIn applies the In predicate on the "app_key" field.

func AppKeyIsNil

func AppKeyIsNil() predicate.App

AppKeyIsNil applies the IsNil predicate on the "app_key" field.

func AppKeyLT

func AppKeyLT(v string) predicate.App

AppKeyLT applies the LT predicate on the "app_key" field.

func AppKeyLTE

func AppKeyLTE(v string) predicate.App

AppKeyLTE applies the LTE predicate on the "app_key" field.

func AppKeyNEQ

func AppKeyNEQ(v string) predicate.App

AppKeyNEQ applies the NEQ predicate on the "app_key" field.

func AppKeyNotIn

func AppKeyNotIn(vs ...string) predicate.App

AppKeyNotIn applies the NotIn predicate on the "app_key" field.

func AppKeyNotNil

func AppKeyNotNil() predicate.App

AppKeyNotNil applies the NotNil predicate on the "app_key" field.

func AppSecret

func AppSecret(v string) predicate.App

AppSecret applies equality check predicate on the "app_secret" field. It's identical to AppSecretEQ.

func AppSecretContains

func AppSecretContains(v string) predicate.App

AppSecretContains applies the Contains predicate on the "app_secret" field.

func AppSecretContainsFold

func AppSecretContainsFold(v string) predicate.App

AppSecretContainsFold applies the ContainsFold predicate on the "app_secret" field.

func AppSecretEQ

func AppSecretEQ(v string) predicate.App

AppSecretEQ applies the EQ predicate on the "app_secret" field.

func AppSecretEqualFold

func AppSecretEqualFold(v string) predicate.App

AppSecretEqualFold applies the EqualFold predicate on the "app_secret" field.

func AppSecretGT

func AppSecretGT(v string) predicate.App

AppSecretGT applies the GT predicate on the "app_secret" field.

func AppSecretGTE

func AppSecretGTE(v string) predicate.App

AppSecretGTE applies the GTE predicate on the "app_secret" field.

func AppSecretHasPrefix

func AppSecretHasPrefix(v string) predicate.App

AppSecretHasPrefix applies the HasPrefix predicate on the "app_secret" field.

func AppSecretHasSuffix

func AppSecretHasSuffix(v string) predicate.App

AppSecretHasSuffix applies the HasSuffix predicate on the "app_secret" field.

func AppSecretIn

func AppSecretIn(vs ...string) predicate.App

AppSecretIn applies the In predicate on the "app_secret" field.

func AppSecretIsNil

func AppSecretIsNil() predicate.App

AppSecretIsNil applies the IsNil predicate on the "app_secret" field.

func AppSecretLT

func AppSecretLT(v string) predicate.App

AppSecretLT applies the LT predicate on the "app_secret" field.

func AppSecretLTE

func AppSecretLTE(v string) predicate.App

AppSecretLTE applies the LTE predicate on the "app_secret" field.

func AppSecretNEQ

func AppSecretNEQ(v string) predicate.App

AppSecretNEQ applies the NEQ predicate on the "app_secret" field.

func AppSecretNotIn

func AppSecretNotIn(vs ...string) predicate.App

AppSecretNotIn applies the NotIn predicate on the "app_secret" field.

func AppSecretNotNil

func AppSecretNotNil() predicate.App

AppSecretNotNil applies the NotNil predicate on the "app_secret" field.

func Code

func Code(v string) predicate.App

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.App

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.App

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.App

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.App

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.App

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.App

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.App

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.App

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.App

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.App

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.App

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.App

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.App

CodeNotIn applies the NotIn predicate on the "code" field.

func Comments

func Comments(v string) predicate.App

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.App

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.App

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.App

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.App

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.App

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.App

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.App

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.App

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.App

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.App

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.App

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.App

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.App

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.App

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.App

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.App

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.App

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.App

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.App

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.App

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.App

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.App

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.App

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.App

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int) predicate.App

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.App

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.App

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.App

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.App

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.App

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.App

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.App

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.App

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func HasActions

func HasActions() predicate.App

HasActions applies the HasEdge predicate on the "actions" edge.

func HasActionsWith

func HasActionsWith(preds ...predicate.AppAction) predicate.App

HasActionsWith applies the HasEdge predicate on the "actions" edge with a given conditions (other predicates).

func HasDicts

func HasDicts() predicate.App

HasDicts applies the HasEdge predicate on the "dicts" edge.

func HasDictsWith

func HasDictsWith(preds ...predicate.AppDict) predicate.App

HasDictsWith applies the HasEdge predicate on the "dicts" edge with a given conditions (other predicates).

func HasMenus

func HasMenus() predicate.App

HasMenus applies the HasEdge predicate on the "menus" edge.

func HasMenusWith

func HasMenusWith(preds ...predicate.AppMenu) predicate.App

HasMenusWith applies the HasEdge predicate on the "menus" edge with a given conditions (other predicates).

func HasOrgApp

func HasOrgApp() predicate.App

HasOrgApp applies the HasEdge predicate on the "org_app" edge.

func HasOrgAppWith

func HasOrgAppWith(preds ...predicate.OrgApp) predicate.App

HasOrgAppWith applies the HasEdge predicate on the "org_app" edge with a given conditions (other predicates).

func HasOrgs

func HasOrgs() predicate.App

HasOrgs applies the HasEdge predicate on the "orgs" edge.

func HasOrgsWith

func HasOrgsWith(preds ...predicate.Org) predicate.App

HasOrgsWith applies the HasEdge predicate on the "orgs" edge with a given conditions (other predicates).

func HasPolicies

func HasPolicies() predicate.App

HasPolicies applies the HasEdge predicate on the "policies" edge.

func HasPoliciesWith

func HasPoliciesWith(preds ...predicate.AppPolicy) predicate.App

HasPoliciesWith applies the HasEdge predicate on the "policies" edge with a given conditions (other predicates).

func HasResources

func HasResources() predicate.App

HasResources applies the HasEdge predicate on the "resources" edge.

func HasResourcesWith

func HasResourcesWith(preds ...predicate.AppRes) predicate.App

HasResourcesWith applies the HasEdge predicate on the "resources" edge with a given conditions (other predicates).

func HasRoles

func HasRoles() predicate.App

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith

func HasRolesWith(preds ...predicate.AppRole) predicate.App

HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.App

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.App

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.App

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.App

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.App

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.App

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.App

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.App

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.App

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.App

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.App

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.App

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.App

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.

func Logo(v string) predicate.App

Logo applies equality check predicate on the "logo" field. It's identical to LogoEQ.

func LogoContains

func LogoContains(v string) predicate.App

LogoContains applies the Contains predicate on the "logo" field.

func LogoContainsFold

func LogoContainsFold(v string) predicate.App

LogoContainsFold applies the ContainsFold predicate on the "logo" field.

func LogoEQ

func LogoEQ(v string) predicate.App

LogoEQ applies the EQ predicate on the "logo" field.

func LogoEqualFold

func LogoEqualFold(v string) predicate.App

LogoEqualFold applies the EqualFold predicate on the "logo" field.

func LogoGT

func LogoGT(v string) predicate.App

LogoGT applies the GT predicate on the "logo" field.

func LogoGTE

func LogoGTE(v string) predicate.App

LogoGTE applies the GTE predicate on the "logo" field.

func LogoHasPrefix

func LogoHasPrefix(v string) predicate.App

LogoHasPrefix applies the HasPrefix predicate on the "logo" field.

func LogoHasSuffix

func LogoHasSuffix(v string) predicate.App

LogoHasSuffix applies the HasSuffix predicate on the "logo" field.

func LogoIn

func LogoIn(vs ...string) predicate.App

LogoIn applies the In predicate on the "logo" field.

func LogoIsNil

func LogoIsNil() predicate.App

LogoIsNil applies the IsNil predicate on the "logo" field.

func LogoLT

func LogoLT(v string) predicate.App

LogoLT applies the LT predicate on the "logo" field.

func LogoLTE

func LogoLTE(v string) predicate.App

LogoLTE applies the LTE predicate on the "logo" field.

func LogoNEQ

func LogoNEQ(v string) predicate.App

LogoNEQ applies the NEQ predicate on the "logo" field.

func LogoNotIn

func LogoNotIn(vs ...string) predicate.App

LogoNotIn applies the NotIn predicate on the "logo" field.

func LogoNotNil

func LogoNotNil() predicate.App

LogoNotNil applies the NotNil predicate on the "logo" field.

func Name

func Name(v string) predicate.App

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.App

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.App

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.App

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.App

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.App

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.App

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.App

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.App

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.App

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.App

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.App

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.App

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.App

NameNotIn applies the NotIn predicate on the "name" field.

func Not

func Not(p predicate.App) predicate.App

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.App) predicate.App

Or groups predicates with the OR operator between them.

func OwnerOrgID

func OwnerOrgID(v int) predicate.App

OwnerOrgID applies equality check predicate on the "owner_org_id" field. It's identical to OwnerOrgIDEQ.

func OwnerOrgIDEQ

func OwnerOrgIDEQ(v int) predicate.App

OwnerOrgIDEQ applies the EQ predicate on the "owner_org_id" field.

func OwnerOrgIDGT

func OwnerOrgIDGT(v int) predicate.App

OwnerOrgIDGT applies the GT predicate on the "owner_org_id" field.

func OwnerOrgIDGTE

func OwnerOrgIDGTE(v int) predicate.App

OwnerOrgIDGTE applies the GTE predicate on the "owner_org_id" field.

func OwnerOrgIDIn

func OwnerOrgIDIn(vs ...int) predicate.App

OwnerOrgIDIn applies the In predicate on the "owner_org_id" field.

func OwnerOrgIDIsNil

func OwnerOrgIDIsNil() predicate.App

OwnerOrgIDIsNil applies the IsNil predicate on the "owner_org_id" field.

func OwnerOrgIDLT

func OwnerOrgIDLT(v int) predicate.App

OwnerOrgIDLT applies the LT predicate on the "owner_org_id" field.

func OwnerOrgIDLTE

func OwnerOrgIDLTE(v int) predicate.App

OwnerOrgIDLTE applies the LTE predicate on the "owner_org_id" field.

func OwnerOrgIDNEQ

func OwnerOrgIDNEQ(v int) predicate.App

OwnerOrgIDNEQ applies the NEQ predicate on the "owner_org_id" field.

func OwnerOrgIDNotIn

func OwnerOrgIDNotIn(vs ...int) predicate.App

OwnerOrgIDNotIn applies the NotIn predicate on the "owner_org_id" field.

func OwnerOrgIDNotNil

func OwnerOrgIDNotNil() predicate.App

OwnerOrgIDNotNil applies the NotNil predicate on the "owner_org_id" field.

func Private

func Private(v bool) predicate.App

Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.

func PrivateEQ

func PrivateEQ(v bool) predicate.App

PrivateEQ applies the EQ predicate on the "private" field.

func PrivateIsNil

func PrivateIsNil() predicate.App

PrivateIsNil applies the IsNil predicate on the "private" field.

func PrivateNEQ

func PrivateNEQ(v bool) predicate.App

PrivateNEQ applies the NEQ predicate on the "private" field.

func PrivateNotNil

func PrivateNotNil() predicate.App

PrivateNotNil applies the NotNil predicate on the "private" field.

func RedirectURI

func RedirectURI(v string) predicate.App

RedirectURI applies equality check predicate on the "redirect_uri" field. It's identical to RedirectURIEQ.

func RedirectURIContains

func RedirectURIContains(v string) predicate.App

RedirectURIContains applies the Contains predicate on the "redirect_uri" field.

func RedirectURIContainsFold

func RedirectURIContainsFold(v string) predicate.App

RedirectURIContainsFold applies the ContainsFold predicate on the "redirect_uri" field.

func RedirectURIEQ

func RedirectURIEQ(v string) predicate.App

RedirectURIEQ applies the EQ predicate on the "redirect_uri" field.

func RedirectURIEqualFold

func RedirectURIEqualFold(v string) predicate.App

RedirectURIEqualFold applies the EqualFold predicate on the "redirect_uri" field.

func RedirectURIGT

func RedirectURIGT(v string) predicate.App

RedirectURIGT applies the GT predicate on the "redirect_uri" field.

func RedirectURIGTE

func RedirectURIGTE(v string) predicate.App

RedirectURIGTE applies the GTE predicate on the "redirect_uri" field.

func RedirectURIHasPrefix

func RedirectURIHasPrefix(v string) predicate.App

RedirectURIHasPrefix applies the HasPrefix predicate on the "redirect_uri" field.

func RedirectURIHasSuffix

func RedirectURIHasSuffix(v string) predicate.App

RedirectURIHasSuffix applies the HasSuffix predicate on the "redirect_uri" field.

func RedirectURIIn

func RedirectURIIn(vs ...string) predicate.App

RedirectURIIn applies the In predicate on the "redirect_uri" field.

func RedirectURIIsNil

func RedirectURIIsNil() predicate.App

RedirectURIIsNil applies the IsNil predicate on the "redirect_uri" field.

func RedirectURILT

func RedirectURILT(v string) predicate.App

RedirectURILT applies the LT predicate on the "redirect_uri" field.

func RedirectURILTE

func RedirectURILTE(v string) predicate.App

RedirectURILTE applies the LTE predicate on the "redirect_uri" field.

func RedirectURINEQ

func RedirectURINEQ(v string) predicate.App

RedirectURINEQ applies the NEQ predicate on the "redirect_uri" field.

func RedirectURINotIn

func RedirectURINotIn(vs ...string) predicate.App

RedirectURINotIn applies the NotIn predicate on the "redirect_uri" field.

func RedirectURINotNil

func RedirectURINotNil() predicate.App

RedirectURINotNil applies the NotNil predicate on the "redirect_uri" field.

func RefreshTokenValidity

func RefreshTokenValidity(v int32) predicate.App

RefreshTokenValidity applies equality check predicate on the "refresh_token_validity" field. It's identical to RefreshTokenValidityEQ.

func RefreshTokenValidityEQ

func RefreshTokenValidityEQ(v int32) predicate.App

RefreshTokenValidityEQ applies the EQ predicate on the "refresh_token_validity" field.

func RefreshTokenValidityGT

func RefreshTokenValidityGT(v int32) predicate.App

RefreshTokenValidityGT applies the GT predicate on the "refresh_token_validity" field.

func RefreshTokenValidityGTE

func RefreshTokenValidityGTE(v int32) predicate.App

RefreshTokenValidityGTE applies the GTE predicate on the "refresh_token_validity" field.

func RefreshTokenValidityIn

func RefreshTokenValidityIn(vs ...int32) predicate.App

RefreshTokenValidityIn applies the In predicate on the "refresh_token_validity" field.

func RefreshTokenValidityIsNil

func RefreshTokenValidityIsNil() predicate.App

RefreshTokenValidityIsNil applies the IsNil predicate on the "refresh_token_validity" field.

func RefreshTokenValidityLT

func RefreshTokenValidityLT(v int32) predicate.App

RefreshTokenValidityLT applies the LT predicate on the "refresh_token_validity" field.

func RefreshTokenValidityLTE

func RefreshTokenValidityLTE(v int32) predicate.App

RefreshTokenValidityLTE applies the LTE predicate on the "refresh_token_validity" field.

func RefreshTokenValidityNEQ

func RefreshTokenValidityNEQ(v int32) predicate.App

RefreshTokenValidityNEQ applies the NEQ predicate on the "refresh_token_validity" field.

func RefreshTokenValidityNotIn

func RefreshTokenValidityNotIn(vs ...int32) predicate.App

RefreshTokenValidityNotIn applies the NotIn predicate on the "refresh_token_validity" field.

func RefreshTokenValidityNotNil

func RefreshTokenValidityNotNil() predicate.App

RefreshTokenValidityNotNil applies the NotNil predicate on the "refresh_token_validity" field.

func Scopes

func Scopes(v string) predicate.App

Scopes applies equality check predicate on the "scopes" field. It's identical to ScopesEQ.

func ScopesContains

func ScopesContains(v string) predicate.App

ScopesContains applies the Contains predicate on the "scopes" field.

func ScopesContainsFold

func ScopesContainsFold(v string) predicate.App

ScopesContainsFold applies the ContainsFold predicate on the "scopes" field.

func ScopesEQ

func ScopesEQ(v string) predicate.App

ScopesEQ applies the EQ predicate on the "scopes" field.

func ScopesEqualFold

func ScopesEqualFold(v string) predicate.App

ScopesEqualFold applies the EqualFold predicate on the "scopes" field.

func ScopesGT

func ScopesGT(v string) predicate.App

ScopesGT applies the GT predicate on the "scopes" field.

func ScopesGTE

func ScopesGTE(v string) predicate.App

ScopesGTE applies the GTE predicate on the "scopes" field.

func ScopesHasPrefix

func ScopesHasPrefix(v string) predicate.App

ScopesHasPrefix applies the HasPrefix predicate on the "scopes" field.

func ScopesHasSuffix

func ScopesHasSuffix(v string) predicate.App

ScopesHasSuffix applies the HasSuffix predicate on the "scopes" field.

func ScopesIn

func ScopesIn(vs ...string) predicate.App

ScopesIn applies the In predicate on the "scopes" field.

func ScopesIsNil

func ScopesIsNil() predicate.App

ScopesIsNil applies the IsNil predicate on the "scopes" field.

func ScopesLT

func ScopesLT(v string) predicate.App

ScopesLT applies the LT predicate on the "scopes" field.

func ScopesLTE

func ScopesLTE(v string) predicate.App

ScopesLTE applies the LTE predicate on the "scopes" field.

func ScopesNEQ

func ScopesNEQ(v string) predicate.App

ScopesNEQ applies the NEQ predicate on the "scopes" field.

func ScopesNotIn

func ScopesNotIn(vs ...string) predicate.App

ScopesNotIn applies the NotIn predicate on the "scopes" field.

func ScopesNotNil

func ScopesNotNil() predicate.App

ScopesNotNil applies the NotNil predicate on the "scopes" field.

func StatusEQ

func StatusEQ(v typex.SimpleStatus) predicate.App

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...typex.SimpleStatus) predicate.App

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.App

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v typex.SimpleStatus) predicate.App

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...typex.SimpleStatus) predicate.App

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.App

StatusNotNil applies the NotNil predicate on the "status" field.

func StatusValidator

func StatusValidator(s typex.SimpleStatus) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TokenValidity

func TokenValidity(v int32) predicate.App

TokenValidity applies equality check predicate on the "token_validity" field. It's identical to TokenValidityEQ.

func TokenValidityEQ

func TokenValidityEQ(v int32) predicate.App

TokenValidityEQ applies the EQ predicate on the "token_validity" field.

func TokenValidityGT

func TokenValidityGT(v int32) predicate.App

TokenValidityGT applies the GT predicate on the "token_validity" field.

func TokenValidityGTE

func TokenValidityGTE(v int32) predicate.App

TokenValidityGTE applies the GTE predicate on the "token_validity" field.

func TokenValidityIn

func TokenValidityIn(vs ...int32) predicate.App

TokenValidityIn applies the In predicate on the "token_validity" field.

func TokenValidityIsNil

func TokenValidityIsNil() predicate.App

TokenValidityIsNil applies the IsNil predicate on the "token_validity" field.

func TokenValidityLT

func TokenValidityLT(v int32) predicate.App

TokenValidityLT applies the LT predicate on the "token_validity" field.

func TokenValidityLTE

func TokenValidityLTE(v int32) predicate.App

TokenValidityLTE applies the LTE predicate on the "token_validity" field.

func TokenValidityNEQ

func TokenValidityNEQ(v int32) predicate.App

TokenValidityNEQ applies the NEQ predicate on the "token_validity" field.

func TokenValidityNotIn

func TokenValidityNotIn(vs ...int32) predicate.App

TokenValidityNotIn applies the NotIn predicate on the "token_validity" field.

func TokenValidityNotNil

func TokenValidityNotNil() predicate.App

TokenValidityNotNil applies the NotNil predicate on the "token_validity" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.App

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.App

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.App

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.App

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.App

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.App

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.App

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.App

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.App

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.App

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.App

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.App

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.App

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.App

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.App

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.App

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.App

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.App

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.App

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.App

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.App

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.App

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindWeb    Kind = "web"
	KindNative Kind = "native"
	KindServer Kind = "server"
)

Kind values.

func (Kind) MarshalGQL

func (e Kind) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Kind) String

func (k Kind) String() string

func (*Kind) UnmarshalGQL

func (e *Kind) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the App queries.

func ByActions

func ByActions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByActions orders the results by actions terms.

func ByActionsCount

func ByActionsCount(opts ...sql.OrderTermOption) OrderOption

ByActionsCount orders the results by actions count.

func ByAppKey

func ByAppKey(opts ...sql.OrderTermOption) OrderOption

ByAppKey orders the results by the app_key field.

func ByAppSecret

func ByAppSecret(opts ...sql.OrderTermOption) OrderOption

ByAppSecret orders the results by the app_secret field.

func ByCode

func ByCode(opts ...sql.OrderTermOption) OrderOption

ByCode orders the results by the code field.

func ByComments

func ByComments(opts ...sql.OrderTermOption) OrderOption

ByComments orders the results by the comments field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDicts

func ByDicts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDicts orders the results by dicts terms.

func ByDictsCount

func ByDictsCount(opts ...sql.OrderTermOption) OrderOption

ByDictsCount orders the results by dicts count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByKind

func ByKind(opts ...sql.OrderTermOption) OrderOption

ByKind orders the results by the kind field.

func ByLogo(opts ...sql.OrderTermOption) OrderOption

ByLogo orders the results by the logo field.

func ByMenus

func ByMenus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMenus orders the results by menus terms.

func ByMenusCount

func ByMenusCount(opts ...sql.OrderTermOption) OrderOption

ByMenusCount orders the results by menus count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOrgApp

func ByOrgApp(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgApp orders the results by org_app terms.

func ByOrgAppCount

func ByOrgAppCount(opts ...sql.OrderTermOption) OrderOption

ByOrgAppCount orders the results by org_app count.

func ByOrgs

func ByOrgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgs orders the results by orgs terms.

func ByOrgsCount

func ByOrgsCount(opts ...sql.OrderTermOption) OrderOption

ByOrgsCount orders the results by orgs count.

func ByOwnerOrgID

func ByOwnerOrgID(opts ...sql.OrderTermOption) OrderOption

ByOwnerOrgID orders the results by the owner_org_id field.

func ByPolicies

func ByPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPolicies orders the results by policies terms.

func ByPoliciesCount

func ByPoliciesCount(opts ...sql.OrderTermOption) OrderOption

ByPoliciesCount orders the results by policies count.

func ByPrivate

func ByPrivate(opts ...sql.OrderTermOption) OrderOption

ByPrivate orders the results by the private field.

func ByRedirectURI

func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption

ByRedirectURI orders the results by the redirect_uri field.

func ByRefreshTokenValidity

func ByRefreshTokenValidity(opts ...sql.OrderTermOption) OrderOption

ByRefreshTokenValidity orders the results by the refresh_token_validity field.

func ByResources

func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByResources orders the results by resources terms.

func ByResourcesCount

func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption

ByResourcesCount orders the results by resources count.

func ByRoles

func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRoles orders the results by roles terms.

func ByRolesCount

func ByRolesCount(opts ...sql.OrderTermOption) OrderOption

ByRolesCount orders the results by roles count.

func ByScopes

func ByScopes(opts ...sql.OrderTermOption) OrderOption

ByScopes orders the results by the scopes field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTokenValidity

func ByTokenValidity(opts ...sql.OrderTermOption) OrderOption

ByTokenValidity orders the results by the token_validity field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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