Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ReleaseComponent) predicate.ReleaseComponent
- func HasComponent() predicate.ReleaseComponent
- func HasComponentWith(preds ...predicate.Component) predicate.ReleaseComponent
- func HasLicenses() predicate.ReleaseComponent
- func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.ReleaseComponent
- func HasRelease() predicate.ReleaseComponent
- func HasReleaseWith(preds ...predicate.Release) predicate.ReleaseComponent
- func HasScans() predicate.ReleaseComponent
- func HasScansWith(preds ...predicate.CodeScan) predicate.ReleaseComponent
- func HasVulnerabilities() predicate.ReleaseComponent
- func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.ReleaseComponent
- func ID(id int) predicate.ReleaseComponent
- func IDEQ(id int) predicate.ReleaseComponent
- func IDGT(id int) predicate.ReleaseComponent
- func IDGTE(id int) predicate.ReleaseComponent
- func IDIn(ids ...int) predicate.ReleaseComponent
- func IDLT(id int) predicate.ReleaseComponent
- func IDLTE(id int) predicate.ReleaseComponent
- func IDNEQ(id int) predicate.ReleaseComponent
- func IDNotIn(ids ...int) predicate.ReleaseComponent
- func Not(p predicate.ReleaseComponent) predicate.ReleaseComponent
- func Or(predicates ...predicate.ReleaseComponent) predicate.ReleaseComponent
- func TypeEQ(v Type) predicate.ReleaseComponent
- func TypeIn(vs ...Type) predicate.ReleaseComponent
- func TypeNEQ(v Type) predicate.ReleaseComponent
- func TypeNotIn(vs ...Type) predicate.ReleaseComponent
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
const ( // Label holds the string label denoting the releasecomponent type in the database. Label = "release_component" // 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" // EdgeRelease holds the string denoting the release edge name in mutations. EdgeRelease = "release" // EdgeScans holds the string denoting the scans edge name in mutations. EdgeScans = "scans" // EdgeComponent holds the string denoting the component edge name in mutations. EdgeComponent = "component" // 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" // Table holds the table name of the releasecomponent in the database. Table = "release_component" // ReleaseTable is the table that holds the release relation/edge. ReleaseTable = "release_component" // ReleaseInverseTable is the table name for the Release entity. // It exists in this package in order to avoid circular dependency with the "release" package. ReleaseInverseTable = "release" // ReleaseColumn is the table column denoting the release relation/edge. ReleaseColumn = "release_component_release" // ScansTable is the table that holds the scans relation/edge. The primary key declared below. ScansTable = "release_component_scans" // ScansInverseTable is the table name for the CodeScan entity. // It exists in this package in order to avoid circular dependency with the "codescan" package. ScansInverseTable = "code_scan" // ComponentTable is the table that holds the component relation/edge. ComponentTable = "release_component" // ComponentInverseTable is the table name for the Component entity. // It exists in this package in order to avoid circular dependency with the "component" package. ComponentInverseTable = "component" // ComponentColumn is the table column denoting the component relation/edge. ComponentColumn = "release_component_component" // VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge. VulnerabilitiesTable = "release_vulnerability" // VulnerabilitiesInverseTable is the table name for the ReleaseVulnerability entity. // It exists in this package in order to avoid circular dependency with the "releasevulnerability" package. VulnerabilitiesInverseTable = "release_vulnerability" // VulnerabilitiesColumn is the table column denoting the vulnerabilities relation/edge. VulnerabilitiesColumn = "release_vulnerability_component" // LicensesTable is the table that holds the licenses relation/edge. LicensesTable = "release_license" // LicensesInverseTable is the table name for the ReleaseLicense entity. // It exists in this package in order to avoid circular dependency with the "releaselicense" package. LicensesInverseTable = "release_license" // LicensesColumn is the table column denoting the licenses relation/edge. LicensesColumn = "release_license_component" )
const DefaultType = TypeEmbedded
TypeEmbedded is the default value of the Type enum.
Variables ¶
var Columns = []string{ FieldID, FieldType, }
Columns holds all SQL columns for releasecomponent fields.
var ForeignKeys = []string{
"release_component_release",
"release_component_component",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "release_component" table and are not defined as standalone fields in the schema.
var (
Hooks [1]ent.Hook
)
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/valocode/bubbly/ent/runtime"
var ( // ScansPrimaryKey and ScansColumn2 are the table columns denoting the // primary key for the scans relation (M2M). ScansPrimaryKey = []string{"release_component_id", "code_scan_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.ReleaseComponent) predicate.ReleaseComponent
And groups predicates with the AND operator between them.
func HasComponent ¶
func HasComponent() predicate.ReleaseComponent
HasComponent applies the HasEdge predicate on the "component" edge.
func HasComponentWith ¶
func HasComponentWith(preds ...predicate.Component) predicate.ReleaseComponent
HasComponentWith applies the HasEdge predicate on the "component" edge with a given conditions (other predicates).
func HasLicenses ¶
func HasLicenses() predicate.ReleaseComponent
HasLicenses applies the HasEdge predicate on the "licenses" edge.
func HasLicensesWith ¶
func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.ReleaseComponent
HasLicensesWith applies the HasEdge predicate on the "licenses" edge with a given conditions (other predicates).
func HasRelease ¶
func HasRelease() predicate.ReleaseComponent
HasRelease applies the HasEdge predicate on the "release" edge.
func HasReleaseWith ¶
func HasReleaseWith(preds ...predicate.Release) predicate.ReleaseComponent
HasReleaseWith applies the HasEdge predicate on the "release" edge with a given conditions (other predicates).
func HasScans ¶
func HasScans() predicate.ReleaseComponent
HasScans applies the HasEdge predicate on the "scans" edge.
func HasScansWith ¶
func HasScansWith(preds ...predicate.CodeScan) predicate.ReleaseComponent
HasScansWith applies the HasEdge predicate on the "scans" edge with a given conditions (other predicates).
func HasVulnerabilities ¶
func HasVulnerabilities() predicate.ReleaseComponent
HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.
func HasVulnerabilitiesWith ¶
func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.ReleaseComponent
HasVulnerabilitiesWith applies the HasEdge predicate on the "vulnerabilities" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.ReleaseComponent
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.ReleaseComponent
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.ReleaseComponent
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.ReleaseComponent
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.ReleaseComponent
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.ReleaseComponent
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.ReleaseComponent
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.ReleaseComponent
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ReleaseComponent) predicate.ReleaseComponent
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ReleaseComponent) predicate.ReleaseComponent
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v Type) predicate.ReleaseComponent
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.ReleaseComponent
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.ReleaseComponent
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.ReleaseComponent
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Type ¶
type Type string
Type defines the type for the "type" enum field.
const ( TypeEmbedded Type = "embedded" TypeDistributed Type = "distributed" TypeDevelopment Type = "development" )
Type values.
func (Type) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.