sourcename

package
v0.12.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sourcename type in the database.
	Label = "source_name"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldCommit holds the string denoting the commit field in the database.
	FieldCommit = "commit"
	// FieldTag holds the string denoting the tag field in the database.
	FieldTag = "tag"
	// EdgeOccurrences holds the string denoting the occurrences edge name in mutations.
	EdgeOccurrences = "occurrences"
	// EdgeHasSourceAt holds the string denoting the has_source_at edge name in mutations.
	EdgeHasSourceAt = "has_source_at"
	// EdgeScorecard holds the string denoting the scorecard edge name in mutations.
	EdgeScorecard = "scorecard"
	// EdgeCertification holds the string denoting the certification edge name in mutations.
	EdgeCertification = "certification"
	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgePoc holds the string denoting the poc edge name in mutations.
	EdgePoc = "poc"
	// EdgeCertifyLegal holds the string denoting the certify_legal edge name in mutations.
	EdgeCertifyLegal = "certify_legal"
	// Table holds the table name of the sourcename in the database.
	Table = "source_names"
	// OccurrencesTable is the table that holds the occurrences relation/edge.
	OccurrencesTable = "occurrences"
	// OccurrencesInverseTable is the table name for the Occurrence entity.
	// It exists in this package in order to avoid circular dependency with the "occurrence" package.
	OccurrencesInverseTable = "occurrences"
	// OccurrencesColumn is the table column denoting the occurrences relation/edge.
	OccurrencesColumn = "source_id"
	// HasSourceAtTable is the table that holds the has_source_at relation/edge.
	HasSourceAtTable = "has_source_ats"
	// HasSourceAtInverseTable is the table name for the HasSourceAt entity.
	// It exists in this package in order to avoid circular dependency with the "hassourceat" package.
	HasSourceAtInverseTable = "has_source_ats"
	// HasSourceAtColumn is the table column denoting the has_source_at relation/edge.
	HasSourceAtColumn = "source_id"
	// ScorecardTable is the table that holds the scorecard relation/edge.
	ScorecardTable = "certify_scorecards"
	// ScorecardInverseTable is the table name for the CertifyScorecard entity.
	// It exists in this package in order to avoid circular dependency with the "certifyscorecard" package.
	ScorecardInverseTable = "certify_scorecards"
	// ScorecardColumn is the table column denoting the scorecard relation/edge.
	ScorecardColumn = "source_id"
	// CertificationTable is the table that holds the certification relation/edge.
	CertificationTable = "certifications"
	// CertificationInverseTable is the table name for the Certification entity.
	// It exists in this package in order to avoid circular dependency with the "certification" package.
	CertificationInverseTable = "certifications"
	// CertificationColumn is the table column denoting the certification relation/edge.
	CertificationColumn = "source_id"
	// MetadataTable is the table that holds the metadata relation/edge.
	MetadataTable = "has_metadata"
	// MetadataInverseTable is the table name for the HasMetadata entity.
	// It exists in this package in order to avoid circular dependency with the "hasmetadata" package.
	MetadataInverseTable = "has_metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "source_id"
	// PocTable is the table that holds the poc relation/edge.
	PocTable = "point_of_contacts"
	// PocInverseTable is the table name for the PointOfContact entity.
	// It exists in this package in order to avoid circular dependency with the "pointofcontact" package.
	PocInverseTable = "point_of_contacts"
	// PocColumn is the table column denoting the poc relation/edge.
	PocColumn = "source_id"
	// CertifyLegalTable is the table that holds the certify_legal relation/edge.
	CertifyLegalTable = "certify_legals"
	// CertifyLegalInverseTable is the table name for the CertifyLegal entity.
	// It exists in this package in order to avoid circular dependency with the "certifylegal" package.
	CertifyLegalInverseTable = "certify_legals"
	// CertifyLegalColumn is the table column denoting the certify_legal relation/edge.
	CertifyLegalColumn = "source_id"
)

Variables

Columns holds all SQL columns for sourcename fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

func And(predicates ...predicate.SourceName) predicate.SourceName

And groups predicates with the AND operator between them.

func Commit

func Commit(v string) predicate.SourceName

Commit applies equality check predicate on the "commit" field. It's identical to CommitEQ.

func CommitContains

func CommitContains(v string) predicate.SourceName

CommitContains applies the Contains predicate on the "commit" field.

func CommitContainsFold

func CommitContainsFold(v string) predicate.SourceName

CommitContainsFold applies the ContainsFold predicate on the "commit" field.

func CommitEQ

func CommitEQ(v string) predicate.SourceName

CommitEQ applies the EQ predicate on the "commit" field.

func CommitEqualFold

func CommitEqualFold(v string) predicate.SourceName

CommitEqualFold applies the EqualFold predicate on the "commit" field.

func CommitGT

func CommitGT(v string) predicate.SourceName

CommitGT applies the GT predicate on the "commit" field.

func CommitGTE

func CommitGTE(v string) predicate.SourceName

CommitGTE applies the GTE predicate on the "commit" field.

func CommitHasPrefix

