component

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the component type in the database.
	Label = "component"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldScheme holds the string denoting the scheme field in the database.
	FieldScheme = "scheme"
	// 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"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldLabels holds the string denoting the labels field in the database.
	FieldLabels = "labels"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeVulnerabilities holds the string denoting the vulnerabilities edge name in mutations.
	EdgeVulnerabilities = "vulnerabilities"
	// EdgeLicenses holds the string denoting the licenses edge name in mutations.
	EdgeLicenses = "licenses"
	// EdgeUses holds the string denoting the uses edge name in mutations.
	EdgeUses = "uses"
	// Table holds the table name of the component in the database.
	Table = "component"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "component"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organization"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "component_owner"
	// VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge. The primary key declared below.
	VulnerabilitiesTable = "component_vulnerabilities"
	// VulnerabilitiesInverseTable is the table name for the Vulnerability entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerability" package.
	VulnerabilitiesInverseTable = "vulnerability"
	// LicensesTable is the table that holds the licenses relation/edge. The primary key declared below.
	LicensesTable = "component_licenses"
	// LicensesInverseTable is the table name for the License entity.
	// It exists in this package in order to avoid circular dependency with the "license" package.
	LicensesInverseTable = "license"
	// UsesTable is the table that holds the uses relation/edge.
	UsesTable = "release_component"
	// UsesInverseTable is the table name for the ReleaseComponent entity.
	// It exists in this package in order to avoid circular dependency with the "releasecomponent" package.
	UsesInverseTable = "release_component"
	// UsesColumn is the table column denoting the uses relation/edge.
	UsesColumn = "release_component_component"
)

Variables

View Source
var (
	// VulnerabilitiesPrimaryKey and VulnerabilitiesColumn2 are the table columns denoting the
	// primary key for the vulnerabilities relation (M2M).
	VulnerabilitiesPrimaryKey = []string{"component_id", "vulnerability_id"}
	// LicensesPrimaryKey and LicensesColumn2 are the table columns denoting the
	// primary key for the licenses relation (M2M).
	LicensesPrimaryKey = []string{"component_id", "license_id"}
)
View Source
var (
	// SchemeValidator is a validator for the "scheme" field. It is called by the builders before save.
	SchemeValidator func(string) error
	// DefaultNamespace holds the default value on creation for the "namespace" field.
	DefaultNamespace string
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(string) error
)

Columns holds all SQL columns for component fields.

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

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

Functions

func And

func And(predicates ...predicate.Component) predicate.Component

And groups predicates with the AND operator between them.

func Description

func Description(v string) predicate.Component

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Component

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Component

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Component

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Component

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Component

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Component

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Component

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Component

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Component

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Component

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Component

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Component

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Component

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Component

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Component

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasLicenses

func HasLicenses() predicate.Component

HasLicenses applies the HasEdge predicate on the "licenses" edge.

func HasLicensesWith

func HasLicensesWith(preds ...predicate.License) predicate.Component

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

func HasOwner

func HasOwner() predicate.Component

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Component

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

func HasUses

func HasUses() predicate.Component

HasUses applies the HasEdge predicate on the "uses" edge.

func HasUsesWith

func HasUsesWith(preds ...predicate.ReleaseComponent) predicate.Component

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

func HasVulnerabilities

func HasVulnerabilities() predicate.Component

HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.

func HasVulnerabilitiesWith

func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.Component

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

func ID

func ID(id int) predicate.Component

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Component

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Component

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Component

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Component

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Component

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Component

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Component

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsNotNil

func LabelsNotNil() predicate.Component

LabelsNotNil applies the NotNil predicate on the "labels" field.

func MetadataIsNil

func MetadataIsNil() predicate.Component

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Component

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Component

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

func NameContains

func NameContains(v string) predicate.Component

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

func NameContainsFold

func NameContainsFold(v string) predicate.Component

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

func NameEQ

func NameEQ(v string) predicate.Component

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

func NameEqualFold

func NameEqualFold(v string) predicate.Component

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

func NameGT

func NameGT(v string) predicate.Component

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

func NameGTE

func NameGTE(v string) predicate.Component

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Component

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Component

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Component

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

func NameLTE

func NameLTE(v string) predicate.Component

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

func NameNEQ

func NameNEQ(v string) predicate.Component

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

func NameNotIn

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

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

func Namespace

func Namespace(v string) predicate.Component

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

func NamespaceContains

func NamespaceContains(v string) predicate.Component

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

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Component

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

func NamespaceEQ

func NamespaceEQ(v string) predicate.Component

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

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Component

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

func NamespaceGT

func NamespaceGT(v string) predicate.Component

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

func NamespaceGTE

func NamespaceGTE(v string) predicate.Component

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

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Component

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

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Component

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

func NamespaceIn

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

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

func NamespaceLT

func NamespaceLT(v string) predicate.Component

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

func NamespaceLTE

func NamespaceLTE(v string) predicate.Component

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

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Component

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

func NamespaceNotIn

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

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

Or groups predicates with the OR operator between them.

func Scheme

func Scheme(v string) predicate.Component

Scheme applies equality check predicate on the "scheme" field. It's identical to SchemeEQ.

func SchemeContains

func SchemeContains(v string) predicate.Component

SchemeContains applies the Contains predicate on the "scheme" field.

func SchemeContainsFold

func SchemeContainsFold(v string) predicate.Component

SchemeContainsFold applies the ContainsFold predicate on the "scheme" field.

func SchemeEQ

func SchemeEQ(v string) predicate.Component

SchemeEQ applies the EQ predicate on the "scheme" field.

func SchemeEqualFold

func SchemeEqualFold(v string) predicate.Component

SchemeEqualFold applies the EqualFold predicate on the "scheme" field.

func SchemeGT

func SchemeGT(v string) predicate.Component

SchemeGT applies the GT predicate on the "scheme" field.

func SchemeGTE

func SchemeGTE(v string) predicate.Component

SchemeGTE applies the GTE predicate on the "scheme" field.

func SchemeHasPrefix

func SchemeHasPrefix(v string) predicate.Component

SchemeHasPrefix applies the HasPrefix predicate on the "scheme" field.

func SchemeHasSuffix

func SchemeHasSuffix(v string) predicate.Component

SchemeHasSuffix applies the HasSuffix predicate on the "scheme" field.

func SchemeIn

func SchemeIn(vs ...string) predicate.Component

SchemeIn applies the In predicate on the "scheme" field.

func SchemeLT

func SchemeLT(v string) predicate.Component

SchemeLT applies the LT predicate on the "scheme" field.

func SchemeLTE

func SchemeLTE(v string) predicate.Component

SchemeLTE applies the LTE predicate on the "scheme" field.

func SchemeNEQ

func SchemeNEQ(v string) predicate.Component

SchemeNEQ applies the NEQ predicate on the "scheme" field.

func SchemeNotIn

func SchemeNotIn(vs ...string) predicate.Component

SchemeNotIn applies the NotIn predicate on the "scheme" field.

func URL

func URL(v string) predicate.Component

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Component

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Component

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Component

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Component

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Component

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Component

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Component

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Component

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Component

URLIn applies the In predicate on the "url" field.

func URLIsNil

func URLIsNil() predicate.Component

URLIsNil applies the IsNil predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Component

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Component

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Component

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Component

URLNotIn applies the NotIn predicate on the "url" field.

func URLNotNil

func URLNotNil() predicate.Component

URLNotNil applies the NotNil predicate on the "url" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v string) predicate.Component

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Component

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Component

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Component

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Component

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Component

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Component

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Component

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Component

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Component

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Component

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Component

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Component

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Component

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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