Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OAuthCode) predicate.OAuthCode
- func ClientID(v int64) predicate.OAuthCode
- func ClientIDEQ(v int64) predicate.OAuthCode
- func ClientIDIn(vs ...int64) predicate.OAuthCode
- func ClientIDNEQ(v int64) predicate.OAuthCode
- func ClientIDNotIn(vs ...int64) predicate.OAuthCode
- func CodeChallenge(v string) predicate.OAuthCode
- func CodeChallengeContains(v string) predicate.OAuthCode
- func CodeChallengeContainsFold(v string) predicate.OAuthCode
- func CodeChallengeEQ(v string) predicate.OAuthCode
- func CodeChallengeEqualFold(v string) predicate.OAuthCode
- func CodeChallengeGT(v string) predicate.OAuthCode
- func CodeChallengeGTE(v string) predicate.OAuthCode
- func CodeChallengeHasPrefix(v string) predicate.OAuthCode
- func CodeChallengeHasSuffix(v string) predicate.OAuthCode
- func CodeChallengeIn(vs ...string) predicate.OAuthCode
- func CodeChallengeLT(v string) predicate.OAuthCode
- func CodeChallengeLTE(v string) predicate.OAuthCode
- func CodeChallengeNEQ(v string) predicate.OAuthCode
- func CodeChallengeNotIn(vs ...string) predicate.OAuthCode
- func CodeHash(v string) predicate.OAuthCode
- func CodeHashContains(v string) predicate.OAuthCode
- func CodeHashContainsFold(v string) predicate.OAuthCode
- func CodeHashEQ(v string) predicate.OAuthCode
- func CodeHashEqualFold(v string) predicate.OAuthCode
- func CodeHashGT(v string) predicate.OAuthCode
- func CodeHashGTE(v string) predicate.OAuthCode
- func CodeHashHasPrefix(v string) predicate.OAuthCode
- func CodeHashHasSuffix(v string) predicate.OAuthCode
- func CodeHashIn(vs ...string) predicate.OAuthCode
- func CodeHashLT(v string) predicate.OAuthCode
- func CodeHashLTE(v string) predicate.OAuthCode
- func CodeHashNEQ(v string) predicate.OAuthCode
- func CodeHashNotIn(vs ...string) predicate.OAuthCode
- func CreatedAt(v time.Time) predicate.OAuthCode
- func CreatedAtEQ(v time.Time) predicate.OAuthCode
- func CreatedAtGT(v time.Time) predicate.OAuthCode
- func CreatedAtGTE(v time.Time) predicate.OAuthCode
- func CreatedAtIn(vs ...time.Time) predicate.OAuthCode
- func CreatedAtLT(v time.Time) predicate.OAuthCode
- func CreatedAtLTE(v time.Time) predicate.OAuthCode
- func CreatedAtNEQ(v time.Time) predicate.OAuthCode
- func CreatedAtNotIn(vs ...time.Time) predicate.OAuthCode
- func ExpiresAt(v time.Time) predicate.OAuthCode
- func ExpiresAtEQ(v time.Time) predicate.OAuthCode
- func ExpiresAtGT(v time.Time) predicate.OAuthCode
- func ExpiresAtGTE(v time.Time) predicate.OAuthCode
- func ExpiresAtIn(vs ...time.Time) predicate.OAuthCode
- func ExpiresAtLT(v time.Time) predicate.OAuthCode
- func ExpiresAtLTE(v time.Time) predicate.OAuthCode
- func ExpiresAtNEQ(v time.Time) predicate.OAuthCode
- func ExpiresAtNotIn(vs ...time.Time) predicate.OAuthCode
- func HasClient() predicate.OAuthCode
- func HasClientWith(preds ...predicate.OAuthClient) predicate.OAuthCode
- func HasWorkspace() predicate.OAuthCode
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.OAuthCode
- func ID(id int64) predicate.OAuthCode
- func IDEQ(id int64) predicate.OAuthCode
- func IDGT(id int64) predicate.OAuthCode
- func IDGTE(id int64) predicate.OAuthCode
- func IDIn(ids ...int64) predicate.OAuthCode
- func IDLT(id int64) predicate.OAuthCode
- func IDLTE(id int64) predicate.OAuthCode
- func IDNEQ(id int64) predicate.OAuthCode
- func IDNotIn(ids ...int64) predicate.OAuthCode
- func Not(p predicate.OAuthCode) predicate.OAuthCode
- func Or(predicates ...predicate.OAuthCode) predicate.OAuthCode
- func RedirectURI(v string) predicate.OAuthCode
- func RedirectURIContains(v string) predicate.OAuthCode
- func RedirectURIContainsFold(v string) predicate.OAuthCode
- func RedirectURIEQ(v string) predicate.OAuthCode
- func RedirectURIEqualFold(v string) predicate.OAuthCode
- func RedirectURIGT(v string) predicate.OAuthCode
- func RedirectURIGTE(v string) predicate.OAuthCode
- func RedirectURIHasPrefix(v string) predicate.OAuthCode
- func RedirectURIHasSuffix(v string) predicate.OAuthCode
- func RedirectURIIn(vs ...string) predicate.OAuthCode
- func RedirectURILT(v string) predicate.OAuthCode
- func RedirectURILTE(v string) predicate.OAuthCode
- func RedirectURINEQ(v string) predicate.OAuthCode
- func RedirectURINotIn(vs ...string) predicate.OAuthCode
- func UpdatedAt(v time.Time) predicate.OAuthCode
- func UpdatedAtEQ(v time.Time) predicate.OAuthCode
- func UpdatedAtGT(v time.Time) predicate.OAuthCode
- func UpdatedAtGTE(v time.Time) predicate.OAuthCode
- func UpdatedAtIn(vs ...time.Time) predicate.OAuthCode
- func UpdatedAtLT(v time.Time) predicate.OAuthCode
- func UpdatedAtLTE(v time.Time) predicate.OAuthCode
- func UpdatedAtNEQ(v time.Time) predicate.OAuthCode
- func UpdatedAtNotIn(vs ...time.Time) predicate.OAuthCode
- func UsedAt(v time.Time) predicate.OAuthCode
- func UsedAtEQ(v time.Time) predicate.OAuthCode
- func UsedAtGT(v time.Time) predicate.OAuthCode
- func UsedAtGTE(v time.Time) predicate.OAuthCode
- func UsedAtIn(vs ...time.Time) predicate.OAuthCode
- func UsedAtIsNil() predicate.OAuthCode
- func UsedAtLT(v time.Time) predicate.OAuthCode
- func UsedAtLTE(v time.Time) predicate.OAuthCode
- func UsedAtNEQ(v time.Time) predicate.OAuthCode
- func UsedAtNotIn(vs ...time.Time) predicate.OAuthCode
- func UsedAtNotNil() predicate.OAuthCode
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.OAuthCode
- func WorkspaceIDEQ(v int64) predicate.OAuthCode
- func WorkspaceIDIn(vs ...int64) predicate.OAuthCode
- func WorkspaceIDNEQ(v int64) predicate.OAuthCode
- func WorkspaceIDNotIn(vs ...int64) predicate.OAuthCode
- type OrderOption
- func ByClientField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByClientID(opts ...sql.OrderTermOption) OrderOption
- func ByCodeChallenge(opts ...sql.OrderTermOption) OrderOption
- func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the oauthcode type in the database. Label = "oauth_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCodeHash holds the string denoting the code_hash field in the database. FieldCodeHash = "code_hash" // FieldRedirectURI holds the string denoting the redirect_uri field in the database. FieldRedirectURI = "redirect_uri" // FieldCodeChallenge holds the string denoting the code_challenge field in the database. FieldCodeChallenge = "code_challenge" // FieldScopes holds the string denoting the scopes field in the database. FieldScopes = "scopes" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldUsedAt holds the string denoting the used_at field in the database. FieldUsedAt = "used_at" // FieldClientID holds the string denoting the client_id field in the database. FieldClientID = "client_id" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // EdgeClient holds the string denoting the client edge name in mutations. EdgeClient = "client" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // Table holds the table name of the oauthcode in the database. Table = "oauth_codes" // ClientTable is the table that holds the client relation/edge. ClientTable = "oauth_codes" // ClientInverseTable is the table name for the OAuthClient entity. // It exists in this package in order to avoid circular dependency with the "oauthclient" package. ClientInverseTable = "oauth_clients" // ClientColumn is the table column denoting the client relation/edge. ClientColumn = "client_id" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "oauth_codes" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" )
Variables ¶
var ( // 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 // CodeHashValidator is a validator for the "code_hash" field. It is called by the builders before save. CodeHashValidator func(string) error // RedirectURIValidator is a validator for the "redirect_uri" field. It is called by the builders before save. RedirectURIValidator func(string) error // CodeChallengeValidator is a validator for the "code_challenge" field. It is called by the builders before save. CodeChallengeValidator func(string) error // DefaultScopes holds the default value on creation for the "scopes" field. DefaultScopes []string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCodeHash, FieldRedirectURI, FieldCodeChallenge, FieldScopes, FieldExpiresAt, FieldUsedAt, FieldClientID, FieldWorkspaceID, }
Columns holds all SQL columns for oauthcode fields.
Functions ¶
func ClientID ¶
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDEQ ¶
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDIn ¶
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDNEQ ¶
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func CodeChallenge ¶
CodeChallenge applies equality check predicate on the "code_challenge" field. It's identical to CodeChallengeEQ.
func CodeChallengeContains ¶
CodeChallengeContains applies the Contains predicate on the "code_challenge" field.
func CodeChallengeContainsFold ¶
CodeChallengeContainsFold applies the ContainsFold predicate on the "code_challenge" field.
func CodeChallengeEQ ¶
CodeChallengeEQ applies the EQ predicate on the "code_challenge" field.
func CodeChallengeEqualFold ¶
CodeChallengeEqualFold applies the EqualFold predicate on the "code_challenge" field.
func CodeChallengeGT ¶
CodeChallengeGT applies the GT predicate on the "code_challenge" field.
func CodeChallengeGTE ¶
CodeChallengeGTE applies the GTE predicate on the "code_challenge" field.
func CodeChallengeHasPrefix ¶
CodeChallengeHasPrefix applies the HasPrefix predicate on the "code_challenge" field.
func CodeChallengeHasSuffix ¶
CodeChallengeHasSuffix applies the HasSuffix predicate on the "code_challenge" field.
func CodeChallengeIn ¶
CodeChallengeIn applies the In predicate on the "code_challenge" field.
func CodeChallengeLT ¶
CodeChallengeLT applies the LT predicate on the "code_challenge" field.
func CodeChallengeLTE ¶
CodeChallengeLTE applies the LTE predicate on the "code_challenge" field.
func CodeChallengeNEQ ¶
CodeChallengeNEQ applies the NEQ predicate on the "code_challenge" field.
func CodeChallengeNotIn ¶
CodeChallengeNotIn applies the NotIn predicate on the "code_challenge" field.
func CodeHash ¶
CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.
func CodeHashContains ¶
CodeHashContains applies the Contains predicate on the "code_hash" field.
func CodeHashContainsFold ¶
CodeHashContainsFold applies the ContainsFold predicate on the "code_hash" field.
func CodeHashEQ ¶
CodeHashEQ applies the EQ predicate on the "code_hash" field.
func CodeHashEqualFold ¶
CodeHashEqualFold applies the EqualFold predicate on the "code_hash" field.
func CodeHashGT ¶
CodeHashGT applies the GT predicate on the "code_hash" field.
func CodeHashGTE ¶
CodeHashGTE applies the GTE predicate on the "code_hash" field.
func CodeHashHasPrefix ¶
CodeHashHasPrefix applies the HasPrefix predicate on the "code_hash" field.
func CodeHashHasSuffix ¶
CodeHashHasSuffix applies the HasSuffix predicate on the "code_hash" field.
func CodeHashIn ¶
CodeHashIn applies the In predicate on the "code_hash" field.
func CodeHashLT ¶
CodeHashLT applies the LT predicate on the "code_hash" field.
func CodeHashLTE ¶
CodeHashLTE applies the LTE predicate on the "code_hash" field.
func CodeHashNEQ ¶
CodeHashNEQ applies the NEQ predicate on the "code_hash" field.
func CodeHashNotIn ¶
CodeHashNotIn applies the NotIn predicate on the "code_hash" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func HasClientWith ¶
func HasClientWith(preds ...predicate.OAuthClient) predicate.OAuthCode
HasClientWith applies the HasEdge predicate on the "client" edge with a given conditions (other predicates).
func HasWorkspace ¶
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func RedirectURI ¶
RedirectURI applies equality check predicate on the "redirect_uri" field. It's identical to RedirectURIEQ.
func RedirectURIContains ¶
RedirectURIContains applies the Contains predicate on the "redirect_uri" field.
func RedirectURIContainsFold ¶
RedirectURIContainsFold applies the ContainsFold predicate on the "redirect_uri" field.
func RedirectURIEQ ¶
RedirectURIEQ applies the EQ predicate on the "redirect_uri" field.
func RedirectURIEqualFold ¶
RedirectURIEqualFold applies the EqualFold predicate on the "redirect_uri" field.
func RedirectURIGT ¶
RedirectURIGT applies the GT predicate on the "redirect_uri" field.
func RedirectURIGTE ¶
RedirectURIGTE applies the GTE predicate on the "redirect_uri" field.
func RedirectURIHasPrefix ¶
RedirectURIHasPrefix applies the HasPrefix predicate on the "redirect_uri" field.
func RedirectURIHasSuffix ¶
RedirectURIHasSuffix applies the HasSuffix predicate on the "redirect_uri" field.
func RedirectURIIn ¶
RedirectURIIn applies the In predicate on the "redirect_uri" field.
func RedirectURILT ¶
RedirectURILT applies the LT predicate on the "redirect_uri" field.
func RedirectURILTE ¶
RedirectURILTE applies the LTE predicate on the "redirect_uri" field.
func RedirectURINEQ ¶
RedirectURINEQ applies the NEQ predicate on the "redirect_uri" field.
func RedirectURINotIn ¶
RedirectURINotIn applies the NotIn predicate on the "redirect_uri" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UsedAt ¶
UsedAt applies equality check predicate on the "used_at" field. It's identical to UsedAtEQ.
func UsedAtIsNil ¶
UsedAtIsNil applies the IsNil predicate on the "used_at" field.
func UsedAtNotIn ¶
UsedAtNotIn applies the NotIn predicate on the "used_at" field.
func UsedAtNotNil ¶
UsedAtNotNil applies the NotNil predicate on the "used_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkspaceID ¶
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the OAuthCode queries.
func ByClientField ¶
func ByClientField(field string, opts ...sql.OrderTermOption) OrderOption
ByClientField orders the results by client field.
func ByClientID ¶
func ByClientID(opts ...sql.OrderTermOption) OrderOption
ByClientID orders the results by the client_id field.
func ByCodeChallenge ¶
func ByCodeChallenge(opts ...sql.OrderTermOption) OrderOption
ByCodeChallenge orders the results by the code_challenge field.
func ByCodeHash ¶
func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
ByCodeHash orders the results by the code_hash 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 ByRedirectURI ¶
func ByRedirectURI(opts ...sql.OrderTermOption) OrderOption
ByRedirectURI orders the results by the redirect_uri field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsedAt ¶
func ByUsedAt(opts ...sql.OrderTermOption) OrderOption
ByUsedAt orders the results by the used_at field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.