oauthconsent

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthconsent type in the database.
	Label = "oauth_consent"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldAppID holds the string denoting the app_id field in the database.
	FieldAppID = "app_id"
	// FieldScopes holds the string denoting the scopes field in the database.
	FieldScopes = "scopes"
	// FieldGranted holds the string denoting the granted field in the database.
	FieldGranted = "granted"
	// FieldGrantedAt holds the string denoting the granted_at field in the database.
	FieldGrantedAt = "granted_at"
	// FieldLastUsedAt holds the string denoting the last_used_at field in the database.
	FieldLastUsedAt = "last_used_at"
	// FieldRevoked holds the string denoting the revoked field in the database.
	FieldRevoked = "revoked"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// FieldRevokedReason holds the string denoting the revoked_reason field in the database.
	FieldRevokedReason = "revoked_reason"
	// 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"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// EdgeApp holds the string denoting the app edge name in mutations.
	EdgeApp = "app"
	// Table holds the table name of the oauthconsent in the database.
	Table = "cf_oauth_consents"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "cf_oauth_consents"
	// 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 = "cf_users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
	// AppTable is the table that holds the app relation/edge.
	AppTable = "cf_oauth_consents"
	// AppInverseTable is the table name for the OAuthApp entity.
	// It exists in this package in order to avoid circular dependency with the "oauthapp" package.
	AppInverseTable = "cf_oauth_apps"
	// AppColumn is the table column denoting the app relation/edge.
	AppColumn = "app_id"
)

Variables

