oauthappsecret

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthappsecret type in the database.
	Label = "oauth_app_secret"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAppID holds the string denoting the app_id field in the database.
	FieldAppID = "app_id"
	// FieldSecretHash holds the string denoting the secret_hash field in the database.
	FieldSecretHash = "secret_hash"
	// FieldSecretPrefix holds the string denoting the secret_prefix field in the database.
	FieldSecretPrefix = "secret_prefix"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeApp holds the string denoting the app edge name in mutations.
	EdgeApp = "app"
	// Table holds the table name of the oauthappsecret in the database.
	Table = "cf_oauth_app_secrets"
	// AppTable is the table that holds the app relation/edge.
	AppTable = "cf_oauth_app_secrets"
	// 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 (
	// SecretHashValidator is a validator for the "secret_hash" field. It is called by the builders before save.
	SecretHashValidator func(string) error
	// SecretPrefixValidator is a validator for the "secret_prefix" field. It is called by the builders before save.
	SecretPrefixValidator func(string) error
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for oauthappsecret fields.

Functions

func And

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

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

func AppIDIn

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

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

func AppIDNEQ

func AppIDNEQ(v uuid.UUID) predicate.OAuthAppSecret

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

func AppIDNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OAuthAppSecret

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

func CreatedAtNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.OAuthAppSecret

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.OAuthAppSecret

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.OAuthAppSecret

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.OAuthAppSecret

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.OAuthAppSecret

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.OAuthAppSecret

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.OAuthAppSecret

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.OAuthAppSecret

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.OAuthAppSecret

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.OAuthAppSecret

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.OAuthAppSecret

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasApp

func HasApp() predicate.OAuthAppSecret

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

func HasAppWith

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

HasAppWith applies the HasEdge predicate on the "app" 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

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastUsedAt

