oauthapp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the oauthapp type in the database.
	Label = "oauth_app"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldLogoURL holds the string denoting the logo_url field in the database.
	FieldLogoURL = "logo_url"
	// FieldAppType holds the string denoting the app_type field in the database.
	FieldAppType = "app_type"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldRedirectUris holds the string denoting the redirect_uris field in the database.
	FieldRedirectUris = "redirect_uris"
	// FieldAllowedScopes holds the string denoting the allowed_scopes field in the database.
	FieldAllowedScopes = "allowed_scopes"
	// FieldAllowedGrants holds the string denoting the allowed_grants field in the database.
	FieldAllowedGrants = "allowed_grants"
	// FieldAllowedResponseTypes holds the string denoting the allowed_response_types field in the database.
	FieldAllowedResponseTypes = "allowed_response_types"
	// FieldAccessTokenTTL holds the string denoting the access_token_ttl field in the database.
	FieldAccessTokenTTL = "access_token_ttl"
	// FieldRefreshTokenTTL holds the string denoting the refresh_token_ttl field in the database.
	FieldRefreshTokenTTL = "refresh_token_ttl"
	// FieldRefreshTokenRotation holds the string denoting the refresh_token_rotation field in the database.
	FieldRefreshTokenRotation = "refresh_token_rotation"
	// FieldFirstParty holds the string denoting the first_party field in the database.
	FieldFirstParty = "first_party"
	// FieldPublic holds the string denoting the public field in the database.
	FieldPublic = "public"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldRevokedAt holds the string denoting the revoked_at field in the database.
	FieldRevokedAt = "revoked_at"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// 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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeSecrets holds the string denoting the secrets edge name in mutations.
	EdgeSecrets = "secrets"
	// EdgeTokens holds the string denoting the tokens edge name in mutations.
	EdgeTokens = "tokens"
	// EdgeAuthCodes holds the string denoting the auth_codes edge name in mutations.
	EdgeAuthCodes = "auth_codes"
	// EdgeConsents holds the string denoting the consents edge name in mutations.
	EdgeConsents = "consents"
	// Table holds the table name of the oauthapp in the database.
	Table = "cf_oauth_apps"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "cf_oauth_apps"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "cf_users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "cf_oauth_apps"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "cf_organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// SecretsTable is the table that holds the secrets relation/edge.
	SecretsTable = "cf_oauth_app_secrets"
	// SecretsInverseTable is the table name for the OAuthAppSecret entity.
	// It exists in this package in order to avoid circular dependency with the "oauthappsecret" package.
	SecretsInverseTable = "cf_oauth_app_secrets"
	// SecretsColumn is the table column denoting the secrets relation/edge.
	SecretsColumn = "app_id"
	// TokensTable is the table that holds the tokens relation/edge.
	TokensTable = "cf_oauth_tokens"
	// TokensInverseTable is the table name for the OAuthToken entity.
	// It exists in this package in order to avoid circular dependency with the "oauthtoken" package.
	TokensInverseTable = "cf_oauth_tokens"
	// TokensColumn is the table column denoting the tokens relation/edge.
	TokensColumn = "app_id"
	// AuthCodesTable is the table that holds the auth_codes relation/edge.
	AuthCodesTable = "cf_oauth_auth_codes"
	// AuthCodesInverseTable is the table name for the OAuthAuthCode entity.
	// It exists in this package in order to avoid circular dependency with the "oauthauthcode" package.
	AuthCodesInverseTable = "cf_oauth_auth_codes"
	// AuthCodesColumn is the table column denoting the auth_codes relation/edge.
	AuthCodesColumn = "app_id"
	// ConsentsTable is the table that holds the consents relation/edge.
	ConsentsTable = "cf_oauth_consents"
	// ConsentsInverseTable is the table name for the OAuthConsent entity.
	// It exists in this package in order to avoid circular dependency with the "oauthconsent" package.
	ConsentsInverseTable = "cf_oauth_consents"
	// ConsentsColumn is the table column denoting the consents relation/edge.
	ConsentsColumn = "app_id"
)
View Source
const DefaultAppType = AppTypeWeb

AppTypeWeb is the default value of the AppType enum.

Variables

