Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Authorization) predicate.Authorization
- func ClientID(v string) predicate.Authorization
- func ClientIDContains(v string) predicate.Authorization
- func ClientIDContainsFold(v string) predicate.Authorization
- func ClientIDEQ(v string) predicate.Authorization
- func ClientIDEqualFold(v string) predicate.Authorization
- func ClientIDGT(v string) predicate.Authorization
- func ClientIDGTE(v string) predicate.Authorization
- func ClientIDHasPrefix(v string) predicate.Authorization
- func ClientIDHasSuffix(v string) predicate.Authorization
- func ClientIDIn(vs ...string) predicate.Authorization
- func ClientIDLT(v string) predicate.Authorization
- func ClientIDLTE(v string) predicate.Authorization
- func ClientIDNEQ(v string) predicate.Authorization
- func ClientIDNotIn(vs ...string) predicate.Authorization
- func ClientName(v string) predicate.Authorization
- func ClientNameContains(v string) predicate.Authorization
- func ClientNameContainsFold(v string) predicate.Authorization
- func ClientNameEQ(v string) predicate.Authorization
- func ClientNameEqualFold(v string) predicate.Authorization
- func ClientNameGT(v string) predicate.Authorization
- func ClientNameGTE(v string) predicate.Authorization
- func ClientNameHasPrefix(v string) predicate.Authorization
- func ClientNameHasSuffix(v string) predicate.Authorization
- func ClientNameIn(vs ...string) predicate.Authorization
- func ClientNameLT(v string) predicate.Authorization
- func ClientNameLTE(v string) predicate.Authorization
- func ClientNameNEQ(v string) predicate.Authorization
- func ClientNameNotIn(vs ...string) predicate.Authorization
- func ClientSecret(v string) predicate.Authorization
- func ClientSecretContains(v string) predicate.Authorization
- func ClientSecretContainsFold(v string) predicate.Authorization
- func ClientSecretEQ(v string) predicate.Authorization
- func ClientSecretEqualFold(v string) predicate.Authorization
- func ClientSecretGT(v string) predicate.Authorization
- func ClientSecretGTE(v string) predicate.Authorization
- func ClientSecretHasPrefix(v string) predicate.Authorization
- func ClientSecretHasSuffix(v string) predicate.Authorization
- func ClientSecretIn(vs ...string) predicate.Authorization
- func ClientSecretLT(v string) predicate.Authorization
- func ClientSecretLTE(v string) predicate.Authorization
- func ClientSecretNEQ(v string) predicate.Authorization
- func ClientSecretNotIn(vs ...string) predicate.Authorization
- func Domain(v string) predicate.Authorization
- func DomainContains(v string) predicate.Authorization
- func DomainContainsFold(v string) predicate.Authorization
- func DomainEQ(v string) predicate.Authorization
- func DomainEqualFold(v string) predicate.Authorization
- func DomainGT(v string) predicate.Authorization
- func DomainGTE(v string) predicate.Authorization
- func DomainHasPrefix(v string) predicate.Authorization
- func DomainHasSuffix(v string) predicate.Authorization
- func DomainIn(vs ...string) predicate.Authorization
- func DomainLT(v string) predicate.Authorization
- func DomainLTE(v string) predicate.Authorization
- func DomainNEQ(v string) predicate.Authorization
- func DomainNotIn(vs ...string) predicate.Authorization
- func HasResource() predicate.Authorization
- func HasResourceWith(preds ...predicate.Resource) predicate.Authorization
- func ID(id int) predicate.Authorization
- func IDEQ(id int) predicate.Authorization
- func IDGT(id int) predicate.Authorization
- func IDGTE(id int) predicate.Authorization
- func IDIn(ids ...int) predicate.Authorization
- func IDLT(id int) predicate.Authorization
- func IDLTE(id int) predicate.Authorization
- func IDNEQ(id int) predicate.Authorization
- func IDNotIn(ids ...int) predicate.Authorization
- func Not(p predicate.Authorization) predicate.Authorization
- func Or(predicates ...predicate.Authorization) predicate.Authorization
- func RedirectURL(v string) predicate.Authorization
- func RedirectURLContains(v string) predicate.Authorization
- func RedirectURLContainsFold(v string) predicate.Authorization
- func RedirectURLEQ(v string) predicate.Authorization
- func RedirectURLEqualFold(v string) predicate.Authorization
- func RedirectURLGT(v string) predicate.Authorization
- func RedirectURLGTE(v string) predicate.Authorization
- func RedirectURLHasPrefix(v string) predicate.Authorization
- func RedirectURLHasSuffix(v string) predicate.Authorization
- func RedirectURLIn(vs ...string) predicate.Authorization
- func RedirectURLLT(v string) predicate.Authorization
- func RedirectURLLTE(v string) predicate.Authorization
- func RedirectURLNEQ(v string) predicate.Authorization
- func RedirectURLNotIn(vs ...string) predicate.Authorization
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the authorization type in the database. Label = "authorization" // 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" // FieldClientSecret holds the string denoting the client_secret field in the database. FieldClientSecret = "client_secret" // FieldClientName holds the string denoting the client_name field in the database. FieldClientName = "client_name" // FieldGrantType holds the string denoting the grant_type field in the database. FieldGrantType = "grant_type" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // FieldRedirectURL holds the string denoting the redirect_url field in the database. FieldRedirectURL = "redirect_url" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // EdgeResource holds the string denoting the resource edge name in mutations. EdgeResource = "resource" // Table holds the table name of the authorization in the database. Table = "authorizations" // ResourceTable is the table that holds the resource relation/edge. The primary key declared below. ResourceTable = "authorization_resource" // ResourceInverseTable is the table name for the Resource entity. // It exists in this package in order to avoid circular dependency with the "resource" package. ResourceInverseTable = "resources" )
Variables ¶
var ( // ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save. ClientIDValidator func(string) error // ClientSecretValidator is a validator for the "client_secret" field. It is called by the builders before save. ClientSecretValidator func(string) error // ClientNameValidator is a validator for the "client_name" field. It is called by the builders before save. ClientNameValidator func(string) error )
var Columns = []string{ FieldID, FieldClientID, FieldClientSecret, FieldClientName, FieldGrantType, FieldScope, FieldRedirectURL, FieldDomain, }
Columns holds all SQL columns for authorization fields.
var ( // ResourcePrimaryKey and ResourceColumn2 are the table columns denoting the // primary key for the resource relation (M2M). ResourcePrimaryKey = []string{"authorization_id", "resource_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.Authorization) predicate.Authorization
And groups predicates with the AND operator between them.
func ClientID ¶
func ClientID(v string) predicate.Authorization
ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientIDContains ¶
func ClientIDContains(v string) predicate.Authorization
ClientIDContains applies the Contains predicate on the "client_id" field.
func ClientIDContainsFold ¶
func ClientIDContainsFold(v string) predicate.Authorization
ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.
func ClientIDEQ ¶
func ClientIDEQ(v string) predicate.Authorization
ClientIDEQ applies the EQ predicate on the "client_id" field.
func ClientIDEqualFold ¶
func ClientIDEqualFold(v string) predicate.Authorization
ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.
func ClientIDGT ¶
func ClientIDGT(v string) predicate.Authorization
ClientIDGT applies the GT predicate on the "client_id" field.
func ClientIDGTE ¶
func ClientIDGTE(v string) predicate.Authorization
ClientIDGTE applies the GTE predicate on the "client_id" field.
func ClientIDHasPrefix ¶
func ClientIDHasPrefix(v string) predicate.Authorization
ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.
func ClientIDHasSuffix ¶
func ClientIDHasSuffix(v string) predicate.Authorization
ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.
func ClientIDIn ¶
func ClientIDIn(vs ...string) predicate.Authorization
ClientIDIn applies the In predicate on the "client_id" field.
func ClientIDLT ¶
func ClientIDLT(v string) predicate.Authorization
ClientIDLT applies the LT predicate on the "client_id" field.
func ClientIDLTE ¶
func ClientIDLTE(v string) predicate.Authorization
ClientIDLTE applies the LTE predicate on the "client_id" field.
func ClientIDNEQ ¶
func ClientIDNEQ(v string) predicate.Authorization
ClientIDNEQ applies the NEQ predicate on the "client_id" field.
func ClientIDNotIn ¶
func ClientIDNotIn(vs ...string) predicate.Authorization
ClientIDNotIn applies the NotIn predicate on the "client_id" field.
func ClientName ¶
func ClientName(v string) predicate.Authorization
ClientName applies equality check predicate on the "client_name" field. It's identical to ClientNameEQ.
func ClientNameContains ¶
func ClientNameContains(v string) predicate.Authorization
ClientNameContains applies the Contains predicate on the "client_name" field.
func ClientNameContainsFold ¶
func ClientNameContainsFold(v string) predicate.Authorization
ClientNameContainsFold applies the ContainsFold predicate on the "client_name" field.
func ClientNameEQ ¶
func ClientNameEQ(v string) predicate.Authorization
ClientNameEQ applies the EQ predicate on the "client_name" field.
func ClientNameEqualFold ¶
func ClientNameEqualFold(v string) predicate.Authorization
ClientNameEqualFold applies the EqualFold predicate on the "client_name" field.
func ClientNameGT ¶
func ClientNameGT(v string) predicate.Authorization
ClientNameGT applies the GT predicate on the "client_name" field.
func ClientNameGTE ¶
func ClientNameGTE(v string) predicate.Authorization
ClientNameGTE applies the GTE predicate on the "client_name" field.
func ClientNameHasPrefix ¶
func ClientNameHasPrefix(v string) predicate.Authorization
ClientNameHasPrefix applies the HasPrefix predicate on the "client_name" field.
func ClientNameHasSuffix ¶
func ClientNameHasSuffix(v string) predicate.Authorization
ClientNameHasSuffix applies the HasSuffix predicate on the "client_name" field.
func ClientNameIn ¶
func ClientNameIn(vs ...string) predicate.Authorization
ClientNameIn applies the In predicate on the "client_name" field.
func ClientNameLT ¶
func ClientNameLT(v string) predicate.Authorization
ClientNameLT applies the LT predicate on the "client_name" field.
func ClientNameLTE ¶
func ClientNameLTE(v string) predicate.Authorization
ClientNameLTE applies the LTE predicate on the "client_name" field.
func ClientNameNEQ ¶
func ClientNameNEQ(v string) predicate.Authorization
ClientNameNEQ applies the NEQ predicate on the "client_name" field.
func ClientNameNotIn ¶
func ClientNameNotIn(vs ...string) predicate.Authorization
ClientNameNotIn applies the NotIn predicate on the "client_name" field.
func ClientSecret ¶
func ClientSecret(v string) predicate.Authorization
ClientSecret applies equality check predicate on the "client_secret" field. It's identical to ClientSecretEQ.
func ClientSecretContains ¶
func ClientSecretContains(v string) predicate.Authorization
ClientSecretContains applies the Contains predicate on the "client_secret" field.
func ClientSecretContainsFold ¶
func ClientSecretContainsFold(v string) predicate.Authorization
ClientSecretContainsFold applies the ContainsFold predicate on the "client_secret" field.
func ClientSecretEQ ¶
func ClientSecretEQ(v string) predicate.Authorization
ClientSecretEQ applies the EQ predicate on the "client_secret" field.
func ClientSecretEqualFold ¶
func ClientSecretEqualFold(v string) predicate.Authorization
ClientSecretEqualFold applies the EqualFold predicate on the "client_secret" field.
func ClientSecretGT ¶
func ClientSecretGT(v string) predicate.Authorization
ClientSecretGT applies the GT predicate on the "client_secret" field.
func ClientSecretGTE ¶
func ClientSecretGTE(v string) predicate.Authorization
ClientSecretGTE applies the GTE predicate on the "client_secret" field.
func ClientSecretHasPrefix ¶
func ClientSecretHasPrefix(v string) predicate.Authorization
ClientSecretHasPrefix applies the HasPrefix predicate on the "client_secret" field.
func ClientSecretHasSuffix ¶
func ClientSecretHasSuffix(v string) predicate.Authorization
ClientSecretHasSuffix applies the HasSuffix predicate on the "client_secret" field.
func ClientSecretIn ¶
func ClientSecretIn(vs ...string) predicate.Authorization
ClientSecretIn applies the In predicate on the "client_secret" field.
func ClientSecretLT ¶
func ClientSecretLT(v string) predicate.Authorization
ClientSecretLT applies the LT predicate on the "client_secret" field.
func ClientSecretLTE ¶
func ClientSecretLTE(v string) predicate.Authorization
ClientSecretLTE applies the LTE predicate on the "client_secret" field.
func ClientSecretNEQ ¶
func ClientSecretNEQ(v string) predicate.Authorization
ClientSecretNEQ applies the NEQ predicate on the "client_secret" field.
func ClientSecretNotIn ¶
func ClientSecretNotIn(vs ...string) predicate.Authorization
ClientSecretNotIn applies the NotIn predicate on the "client_secret" field.
func Domain ¶
func Domain(v string) predicate.Authorization
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
func DomainContains(v string) predicate.Authorization
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
func DomainContainsFold(v string) predicate.Authorization
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEQ ¶
func DomainEQ(v string) predicate.Authorization
DomainEQ applies the EQ predicate on the "domain" field.
func DomainEqualFold ¶
func DomainEqualFold(v string) predicate.Authorization
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainGT ¶
func DomainGT(v string) predicate.Authorization
DomainGT applies the GT predicate on the "domain" field.
func DomainGTE ¶
func DomainGTE(v string) predicate.Authorization
DomainGTE applies the GTE predicate on the "domain" field.
func DomainHasPrefix ¶
func DomainHasPrefix(v string) predicate.Authorization
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
func DomainHasSuffix(v string) predicate.Authorization
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainIn ¶
func DomainIn(vs ...string) predicate.Authorization
DomainIn applies the In predicate on the "domain" field.
func DomainLT ¶
func DomainLT(v string) predicate.Authorization
DomainLT applies the LT predicate on the "domain" field.
func DomainLTE ¶
func DomainLTE(v string) predicate.Authorization
DomainLTE applies the LTE predicate on the "domain" field.
func DomainNEQ ¶
func DomainNEQ(v string) predicate.Authorization
DomainNEQ applies the NEQ predicate on the "domain" field.
func DomainNotIn ¶
func DomainNotIn(vs ...string) predicate.Authorization
DomainNotIn applies the NotIn predicate on the "domain" field.
func HasResource ¶
func HasResource() predicate.Authorization
HasResource applies the HasEdge predicate on the "resource" edge.
func HasResourceWith ¶
func HasResourceWith(preds ...predicate.Resource) predicate.Authorization
HasResourceWith applies the HasEdge predicate on the "resource" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.Authorization
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.Authorization
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.Authorization
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Authorization
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.Authorization
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Authorization
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Authorization
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Authorization
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Authorization) predicate.Authorization
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Authorization) predicate.Authorization
Or groups predicates with the OR operator between them.
func RedirectURL ¶
func RedirectURL(v string) predicate.Authorization
RedirectURL applies equality check predicate on the "redirect_url" field. It's identical to RedirectURLEQ.
func RedirectURLContains ¶
func RedirectURLContains(v string) predicate.Authorization
RedirectURLContains applies the Contains predicate on the "redirect_url" field.
func RedirectURLContainsFold ¶
func RedirectURLContainsFold(v string) predicate.Authorization
RedirectURLContainsFold applies the ContainsFold predicate on the "redirect_url" field.
func RedirectURLEQ ¶
func RedirectURLEQ(v string) predicate.Authorization
RedirectURLEQ applies the EQ predicate on the "redirect_url" field.
func RedirectURLEqualFold ¶
func RedirectURLEqualFold(v string) predicate.Authorization
RedirectURLEqualFold applies the EqualFold predicate on the "redirect_url" field.
func RedirectURLGT ¶
func RedirectURLGT(v string) predicate.Authorization
RedirectURLGT applies the GT predicate on the "redirect_url" field.
func RedirectURLGTE ¶
func RedirectURLGTE(v string) predicate.Authorization
RedirectURLGTE applies the GTE predicate on the "redirect_url" field.
func RedirectURLHasPrefix ¶
func RedirectURLHasPrefix(v string) predicate.Authorization
RedirectURLHasPrefix applies the HasPrefix predicate on the "redirect_url" field.
func RedirectURLHasSuffix ¶
func RedirectURLHasSuffix(v string) predicate.Authorization
RedirectURLHasSuffix applies the HasSuffix predicate on the "redirect_url" field.
func RedirectURLIn ¶
func RedirectURLIn(vs ...string) predicate.Authorization
RedirectURLIn applies the In predicate on the "redirect_url" field.
func RedirectURLLT ¶
func RedirectURLLT(v string) predicate.Authorization
RedirectURLLT applies the LT predicate on the "redirect_url" field.
func RedirectURLLTE ¶
func RedirectURLLTE(v string) predicate.Authorization
RedirectURLLTE applies the LTE predicate on the "redirect_url" field.
func RedirectURLNEQ ¶
func RedirectURLNEQ(v string) predicate.Authorization
RedirectURLNEQ applies the NEQ predicate on the "redirect_url" field.
func RedirectURLNotIn ¶
func RedirectURLNotIn(vs ...string) predicate.Authorization
RedirectURLNotIn applies the NotIn predicate on the "redirect_url" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.