dsse

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for dsse fields.

View Source
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 And

func And(predicates ...predicate.Dsse) predicate.Dsse

And groups predicates with the AND operator between them.

func GitoidSha256

func GitoidSha256(v string) predicate.Dsse

GitoidSha256 applies equality check predicate on the "gitoid_sha256" field. It's identical to GitoidSha256EQ.

func GitoidSha256Contains

func GitoidSha256Contains(v string) predicate.Dsse

GitoidSha256Contains applies the Contains predicate on the "gitoid_sha256" field.

func GitoidSha256ContainsFold

func GitoidSha256ContainsFold(v string) predicate.Dsse

GitoidSha256ContainsFold applies the ContainsFold predicate on the "gitoid_sha256" field.

func GitoidSha256EQ

func GitoidSha256EQ(v string) predicate.Dsse

GitoidSha256EQ applies the EQ predicate on the "gitoid_sha256" field.

func GitoidSha256EqualFold

func GitoidSha256EqualFold(v string) predicate.Dsse

GitoidSha256EqualFold applies the EqualFold predicate on the "gitoid_sha256" field.

func GitoidSha256GT

func GitoidSha256GT(v string) predicate.Dsse

GitoidSha256GT applies the GT predicate on the "gitoid_sha256" field.

func GitoidSha256GTE

func GitoidSha256GTE(v string) predicate.Dsse

GitoidSha256GTE applies the GTE predicate on the "gitoid_sha256" field.

func GitoidSha256HasPrefix

func GitoidSha256HasPrefix(v string) predicate.Dsse

GitoidSha256HasPrefix applies the HasPrefix predicate on the "gitoid_sha256" field.

func GitoidSha256HasSuffix

func GitoidSha256HasSuffix(v string) predicate.Dsse

GitoidSha256HasSuffix applies the HasSuffix predicate on the "gitoid_sha256" field.

func GitoidSha256In

func GitoidSha256In(vs ...string) predicate.Dsse

GitoidSha256In applies the In predicate on the "gitoid_sha256" field.

func GitoidSha256LT

func GitoidSha256LT(v string) predicate.Dsse

GitoidSha256LT applies the LT predicate on the "gitoid_sha256" field.

func GitoidSha256LTE

func GitoidSha256LTE(v string) predicate.Dsse

GitoidSha256LTE applies the LTE predicate on the "gitoid_sha256" field.

func GitoidSha256NEQ

func GitoidSha256NEQ(v string) predicate.Dsse

GitoidSha256NEQ applies the NEQ predicate on the "gitoid_sha256" field.

func GitoidSha256NotIn

func GitoidSha256NotIn(vs ...string) predicate.Dsse

GitoidSha256NotIn applies the NotIn predicate on the "gitoid_sha256" field.

func HasPayloadDigests

func HasPayloadDigests() predicate.Dsse

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

func HasSignatures() predicate.Dsse

HasSignatures applies the HasEdge predicate on the "signatures" edge.

func HasSignaturesWith

func HasSignaturesWith(preds ...predicate.Signature) predicate.Dsse

HasSignaturesWith applies the HasEdge predicate on the "signatures" edge with a given conditions (other predicates).

func HasStatement

func HasStatement() predicate.Dsse

HasStatement applies the HasEdge predicate on the "statement" edge.

func HasStatementWith

func HasStatementWith(preds ...predicate.Statement) predicate.Dsse

HasStatementWith applies the HasEdge predicate on the "statement" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Dsse

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Dsse

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Dsse

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Dsse

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Dsse

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Dsse

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Dsse

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Dsse

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Dsse

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Dsse) predicate.Dsse

Or groups predicates with the OR operator between them.

func PayloadType

func PayloadType(v string) predicate.Dsse

PayloadType applies equality check predicate on the "payload_type" field. It's identical to PayloadTypeEQ.

func PayloadTypeContains

func PayloadTypeContains(v string) predicate.Dsse

PayloadTypeContains applies the Contains predicate on the "payload_type" field.

func PayloadTypeContainsFold

func PayloadTypeContainsFold(v string) predicate.Dsse

PayloadTypeContainsFold applies the ContainsFold predicate on the "payload_type" field.

func PayloadTypeEQ

func PayloadTypeEQ(v string) predicate.Dsse

PayloadTypeEQ applies the EQ predicate on the "payload_type" field.

func PayloadTypeEqualFold

func PayloadTypeEqualFold(v string) predicate.Dsse

PayloadTypeEqualFold applies the EqualFold predicate on the "payload_type" field.

func PayloadTypeGT

func PayloadTypeGT(v string) predicate.Dsse

PayloadTypeGT applies the GT predicate on the "payload_type" field.

func PayloadTypeGTE

func PayloadTypeGTE(v string) predicate.Dsse

PayloadTypeGTE applies the GTE predicate on the "payload_type" field.

func PayloadTypeHasPrefix

func PayloadTypeHasPrefix(v string) predicate.Dsse

PayloadTypeHasPrefix applies the HasPrefix predicate on the "payload_type" field.

func PayloadTypeHasSuffix

func PayloadTypeHasSuffix(v string) predicate.Dsse

PayloadTypeHasSuffix applies the HasSuffix predicate on the "payload_type" field.

func PayloadTypeIn

func PayloadTypeIn(vs ...string) predicate.Dsse

PayloadTypeIn applies the In predicate on the "payload_type" field.

func PayloadTypeLT

func PayloadTypeLT(v string) predicate.Dsse

PayloadTypeLT applies the LT predicate on the "payload_type" field.

func PayloadTypeLTE

func PayloadTypeLTE(v string) predicate.Dsse

PayloadTypeLTE applies the LTE predicate on the "payload_type" field.

func PayloadTypeNEQ

func PayloadTypeNEQ(v string) predicate.Dsse

PayloadTypeNEQ applies the NEQ predicate on the "payload_type" field.

func PayloadTypeNotIn

func PayloadTypeNotIn(vs ...string) predicate.Dsse

PayloadTypeNotIn applies the NotIn predicate on the "payload_type" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL