credential

package
v0.0.0-...-7d6f566 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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"   // FieldSalt holds the string denoting the salt vertex property in the database.
	FieldSalt         = "salt" // FieldPasswordHash holds the string denoting the password_hash vertex property in the database.
	FieldPasswordHash = "password_hash"

	// EdgeHolder holds the string denoting the holder edge name in mutations.
	EdgeHolder = "holder"

	// Table holds the table name of the credential in the database.
	Table = "credentials"
	// HolderTable is the table the holds the holder relation/edge.
	HolderTable = "credentials"
	// HolderInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	HolderInverseTable = "users"
	// HolderColumn is the table column denoting the holder relation/edge.
	HolderColumn = "user_credentials"
)

Variables

Columns holds all SQL columns for credential fields.

View Source
var ForeignKeys = []string{
	"user_credentials",
}

ForeignKeys holds the SQL foreign-keys that are owned by the Credential type.

Functions

func And

func And(predicates ...predicate.Credential) predicate.Credential

And groups list of predicates with the AND operator between them.

func HasHolder

func HasHolder() predicate.Credential

HasHolder applies the HasEdge predicate on the "holder" edge.

func HasHolderWith

func HasHolderWith(preds ...predicate.User) predicate.Credential

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

func ID

func ID(id int) predicate.Credential

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.Credential

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Credential

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.Credential

IDLT applies the LT 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 Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Credential) predicate.Credential

Or groups list of predicates with the OR operator between them.

func PasswordHash

func PasswordHash(v []byte) predicate.Credential

PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.

func PasswordHashEQ

func PasswordHashEQ(v []byte) predicate.Credential

PasswordHashEQ applies the EQ predicate on the "password_hash" field.

func PasswordHashGT

func PasswordHashGT(v []byte) predicate.Credential

PasswordHashGT applies the GT predicate on the "password_hash" field.

func PasswordHashGTE

func PasswordHashGTE(v []byte) predicate.Credential

PasswordHashGTE applies the GTE predicate on the "password_hash" field.

func PasswordHashIn

func PasswordHashIn(vs ...[]byte) predicate.Credential

PasswordHashIn applies the In predicate on the "password_hash" field.

func PasswordHashLT

func PasswordHashLT(v []byte) predicate.Credential

PasswordHashLT applies the LT predicate on the "password_hash" field.

func PasswordHashLTE

func PasswordHashLTE(v []byte) predicate.Credential

PasswordHashLTE applies the LTE predicate on the "password_hash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v []byte) predicate.Credential

PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.

func PasswordHashNotIn

func PasswordHashNotIn(vs ...[]byte) predicate.Credential

PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.

func Salt

func Salt(v []byte) predicate.Credential

Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.

func SaltEQ

func SaltEQ(v []byte) predicate.Credential

SaltEQ applies the EQ predicate on the "salt" field.

func SaltGT

func SaltGT(v []byte) predicate.Credential

SaltGT applies the GT predicate on the "salt" field.

func SaltGTE

func SaltGTE(v []byte) predicate.Credential

SaltGTE applies the GTE predicate on the "salt" field.

func SaltIn

func SaltIn(vs ...[]byte) predicate.Credential

SaltIn applies the In predicate on the "salt" field.

func SaltLT

func SaltLT(v []byte) predicate.Credential

SaltLT applies the LT predicate on the "salt" field.

func SaltLTE

func SaltLTE(v []byte) predicate.Credential

SaltLTE applies the LTE predicate on the "salt" field.

func SaltNEQ

func SaltNEQ(v []byte) predicate.Credential

SaltNEQ applies the NEQ predicate on the "salt" field.

func SaltNotIn

func SaltNotIn(vs ...[]byte) predicate.Credential

SaltNotIn applies the NotIn predicate on the "salt" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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