Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Signature) predicate.Signature
- func HasDsse() predicate.Signature
- func HasDsseWith(preds ...predicate.Dsse) predicate.Signature
- func HasTimestamps() predicate.Signature
- func HasTimestampsWith(preds ...predicate.Timestamp) predicate.Signature
- func ID(id int) predicate.Signature
- func IDEQ(id int) predicate.Signature
- func IDGT(id int) predicate.Signature
- func IDGTE(id int) predicate.Signature
- func IDIn(ids ...int) predicate.Signature
- func IDLT(id int) predicate.Signature
- func IDLTE(id int) predicate.Signature
- func IDNEQ(id int) predicate.Signature
- func IDNotIn(ids ...int) predicate.Signature
- func KeyID(v string) predicate.Signature
- func KeyIDContains(v string) predicate.Signature
- func KeyIDContainsFold(v string) predicate.Signature
- func KeyIDEQ(v string) predicate.Signature
- func KeyIDEqualFold(v string) predicate.Signature
- func KeyIDGT(v string) predicate.Signature
- func KeyIDGTE(v string) predicate.Signature
- func KeyIDHasPrefix(v string) predicate.Signature
- func KeyIDHasSuffix(v string) predicate.Signature
- func KeyIDIn(vs ...string) predicate.Signature
- func KeyIDLT(v string) predicate.Signature
- func KeyIDLTE(v string) predicate.Signature
- func KeyIDNEQ(v string) predicate.Signature
- func KeyIDNotIn(vs ...string) predicate.Signature
- func Not(p predicate.Signature) predicate.Signature
- func Or(predicates ...predicate.Signature) predicate.Signature
- func Signature(v string) predicate.Signature
- func SignatureContains(v string) predicate.Signature
- func SignatureContainsFold(v string) predicate.Signature
- func SignatureEQ(v string) predicate.Signature
- func SignatureEqualFold(v string) predicate.Signature
- func SignatureGT(v string) predicate.Signature
- func SignatureGTE(v string) predicate.Signature
- func SignatureHasPrefix(v string) predicate.Signature
- func SignatureHasSuffix(v string) predicate.Signature
- func SignatureIn(vs ...string) predicate.Signature
- func SignatureLT(v string) predicate.Signature
- func SignatureLTE(v string) predicate.Signature
- func SignatureNEQ(v string) predicate.Signature
- func SignatureNotIn(vs ...string) predicate.Signature
- func ValidColumn(column string) bool
- type OrderOption
- func ByDsseField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKeyID(opts ...sql.OrderTermOption) OrderOption
- func BySignature(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamps(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTimestampsCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the signature type in the database. Label = "signature" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldKeyID holds the string denoting the key_id field in the database. FieldKeyID = "key_id" // FieldSignature holds the string denoting the signature field in the database. FieldSignature = "signature" // EdgeDsse holds the string denoting the dsse edge name in mutations. EdgeDsse = "dsse" // EdgeTimestamps holds the string denoting the timestamps edge name in mutations. EdgeTimestamps = "timestamps" // Table holds the table name of the signature in the database. Table = "signatures" // DsseTable is the table that holds the dsse relation/edge. DsseTable = "signatures" // DsseInverseTable is the table name for the Dsse entity. // It exists in this package in order to avoid circular dependency with the "dsse" package. DsseInverseTable = "dsses" // DsseColumn is the table column denoting the dsse relation/edge. DsseColumn = "dsse_signatures" // TimestampsTable is the table that holds the timestamps relation/edge. TimestampsTable = "timestamps" // TimestampsInverseTable is the table name for the Timestamp entity. // It exists in this package in order to avoid circular dependency with the "timestamp" package. TimestampsInverseTable = "timestamps" // TimestampsColumn is the table column denoting the timestamps relation/edge. TimestampsColumn = "signature_timestamps" )
Variables ¶
var ( // KeyIDValidator is a validator for the "key_id" field. It is called by the builders before save. KeyIDValidator func(string) error // SignatureValidator is a validator for the "signature" field. It is called by the builders before save. SignatureValidator func(string) error )
var Columns = []string{ FieldID, FieldKeyID, FieldSignature, }
Columns holds all SQL columns for signature fields.
var ForeignKeys = []string{
"dsse_signatures",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "signatures" table and are not defined as standalone fields in the schema.
Functions ¶
func HasDsseWith ¶
HasDsseWith applies the HasEdge predicate on the "dsse" edge with a given conditions (other predicates).
func HasTimestamps ¶
HasTimestamps applies the HasEdge predicate on the "timestamps" edge.
func HasTimestampsWith ¶
HasTimestampsWith applies the HasEdge predicate on the "timestamps" edge with a given conditions (other predicates).
func KeyID ¶
KeyID applies equality check predicate on the "key_id" field. It's identical to KeyIDEQ.
func KeyIDContains ¶
KeyIDContains applies the Contains predicate on the "key_id" field.
func KeyIDContainsFold ¶
KeyIDContainsFold applies the ContainsFold predicate on the "key_id" field.
func KeyIDEqualFold ¶
KeyIDEqualFold applies the EqualFold predicate on the "key_id" field.
func KeyIDHasPrefix ¶
KeyIDHasPrefix applies the HasPrefix predicate on the "key_id" field.
func KeyIDHasSuffix ¶
KeyIDHasSuffix applies the HasSuffix predicate on the "key_id" field.
func KeyIDNotIn ¶
KeyIDNotIn applies the NotIn predicate on the "key_id" field.
func Signature ¶
Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.
func SignatureContains ¶
SignatureContains applies the Contains predicate on the "signature" field.
func SignatureContainsFold ¶
SignatureContainsFold applies the ContainsFold predicate on the "signature" field.
func SignatureEQ ¶
SignatureEQ applies the EQ predicate on the "signature" field.
func SignatureEqualFold ¶
SignatureEqualFold applies the EqualFold predicate on the "signature" field.
func SignatureGT ¶
SignatureGT applies the GT predicate on the "signature" field.
func SignatureGTE ¶
SignatureGTE applies the GTE predicate on the "signature" field.
func SignatureHasPrefix ¶
SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.
func SignatureHasSuffix ¶
SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.
func SignatureIn ¶
SignatureIn applies the In predicate on the "signature" field.
func SignatureLT ¶
SignatureLT applies the LT predicate on the "signature" field.
func SignatureLTE ¶
SignatureLTE applies the LTE predicate on the "signature" field.
func SignatureNEQ ¶
SignatureNEQ applies the NEQ predicate on the "signature" field.
func SignatureNotIn ¶
SignatureNotIn applies the NotIn predicate on the "signature" 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 Signature queries.
func ByDsseField ¶
func ByDsseField(field string, opts ...sql.OrderTermOption) OrderOption
ByDsseField orders the results by dsse field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByKeyID ¶
func ByKeyID(opts ...sql.OrderTermOption) OrderOption
ByKeyID orders the results by the key_id field.
func BySignature ¶
func BySignature(opts ...sql.OrderTermOption) OrderOption
BySignature orders the results by the signature field.
func ByTimestamps ¶
func ByTimestamps(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTimestamps orders the results by timestamps terms.
func ByTimestampsCount ¶
func ByTimestampsCount(opts ...sql.OrderTermOption) OrderOption
ByTimestampsCount orders the results by timestamps count.