View Source
var (
	// ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save.
	ClientIDValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// DefaultRedirectUris holds the default value on creation for the "redirect_uris" field.
	DefaultRedirectUris []string
	// DefaultAllowedScopes holds the default value on creation for the "allowed_scopes" field.
	DefaultAllowedScopes []string
	// DefaultAllowedGrants holds the default value on creation for the "allowed_grants" field.
	DefaultAllowedGrants []string
	// DefaultAllowedResponseTypes holds the default value on creation for the "allowed_response_types" field.
	DefaultAllowedResponseTypes []string
	// DefaultAccessTokenTTL holds the default value on creation for the "access_token_ttl" field.
	DefaultAccessTokenTTL int
	// DefaultRefreshTokenTTL holds the default value on creation for the "refresh_token_ttl" field.
	DefaultRefreshTokenTTL int
	// DefaultRefreshTokenRotation holds the default value on creation for the "refresh_token_rotation" field.
	DefaultRefreshTokenRotation bool
	// DefaultFirstParty holds the default value on creation for the "first_party" field.
	DefaultFirstParty bool
	// DefaultPublic holds the default value on creation for the "public" field.
	DefaultPublic bool
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive 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 oauthapp fields.

Functions

func AccessTokenTTL

func AccessTokenTTL(v int) predicate.OAuthApp

AccessTokenTTL applies equality check predicate on the "access_token_ttl" field. It's identical to AccessTokenTTLEQ.

func AccessTokenTTLEQ

func AccessTokenTTLEQ(v int) predicate.OAuthApp

AccessTokenTTLEQ applies the EQ predicate on the "access_token_ttl" field.

func AccessTokenTTLGT

func AccessTokenTTLGT(v int) predicate.OAuthApp

AccessTokenTTLGT applies the GT predicate on the "access_token_ttl" field.

func AccessTokenTTLGTE

func AccessTokenTTLGTE(v int) predicate.OAuthApp

AccessTokenTTLGTE applies the GTE predicate on the "access_token_ttl" field.

func AccessTokenTTLIn

func AccessTokenTTLIn(vs ...int) predicate.OAuthApp

AccessTokenTTLIn applies the In predicate on the "access_token_ttl" field.

func AccessTokenTTLLT

func AccessTokenTTLLT(v int) predicate.OAuthApp

AccessTokenTTLLT applies the LT predicate on the "access_token_ttl" field.

func AccessTokenTTLLTE

func AccessTokenTTLLTE(v int) predicate.OAuthApp

AccessTokenTTLLTE applies the LTE predicate on the "access_token_ttl" field.

func AccessTokenTTLNEQ

func AccessTokenTTLNEQ(v int) predicate.OAuthApp

AccessTokenTTLNEQ applies the NEQ predicate on the "access_token_ttl" field.

func AccessTokenTTLNotIn

func AccessTokenTTLNotIn(vs ...int) predicate.OAuthApp

AccessTokenTTLNotIn applies the NotIn predicate on the "access_token_ttl" field.

func Active

func Active(v bool) predicate.OAuthApp

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.OAuthApp

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.OAuthApp

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.OAuthApp) predicate.OAuthApp

And groups predicates with the AND operator between them.

func AppTypeEQ

func AppTypeEQ(v AppType) predicate.OAuthApp

AppTypeEQ applies the EQ predicate on the "app_type" field.

func AppTypeIn

func AppTypeIn(vs ...AppType) predicate.OAuthApp

AppTypeIn applies the In predicate on the "app_type" field.

func AppTypeNEQ

func AppTypeNEQ(v AppType) predicate.OAuthApp

AppTypeNEQ applies the NEQ predicate on the "app_type" field.

func AppTypeNotIn

func AppTypeNotIn(vs ...AppType) predicate.OAuthApp

AppTypeNotIn applies the NotIn predicate on the "app_type" field.

func AppTypeValidator

func AppTypeValidator(at AppType) error

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

func ClientID

func ClientID(v string) predicate.OAuthApp

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

func ClientIDContains

func ClientIDContains(v string) predicate.OAuthApp

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

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.OAuthApp

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

func ClientIDEQ

func ClientIDEQ(v string) predicate.OAuthApp

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

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.OAuthApp

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

func ClientIDGT

func ClientIDGT(v string) predicate.OAuthApp

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

func ClientIDGTE

func ClientIDGTE(v string) predicate.OAuthApp

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

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.OAuthApp

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

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.OAuthApp

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

func ClientIDIn

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

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

func ClientIDLT

func ClientIDLT(v string) predicate.OAuthApp

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

func ClientIDLTE

func ClientIDLTE(v string) predicate.OAuthApp

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

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.OAuthApp

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

func ClientIDNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.OAuthApp

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OAuthApp

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OAuthApp

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OAuthApp

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OAuthApp

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OAuthApp

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OAuthApp

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.OAuthApp

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.OAuthApp

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.OAuthApp

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.OAuthApp

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.OAuthApp

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.OAuthApp

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.OAuthApp

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.OAuthApp

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.OAuthApp

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.OAuthApp

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.OAuthApp

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.OAuthApp

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.OAuthApp

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.OAuthApp

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.OAuthApp

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.OAuthApp

DescriptionNotNil applies the NotNil predicate on the "description" field.

func FirstParty

func FirstParty(v bool) predicate.OAuthApp

FirstParty applies equality check predicate on the "first_party" field. It's identical to FirstPartyEQ.

func FirstPartyEQ

func FirstPartyEQ(v bool) predicate.OAuthApp

FirstPartyEQ applies the EQ predicate on the "first_party" field.

func FirstPartyNEQ

func FirstPartyNEQ(v bool) predicate.OAuthApp

FirstPartyNEQ applies the NEQ predicate on the "first_party" field.

func HasAuthCodes

func HasAuthCodes() predicate.OAuthApp

HasAuthCodes applies the HasEdge predicate on the "auth_codes" edge.

func HasAuthCodesWith

func HasAuthCodesWith(preds ...predicate.OAuthAuthCode) predicate.OAuthApp

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

func HasConsents

func HasConsents() predicate.OAuthApp

HasConsents applies the HasEdge predicate on the "consents" edge.

func HasConsentsWith

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

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

func HasOrganization

func HasOrganization() predicate.OAuthApp

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.OAuthApp

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

func HasOwner

func HasOwner() predicate.OAuthApp

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.OAuthApp

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

func HasSecrets

func HasSecrets() predicate.OAuthApp

HasSecrets applies the HasEdge predicate on the "secrets" edge.

func HasSecretsWith

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

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

func HasTokens

func HasTokens() predicate.OAuthApp

HasTokens applies the HasEdge predicate on the "tokens" edge.

func HasTokensWith

func HasTokensWith(preds ...predicate.OAuthToken) predicate.OAuthApp

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

func ID

func ID(id uuid.UUID) predicate.OAuthApp

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.OAuthApp

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.OAuthApp

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.OAuthApp

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.OAuthApp

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.OAuthApp

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.OAuthApp

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LogoURL

func LogoURL(v string) predicate.OAuthApp

LogoURL applies equality check predicate on the "logo_url" field. It's identical to LogoURLEQ.

func LogoURLContains

func LogoURLContains(v string) predicate.OAuthApp

LogoURLContains applies the Contains predicate on the "logo_url" field.

func LogoURLContainsFold

func LogoURLContainsFold(v string) predicate.OAuthApp

LogoURLContainsFold applies the ContainsFold predicate on the "logo_url" field.

func LogoURLEQ

func LogoURLEQ(v string) predicate.OAuthApp

LogoURLEQ applies the EQ predicate on the "logo_url" field.

func LogoURLEqualFold

func LogoURLEqualFold(v string) predicate.OAuthApp

LogoURLEqualFold applies the EqualFold predicate on the "logo_url" field.

func LogoURLGT

func LogoURLGT(v string) predicate.OAuthApp

LogoURLGT applies the GT predicate on the "logo_url" field.

func LogoURLGTE

func LogoURLGTE(v string) predicate.OAuthApp

LogoURLGTE applies the GTE predicate on the "logo_url" field.

func LogoURLHasPrefix

func LogoURLHasPrefix(v string) predicate.OAuthApp

LogoURLHasPrefix applies the HasPrefix predicate on the "logo_url" field.

func LogoURLHasSuffix

func LogoURLHasSuffix(v string) predicate.OAuthApp

