signature

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

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

Columns holds all SQL columns for signature fields.

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

func And(predicates ...predicate.Signature) predicate.Signature

And groups predicates with the AND operator between them.

func HasDsse

func HasDsse() predicate.Signature

HasDsse applies the HasEdge predicate on the "dsse" edge.

func HasDsseWith

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

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

func HasTimestamps

func HasTimestamps() predicate.Signature

HasTimestamps applies the HasEdge predicate on the "timestamps" edge.

func HasTimestampsWith

func HasTimestampsWith(preds ...predicate.Timestamp) predicate.Signature

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

func ID

func ID(id int) predicate.Signature

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Signature

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Signature

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Signature

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Signature

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Signature

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Signature

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KeyID

func KeyID(v string) predicate.Signature

KeyID applies equality check predicate on the "key_id" field. It's identical to KeyIDEQ.

func KeyIDContains

func KeyIDContains(v string) predicate.Signature

KeyIDContains applies the Contains predicate on the "key_id" field.

func KeyIDContainsFold

func KeyIDContainsFold(v string) predicate.Signature

KeyIDContainsFold applies the ContainsFold predicate on the "key_id" field.

func KeyIDEQ

func KeyIDEQ(v string) predicate.Signature

KeyIDEQ applies the EQ predicate on the "key_id" field.

func KeyIDEqualFold

func KeyIDEqualFold(v string) predicate.Signature

KeyIDEqualFold applies the EqualFold predicate on the "key_id" field.

func KeyIDGT

func KeyIDGT(v string) predicate.Signature

KeyIDGT applies the GT predicate on the "key_id" field.

func KeyIDGTE

func KeyIDGTE(v string) predicate.Signature

KeyIDGTE applies the GTE predicate on the "key_id" field.

func KeyIDHasPrefix

func KeyIDHasPrefix(v string) predicate.Signature

KeyIDHasPrefix applies the HasPrefix predicate on the "key_id" field.

func KeyIDHasSuffix

func KeyIDHasSuffix(v string) predicate.Signature

KeyIDHasSuffix applies the HasSuffix predicate on the "key_id" field.

func KeyIDIn

func KeyIDIn(vs ...string) predicate.Signature

KeyIDIn applies the In predicate on the "key_id" field.

func KeyIDLT

func KeyIDLT(v string) predicate.Signature

KeyIDLT applies the LT predicate on the "key_id" field.

func KeyIDLTE

func KeyIDLTE(v string) predicate.Signature

KeyIDLTE applies the LTE predicate on the "key_id" field.

func KeyIDNEQ

func KeyIDNEQ(v string) predicate.Signature

KeyIDNEQ applies the NEQ predicate on the "key_id" field.

func KeyIDNotIn

func KeyIDNotIn(vs ...string) predicate.Signature

KeyIDNotIn applies the NotIn predicate on the "key_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Signature) predicate.Signature

Or groups predicates with the OR operator between them.

func Signature

func Signature(v string) predicate.Signature

Signature applies equality check predicate on the "signature" field. It's identical to SignatureEQ.

func SignatureContains

func SignatureContains(v string) predicate.Signature

SignatureContains applies the Contains predicate on the "signature" field.

func SignatureContainsFold

func SignatureContainsFold(v string) predicate.Signature

SignatureContainsFold applies the ContainsFold predicate on the "signature" field.

func SignatureEQ

func SignatureEQ(v string) predicate.Signature

SignatureEQ applies the EQ predicate on the "signature" field.

func SignatureEqualFold

func SignatureEqualFold(v string) predicate.Signature

SignatureEqualFold applies the EqualFold predicate on the "signature" field.

func SignatureGT

func SignatureGT(v string) predicate.Signature

SignatureGT applies the GT predicate on the "signature" field.

func SignatureGTE

func SignatureGTE(v string) predicate.Signature

SignatureGTE applies the GTE predicate on the "signature" field.

func SignatureHasPrefix

func SignatureHasPrefix(v string) predicate.Signature

SignatureHasPrefix applies the HasPrefix predicate on the "signature" field.

func SignatureHasSuffix

func SignatureHasSuffix(v string) predicate.Signature

SignatureHasSuffix applies the HasSuffix predicate on the "signature" field.

func SignatureIn

func SignatureIn(vs ...string) predicate.Signature

SignatureIn applies the In predicate on the "signature" field.

func SignatureLT

func SignatureLT(v string) predicate.Signature

SignatureLT applies the LT predicate on the "signature" field.

func SignatureLTE

func SignatureLTE(v string) predicate.Signature

SignatureLTE applies the LTE predicate on the "signature" field.

func SignatureNEQ

func SignatureNEQ(v string) predicate.Signature

SignatureNEQ applies the NEQ predicate on the "signature" field.

func SignatureNotIn

func SignatureNotIn(vs ...string) predicate.Signature

SignatureNotIn applies the NotIn predicate on the "signature" 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 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.

Jump to

Keyboard shortcuts

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