func CommitHasPrefix(v string) predicate.SourceName

CommitHasPrefix applies the HasPrefix predicate on the "commit" field.

func CommitHasSuffix

func CommitHasSuffix(v string) predicate.SourceName

CommitHasSuffix applies the HasSuffix predicate on the "commit" field.

func CommitIn

func CommitIn(vs ...string) predicate.SourceName

CommitIn applies the In predicate on the "commit" field.

func CommitIsNil

func CommitIsNil() predicate.SourceName

CommitIsNil applies the IsNil predicate on the "commit" field.

func CommitLT

func CommitLT(v string) predicate.SourceName

CommitLT applies the LT predicate on the "commit" field.

func CommitLTE

func CommitLTE(v string) predicate.SourceName

CommitLTE applies the LTE predicate on the "commit" field.

func CommitNEQ

func CommitNEQ(v string) predicate.SourceName

CommitNEQ applies the NEQ predicate on the "commit" field.

func CommitNotIn

func CommitNotIn(vs ...string) predicate.SourceName

CommitNotIn applies the NotIn predicate on the "commit" field.

func CommitNotNil

func CommitNotNil() predicate.SourceName

CommitNotNil applies the NotNil predicate on the "commit" field.

func HasCertification added in v0.6.0

func HasCertification() predicate.SourceName

HasCertification applies the HasEdge predicate on the "certification" edge.

func HasCertificationWith added in v0.6.0

func HasCertificationWith(preds ...predicate.Certification) predicate.SourceName

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

func HasCertifyLegal added in v0.6.0

func HasCertifyLegal() predicate.SourceName

HasCertifyLegal applies the HasEdge predicate on the "certify_legal" edge.

func HasCertifyLegalWith added in v0.6.0

func HasCertifyLegalWith(preds ...predicate.CertifyLegal) predicate.SourceName

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

func HasHasSourceAt added in v0.6.0

func HasHasSourceAt() predicate.SourceName

HasHasSourceAt applies the HasEdge predicate on the "has_source_at" edge.

func HasHasSourceAtWith added in v0.6.0

func HasHasSourceAtWith(preds ...predicate.HasSourceAt) predicate.SourceName

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

func HasMetadata added in v0.6.0

func HasMetadata() predicate.SourceName

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith added in v0.6.0

func HasMetadataWith(preds ...predicate.HasMetadata) predicate.SourceName

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

func HasOccurrences

func HasOccurrences() predicate.SourceName

HasOccurrences applies the HasEdge predicate on the "occurrences" edge.

func HasOccurrencesWith

func HasOccurrencesWith(preds ...predicate.Occurrence) predicate.SourceName

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

func HasPoc added in v0.6.0

func HasPoc() predicate.SourceName

HasPoc applies the HasEdge predicate on the "poc" edge.

func HasPocWith added in v0.6.0

func HasPocWith(preds ...predicate.PointOfContact) predicate.SourceName

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

func HasScorecard added in v0.6.0

func HasScorecard() predicate.SourceName

HasScorecard applies the HasEdge predicate on the "scorecard" edge.

func HasScorecardWith added in v0.6.0

func HasScorecardWith(preds ...predicate.CertifyScorecard) predicate.SourceName

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.SourceName

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.SourceName

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.SourceName

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.SourceName

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.SourceName

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.SourceName

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.SourceName

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.SourceName

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.SourceName

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.SourceName

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.SourceName

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.SourceName

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.SourceName

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.SourceName

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.SourceName

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.SourceName

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.SourceName

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.SourceName

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.SourceName

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.SourceName

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.SourceName

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.SourceName

NameNotIn applies the NotIn predicate on the "name" field.

func Namespace added in v0.5.0

func Namespace(v string) predicate.SourceName

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains added in v0.5.0

func NamespaceContains(v string) predicate.SourceName

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold added in v0.5.0

func NamespaceContainsFold(v string) predicate.SourceName

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ added in v0.5.0

func NamespaceEQ(v string) predicate.SourceName

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold added in v0.5.0

func NamespaceEqualFold(v string) predicate.SourceName

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT added in v0.5.0

func NamespaceGT(v string) predicate.SourceName

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE added in v0.5.0

func NamespaceGTE(v string) predicate.SourceName

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix added in v0.5.0

func NamespaceHasPrefix(v string) predicate.SourceName

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix added in v0.5.0

func NamespaceHasSuffix(v string) predicate.SourceName

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn added in v0.5.0

func NamespaceIn(vs ...string) predicate.SourceName

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT added in v0.5.0

func NamespaceLT(v string) predicate.SourceName

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE added in v0.5.0

func NamespaceLTE(v string) predicate.SourceName

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ added in v0.5.0

func NamespaceNEQ(v string) predicate.SourceName

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn added in v0.5.0

func NamespaceNotIn(vs ...string) predicate.SourceName

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.SourceName) predicate.SourceName

Or groups predicates with the OR operator between them.

func Tag

Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.

func TagContains

func TagContains(v string) predicate.SourceName

TagContains applies the Contains predicate on the "tag" field.

func TagContainsFold

