Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Sentinel) predicate.Sentinel
- func CreatedAt(v time.Time) predicate.Sentinel
- func CreatedAtEQ(v time.Time) predicate.Sentinel
- func CreatedAtGT(v time.Time) predicate.Sentinel
- func CreatedAtGTE(v time.Time) predicate.Sentinel
- func CreatedAtIn(vs ...time.Time) predicate.Sentinel
- func CreatedAtLT(v time.Time) predicate.Sentinel
- func CreatedAtLTE(v time.Time) predicate.Sentinel
- func CreatedAtNEQ(v time.Time) predicate.Sentinel
- func CreatedAtNotIn(vs ...time.Time) predicate.Sentinel
- func Envelope(v string) predicate.Sentinel
- func EnvelopeContains(v string) predicate.Sentinel
- func EnvelopeContainsFold(v string) predicate.Sentinel
- func EnvelopeEQ(v string) predicate.Sentinel
- func EnvelopeEqualFold(v string) predicate.Sentinel
- func EnvelopeGT(v string) predicate.Sentinel
- func EnvelopeGTE(v string) predicate.Sentinel
- func EnvelopeHasPrefix(v string) predicate.Sentinel
- func EnvelopeHasSuffix(v string) predicate.Sentinel
- func EnvelopeIn(vs ...string) predicate.Sentinel
- func EnvelopeLT(v string) predicate.Sentinel
- func EnvelopeLTE(v string) predicate.Sentinel
- func EnvelopeNEQ(v string) predicate.Sentinel
- func EnvelopeNotIn(vs ...string) predicate.Sentinel
- func HasKek() predicate.Sentinel
- func HasKekWith(preds ...predicate.KEK) predicate.Sentinel
- func ID(id int) predicate.Sentinel
- func IDEQ(id int) predicate.Sentinel
- func IDGT(id int) predicate.Sentinel
- func IDGTE(id int) predicate.Sentinel
- func IDIn(ids ...int) predicate.Sentinel
- func IDLT(id int) predicate.Sentinel
- func IDLTE(id int) predicate.Sentinel
- func IDNEQ(id int) predicate.Sentinel
- func IDNotIn(ids ...int) predicate.Sentinel
- func KekID(v envelope.ID) predicate.Sentinel
- func KekIDEQ(v envelope.ID) predicate.Sentinel
- func KekIDIn(vs ...envelope.ID) predicate.Sentinel
- func KekIDNEQ(v envelope.ID) predicate.Sentinel
- func KekIDNotIn(vs ...envelope.ID) predicate.Sentinel
- func Not(p predicate.Sentinel) predicate.Sentinel
- func Or(predicates ...predicate.Sentinel) predicate.Sentinel
- func ValidColumn(column string) bool
- func Version(v uint32) predicate.Sentinel
- func VersionEQ(v uint32) predicate.Sentinel
- func VersionGT(v uint32) predicate.Sentinel
- func VersionGTE(v uint32) predicate.Sentinel
- func VersionIn(vs ...uint32) predicate.Sentinel
- func VersionLT(v uint32) predicate.Sentinel
- func VersionLTE(v uint32) predicate.Sentinel
- func VersionNEQ(v uint32) predicate.Sentinel
- func VersionNotIn(vs ...uint32) predicate.Sentinel
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEnvelope(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKekField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByKekID(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the sentinel type in the database. Label = "sentinel" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKekID holds the string denoting the kek_id field in the database. FieldKekID = "kek_id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldEnvelope holds the string denoting the envelope field in the database. FieldEnvelope = "envelope" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeKek holds the string denoting the kek edge name in mutations. EdgeKek = "kek" // Table holds the table name of the sentinel in the database. Table = "sentinels" // KekTable is the table that holds the kek relation/edge. KekTable = "sentinels" // KekInverseTable is the table name for the KEK entity. // It exists in this package in order to avoid circular dependency with the "kek" package. KekInverseTable = "ke_ks" // KekColumn is the table column denoting the kek relation/edge. KekColumn = "kek_id" )
Variables ¶
var Columns = []string{ FieldID, FieldKekID, FieldVersion, FieldEnvelope, FieldCreatedAt, }
Columns holds all SQL columns for sentinel fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Envelope ¶
Envelope applies equality check predicate on the "envelope" field. It's identical to EnvelopeEQ.
func EnvelopeContains ¶
EnvelopeContains applies the Contains predicate on the "envelope" field.
func EnvelopeContainsFold ¶
EnvelopeContainsFold applies the ContainsFold predicate on the "envelope" field.
func EnvelopeEQ ¶
EnvelopeEQ applies the EQ predicate on the "envelope" field.
func EnvelopeEqualFold ¶
EnvelopeEqualFold applies the EqualFold predicate on the "envelope" field.
func EnvelopeGT ¶
EnvelopeGT applies the GT predicate on the "envelope" field.
func EnvelopeGTE ¶
EnvelopeGTE applies the GTE predicate on the "envelope" field.
func EnvelopeHasPrefix ¶
EnvelopeHasPrefix applies the HasPrefix predicate on the "envelope" field.
func EnvelopeHasSuffix ¶
EnvelopeHasSuffix applies the HasSuffix predicate on the "envelope" field.
func EnvelopeIn ¶
EnvelopeIn applies the In predicate on the "envelope" field.
func EnvelopeLT ¶
EnvelopeLT applies the LT predicate on the "envelope" field.
func EnvelopeLTE ¶
EnvelopeLTE applies the LTE predicate on the "envelope" field.
func EnvelopeNEQ ¶
EnvelopeNEQ applies the NEQ predicate on the "envelope" field.
func EnvelopeNotIn ¶
EnvelopeNotIn applies the NotIn predicate on the "envelope" field.
func HasKekWith ¶
HasKekWith applies the HasEdge predicate on the "kek" edge with a given conditions (other predicates).
func KekID ¶
KekID applies equality check predicate on the "kek_id" field. It's identical to KekIDEQ.
func KekIDNotIn ¶
KekIDNotIn applies the NotIn predicate on the "kek_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Sentinel queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEnvelope ¶
func ByEnvelope(opts ...sql.OrderTermOption) OrderOption
ByEnvelope orders the results by the envelope field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKekField ¶
func ByKekField(field string, opts ...sql.OrderTermOption) OrderOption
ByKekField orders the results by kek field.
func ByKekID ¶
func ByKekID(opts ...sql.OrderTermOption) OrderOption
ByKekID orders the results by the kek_id field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.