View Source
var (
	// DefaultScopes holds the default value on creation for the "scopes" field.
	DefaultScopes []string
	// DefaultGranted holds the default value on creation for the "granted" field.
	DefaultGranted bool
	// DefaultGrantedAt holds the default value on creation for the "granted_at" field.
	DefaultGrantedAt func() time.Time
	// DefaultRevoked holds the default value on creation for the "revoked" field.
	DefaultRevoked bool
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for oauthconsent fields.

Functions

func And

func And(predicates ...predicate.OAuthConsent) predicate.OAuthConsent

And groups predicates with the AND operator between them.

func AppID

AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.

func AppIDEQ

func AppIDEQ(v uuid.UUID) predicate.OAuthConsent

AppIDEQ applies the EQ predicate on the "app_id" field.

func AppIDIn

func AppIDIn(vs ...uuid.UUID) predicate.OAuthConsent

AppIDIn applies the In predicate on the "app_id" field.

func AppIDNEQ

func AppIDNEQ(v uuid.UUID) predicate.OAuthConsent

AppIDNEQ applies the NEQ predicate on the "app_id" field.

func AppIDNotIn

func AppIDNotIn(vs ...uuid.UUID) predicate.OAuthConsent

AppIDNotIn applies the NotIn predicate on the "app_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.OAuthConsent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OAuthConsent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OAuthConsent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OAuthConsent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OAuthConsent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OAuthConsent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OAuthConsent

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

func CreatedAtNotIn

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

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

func Granted

func Granted(v bool) predicate.OAuthConsent

Granted applies equality check predicate on the "granted" field. It's identical to GrantedEQ.

func GrantedAt

func GrantedAt(v time.Time) predicate.OAuthConsent

GrantedAt applies equality check predicate on the "granted_at" field. It's identical to GrantedAtEQ.

func GrantedAtEQ

func GrantedAtEQ(v time.Time) predicate.OAuthConsent

GrantedAtEQ applies the EQ predicate on the "granted_at" field.

func GrantedAtGT

func GrantedAtGT(v time.Time) predicate.OAuthConsent

GrantedAtGT applies the GT predicate on the "granted_at" field.

func GrantedAtGTE

func GrantedAtGTE(v time.Time) predicate.OAuthConsent

GrantedAtGTE applies the GTE predicate on the "granted_at" field.

func GrantedAtIn

func GrantedAtIn(vs ...time.Time) predicate.OAuthConsent

GrantedAtIn applies the In predicate on the "granted_at" field.

func GrantedAtLT

func GrantedAtLT(v time.Time) predicate.OAuthConsent

GrantedAtLT applies the LT predicate on the "granted_at" field.

func GrantedAtLTE

func GrantedAtLTE(v time.Time) predicate.OAuthConsent

GrantedAtLTE applies the LTE predicate on the "granted_at" field.

func GrantedAtNEQ

func GrantedAtNEQ(v time.Time) predicate.OAuthConsent

GrantedAtNEQ applies the NEQ predicate on the "granted_at" field.

func GrantedAtNotIn

func GrantedAtNotIn(vs ...time.Time) predicate.OAuthConsent

GrantedAtNotIn applies the NotIn predicate on the "granted_at" field.

func GrantedEQ

func GrantedEQ(v bool) predicate.OAuthConsent

GrantedEQ applies the EQ predicate on the "granted" field.

func GrantedNEQ

func GrantedNEQ(v bool) predicate.OAuthConsent

GrantedNEQ applies the NEQ predicate on the "granted" field.

func HasApp

func HasApp() predicate.OAuthConsent

HasApp applies the HasEdge predicate on the "app" edge.

func HasAppWith

func HasAppWith(preds ...predicate.OAuthApp) predicate.OAuthConsent

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

func HasUser

func HasUser() predicate.OAuthConsent

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

func HasUserWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.OAuthConsent

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.OAuthConsent

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.OAuthConsent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.OAuthConsent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.OAuthConsent

IDNotIn applies the NotIn predicate on the ID field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.OAuthConsent

LastUsedAt applies equality check predicate on the "last_used_at" field. It's identical to LastUsedAtEQ.

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.OAuthConsent

LastUsedAtEQ applies the EQ predicate on the "last_used_at" field.

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.OAuthConsent

LastUsedAtGT applies the GT predicate on the "last_used_at" field.

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.OAuthConsent

LastUsedAtGTE applies the GTE predicate on the "last_used_at" field.

func LastUsedAtIn

func LastUsedAtIn(vs ...time.Time) predicate.OAuthConsent

LastUsedAtIn applies the In predicate on the "last_used_at" field.

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.OAuthConsent

LastUsedAtIsNil applies the IsNil predicate on the "last_used_at" field.

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.OAuthConsent

LastUsedAtLT applies the LT predicate on the "last_used_at" field.

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.OAuthConsent

LastUsedAtLTE applies the LTE predicate on the "last_used_at" field.

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.OAuthConsent

LastUsedAtNEQ applies the NEQ predicate on the "last_used_at" field.

func LastUsedAtNotIn

func LastUsedAtNotIn(vs ...time.Time) predicate.OAuthConsent

LastUsedAtNotIn applies the NotIn predicate on the "last_used_at" field.

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.OAuthConsent

LastUsedAtNotNil applies the NotNil predicate on the "last_used_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OAuthConsent) predicate.OAuthConsent

Or groups predicates with the OR operator between them.

func Revoked

func Revoked(v bool) predicate.OAuthConsent

Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.

func RevokedAt

func RevokedAt(v time.Time) predicate.OAuthConsent

RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.OAuthConsent

RevokedAtEQ applies the EQ predicate on the "revoked_at" field.

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.OAuthConsent

RevokedAtGT applies the GT predicate on the "revoked_at" field.

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.OAuthConsent

RevokedAtGTE applies the GTE predicate on the "revoked_at" field.

func RevokedAtIn

func RevokedAtIn(vs ...time.Time) predicate.OAuthConsent

RevokedAtIn applies the In predicate on the "revoked_at" field.

func RevokedAtIsNil

func RevokedAtIsNil() predicate.OAuthConsent

RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.OAuthConsent

RevokedAtLT applies the LT predicate on the "revoked_at" field.

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.OAuthConsent

RevokedAtLTE applies the LTE predicate on the "revoked_at" field.

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.OAuthConsent

RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.

func RevokedAtNotIn

func RevokedAtNotIn(vs ...time.Time) predicate.OAuthConsent

RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.

func RevokedAtNotNil

func RevokedAtNotNil() predicate.OAuthConsent

RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.

func RevokedEQ

func RevokedEQ(v bool) predicate.OAuthConsent

RevokedEQ applies the EQ predicate on the "revoked" field.

func RevokedNEQ

func RevokedNEQ(v bool) predicate.OAuthConsent

RevokedNEQ applies the NEQ predicate on the "revoked" field.

func RevokedReason

func RevokedReason(v string) predicate.OAuthConsent

RevokedReason applies equality check predicate on the "revoked_reason" field. It's identical to RevokedReasonEQ.

func RevokedReasonContains

func RevokedReasonContains(v string) predicate.OAuthConsent

RevokedReasonContains applies the Contains predicate on the "revoked_reason" field.

func RevokedReasonContainsFold

func RevokedReasonContainsFold(v string) predicate.OAuthConsent

RevokedReasonContainsFold applies the ContainsFold predicate on the "revoked_reason" field.

func RevokedReasonEQ

func RevokedReasonEQ(v string) predicate.OAuthConsent

RevokedReasonEQ applies the EQ predicate on the "revoked_reason" field.

func RevokedReasonEqualFold

func RevokedReasonEqualFold(v string) predicate.OAuthConsent

RevokedReasonEqualFold applies the EqualFold predicate on the "revoked_reason" field.

func RevokedReasonGT

func RevokedReasonGT(v string) predicate.OAuthConsent

RevokedReasonGT applies the GT predicate on the "revoked_reason" field.

func RevokedReasonGTE

func RevokedReasonGTE(v string) predicate.OAuthConsent

RevokedReasonGTE applies the GTE predicate on the "revoked_reason" field.

func RevokedReasonHasPrefix

func RevokedReasonHasPrefix(v string) predicate.OAuthConsent

RevokedReasonHasPrefix applies the HasPrefix predicate on the "revoked_reason" field.

func RevokedReasonHasSuffix

func RevokedReasonHasSuffix(v string) predicate.OAuthConsent

RevokedReasonHasSuffix applies the HasSuffix predicate on the "revoked_reason" field.

func RevokedReasonIn

func RevokedReasonIn(vs ...string) predicate.OAuthConsent

RevokedReasonIn applies the In predicate on the "revoked_reason" field.

func RevokedReasonIsNil

func RevokedReasonIsNil() predicate.OAuthConsent

RevokedReasonIsNil applies the IsNil predicate on the "revoked_reason" field.

func RevokedReasonLT

func RevokedReasonLT(v string) predicate.OAuthConsent

RevokedReasonLT applies the LT predicate on the "revoked_reason" field.

func RevokedReasonLTE

func RevokedReasonLTE(v string) predicate.OAuthConsent

RevokedReasonLTE applies the LTE predicate on the "revoked_reason" field.

func RevokedReasonNEQ

func RevokedReasonNEQ(v string) predicate.OAuthConsent

RevokedReasonNEQ applies the NEQ predicate on the "revoked_reason" field.

func RevokedReasonNotIn

func RevokedReasonNotIn(vs ...string) predicate.OAuthConsent

RevokedReasonNotIn applies the NotIn predicate on the "revoked_reason" field.

func RevokedReasonNotNil

func RevokedReasonNotNil() predicate.OAuthConsent

RevokedReasonNotNil applies the NotNil predicate on the "revoked_reason" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OAuthConsent

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OAuthConsent

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OAuthConsent

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OAuthConsent

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OAuthConsent

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OAuthConsent

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OAuthConsent

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v uuid.UUID) predicate.OAuthConsent

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

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.OAuthConsent

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

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.OAuthConsent

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

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.OAuthConsent

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

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.OAuthConsent

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 OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OAuthConsent queries.

func ByAppField

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

ByAppField orders the results by app field.

func ByAppID

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

ByAppID orders the results by the app_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByGranted

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

ByGranted orders the results by the granted field.

func ByGrantedAt

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

ByGrantedAt orders the results by the granted_at field.

func ByID

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

ByID orders the results by the id field.

func ByLastUsedAt

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

ByLastUsedAt orders the results by the last_used_at field.

func ByRevoked

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

ByRevoked orders the results by the revoked field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func ByRevokedReason

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

ByRevokedReason orders the results by the revoked_reason field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at 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