Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Keys) predicate.Keys
- func ID(id string) predicate.Keys
- func IDContainsFold(id string) predicate.Keys
- func IDEQ(id string) predicate.Keys
- func IDEqualFold(id string) predicate.Keys
- func IDGT(id string) predicate.Keys
- func IDGTE(id string) predicate.Keys
- func IDIn(ids ...string) predicate.Keys
- func IDLT(id string) predicate.Keys
- func IDLTE(id string) predicate.Keys
- func IDNEQ(id string) predicate.Keys
- func IDNotIn(ids ...string) predicate.Keys
- func NextRotation(v time.Time) predicate.Keys
- func NextRotationEQ(v time.Time) predicate.Keys
- func NextRotationGT(v time.Time) predicate.Keys
- func NextRotationGTE(v time.Time) predicate.Keys
- func NextRotationIn(vs ...time.Time) predicate.Keys
- func NextRotationLT(v time.Time) predicate.Keys
- func NextRotationLTE(v time.Time) predicate.Keys
- func NextRotationNEQ(v time.Time) predicate.Keys
- func NextRotationNotIn(vs ...time.Time) predicate.Keys
- func Not(p predicate.Keys) predicate.Keys
- func Or(predicates ...predicate.Keys) predicate.Keys
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the keys type in the database. Label = "keys" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVerificationKeys holds the string denoting the verification_keys field in the database. FieldVerificationKeys = "verification_keys" // FieldSigningKey holds the string denoting the signing_key field in the database. FieldSigningKey = "signing_key" // FieldSigningKeyPub holds the string denoting the signing_key_pub field in the database. FieldSigningKeyPub = "signing_key_pub" // FieldNextRotation holds the string denoting the next_rotation field in the database. FieldNextRotation = "next_rotation" // Table holds the table name of the keys in the database. Table = "keys" )
Variables ¶
var Columns = []string{ FieldID, FieldVerificationKeys, FieldSigningKey, FieldSigningKeyPub, FieldNextRotation, }
Columns holds all SQL columns for keys fields.
var ( // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
Functions ¶
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func NextRotation ¶
NextRotation applies equality check predicate on the "next_rotation" field. It's identical to NextRotationEQ.
func NextRotationEQ ¶
NextRotationEQ applies the EQ predicate on the "next_rotation" field.
func NextRotationGT ¶
NextRotationGT applies the GT predicate on the "next_rotation" field.
func NextRotationGTE ¶
NextRotationGTE applies the GTE predicate on the "next_rotation" field.
func NextRotationIn ¶
NextRotationIn applies the In predicate on the "next_rotation" field.
func NextRotationLT ¶
NextRotationLT applies the LT predicate on the "next_rotation" field.
func NextRotationLTE ¶
NextRotationLTE applies the LTE predicate on the "next_rotation" field.
func NextRotationNEQ ¶
NextRotationNEQ applies the NEQ predicate on the "next_rotation" field.
func NextRotationNotIn ¶
NextRotationNotIn applies the NotIn predicate on the "next_rotation" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Keys queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNextRotation ¶
func ByNextRotation(opts ...sql.OrderTermOption) OrderOption
ByNextRotation orders the results by the next_rotation field.