func TagContainsFold(v string) predicate.SourceName

TagContainsFold applies the ContainsFold predicate on the "tag" field.

func TagEQ

func TagEQ(v string) predicate.SourceName

TagEQ applies the EQ predicate on the "tag" field.

func TagEqualFold

func TagEqualFold(v string) predicate.SourceName

TagEqualFold applies the EqualFold predicate on the "tag" field.

func TagGT

func TagGT(v string) predicate.SourceName

TagGT applies the GT predicate on the "tag" field.

func TagGTE

func TagGTE(v string) predicate.SourceName

TagGTE applies the GTE predicate on the "tag" field.

func TagHasPrefix

func TagHasPrefix(v string) predicate.SourceName

TagHasPrefix applies the HasPrefix predicate on the "tag" field.

func TagHasSuffix

func TagHasSuffix(v string) predicate.SourceName

TagHasSuffix applies the HasSuffix predicate on the "tag" field.

func TagIn

func TagIn(vs ...string) predicate.SourceName

TagIn applies the In predicate on the "tag" field.

func TagIsNil

func TagIsNil() predicate.SourceName

TagIsNil applies the IsNil predicate on the "tag" field.

func TagLT

func TagLT(v string) predicate.SourceName

TagLT applies the LT predicate on the "tag" field.

func TagLTE

func TagLTE(v string) predicate.SourceName

TagLTE applies the LTE predicate on the "tag" field.

func TagNEQ

func TagNEQ(v string) predicate.SourceName

TagNEQ applies the NEQ predicate on the "tag" field.

func TagNotIn

func TagNotIn(vs ...string) predicate.SourceName

TagNotIn applies the NotIn predicate on the "tag" field.

func TagNotNil

func TagNotNil() predicate.SourceName

TagNotNil applies the NotNil predicate on the "tag" field.

func Type added in v0.5.0

func Type(v string) predicate.SourceName

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains added in v0.5.0

func TypeContains(v string) predicate.SourceName

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold added in v0.5.0

func TypeContainsFold(v string) predicate.SourceName

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ added in v0.5.0

func TypeEQ(v string) predicate.SourceName

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold added in v0.5.0

func TypeEqualFold(v string) predicate.SourceName

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT added in v0.5.0

func TypeGT(v string) predicate.SourceName

TypeGT applies the GT predicate on the "type" field.

func TypeGTE added in v0.5.0

func TypeGTE(v string) predicate.SourceName

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix added in v0.5.0

func TypeHasPrefix(v string) predicate.SourceName

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix added in v0.5.0

func TypeHasSuffix(v string) predicate.SourceName

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn added in v0.5.0

func TypeIn(vs ...string) predicate.SourceName

TypeIn applies the In predicate on the "type" field.

func TypeLT added in v0.5.0

func TypeLT(v string) predicate.SourceName

TypeLT applies the LT predicate on the "type" field.

func TypeLTE added in v0.5.0

func TypeLTE(v string) predicate.SourceName

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ added in v0.5.0

func TypeNEQ(v string) predicate.SourceName

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn added in v0.5.0

func TypeNotIn(vs ...string) predicate.SourceName

TypeNotIn applies the NotIn predicate on the "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 SourceName queries.

func ByCertification added in v0.6.0

func ByCertification(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCertification orders the results by certification terms.

func ByCertificationCount added in v0.6.0

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

ByCertificationCount orders the results by certification count.

func ByCertifyLegal added in v0.6.0

func ByCertifyLegal(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCertifyLegal orders the results by certify_legal terms.

func ByCertifyLegalCount added in v0.6.0

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

ByCertifyLegalCount orders the results by certify_legal count.

func ByCommit

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

ByCommit orders the results by the commit field.

func ByHasSourceAt added in v0.6.0

func ByHasSourceAt(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByHasSourceAt orders the results by has_source_at terms.

func ByHasSourceAtCount added in v0.6.0

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

ByHasSourceAtCount orders the results by has_source_at count.

func ByID

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

ByID orders the results by the id field.

func ByMetadata added in v0.6.0

func ByMetadata(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMetadata orders the results by metadata terms.

func ByMetadataCount added in v0.6.0

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

ByMetadataCount orders the results by metadata count.

func ByName

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

ByName orders the results by the name field.

func ByNamespace added in v0.5.0

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

ByNamespace orders the results by the namespace field.

func ByOccurrences

func ByOccurrences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOccurrences orders the results by occurrences terms.

func ByOccurrencesCount

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

ByOccurrencesCount orders the results by occurrences count.

func ByPoc added in v0.6.0

func ByPoc(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPoc orders the results by poc terms.

func ByPocCount added in v0.6.0

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

ByPocCount orders the results by poc count.

func ByScorecard added in v0.6.0

func ByScorecard(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByScorecard orders the results by scorecard terms.

func ByScorecardCount added in v0.6.0

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

ByScorecardCount orders the results by scorecard count.

func ByTag

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

ByTag orders the results by the tag field.

func ByType added in v0.5.0

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

ByType orders the results by the type field.

Jump to

Keyboard shortcuts

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