hashesentry

package
v0.0.0-...-7acab80 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the hashesentry type in the database.
	Label = "hashes_entry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHashAlgorithmType holds the string denoting the hash_algorithm_type field in the database.
	FieldHashAlgorithmType = "hash_algorithm_type"
	// FieldHashData holds the string denoting the hash_data field in the database.
	FieldHashData = "hash_data"
	// EdgeExternalReferences holds the string denoting the external_references edge name in mutations.
	EdgeExternalReferences = "external_references"
	// EdgeNodes holds the string denoting the nodes edge name in mutations.
	EdgeNodes = "nodes"
	// Table holds the table name of the hashesentry in the database.
	Table = "hashes_entries"
	// ExternalReferencesTable is the table that holds the external_references relation/edge.
	ExternalReferencesTable = "hashes_entries"
	// ExternalReferencesInverseTable is the table name for the ExternalReference entity.
	// It exists in this package in order to avoid circular dependency with the "externalreference" package.
	ExternalReferencesInverseTable = "external_references"
	// ExternalReferencesColumn is the table column denoting the external_references relation/edge.
	ExternalReferencesColumn = "external_reference_hashes"
	// NodesTable is the table that holds the nodes relation/edge.
	NodesTable = "hashes_entries"
	// NodesInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodesInverseTable = "nodes"
	// NodesColumn is the table column denoting the nodes relation/edge.
	NodesColumn = "node_hashes"
)

Variables

Columns holds all SQL columns for hashesentry fields.

View Source
var ForeignKeys = []string{
	"external_reference_hashes",
	"node_hashes",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "hashes_entries" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.HashesEntry) predicate.HashesEntry

And groups predicates with the AND operator between them.

func HasExternalReferences

func HasExternalReferences() predicate.HashesEntry

HasExternalReferences applies the HasEdge predicate on the "external_references" edge.

func HasExternalReferencesWith

func HasExternalReferencesWith(preds ...predicate.ExternalReference) predicate.HashesEntry

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

func HasNodes

func HasNodes() predicate.HashesEntry

HasNodes applies the HasEdge predicate on the "nodes" edge.

func HasNodesWith

func HasNodesWith(preds ...predicate.Node) predicate.HashesEntry

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

func HashAlgorithmTypeEQ

func HashAlgorithmTypeEQ(v HashAlgorithmType) predicate.HashesEntry

HashAlgorithmTypeEQ applies the EQ predicate on the "hash_algorithm_type" field.

func HashAlgorithmTypeIn

func HashAlgorithmTypeIn(vs ...HashAlgorithmType) predicate.HashesEntry

HashAlgorithmTypeIn applies the In predicate on the "hash_algorithm_type" field.

func HashAlgorithmTypeNEQ

func HashAlgorithmTypeNEQ(v HashAlgorithmType) predicate.HashesEntry

HashAlgorithmTypeNEQ applies the NEQ predicate on the "hash_algorithm_type" field.

func HashAlgorithmTypeNotIn

func HashAlgorithmTypeNotIn(vs ...HashAlgorithmType) predicate.HashesEntry

HashAlgorithmTypeNotIn applies the NotIn predicate on the "hash_algorithm_type" field.

func HashAlgorithmTypeValidator

func HashAlgorithmTypeValidator(hat HashAlgorithmType) error

HashAlgorithmTypeValidator is a validator for the "hash_algorithm_type" field enum values. It is called by the builders before save.

func HashData

func HashData(v string) predicate.HashesEntry

HashData applies equality check predicate on the "hash_data" field. It's identical to HashDataEQ.

func HashDataContains

func HashDataContains(v string) predicate.HashesEntry

HashDataContains applies the Contains predicate on the "hash_data" field.

func HashDataContainsFold

func HashDataContainsFold(v string) predicate.HashesEntry

HashDataContainsFold applies the ContainsFold predicate on the "hash_data" field.

func HashDataEQ

func HashDataEQ(v string) predicate.HashesEntry

HashDataEQ applies the EQ predicate on the "hash_data" field.

func HashDataEqualFold

func HashDataEqualFold(v string) predicate.HashesEntry

HashDataEqualFold applies the EqualFold predicate on the "hash_data" field.

func HashDataGT

