oauthclient

package
v4.0.0-...-5b82330 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthclient type in the database.
	Label = "oauth_client"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldGUID holds the string denoting the guid field in the database.
	FieldGUID = "guid"
	// FieldSecret holds the string denoting the secret field in the database.
	FieldSecret = "secret"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldHomepageURL holds the string denoting the homepage_url field in the database.
	FieldHomepageURL = "homepage_url"
	// FieldRedirectUris holds the string denoting the redirect_uris field in the database.
	FieldRedirectUris = "redirect_uris"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldProps holds the string denoting the props field in the database.
	FieldProps = "props"
	// FieldIsEnabled holds the string denoting the is_enabled field in the database.
	FieldIsEnabled = "is_enabled"
	// EdgeGrants holds the string denoting the grants edge name in mutations.
	EdgeGrants = "grants"
	// Table holds the table name of the oauthclient in the database.
	Table = "oauth_clients"
	// GrantsTable is the table that holds the grants relation/edge.
	GrantsTable = "oauth_grants"
	// GrantsInverseTable is the table name for the OAuthGrant entity.
	// It exists in this package in order to avoid circular dependency with the "oauthgrant" package.
	GrantsInverseTable = "oauth_grants"
	// GrantsColumn is the table column denoting the grants relation/edge.
	GrantsColumn = "client_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// GUIDValidator is a validator for the "guid" field. It is called by the builders before save.
	GUIDValidator func(string) error
	// SecretValidator is a validator for the "secret" field. It is called by the builders before save.
	SecretValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// HomepageURLValidator is a validator for the "homepage_url" field. It is called by the builders before save.
	HomepageURLValidator func(string) error
	// DefaultRedirectUris holds the default value on creation for the "redirect_uris" field.
	DefaultRedirectUris []string
	// DefaultScopes holds the default value on creation for the "scopes" field.
	DefaultScopes []string
	// DefaultProps holds the default value on creation for the "props" field.
	DefaultProps *types.OAuthClientProps
	// DefaultIsEnabled holds the default value on creation for the "is_enabled" field.
	DefaultIsEnabled bool
)

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/cloudreve/Cloudreve/v4/ent/runtime"

Columns holds all SQL columns for oauthclient fields.

Functions

func And

func And(predicates ...predicate.OAuthClient) predicate.OAuthClient

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.OAuthClient

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OAuthClient

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OAuthClient

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OAuthClient

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OAuthClient

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OAuthClient

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OAuthClient

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.OAuthClient

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.OAuthClient

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.OAuthClient

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.OAuthClient

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.OAuthClient

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.OAuthClient

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.OAuthClient

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.OAuthClient

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.OAuthClient

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.OAuthClient

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.OAuthClient

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func GUID

GUID applies equality check predicate on the "guid" field. It's identical to GUIDEQ.

func GUIDContains

func GUIDContains(v string) predicate.OAuthClient

GUIDContains applies the Contains predicate on the "guid" field.

func GUIDContainsFold

func GUIDContainsFold(v string) predicate.OAuthClient

GUIDContainsFold applies the ContainsFold predicate on the "guid" field.

func GUIDEQ

func GUIDEQ(v string) predicate.OAuthClient

GUIDEQ applies the EQ predicate on the "guid" field.

func GUIDEqualFold

func GUIDEqualFold(v string) predicate.OAuthClient

GUIDEqualFold applies the EqualFold predicate on the "guid" field.

func GUIDGT

func GUIDGT(v string) predicate.OAuthClient

GUIDGT applies the GT predicate on the "guid" field.

func GUIDGTE

func GUIDGTE(v string) predicate.OAuthClient

GUIDGTE applies the GTE predicate on the "guid" field.

func GUIDHasPrefix

func GUIDHasPrefix(v string) predicate.OAuthClient

GUIDHasPrefix applies the HasPrefix predicate on the "guid" field.

func GUIDHasSuffix

func GUIDHasSuffix(v string) predicate.OAuthClient

