Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Dsse) predicate.Dsse
- func GitoidSha256(v string) predicate.Dsse
- func GitoidSha256Contains(v string) predicate.Dsse
- func GitoidSha256ContainsFold(v string) predicate.Dsse
- func GitoidSha256EQ(v string) predicate.Dsse
- func GitoidSha256EqualFold(v string) predicate.Dsse
- func GitoidSha256GT(v string) predicate.Dsse
- func GitoidSha256GTE(v string) predicate.Dsse
- func GitoidSha256HasPrefix(v string) predicate.Dsse
- func GitoidSha256HasSuffix(v string) predicate.Dsse
- func GitoidSha256In(vs ...string) predicate.Dsse
- func GitoidSha256LT(v string) predicate.Dsse
- func GitoidSha256LTE(v string) predicate.Dsse
- func GitoidSha256NEQ(v string) predicate.Dsse
- func GitoidSha256NotIn(vs ...string) predicate.Dsse
- func HasPayloadDigests() predicate.Dsse
- func HasPayloadDigestsWith(preds ...predicate.PayloadDigest) predicate.Dsse
- func HasSignatures() predicate.Dsse
- func HasSignaturesWith(preds ...predicate.Signature) predicate.Dsse
- func HasStatement() predicate.Dsse
- func HasStatementWith(preds ...predicate.Statement) predicate.Dsse
- func ID(id uuid.UUID) predicate.Dsse
- func IDEQ(id uuid.UUID) predicate.Dsse
- func IDGT(id uuid.UUID) predicate.Dsse
- func IDGTE(id uuid.UUID) predicate.Dsse
- func IDIn(ids ...uuid.UUID) predicate.Dsse
- func IDLT(id uuid.UUID) predicate.Dsse
- func IDLTE(id uuid.UUID) predicate.Dsse
- func IDNEQ(id uuid.UUID) predicate.Dsse
- func IDNotIn(ids ...uuid.UUID) predicate.Dsse
- func Not(p predicate.Dsse) predicate.Dsse
- func Or(predicates ...predicate.Dsse) predicate.Dsse
- func PayloadType(v string) predicate.Dsse
- func PayloadTypeContains(v string) predicate.Dsse
- func PayloadTypeContainsFold(v string) predicate.Dsse
- func PayloadTypeEQ(v string) predicate.Dsse
- func PayloadTypeEqualFold(v string) predicate.Dsse
- func PayloadTypeGT(v string) predicate.Dsse
- func PayloadTypeGTE(v string) predicate.Dsse
- func PayloadTypeHasPrefix(v string) predicate.Dsse
- func PayloadTypeHasSuffix(v string) predicate.Dsse
- func PayloadTypeIn(vs ...string) predicate.Dsse
- func PayloadTypeLT(v string) predicate.Dsse
- func PayloadTypeLTE(v string) predicate.Dsse
- func PayloadTypeNEQ(v string) predicate.Dsse
- func PayloadTypeNotIn(vs ...string) predicate.Dsse
- func ValidColumn(column string) bool
- type OrderOption
- func ByGitoidSha256(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPayloadDigests(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPayloadDigestsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPayloadType(opts ...sql.OrderTermOption) OrderOption
- func BySignatures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySignaturesCount(opts ...sql.OrderTermOption) OrderOption
- func ByStatementField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the dsse type in the database. Label = "dsse" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldGitoidSha256 holds the string denoting the gitoid_sha256 field in the database. FieldGitoidSha256 = "gitoid_sha256" // FieldPayloadType holds the string denoting the payload_type field in the database. FieldPayloadType = "payload_type" // EdgeStatement holds the string denoting the statement edge name in mutations. EdgeStatement = "statement" // EdgeSignatures holds the string denoting the signatures edge name in mutations. EdgeSignatures = "signatures" // EdgePayloadDigests holds the string denoting the payload_digests edge name in mutations. EdgePayloadDigests = "payload_digests" // Table holds the table name of the dsse in the database. Table = "dsses" // StatementTable is the table that holds the statement relation/edge. StatementTable = "dsses" // StatementInverseTable is the table name for the Statement entity. // It exists in this package in order to avoid circular dependency with the "statement" package. StatementInverseTable = "statements" // StatementColumn is the table column denoting the statement relation/edge. StatementColumn = "dsse_statement" // SignaturesTable is the table that holds the signatures relation/edge. SignaturesTable = "signatures" // SignaturesInverseTable is the table name for the Signature entity. // It exists in this package in order to avoid circular dependency with the "signature" package. SignaturesInverseTable = "signatures" // SignaturesColumn is the table column denoting the signatures relation/edge. SignaturesColumn = "dsse_signatures" // PayloadDigestsTable is the table that holds the payload_digests relation/edge. PayloadDigestsTable = "payload_digests" // PayloadDigestsInverseTable is the table name for the PayloadDigest entity. // It exists in this package in order to avoid circular dependency with the "payloaddigest" package. PayloadDigestsInverseTable = "payload_digests" // PayloadDigestsColumn is the table column denoting the payload_digests relation/edge. PayloadDigestsColumn = "dsse_payload_digests" )
Variables ¶
var ( // GitoidSha256Validator is a validator for the "gitoid_sha256" field. It is called by the builders before save. GitoidSha256Validator func(string) error // PayloadTypeValidator is a validator for the "payload_type" field. It is called by the builders before save. PayloadTypeValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldGitoidSha256, FieldPayloadType, }
Columns holds all SQL columns for dsse fields.
var ForeignKeys = []string{
"dsse_statement",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "dsses" table and are not defined as standalone fields in the schema.
Functions ¶
func GitoidSha256 ¶
GitoidSha256 applies equality check predicate on the "gitoid_sha256" field. It's identical to GitoidSha256EQ.
func GitoidSha256Contains ¶
GitoidSha256Contains applies the Contains predicate on the "gitoid_sha256" field.
func GitoidSha256ContainsFold ¶
GitoidSha256ContainsFold applies the ContainsFold predicate on the "gitoid_sha256" field.
func GitoidSha256EQ ¶
GitoidSha256EQ applies the EQ predicate on the "gitoid_sha256" field.
func GitoidSha256EqualFold ¶
GitoidSha256EqualFold applies the EqualFold predicate on the "gitoid_sha256" field.
func GitoidSha256GT ¶
GitoidSha256GT applies the GT predicate on the "gitoid_sha256" field.
func GitoidSha256GTE ¶
GitoidSha256GTE applies the GTE predicate on the "gitoid_sha256" field.
func GitoidSha256HasPrefix ¶
GitoidSha256HasPrefix applies the HasPrefix predicate on the "gitoid_sha256" field.
func GitoidSha256HasSuffix ¶
GitoidSha256HasSuffix applies the HasSuffix predicate on the "gitoid_sha256" field.
func GitoidSha256In ¶
GitoidSha256In applies the In predicate on the "gitoid_sha256" field.
func GitoidSha256LT ¶
GitoidSha256LT applies the LT predicate on the "gitoid_sha256" field.
func GitoidSha256LTE ¶
GitoidSha256LTE applies the LTE predicate on the "gitoid_sha256" field.
func GitoidSha256NEQ ¶
GitoidSha256NEQ applies the NEQ predicate on the "gitoid_sha256" field.
func GitoidSha256NotIn ¶
GitoidSha256NotIn applies the NotIn predicate on the "gitoid_sha256" field.
func HasPayloadDigests ¶
HasPayloadDigests applies the HasEdge predicate on the "payload_digests" edge.
func HasPayloadDigestsWith ¶
func HasPayloadDigestsWith(preds ...predicate.PayloadDigest) predicate.Dsse
HasPayloadDigestsWith applies the HasEdge predicate on the "payload_digests" edge with a given conditions (other predicates).
func HasSignatures ¶
HasSignatures applies the HasEdge predicate on the "signatures" edge.
func HasSignaturesWith ¶
HasSignaturesWith applies the HasEdge predicate on the "signatures" edge with a given conditions (other predicates).
func HasStatement ¶
HasStatement applies the HasEdge predicate on the "statement" edge.
func HasStatementWith ¶
HasStatementWith applies the HasEdge predicate on the "statement" edge with a given conditions (other predicates).
func PayloadType ¶
PayloadType applies equality check predicate on the "payload_type" field. It's identical to PayloadTypeEQ.
func PayloadTypeContains ¶
PayloadTypeContains applies the Contains predicate on the "payload_type" field.
func PayloadTypeContainsFold ¶
PayloadTypeContainsFold applies the ContainsFold predicate on the "payload_type" field.
func PayloadTypeEQ ¶
PayloadTypeEQ applies the EQ predicate on the "payload_type" field.
func PayloadTypeEqualFold ¶
PayloadTypeEqualFold applies the EqualFold predicate on the "payload_type" field.
func PayloadTypeGT ¶
PayloadTypeGT applies the GT predicate on the "payload_type" field.
func PayloadTypeGTE ¶
PayloadTypeGTE applies the GTE predicate on the "payload_type" field.
func PayloadTypeHasPrefix ¶
PayloadTypeHasPrefix applies the HasPrefix predicate on the "payload_type" field.
func PayloadTypeHasSuffix ¶
PayloadTypeHasSuffix applies the HasSuffix predicate on the "payload_type" field.
func PayloadTypeIn ¶
PayloadTypeIn applies the In predicate on the "payload_type" field.
func PayloadTypeLT ¶
PayloadTypeLT applies the LT predicate on the "payload_type" field.
func PayloadTypeLTE ¶
PayloadTypeLTE applies the LTE predicate on the "payload_type" field.
func PayloadTypeNEQ ¶
PayloadTypeNEQ applies the NEQ predicate on the "payload_type" field.
func PayloadTypeNotIn ¶
PayloadTypeNotIn applies the NotIn predicate on the "payload_type" 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 Dsse queries.
func ByGitoidSha256 ¶
func ByGitoidSha256(opts ...sql.OrderTermOption) OrderOption
ByGitoidSha256 orders the results by the gitoid_sha256 field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPayloadDigests ¶
func ByPayloadDigests(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPayloadDigests orders the results by payload_digests terms.
func ByPayloadDigestsCount ¶
func ByPayloadDigestsCount(opts ...sql.OrderTermOption) OrderOption
ByPayloadDigestsCount orders the results by payload_digests count.
func ByPayloadType ¶
func ByPayloadType(opts ...sql.OrderTermOption) OrderOption
ByPayloadType orders the results by the payload_type field.
func BySignatures ¶
func BySignatures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySignatures orders the results by signatures terms.
func BySignaturesCount ¶
func BySignaturesCount(opts ...sql.OrderTermOption) OrderOption
BySignaturesCount orders the results by signatures count.
func ByStatementField ¶
func ByStatementField(field string, opts ...sql.OrderTermOption) OrderOption
ByStatementField orders the results by statement field.