oauthclient

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: 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"
	// 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"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldClientSecret holds the string denoting the client_secret field in the database.
	FieldClientSecret = "client_secret"
	// FieldGrantTypes holds the string denoting the grant_types field in the database.
	FieldGrantTypes = "grant_types"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldLastAuthAt holds the string denoting the last_auth_at field in the database.
	FieldLastAuthAt = "last_auth_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the oauthclient in the database.
	Table = "oauth_client"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "oauth_client"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "user"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)
View Source
const DefaultStatus typex.SimpleStatus = "active"

Variables

View Source
var (
	Hooks [2]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
	// ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save.
	ClientIDValidator func(string) error
	// ClientSecretValidator is a validator for the "client_secret" field. It is called by the builders before save.
	ClientSecretValidator func(string) error
	// 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 oauthclient fields.

Functions

func And

func And(predicates ...predicate.OauthClient) predicate.OauthClient

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.OauthClient

ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.

func ClientIDContains

func ClientIDContains(v string) predicate.OauthClient

ClientIDContains applies the Contains predicate on the "client_id" field.

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.OauthClient

ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.

func ClientIDEQ

func ClientIDEQ(v string) predicate.OauthClient

ClientIDEQ applies the EQ predicate on the "client_id" field.

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.OauthClient

ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.

func ClientIDGT

func ClientIDGT(v string) predicate.OauthClient

ClientIDGT applies the GT predicate on the "client_id" field.

func ClientIDGTE

func ClientIDGTE(v string) predicate.OauthClient

ClientIDGTE applies the GTE predicate on the "client_id" field.

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.OauthClient

ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.OauthClient

ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...string) predicate.OauthClient

ClientIDIn applies the In predicate on the "client_id" field.

func ClientIDLT

func ClientIDLT(v string) predicate.OauthClient

ClientIDLT applies the LT predicate on the "client_id" field.

func ClientIDLTE

func ClientIDLTE(v string) predicate.OauthClient

ClientIDLTE applies the LTE predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.OauthClient

ClientIDNEQ applies the NEQ predicate on the "client_id" field.

func ClientIDNotIn

func ClientIDNotIn(vs ...string) predicate.OauthClient

ClientIDNotIn applies the NotIn predicate on the "client_id" field.

func ClientSecret

func ClientSecret(v string) predicate.OauthClient

ClientSecret applies equality check predicate on the "client_secret" field. It's identical to ClientSecretEQ.

func ClientSecretContains

func ClientSecretContains(v string) predicate.OauthClient

ClientSecretContains applies the Contains predicate on the "client_secret" field.

func ClientSecretContainsFold

func ClientSecretContainsFold(v string) predicate.OauthClient

ClientSecretContainsFold applies the ContainsFold predicate on the "client_secret" field.

func ClientSecretEQ

func ClientSecretEQ(v string) predicate.OauthClient

ClientSecretEQ applies the EQ predicate on the "client_secret" field.

func ClientSecretEqualFold

func ClientSecretEqualFold(v string) predicate.OauthClient

ClientSecretEqualFold applies the EqualFold predicate on the "client_secret" field.

func ClientSecretGT

func ClientSecretGT(v string) predicate.OauthClient

ClientSecretGT applies the GT predicate on the "client_secret" field.

func ClientSecretGTE

func ClientSecretGTE(v string) predicate.OauthClient

ClientSecretGTE applies the GTE predicate on the "client_secret" field.

func ClientSecretHasPrefix

func ClientSecretHasPrefix(v string) predicate.OauthClient

ClientSecretHasPrefix applies the HasPrefix predicate on the "client_secret" field.

func ClientSecretHasSuffix

func ClientSecretHasSuffix(v string) predicate.OauthClient

ClientSecretHasSuffix applies the HasSuffix predicate on the "client_secret" field.

func ClientSecretIn

func ClientSecretIn(vs ...string) predicate.OauthClient

ClientSecretIn applies the In predicate on the "client_secret" field.

func ClientSecretLT

func ClientSecretLT(v string) predicate.OauthClient

ClientSecretLT applies the LT predicate on the "client_secret" field.

func ClientSecretLTE

func ClientSecretLTE(v string) predicate.OauthClient

ClientSecretLTE applies the LTE predicate on the "client_secret" field.

func ClientSecretNEQ

func ClientSecretNEQ(v string) predicate.OauthClient

ClientSecretNEQ applies the NEQ predicate on the "client_secret" field.

func ClientSecretNotIn

func ClientSecretNotIn(vs ...string) predicate.OauthClient

ClientSecretNotIn applies the NotIn predicate on the "client_secret" field.

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 CreatedBy

func CreatedBy(v int) predicate.OauthClient

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

func CreatedByEQ

func CreatedByEQ(v int) predicate.OauthClient

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

func CreatedByGT

func CreatedByGT(v int) predicate.OauthClient

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

func CreatedByGTE

func CreatedByGTE(v int) predicate.OauthClient

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

func CreatedByIn

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

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

func CreatedByLT

func CreatedByLT(v int) predicate.OauthClient

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

