Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Credential) predicate.Credential
- func Fails(v int) predicate.Credential
- func FailsEQ(v int) predicate.Credential
- func FailsGT(v int) predicate.Credential
- func FailsGTE(v int) predicate.Credential
- func FailsIn(vs ...int) predicate.Credential
- func FailsLT(v int) predicate.Credential
- func FailsLTE(v int) predicate.Credential
- func FailsNEQ(v int) predicate.Credential
- func FailsNotIn(vs ...int) predicate.Credential
- func HasTarget() predicate.Credential
- func HasTargetWith(preds ...predicate.Target) predicate.Credential
- func ID(id int) predicate.Credential
- func IDEQ(id int) predicate.Credential
- func IDGT(id int) predicate.Credential
- func IDGTE(id int) predicate.Credential
- func IDIn(ids ...int) predicate.Credential
- func IDLT(id int) predicate.Credential
- func IDLTE(id int) predicate.Credential
- func IDNEQ(id int) predicate.Credential
- func IDNotIn(ids ...int) predicate.Credential
- func KindEQ(v Kind) predicate.Credential
- func KindIn(vs ...Kind) predicate.Credential
- func KindNEQ(v Kind) predicate.Credential
- func KindNotIn(vs ...Kind) predicate.Credential
- func KindValidator(k Kind) error
- func Not(p predicate.Credential) predicate.Credential
- func Or(predicates ...predicate.Credential) predicate.Credential
- func Principal(v string) predicate.Credential
- func PrincipalContains(v string) predicate.Credential
- func PrincipalContainsFold(v string) predicate.Credential
- func PrincipalEQ(v string) predicate.Credential
- func PrincipalEqualFold(v string) predicate.Credential
- func PrincipalGT(v string) predicate.Credential
- func PrincipalGTE(v string) predicate.Credential
- func PrincipalHasPrefix(v string) predicate.Credential
- func PrincipalHasSuffix(v string) predicate.Credential
- func PrincipalIn(vs ...string) predicate.Credential
- func PrincipalLT(v string) predicate.Credential
- func PrincipalLTE(v string) predicate.Credential
- func PrincipalNEQ(v string) predicate.Credential
- func PrincipalNotIn(vs ...string) predicate.Credential
- func Secret(v string) predicate.Credential
- func SecretContains(v string) predicate.Credential
- func SecretContainsFold(v string) predicate.Credential
- func SecretEQ(v string) predicate.Credential
- func SecretEqualFold(v string) predicate.Credential
- func SecretGT(v string) predicate.Credential
- func SecretGTE(v string) predicate.Credential
- func SecretHasPrefix(v string) predicate.Credential
- func SecretHasSuffix(v string) predicate.Credential
- func SecretIn(vs ...string) predicate.Credential
- func SecretLT(v string) predicate.Credential
- func SecretLTE(v string) predicate.Credential
- func SecretNEQ(v string) predicate.Credential
- func SecretNotIn(vs ...string) predicate.Credential
- func ValidColumn(column string) bool
- type Kind
Constants ¶
const ( // Label holds the string label denoting the credential type in the database. Label = "credential" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPrincipal holds the string denoting the principal field in the database. FieldPrincipal = "principal" // FieldSecret holds the string denoting the secret field in the database. FieldSecret = "secret" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldFails holds the string denoting the fails field in the database. FieldFails = "fails" // EdgeTarget holds the string denoting the target edge name in mutations. EdgeTarget = "target" // Table holds the table name of the credential in the database. Table = "credentials" // TargetTable is the table that holds the target relation/edge. TargetTable = "credentials" // TargetInverseTable is the table name for the Target entity. // It exists in this package in order to avoid circular dependency with the "target" package. TargetInverseTable = "targets" // TargetColumn is the table column denoting the target relation/edge. TargetColumn = "target_credentials" )
Variables ¶
var ( // SecretValidator is a validator for the "secret" field. It is called by the builders before save. SecretValidator func(string) error // DefaultFails holds the default value on creation for the "fails" field. DefaultFails int // FailsValidator is a validator for the "fails" field. It is called by the builders before save. FailsValidator func(int) error )
var Columns = []string{ FieldID, FieldPrincipal, FieldSecret, FieldKind, FieldFails, }
Columns holds all SQL columns for credential fields.
var ForeignKeys = []string{
"target_credentials",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "credentials" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Credential) predicate.Credential
And groups predicates with the AND operator between them.
func Fails ¶
func Fails(v int) predicate.Credential
Fails applies equality check predicate on the "fails" field. It's identical to FailsEQ.
func FailsEQ ¶
func FailsEQ(v int) predicate.Credential
FailsEQ applies the EQ predicate on the "fails" field.
func FailsGT ¶
func FailsGT(v int) predicate.Credential
FailsGT applies the GT predicate on the "fails" field.
func FailsGTE ¶
func FailsGTE(v int) predicate.Credential
FailsGTE applies the GTE predicate on the "fails" field.
func FailsIn ¶
func FailsIn(vs ...int) predicate.Credential
FailsIn applies the In predicate on the "fails" field.
func FailsLT ¶
func FailsLT(v int) predicate.Credential
FailsLT applies the LT predicate on the "fails" field.
func FailsLTE ¶
func FailsLTE(v int) predicate.Credential
FailsLTE applies the LTE predicate on the "fails" field.
func FailsNEQ ¶
func FailsNEQ(v int) predicate.Credential
FailsNEQ applies the NEQ predicate on the "fails" field.
func FailsNotIn ¶
func FailsNotIn(vs ...int) predicate.Credential
FailsNotIn applies the NotIn predicate on the "fails" field.
func HasTarget ¶ added in v0.3.0
func HasTarget() predicate.Credential
HasTarget applies the HasEdge predicate on the "target" edge.
func HasTargetWith ¶ added in v0.3.0
func HasTargetWith(preds ...predicate.Target) predicate.Credential
HasTargetWith applies the HasEdge predicate on the "target" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Credential
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Credential
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Credential
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Credential
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Credential
IDNotIn applies the NotIn predicate on the ID field.
func KindEQ ¶ added in v0.2.3
func KindEQ(v Kind) predicate.Credential
KindEQ applies the EQ predicate on the "kind" field.
func KindIn ¶ added in v0.2.3
func KindIn(vs ...Kind) predicate.Credential
KindIn applies the In predicate on the "kind" field.
func KindNEQ ¶ added in v0.2.3
func KindNEQ(v Kind) predicate.Credential
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶ added in v0.2.3
func KindNotIn(vs ...Kind) predicate.Credential
KindNotIn applies the NotIn predicate on the "kind" field.
func KindValidator ¶ added in v0.2.3
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func Not ¶
func Not(p predicate.Credential) predicate.Credential
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Credential) predicate.Credential
Or groups predicates with the OR operator between them.
func Principal ¶
func Principal(v string) predicate.Credential
Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.
func PrincipalContains ¶
func PrincipalContains(v string) predicate.Credential
PrincipalContains applies the Contains predicate on the "principal" field.
func PrincipalContainsFold ¶
func PrincipalContainsFold(v string) predicate.Credential
PrincipalContainsFold applies the ContainsFold predicate on the "principal" field.
func PrincipalEQ ¶
func PrincipalEQ(v string) predicate.Credential
PrincipalEQ applies the EQ predicate on the "principal" field.
func PrincipalEqualFold ¶
func PrincipalEqualFold(v string) predicate.Credential
PrincipalEqualFold applies the EqualFold predicate on the "principal" field.
func PrincipalGT ¶
func PrincipalGT(v string) predicate.Credential
PrincipalGT applies the GT predicate on the "principal" field.
func PrincipalGTE ¶
func PrincipalGTE(v string) predicate.Credential
PrincipalGTE applies the GTE predicate on the "principal" field.
func PrincipalHasPrefix ¶
func PrincipalHasPrefix(v string) predicate.Credential
PrincipalHasPrefix applies the HasPrefix predicate on the "principal" field.
func PrincipalHasSuffix ¶
func PrincipalHasSuffix(v string) predicate.Credential
PrincipalHasSuffix applies the HasSuffix predicate on the "principal" field.
func PrincipalIn ¶
func PrincipalIn(vs ...string) predicate.Credential
PrincipalIn applies the In predicate on the "principal" field.
func PrincipalLT ¶
func PrincipalLT(v string) predicate.Credential
PrincipalLT applies the LT predicate on the "principal" field.
func PrincipalLTE ¶
func PrincipalLTE(v string) predicate.Credential
PrincipalLTE applies the LTE predicate on the "principal" field.
func PrincipalNEQ ¶
func PrincipalNEQ(v string) predicate.Credential
PrincipalNEQ applies the NEQ predicate on the "principal" field.
func PrincipalNotIn ¶
func PrincipalNotIn(vs ...string) predicate.Credential
PrincipalNotIn applies the NotIn predicate on the "principal" field.
func Secret ¶
func Secret(v string) predicate.Credential
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretContains ¶
func SecretContains(v string) predicate.Credential
SecretContains applies the Contains predicate on the "secret" field.
func SecretContainsFold ¶
func SecretContainsFold(v string) predicate.Credential
SecretContainsFold applies the ContainsFold predicate on the "secret" field.
func SecretEQ ¶
func SecretEQ(v string) predicate.Credential
SecretEQ applies the EQ predicate on the "secret" field.
func SecretEqualFold ¶
func SecretEqualFold(v string) predicate.Credential
SecretEqualFold applies the EqualFold predicate on the "secret" field.
func SecretGT ¶
func SecretGT(v string) predicate.Credential
SecretGT applies the GT predicate on the "secret" field.
func SecretGTE ¶
func SecretGTE(v string) predicate.Credential
SecretGTE applies the GTE predicate on the "secret" field.
func SecretHasPrefix ¶
func SecretHasPrefix(v string) predicate.Credential
SecretHasPrefix applies the HasPrefix predicate on the "secret" field.
func SecretHasSuffix ¶
func SecretHasSuffix(v string) predicate.Credential
SecretHasSuffix applies the HasSuffix predicate on the "secret" field.
func SecretIn ¶
func SecretIn(vs ...string) predicate.Credential
SecretIn applies the In predicate on the "secret" field.
func SecretLT ¶
func SecretLT(v string) predicate.Credential
SecretLT applies the LT predicate on the "secret" field.
func SecretLTE ¶
func SecretLTE(v string) predicate.Credential
SecretLTE applies the LTE predicate on the "secret" field.
func SecretNEQ ¶
func SecretNEQ(v string) predicate.Credential
SecretNEQ applies the NEQ predicate on the "secret" field.
func SecretNotIn ¶
func SecretNotIn(vs ...string) predicate.Credential
SecretNotIn applies the NotIn predicate on the "secret" field.
func ValidColumn ¶ added in v0.4.3
ValidColumn reports if the column name is valid (part of the table columns).