GUIDHasSuffix applies the HasSuffix predicate on the "guid" field.

func GUIDIn

func GUIDIn(vs ...string) predicate.OAuthClient

GUIDIn applies the In predicate on the "guid" field.

func GUIDLT

func GUIDLT(v string) predicate.OAuthClient

GUIDLT applies the LT predicate on the "guid" field.

func GUIDLTE

func GUIDLTE(v string) predicate.OAuthClient

GUIDLTE applies the LTE predicate on the "guid" field.

func GUIDNEQ

func GUIDNEQ(v string) predicate.OAuthClient

GUIDNEQ applies the NEQ predicate on the "guid" field.

func GUIDNotIn

func GUIDNotIn(vs ...string) predicate.OAuthClient

GUIDNotIn applies the NotIn predicate on the "guid" field.

func HasGrants

func HasGrants() predicate.OAuthClient

HasGrants applies the HasEdge predicate on the "grants" edge.

func HasGrantsWith

func HasGrantsWith(preds ...predicate.OAuthGrant) predicate.OAuthClient

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

func HomepageURL

func HomepageURL(v string) predicate.OAuthClient

HomepageURL applies equality check predicate on the "homepage_url" field. It's identical to HomepageURLEQ.

func HomepageURLContains

func HomepageURLContains(v string) predicate.OAuthClient

HomepageURLContains applies the Contains predicate on the "homepage_url" field.

func HomepageURLContainsFold

func HomepageURLContainsFold(v string) predicate.OAuthClient

HomepageURLContainsFold applies the ContainsFold predicate on the "homepage_url" field.

func HomepageURLEQ

func HomepageURLEQ(v string) predicate.OAuthClient

HomepageURLEQ applies the EQ predicate on the "homepage_url" field.

func HomepageURLEqualFold

func HomepageURLEqualFold(v string) predicate.OAuthClient

HomepageURLEqualFold applies the EqualFold predicate on the "homepage_url" field.

func HomepageURLGT

func HomepageURLGT(v string) predicate.OAuthClient

HomepageURLGT applies the GT predicate on the "homepage_url" field.

func HomepageURLGTE

func HomepageURLGTE(v string) predicate.OAuthClient

HomepageURLGTE applies the GTE predicate on the "homepage_url" field.

func HomepageURLHasPrefix

func HomepageURLHasPrefix(v string) predicate.OAuthClient

HomepageURLHasPrefix applies the HasPrefix predicate on the "homepage_url" field.

func HomepageURLHasSuffix

func HomepageURLHasSuffix(v string) predicate.OAuthClient

HomepageURLHasSuffix applies the HasSuffix predicate on the "homepage_url" field.

func HomepageURLIn

func HomepageURLIn(vs ...string) predicate.OAuthClient

HomepageURLIn applies the In predicate on the "homepage_url" field.

func HomepageURLIsNil

func HomepageURLIsNil() predicate.OAuthClient

HomepageURLIsNil applies the IsNil predicate on the "homepage_url" field.

func HomepageURLLT

func HomepageURLLT(v string) predicate.OAuthClient

HomepageURLLT applies the LT predicate on the "homepage_url" field.

func HomepageURLLTE

func HomepageURLLTE(v string) predicate.OAuthClient

HomepageURLLTE applies the LTE predicate on the "homepage_url" field.

func HomepageURLNEQ

func HomepageURLNEQ(v string) predicate.OAuthClient

HomepageURLNEQ applies the NEQ predicate on the "homepage_url" field.

func HomepageURLNotIn

func HomepageURLNotIn(vs ...string) predicate.OAuthClient

HomepageURLNotIn applies the NotIn predicate on the "homepage_url" field.

func HomepageURLNotNil

func HomepageURLNotNil() predicate.OAuthClient

HomepageURLNotNil applies the NotNil predicate on the "homepage_url" field.

func ID

func ID(id int) predicate.OAuthClient

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OAuthClient

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OAuthClient

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OAuthClient

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OAuthClient

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OAuthClient

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OAuthClient

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsEnabled

func IsEnabled(v bool) predicate.OAuthClient

IsEnabled applies equality check predicate on the "is_enabled" field. It's identical to IsEnabledEQ.

func IsEnabledEQ

func IsEnabledEQ(v bool) predicate.OAuthClient

IsEnabledEQ applies the EQ predicate on the "is_enabled" field.

func IsEnabledNEQ

func IsEnabledNEQ(v bool) predicate.OAuthClient

IsEnabledNEQ applies the NEQ predicate on the "is_enabled" field.

func Name

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

func NameContains

func NameContains(v string) predicate.OAuthClient

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

func NameContainsFold

func NameContainsFold(v string) predicate.OAuthClient

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

func NameEQ

func NameEQ(v string) predicate.OAuthClient

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

func NameEqualFold

func NameEqualFold(v string) predicate.OAuthClient

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

func NameGT

func NameGT(v string) predicate.OAuthClient

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

func NameGTE

func NameGTE(v string) predicate.OAuthClient

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.OAuthClient

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.OAuthClient

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.OAuthClient

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

func NameLTE

func NameLTE(v string) predicate.OAuthClient

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

func NameNEQ

func NameNEQ(v string) predicate.OAuthClient

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OAuthClient) predicate.OAuthClient

Or groups predicates with the OR operator between them.

func Secret

func Secret(v string) predicate.OAuthClient

Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.

func SecretContains

func SecretContains(v string) predicate.OAuthClient

SecretContains applies the Contains predicate on the "secret" field.

func SecretContainsFold

func SecretContainsFold(v string) predicate.OAuthClient

SecretContainsFold applies the ContainsFold predicate on the "secret" field.

func SecretEQ

func SecretEQ(v string) predicate.OAuthClient

SecretEQ applies the EQ predicate on the "secret" field.

func SecretEqualFold

func SecretEqualFold(v string) predicate.OAuthClient

SecretEqualFold applies the EqualFold predicate on the "secret" field.

func SecretGT

func SecretGT(v string) predicate.OAuthClient

SecretGT applies the GT predicate on the "secret" field.

func SecretGTE

func SecretGTE(v string) predicate.OAuthClient

SecretGTE applies the GTE predicate on the "secret" field.

func SecretHasPrefix

func SecretHasPrefix(v string) predicate.OAuthClient

SecretHasPrefix applies the HasPrefix predicate on the "secret" field.

func SecretHasSuffix

func SecretHasSuffix(v string) predicate.OAuthClient

SecretHasSuffix applies the HasSuffix predicate on the "secret" field.

func SecretIn

func SecretIn(vs ...string) predicate.OAuthClient

SecretIn applies the In predicate on the "secret" field.

func SecretLT

func SecretLT(v string) predicate.OAuthClient

SecretLT applies the LT predicate on the "secret" field.

func SecretLTE

func SecretLTE(v string) predicate.OAuthClient

SecretLTE applies the LTE predicate on the "secret" field.

func SecretNEQ

func SecretNEQ(v string) predicate.OAuthClient

SecretNEQ applies the NEQ predicate on the "secret" field.

func SecretNotIn

func SecretNotIn(vs ...string) predicate.OAuthClient

SecretNotIn applies the NotIn predicate on the "secret" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OAuthClient

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OAuthClient

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OAuthClient

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OAuthClient

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OAuthClient

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OAuthClient

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OAuthClient

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OAuthClient queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByGUID

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

ByGUID orders the results by the guid field.

func ByGrants

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

ByGrants orders the results by grants terms.

func ByGrantsCount

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

ByGrantsCount orders the results by grants count.

func ByHomepageURL

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

ByHomepageURL orders the results by the homepage_url field.

func ByID

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

ByID orders the results by the id field.

func ByIsEnabled

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

ByIsEnabled orders the results by the is_enabled field.

func ByName

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

ByName orders the results by the name field.

func BySecret

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

BySecret orders the results by the secret field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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