LogoURLHasSuffix applies the HasSuffix predicate on the "logo_url" field.

func LogoURLIn

func LogoURLIn(vs ...string) predicate.OAuthApp

LogoURLIn applies the In predicate on the "logo_url" field.

func LogoURLIsNil

func LogoURLIsNil() predicate.OAuthApp

LogoURLIsNil applies the IsNil predicate on the "logo_url" field.

func LogoURLLT

func LogoURLLT(v string) predicate.OAuthApp

LogoURLLT applies the LT predicate on the "logo_url" field.

func LogoURLLTE

func LogoURLLTE(v string) predicate.OAuthApp

LogoURLLTE applies the LTE predicate on the "logo_url" field.

func LogoURLNEQ

func LogoURLNEQ(v string) predicate.OAuthApp

LogoURLNEQ applies the NEQ predicate on the "logo_url" field.

func LogoURLNotIn

func LogoURLNotIn(vs ...string) predicate.OAuthApp

LogoURLNotIn applies the NotIn predicate on the "logo_url" field.

func LogoURLNotNil

func LogoURLNotNil() predicate.OAuthApp

LogoURLNotNil applies the NotNil predicate on the "logo_url" field.

func MetadataIsNil

func MetadataIsNil() predicate.OAuthApp

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.OAuthApp

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.OAuthApp

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

func NameContains

func NameContains(v string) predicate.OAuthApp

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

func NameContainsFold

func NameContainsFold(v string) predicate.OAuthApp

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

func NameEQ

func NameEQ(v string) predicate.OAuthApp

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

func NameEqualFold

func NameEqualFold(v string) predicate.OAuthApp

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

func NameGT

func NameGT(v string) predicate.OAuthApp

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

func NameGTE

func NameGTE(v string) predicate.OAuthApp

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.OAuthApp

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.OAuthApp

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.OAuthApp

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

func NameLTE

func NameLTE(v string) predicate.OAuthApp

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

func NameNEQ

func NameNEQ(v string) predicate.OAuthApp

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

func NameNotIn

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

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.OAuthApp) predicate.OAuthApp

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.OAuthApp

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.OAuthApp

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.OAuthApp

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDIsNil

func OrganizationIDIsNil() predicate.OAuthApp

OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.OAuthApp

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.OAuthApp

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func OrganizationIDNotNil

func OrganizationIDNotNil() predicate.OAuthApp

OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.

func OwnerID

func OwnerID(v uuid.UUID) predicate.OAuthApp

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDEQ

func OwnerIDEQ(v uuid.UUID) predicate.OAuthApp

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...uuid.UUID) predicate.OAuthApp

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v uuid.UUID) predicate.OAuthApp

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...uuid.UUID) predicate.OAuthApp

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func Public

func Public(v bool) predicate.OAuthApp

Public applies equality check predicate on the "public" field. It's identical to PublicEQ.

func PublicEQ

func PublicEQ(v bool) predicate.OAuthApp

PublicEQ applies the EQ predicate on the "public" field.

func PublicNEQ

func PublicNEQ(v bool) predicate.OAuthApp

PublicNEQ applies the NEQ predicate on the "public" field.

func RefreshTokenRotation

func RefreshTokenRotation(v bool) predicate.OAuthApp

RefreshTokenRotation applies equality check predicate on the "refresh_token_rotation" field. It's identical to RefreshTokenRotationEQ.

func RefreshTokenRotationEQ

func RefreshTokenRotationEQ(v bool) predicate.OAuthApp

RefreshTokenRotationEQ applies the EQ predicate on the "refresh_token_rotation" field.

func RefreshTokenRotationNEQ

func RefreshTokenRotationNEQ(v bool) predicate.OAuthApp

RefreshTokenRotationNEQ applies the NEQ predicate on the "refresh_token_rotation" field.

func RefreshTokenTTL

func RefreshTokenTTL(v int) predicate.OAuthApp

RefreshTokenTTL applies equality check predicate on the "refresh_token_ttl" field. It's identical to RefreshTokenTTLEQ.

func RefreshTokenTTLEQ

func RefreshTokenTTLEQ(v int) predicate.OAuthApp

RefreshTokenTTLEQ applies the EQ predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLGT

func RefreshTokenTTLGT(v int) predicate.OAuthApp

RefreshTokenTTLGT applies the GT predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLGTE

func RefreshTokenTTLGTE(v int) predicate.OAuthApp

RefreshTokenTTLGTE applies the GTE predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLIn

func RefreshTokenTTLIn(vs ...int) predicate.OAuthApp

RefreshTokenTTLIn applies the In predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLLT

func RefreshTokenTTLLT(v int) predicate.OAuthApp

RefreshTokenTTLLT applies the LT predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLLTE

func RefreshTokenTTLLTE(v int) predicate.OAuthApp

RefreshTokenTTLLTE applies the LTE predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLNEQ

func RefreshTokenTTLNEQ(v int) predicate.OAuthApp

RefreshTokenTTLNEQ applies the NEQ predicate on the "refresh_token_ttl" field.

func RefreshTokenTTLNotIn

func RefreshTokenTTLNotIn(vs ...int) predicate.OAuthApp

RefreshTokenTTLNotIn applies the NotIn predicate on the "refresh_token_ttl" field.

func RevokedAt

func RevokedAt(v time.Time) predicate.OAuthApp

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

func RevokedAtEQ

func RevokedAtEQ(v time.Time) predicate.OAuthApp

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

func RevokedAtGT

func RevokedAtGT(v time.Time) predicate.OAuthApp

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

func RevokedAtGTE

func RevokedAtGTE(v time.Time) predicate.OAuthApp

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

func RevokedAtIn

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

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

func RevokedAtIsNil

func RevokedAtIsNil() predicate.OAuthApp

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

func RevokedAtLT

func RevokedAtLT(v time.Time) predicate.OAuthApp

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

func RevokedAtLTE

func RevokedAtLTE(v time.Time) predicate.OAuthApp

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

func RevokedAtNEQ

func RevokedAtNEQ(v time.Time) predicate.OAuthApp

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

func RevokedAtNotIn

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

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

func RevokedAtNotNil

func RevokedAtNotNil() predicate.OAuthApp

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OAuthApp

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OAuthApp

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OAuthApp

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OAuthApp

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OAuthApp

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OAuthApp

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OAuthApp

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

func UpdatedAtNotIn

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

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 AppType

type AppType string

AppType defines the type for the "app_type" enum field.

const (
	AppTypeWeb     AppType = "web"
	AppTypeSpa     AppType = "spa"
	AppTypeNative  AppType = "native"
	AppTypeService AppType = "service"
	AppTypeMachine AppType = "machine"
)

AppType values.

func (AppType) String

func (at AppType) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the OAuthApp queries.

func ByAccessTokenTTL

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

ByAccessTokenTTL orders the results by the access_token_ttl field.

func ByActive

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

ByActive orders the results by the active field.

func ByAppType

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

ByAppType orders the results by the app_type field.

func ByAuthCodes

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

ByAuthCodes orders the results by auth_codes terms.

func ByAuthCodesCount

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

ByAuthCodesCount orders the results by auth_codes count.

func ByClientID

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

ByClientID orders the results by the client_id field.

func ByConsents

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

ByConsents orders the results by consents terms.

func ByConsentsCount

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

ByConsentsCount orders the results by consents count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByFirstParty

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

ByFirstParty orders the results by the first_party field.

func ByID

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

ByID orders the results by the id field.

func ByLogoURL

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

ByLogoURL orders the results by the logo_url field.

func ByName

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

ByName orders the results by the name field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByOrganizationID

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

ByOrganizationID orders the results by the organization_id field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByPublic

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

ByPublic orders the results by the public field.

func ByRefreshTokenRotation

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

ByRefreshTokenRotation orders the results by the refresh_token_rotation field.

func ByRefreshTokenTTL

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

ByRefreshTokenTTL orders the results by the refresh_token_ttl field.

func ByRevokedAt

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

ByRevokedAt orders the results by the revoked_at field.

func BySecrets

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

BySecrets orders the results by secrets terms.

func BySecretsCount

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

BySecretsCount orders the results by secrets count.

func ByTokens

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

ByTokens orders the results by tokens terms.

func ByTokensCount

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

ByTokensCount orders the results by tokens count.

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