func CreatedByLTE

func CreatedByLTE(v int) predicate.OauthClient

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

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.OauthClient

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

func CreatedByNotIn

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

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

func GrantTypesEQ

func GrantTypesEQ(v GrantTypes) predicate.OauthClient

GrantTypesEQ applies the EQ predicate on the "grant_types" field.

func GrantTypesIn

func GrantTypesIn(vs ...GrantTypes) predicate.OauthClient

GrantTypesIn applies the In predicate on the "grant_types" field.

func GrantTypesNEQ

func GrantTypesNEQ(v GrantTypes) predicate.OauthClient

GrantTypesNEQ applies the NEQ predicate on the "grant_types" field.

func GrantTypesNotIn

func GrantTypesNotIn(vs ...GrantTypes) predicate.OauthClient

GrantTypesNotIn applies the NotIn predicate on the "grant_types" field.

func GrantTypesValidator

func GrantTypesValidator(gt GrantTypes) error

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

func HasUser

func HasUser() predicate.OauthClient

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.OauthClient

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

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 LastAuthAt

func LastAuthAt(v time.Time) predicate.OauthClient

LastAuthAt applies equality check predicate on the "last_auth_at" field. It's identical to LastAuthAtEQ.

func LastAuthAtEQ

func LastAuthAtEQ(v time.Time) predicate.OauthClient

LastAuthAtEQ applies the EQ predicate on the "last_auth_at" field.

func LastAuthAtGT

func LastAuthAtGT(v time.Time) predicate.OauthClient

LastAuthAtGT applies the GT predicate on the "last_auth_at" field.

func LastAuthAtGTE

func LastAuthAtGTE(v time.Time) predicate.OauthClient

LastAuthAtGTE applies the GTE predicate on the "last_auth_at" field.

func LastAuthAtIn

func LastAuthAtIn(vs ...time.Time) predicate.OauthClient

LastAuthAtIn applies the In predicate on the "last_auth_at" field.

func LastAuthAtIsNil

func LastAuthAtIsNil() predicate.OauthClient

LastAuthAtIsNil applies the IsNil predicate on the "last_auth_at" field.

func LastAuthAtLT

func LastAuthAtLT(v time.Time) predicate.OauthClient

LastAuthAtLT applies the LT predicate on the "last_auth_at" field.

func LastAuthAtLTE

func LastAuthAtLTE(v time.Time) predicate.OauthClient

LastAuthAtLTE applies the LTE predicate on the "last_auth_at" field.

func LastAuthAtNEQ

func LastAuthAtNEQ(v time.Time) predicate.OauthClient

LastAuthAtNEQ applies the NEQ predicate on the "last_auth_at" field.

func LastAuthAtNotIn

func LastAuthAtNotIn(vs ...time.Time) predicate.OauthClient

LastAuthAtNotIn applies the NotIn predicate on the "last_auth_at" field.

func LastAuthAtNotNil

func LastAuthAtNotNil() predicate.OauthClient

LastAuthAtNotNil applies the NotNil predicate on the "last_auth_at" 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 StatusEQ

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

func StatusIn

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

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

func StatusNEQ

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

func StatusNotIn

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

StatusNotIn applies the NotIn 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 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 UpdatedAtIsNil

func UpdatedAtIsNil() predicate.OauthClient

UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil

func UpdatedAtNotNil() predicate.OauthClient

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

func UpdatedBy

func UpdatedBy(v int) predicate.OauthClient

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

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.OauthClient

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

func UpdatedByGT

func UpdatedByGT(v int) predicate.OauthClient

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

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.OauthClient

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.OauthClient

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

func UpdatedByLT

func UpdatedByLT(v int) predicate.OauthClient

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

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.OauthClient

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

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.OauthClient

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.OauthClient

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

func UserID

func UserID(v int) predicate.OauthClient

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v int) predicate.OauthClient

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...int) predicate.OauthClient

UserIDIn applies the In predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v int) predicate.OauthClient

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.OauthClient

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type GrantTypes

type GrantTypes string

GrantTypes defines the type for the "grant_types" enum field.

const (
	GrantTypesClientCredentials GrantTypes = "client_credentials"
)

GrantTypes values.

func (GrantTypes) MarshalGQL

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

MarshalGQL implements graphql.Marshaler interface.

func (GrantTypes) String

func (gt GrantTypes) String() string

func (*GrantTypes) UnmarshalGQL

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

UnmarshalGQL implements graphql.Unmarshaler interface.

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OauthClient queries.

func ByClientID

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

ByClientID orders the results by the client_id field.

func ByClientSecret

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

ByClientSecret orders the results by the client_secret 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 ByGrantTypes

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

ByGrantTypes orders the results by the grant_types field.

func ByID

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

ByID orders the results by the id field.

func ByLastAuthAt

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

ByLastAuthAt orders the results by the last_auth_at field.

func ByName

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

ByName orders the results by the name field.

func ByStatus

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

ByStatus orders the results by the status 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.

func ByUserField

func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption

ByUserField orders the results by user field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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