Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Revocation) predicate.Revocation
- func Expiry(v time.Time) predicate.Revocation
- func ExpiryEQ(v time.Time) predicate.Revocation
- func ExpiryGT(v time.Time) predicate.Revocation
- func ExpiryGTE(v time.Time) predicate.Revocation
- func ExpiryIn(vs ...time.Time) predicate.Revocation
- func ExpiryIsNil() predicate.Revocation
- func ExpiryLT(v time.Time) predicate.Revocation
- func ExpiryLTE(v time.Time) predicate.Revocation
- func ExpiryNEQ(v time.Time) predicate.Revocation
- func ExpiryNotIn(vs ...time.Time) predicate.Revocation
- func ExpiryNotNil() predicate.Revocation
- func ID(id int64) predicate.Revocation
- func IDEQ(id int64) predicate.Revocation
- func IDGT(id int64) predicate.Revocation
- func IDGTE(id int64) predicate.Revocation
- func IDIn(ids ...int64) predicate.Revocation
- func IDLT(id int64) predicate.Revocation
- func IDLTE(id int64) predicate.Revocation
- func IDNEQ(id int64) predicate.Revocation
- func IDNotIn(ids ...int64) predicate.Revocation
- func Info(v string) predicate.Revocation
- func InfoContains(v string) predicate.Revocation
- func InfoContainsFold(v string) predicate.Revocation
- func InfoEQ(v string) predicate.Revocation
- func InfoEqualFold(v string) predicate.Revocation
- func InfoGT(v string) predicate.Revocation
- func InfoGTE(v string) predicate.Revocation
- func InfoHasPrefix(v string) predicate.Revocation
- func InfoHasSuffix(v string) predicate.Revocation
- func InfoIn(vs ...string) predicate.Revocation
- func InfoIsNil() predicate.Revocation
- func InfoLT(v string) predicate.Revocation
- func InfoLTE(v string) predicate.Revocation
- func InfoNEQ(v string) predicate.Revocation
- func InfoNotIn(vs ...string) predicate.Revocation
- func InfoNotNil() predicate.Revocation
- func Not(p predicate.Revocation) predicate.Revocation
- func Or(predicates ...predicate.Revocation) predicate.Revocation
- func Reason(v int) predicate.Revocation
- func ReasonEQ(v int) predicate.Revocation
- func ReasonGT(v int) predicate.Revocation
- func ReasonGTE(v int) predicate.Revocation
- func ReasonIn(vs ...int) predicate.Revocation
- func ReasonIsNil() predicate.Revocation
- func ReasonLT(v int) predicate.Revocation
- func ReasonLTE(v int) predicate.Revocation
- func ReasonNEQ(v int) predicate.Revocation
- func ReasonNotIn(vs ...int) predicate.Revocation
- func ReasonNotNil() predicate.Revocation
- func Revoked(v time.Time) predicate.Revocation
- func RevokedEQ(v time.Time) predicate.Revocation
- func RevokedGT(v time.Time) predicate.Revocation
- func RevokedGTE(v time.Time) predicate.Revocation
- func RevokedIn(vs ...time.Time) predicate.Revocation
- func RevokedLT(v time.Time) predicate.Revocation
- func RevokedLTE(v time.Time) predicate.Revocation
- func RevokedNEQ(v time.Time) predicate.Revocation
- func RevokedNotIn(vs ...time.Time) predicate.Revocation
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the revocation type in the database. Label = "revocation" // FieldID holds the string denoting the id field in the database. FieldID = "serial" // FieldReason holds the string denoting the reason field in the database. FieldReason = "reason" // FieldInfo holds the string denoting the info field in the database. FieldInfo = "info" // FieldExpiry holds the string denoting the expiry field in the database. FieldExpiry = "expiry" // FieldRevoked holds the string denoting the revoked field in the database. FieldRevoked = "revoked" // Table holds the table name of the revocation in the database. Table = "revocations" )
Variables ¶
var ( // DefaultReason holds the default value on creation for the "reason" field. DefaultReason int // DefaultRevoked holds the default value on creation for the "revoked" field. DefaultRevoked func() time.Time )
var Columns = []string{ FieldID, FieldReason, FieldInfo, FieldExpiry, FieldRevoked, }
Columns holds all SQL columns for revocation fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Revocation) predicate.Revocation
And groups predicates with the AND operator between them.
func Expiry ¶
func Expiry(v time.Time) predicate.Revocation
Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.
func ExpiryEQ ¶
func ExpiryEQ(v time.Time) predicate.Revocation
ExpiryEQ applies the EQ predicate on the "expiry" field.
func ExpiryGT ¶
func ExpiryGT(v time.Time) predicate.Revocation
ExpiryGT applies the GT predicate on the "expiry" field.
func ExpiryGTE ¶
func ExpiryGTE(v time.Time) predicate.Revocation
ExpiryGTE applies the GTE predicate on the "expiry" field.
func ExpiryIn ¶
func ExpiryIn(vs ...time.Time) predicate.Revocation
ExpiryIn applies the In predicate on the "expiry" field.
func ExpiryIsNil ¶
func ExpiryIsNil() predicate.Revocation
ExpiryIsNil applies the IsNil predicate on the "expiry" field.
func ExpiryLT ¶
func ExpiryLT(v time.Time) predicate.Revocation
ExpiryLT applies the LT predicate on the "expiry" field.
func ExpiryLTE ¶
func ExpiryLTE(v time.Time) predicate.Revocation
ExpiryLTE applies the LTE predicate on the "expiry" field.
func ExpiryNEQ ¶
func ExpiryNEQ(v time.Time) predicate.Revocation
ExpiryNEQ applies the NEQ predicate on the "expiry" field.
func ExpiryNotIn ¶
func ExpiryNotIn(vs ...time.Time) predicate.Revocation
ExpiryNotIn applies the NotIn predicate on the "expiry" field.
func ExpiryNotNil ¶
func ExpiryNotNil() predicate.Revocation
ExpiryNotNil applies the NotNil predicate on the "expiry" field.
func IDGTE ¶
func IDGTE(id int64) predicate.Revocation
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.Revocation
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.Revocation
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.Revocation
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.Revocation
IDNotIn applies the NotIn predicate on the ID field.
func Info ¶
func Info(v string) predicate.Revocation
Info applies equality check predicate on the "info" field. It's identical to InfoEQ.
func InfoContains ¶
func InfoContains(v string) predicate.Revocation
InfoContains applies the Contains predicate on the "info" field.
func InfoContainsFold ¶
func InfoContainsFold(v string) predicate.Revocation
InfoContainsFold applies the ContainsFold predicate on the "info" field.
func InfoEQ ¶
func InfoEQ(v string) predicate.Revocation
InfoEQ applies the EQ predicate on the "info" field.
func InfoEqualFold ¶
func InfoEqualFold(v string) predicate.Revocation
InfoEqualFold applies the EqualFold predicate on the "info" field.
func InfoGT ¶
func InfoGT(v string) predicate.Revocation
InfoGT applies the GT predicate on the "info" field.
func InfoGTE ¶
func InfoGTE(v string) predicate.Revocation
InfoGTE applies the GTE predicate on the "info" field.
func InfoHasPrefix ¶
func InfoHasPrefix(v string) predicate.Revocation
InfoHasPrefix applies the HasPrefix predicate on the "info" field.
func InfoHasSuffix ¶
func InfoHasSuffix(v string) predicate.Revocation
InfoHasSuffix applies the HasSuffix predicate on the "info" field.
func InfoIn ¶
func InfoIn(vs ...string) predicate.Revocation
InfoIn applies the In predicate on the "info" field.
func InfoIsNil ¶
func InfoIsNil() predicate.Revocation
InfoIsNil applies the IsNil predicate on the "info" field.
func InfoLT ¶
func InfoLT(v string) predicate.Revocation
InfoLT applies the LT predicate on the "info" field.
func InfoLTE ¶
func InfoLTE(v string) predicate.Revocation
InfoLTE applies the LTE predicate on the "info" field.
func InfoNEQ ¶
func InfoNEQ(v string) predicate.Revocation
InfoNEQ applies the NEQ predicate on the "info" field.
func InfoNotIn ¶
func InfoNotIn(vs ...string) predicate.Revocation
InfoNotIn applies the NotIn predicate on the "info" field.
func InfoNotNil ¶
func InfoNotNil() predicate.Revocation
InfoNotNil applies the NotNil predicate on the "info" field.
func Not ¶
func Not(p predicate.Revocation) predicate.Revocation
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Revocation) predicate.Revocation
Or groups predicates with the OR operator between them.
func Reason ¶
func Reason(v int) predicate.Revocation
Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
func ReasonEQ ¶
func ReasonEQ(v int) predicate.Revocation
ReasonEQ applies the EQ predicate on the "reason" field.
func ReasonGT ¶
func ReasonGT(v int) predicate.Revocation
ReasonGT applies the GT predicate on the "reason" field.
func ReasonGTE ¶
func ReasonGTE(v int) predicate.Revocation
ReasonGTE applies the GTE predicate on the "reason" field.
func ReasonIn ¶
func ReasonIn(vs ...int) predicate.Revocation
ReasonIn applies the In predicate on the "reason" field.
func ReasonIsNil ¶
func ReasonIsNil() predicate.Revocation
ReasonIsNil applies the IsNil predicate on the "reason" field.
func ReasonLT ¶
func ReasonLT(v int) predicate.Revocation
ReasonLT applies the LT predicate on the "reason" field.
func ReasonLTE ¶
func ReasonLTE(v int) predicate.Revocation
ReasonLTE applies the LTE predicate on the "reason" field.
func ReasonNEQ ¶
func ReasonNEQ(v int) predicate.Revocation
ReasonNEQ applies the NEQ predicate on the "reason" field.
func ReasonNotIn ¶
func ReasonNotIn(vs ...int) predicate.Revocation
ReasonNotIn applies the NotIn predicate on the "reason" field.
func ReasonNotNil ¶
func ReasonNotNil() predicate.Revocation
ReasonNotNil applies the NotNil predicate on the "reason" field.
func Revoked ¶
func Revoked(v time.Time) predicate.Revocation
Revoked applies equality check predicate on the "revoked" field. It's identical to RevokedEQ.
func RevokedEQ ¶
func RevokedEQ(v time.Time) predicate.Revocation
RevokedEQ applies the EQ predicate on the "revoked" field.
func RevokedGT ¶
func RevokedGT(v time.Time) predicate.Revocation
RevokedGT applies the GT predicate on the "revoked" field.
func RevokedGTE ¶
func RevokedGTE(v time.Time) predicate.Revocation
RevokedGTE applies the GTE predicate on the "revoked" field.
func RevokedIn ¶
func RevokedIn(vs ...time.Time) predicate.Revocation
RevokedIn applies the In predicate on the "revoked" field.
func RevokedLT ¶
func RevokedLT(v time.Time) predicate.Revocation
RevokedLT applies the LT predicate on the "revoked" field.
func RevokedLTE ¶
func RevokedLTE(v time.Time) predicate.Revocation
RevokedLTE applies the LTE predicate on the "revoked" field.
func RevokedNEQ ¶
func RevokedNEQ(v time.Time) predicate.Revocation
RevokedNEQ applies the NEQ predicate on the "revoked" field.
func RevokedNotIn ¶
func RevokedNotIn(vs ...time.Time) predicate.Revocation
RevokedNotIn applies the NotIn predicate on the "revoked" 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 Revocation queries.
func ByExpiry ¶
func ByExpiry(opts ...sql.OrderTermOption) OrderOption
ByExpiry orders the results by the expiry field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInfo ¶
func ByInfo(opts ...sql.OrderTermOption) OrderOption
ByInfo orders the results by the info field.
func ByReason ¶
func ByReason(opts ...sql.OrderTermOption) OrderOption
ByReason orders the results by the reason field.
func ByRevoked ¶
func ByRevoked(opts ...sql.OrderTermOption) OrderOption
ByRevoked orders the results by the revoked field.