func LastUsedAt(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtEQ

func LastUsedAtEQ(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtGT

func LastUsedAtGT(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtGTE

func LastUsedAtGTE(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtIn

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

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

func LastUsedAtIsNil

func LastUsedAtIsNil() predicate.OAuthAppSecret

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

func LastUsedAtLT

func LastUsedAtLT(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtLTE

func LastUsedAtLTE(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtNEQ

func LastUsedAtNEQ(v time.Time) predicate.OAuthAppSecret

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

func LastUsedAtNotIn

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

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

func LastUsedAtNotNil

func LastUsedAtNotNil() predicate.OAuthAppSecret

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Revoked

func Revoked(v bool) predicate.OAuthAppSecret

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

func RevokedAt

func RevokedAt(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtIn

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

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

func RevokedAtIsNil

func RevokedAtIsNil() predicate.OAuthAppSecret

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

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.OAuthAppSecret

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

func RevokedAtNotIn

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

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

func RevokedAtNotNil

func RevokedAtNotNil() predicate.OAuthAppSecret

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

func RevokedEQ

func RevokedEQ(v bool) predicate.OAuthAppSecret

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

func RevokedNEQ

func RevokedNEQ(v bool) predicate.OAuthAppSecret

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

func SecretHash

func SecretHash(v string) predicate.OAuthAppSecret

SecretHash applies equality check predicate on the "secret_hash" field. It's identical to SecretHashEQ.

func SecretHashContains

func SecretHashContains(v string) predicate.OAuthAppSecret

SecretHashContains applies the Contains predicate on the "secret_hash" field.

func SecretHashContainsFold

func SecretHashContainsFold(v string) predicate.OAuthAppSecret

SecretHashContainsFold applies the ContainsFold predicate on the "secret_hash" field.

func SecretHashEQ

func SecretHashEQ(v string) predicate.OAuthAppSecret

SecretHashEQ applies the EQ predicate on the "secret_hash" field.

func SecretHashEqualFold

func SecretHashEqualFold(v string) predicate.OAuthAppSecret

SecretHashEqualFold applies the EqualFold predicate on the "secret_hash" field.

func SecretHashGT

func SecretHashGT(v string) predicate.OAuthAppSecret

SecretHashGT applies the GT predicate on the "secret_hash" field.

func SecretHashGTE

func SecretHashGTE(v string) predicate.OAuthAppSecret

SecretHashGTE applies the GTE predicate on the "secret_hash" field.

func SecretHashHasPrefix

func SecretHashHasPrefix(v string) predicate.OAuthAppSecret

SecretHashHasPrefix applies the HasPrefix predicate on the "secret_hash" field.

func SecretHashHasSuffix

func SecretHashHasSuffix(v string) predicate.OAuthAppSecret

SecretHashHasSuffix applies the HasSuffix predicate on the "secret_hash" field.

func SecretHashIn

func SecretHashIn(vs ...string) predicate.OAuthAppSecret

SecretHashIn applies the In predicate on the "secret_hash" field.

func SecretHashLT

func SecretHashLT(v string) predicate.OAuthAppSecret

SecretHashLT applies the LT predicate on the "secret_hash" field.

func SecretHashLTE

func SecretHashLTE(v string) predicate.OAuthAppSecret

SecretHashLTE applies the LTE predicate on the "secret_hash" field.

func SecretHashNEQ

func SecretHashNEQ(v string) predicate.OAuthAppSecret

SecretHashNEQ applies the NEQ predicate on the "secret_hash" field.

func SecretHashNotIn

func SecretHashNotIn(vs ...string) predicate.OAuthAppSecret

SecretHashNotIn applies the NotIn predicate on the "secret_hash" field.

func SecretPrefix

func SecretPrefix(v string) predicate.OAuthAppSecret

SecretPrefix applies equality check predicate on the "secret_prefix" field. It's identical to SecretPrefixEQ.

func SecretPrefixContains

func SecretPrefixContains(v string) predicate.OAuthAppSecret

SecretPrefixContains applies the Contains predicate on the "secret_prefix" field.

func SecretPrefixContainsFold

func SecretPrefixContainsFold(v string) predicate.OAuthAppSecret

SecretPrefixContainsFold applies the ContainsFold predicate on the "secret_prefix" field.

func SecretPrefixEQ

func SecretPrefixEQ(v string) predicate.OAuthAppSecret

SecretPrefixEQ applies the EQ predicate on the "secret_prefix" field.

func SecretPrefixEqualFold

func SecretPrefixEqualFold(v string) predicate.OAuthAppSecret

SecretPrefixEqualFold applies the EqualFold predicate on the "secret_prefix" field.

func SecretPrefixGT

func SecretPrefixGT(v string) predicate.OAuthAppSecret

SecretPrefixGT applies the GT predicate on the "secret_prefix" field.

func SecretPrefixGTE

func SecretPrefixGTE(v string) predicate.OAuthAppSecret

SecretPrefixGTE applies the GTE predicate on the "secret_prefix" field.

func SecretPrefixHasPrefix

func SecretPrefixHasPrefix(v string) predicate.OAuthAppSecret

SecretPrefixHasPrefix applies the HasPrefix predicate on the "secret_prefix" field.

func SecretPrefixHasSuffix

func SecretPrefixHasSuffix(v string) predicate.OAuthAppSecret

SecretPrefixHasSuffix applies the HasSuffix predicate on the "secret_prefix" field.

func SecretPrefixIn

func SecretPrefixIn(vs ...string) predicate.OAuthAppSecret

SecretPrefixIn applies the In predicate on the "secret_prefix" field.

func SecretPrefixLT

func SecretPrefixLT(v string) predicate.OAuthAppSecret

SecretPrefixLT applies the LT predicate on the "secret_prefix" field.

func SecretPrefixLTE

func SecretPrefixLTE(v string) predicate.OAuthAppSecret

SecretPrefixLTE applies the LTE predicate on the "secret_prefix" field.

func SecretPrefixNEQ

func SecretPrefixNEQ(v string) predicate.OAuthAppSecret

SecretPrefixNEQ applies the NEQ predicate on the "secret_prefix" field.

func SecretPrefixNotIn

func SecretPrefixNotIn(vs ...string) predicate.OAuthAppSecret

SecretPrefixNotIn applies the NotIn predicate on the "secret_prefix" 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 OAuthAppSecret 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 ByExpiresAt

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

ByExpiresAt orders the results by the expires_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 BySecretHash

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

BySecretHash orders the results by the secret_hash field.

func BySecretPrefix

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

BySecretPrefix orders the results by the secret_prefix field.

Jump to

Keyboard shortcuts

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