func HashDataGT(v string) predicate.HashesEntry

HashDataGT applies the GT predicate on the "hash_data" field.

func HashDataGTE

func HashDataGTE(v string) predicate.HashesEntry

HashDataGTE applies the GTE predicate on the "hash_data" field.

func HashDataHasPrefix

func HashDataHasPrefix(v string) predicate.HashesEntry

HashDataHasPrefix applies the HasPrefix predicate on the "hash_data" field.

func HashDataHasSuffix

func HashDataHasSuffix(v string) predicate.HashesEntry

HashDataHasSuffix applies the HasSuffix predicate on the "hash_data" field.

func HashDataIn

func HashDataIn(vs ...string) predicate.HashesEntry

HashDataIn applies the In predicate on the "hash_data" field.

func HashDataLT

func HashDataLT(v string) predicate.HashesEntry

HashDataLT applies the LT predicate on the "hash_data" field.

func HashDataLTE

func HashDataLTE(v string) predicate.HashesEntry

HashDataLTE applies the LTE predicate on the "hash_data" field.

func HashDataNEQ

func HashDataNEQ(v string) predicate.HashesEntry

HashDataNEQ applies the NEQ predicate on the "hash_data" field.

func HashDataNotIn

func HashDataNotIn(vs ...string) predicate.HashesEntry

HashDataNotIn applies the NotIn predicate on the "hash_data" field.

func ID

func ID(id int) predicate.HashesEntry

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.HashesEntry

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.HashesEntry

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.HashesEntry

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.HashesEntry

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.HashesEntry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.HashesEntry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.HashesEntry) predicate.HashesEntry

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type HashAlgorithmType

type HashAlgorithmType string

HashAlgorithmType defines the type for the "hash_algorithm_type" enum field.

const (
	HashAlgorithmTypeUNKNOWN     HashAlgorithmType = "UNKNOWN"
	HashAlgorithmTypeMD5         HashAlgorithmType = "MD5"
	HashAlgorithmTypeSHA1        HashAlgorithmType = "SHA1"
	HashAlgorithmTypeSHA256      HashAlgorithmType = "SHA256"
	HashAlgorithmTypeSHA384      HashAlgorithmType = "SHA384"
	HashAlgorithmTypeSHA512      HashAlgorithmType = "SHA512"
	HashAlgorithmTypeSHA3_256    HashAlgorithmType = "SHA3_256"
	HashAlgorithmTypeSHA3_384    HashAlgorithmType = "SHA3_384"
	HashAlgorithmTypeSHA3_512    HashAlgorithmType = "SHA3_512"
	HashAlgorithmTypeBLAKE2B_256 HashAlgorithmType = "BLAKE2B_256"
	HashAlgorithmTypeBLAKE2B_384 HashAlgorithmType = "BLAKE2B_384"
	HashAlgorithmTypeBLAKE2B_512 HashAlgorithmType = "BLAKE2B_512"
	HashAlgorithmTypeBLAKE3      HashAlgorithmType = "BLAKE3"
	HashAlgorithmTypeMD2         HashAlgorithmType = "MD2"
	HashAlgorithmTypeADLER32     HashAlgorithmType = "ADLER32"
	HashAlgorithmTypeMD4         HashAlgorithmType = "MD4"
	HashAlgorithmTypeMD6         HashAlgorithmType = "MD6"
	HashAlgorithmTypeSHA224      HashAlgorithmType = "SHA224"
)

HashAlgorithmType values.

func (HashAlgorithmType) String

func (hat HashAlgorithmType) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the HashesEntry queries.

func ByExternalReferencesField

func ByExternalReferencesField(field string, opts ...sql.OrderTermOption) OrderOption

ByExternalReferencesField orders the results by external_references field.

func ByHashAlgorithmType

func ByHashAlgorithmType(opts ...sql.OrderTermOption) OrderOption

ByHashAlgorithmType orders the results by the hash_algorithm_type field.

func ByHashData

func ByHashData(opts ...sql.OrderTermOption) OrderOption

ByHashData orders the results by the hash_data field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByNodesField

func ByNodesField(field string, opts ...sql.OrderTermOption) OrderOption

ByNodesField orders the results by nodes field.

Jump to

Keyboard shortcuts

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