Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CodeScan) predicate.CodeScan
- func HasComponents() predicate.CodeScan
- func HasComponentsWith(preds ...predicate.ReleaseComponent) predicate.CodeScan
- func HasEntry() predicate.CodeScan
- func HasEntryWith(preds ...predicate.ReleaseEntry) predicate.CodeScan
- func HasIssues() predicate.CodeScan
- func HasIssuesWith(preds ...predicate.CodeIssue) predicate.CodeScan
- func HasLicenses() predicate.CodeScan
- func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.CodeScan
- func HasRelease() predicate.CodeScan
- func HasReleaseWith(preds ...predicate.Release) predicate.CodeScan
- func HasVulnerabilities() predicate.CodeScan
- func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.CodeScan
- func ID(id int) predicate.CodeScan
- func IDEQ(id int) predicate.CodeScan
- func IDGT(id int) predicate.CodeScan
- func IDGTE(id int) predicate.CodeScan
- func IDIn(ids ...int) predicate.CodeScan
- func IDLT(id int) predicate.CodeScan
- func IDLTE(id int) predicate.CodeScan
- func IDNEQ(id int) predicate.CodeScan
- func IDNotIn(ids ...int) predicate.CodeScan
- func MetadataIsNil() predicate.CodeScan
- func MetadataNotNil() predicate.CodeScan
- func Not(p predicate.CodeScan) predicate.CodeScan
- func Or(predicates ...predicate.CodeScan) predicate.CodeScan
- func Time(v time.Time) predicate.CodeScan
- func TimeEQ(v time.Time) predicate.CodeScan
- func TimeGT(v time.Time) predicate.CodeScan
- func TimeGTE(v time.Time) predicate.CodeScan
- func TimeIn(vs ...time.Time) predicate.CodeScan
- func TimeLT(v time.Time) predicate.CodeScan
- func TimeLTE(v time.Time) predicate.CodeScan
- func TimeNEQ(v time.Time) predicate.CodeScan
- func TimeNotIn(vs ...time.Time) predicate.CodeScan
- func Tool(v string) predicate.CodeScan
- func ToolContains(v string) predicate.CodeScan
- func ToolContainsFold(v string) predicate.CodeScan
- func ToolEQ(v string) predicate.CodeScan
- func ToolEqualFold(v string) predicate.CodeScan
- func ToolGT(v string) predicate.CodeScan
- func ToolGTE(v string) predicate.CodeScan
- func ToolHasPrefix(v string) predicate.CodeScan
- func ToolHasSuffix(v string) predicate.CodeScan
- func ToolIn(vs ...string) predicate.CodeScan
- func ToolLT(v string) predicate.CodeScan
- func ToolLTE(v string) predicate.CodeScan
- func ToolNEQ(v string) predicate.CodeScan
- func ToolNotIn(vs ...string) predicate.CodeScan
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the codescan type in the database. Label = "code_scan" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTool holds the string denoting the tool field in the database. FieldTool = "tool" // FieldTime holds the string denoting the time field in the database. FieldTime = "time" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeRelease holds the string denoting the release edge name in mutations. EdgeRelease = "release" // EdgeEntry holds the string denoting the entry edge name in mutations. EdgeEntry = "entry" // EdgeIssues holds the string denoting the issues edge name in mutations. EdgeIssues = "issues" // 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" // EdgeComponents holds the string denoting the components edge name in mutations. EdgeComponents = "components" // Table holds the table name of the codescan in the database. Table = "code_scan" // ReleaseTable is the table that holds the release relation/edge. ReleaseTable = "code_scan" // 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 = "code_scan_release" // EntryTable is the table that holds the entry relation/edge. EntryTable = "code_scan" // EntryInverseTable is the table name for the ReleaseEntry entity. // It exists in this package in order to avoid circular dependency with the "releaseentry" package. EntryInverseTable = "release_entry" // EntryColumn is the table column denoting the entry relation/edge. EntryColumn = "release_entry_code_scan" // IssuesTable is the table that holds the issues relation/edge. IssuesTable = "code_issue" // IssuesInverseTable is the table name for the CodeIssue entity. // It exists in this package in order to avoid circular dependency with the "codeissue" package. IssuesInverseTable = "code_issue" // IssuesColumn is the table column denoting the issues relation/edge. IssuesColumn = "code_issue_scan" // 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_scan" // LicensesTable is the table that holds the licenses relation/edge. The primary key declared below. LicensesTable = "release_license_scans" // 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" // ComponentsTable is the table that holds the components relation/edge. The primary key declared below. ComponentsTable = "release_component_scans" // ComponentsInverseTable is the table name for the ReleaseComponent entity. // It exists in this package in order to avoid circular dependency with the "releasecomponent" package. ComponentsInverseTable = "release_component" )
Variables ¶
var ( // LicensesPrimaryKey and LicensesColumn2 are the table columns denoting the // primary key for the licenses relation (M2M). LicensesPrimaryKey = []string{"release_license_id", "code_scan_id"} // ComponentsPrimaryKey and ComponentsColumn2 are the table columns denoting the // primary key for the components relation (M2M). ComponentsPrimaryKey = []string{"release_component_id", "code_scan_id"} )
var ( Hooks [1]ent.Hook // ToolValidator is a validator for the "tool" field. It is called by the builders before save. ToolValidator func(string) error // DefaultTime holds the default value on creation for the "time" field. DefaultTime func() time.Time )
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 Columns = []string{ FieldID, FieldTool, FieldTime, FieldMetadata, }
Columns holds all SQL columns for codescan fields.
var ForeignKeys = []string{
"code_scan_release",
"release_entry_code_scan",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "code_scan" table and are not defined as standalone fields in the schema.
Functions ¶
func HasComponents ¶
HasComponents applies the HasEdge predicate on the "components" edge.
func HasComponentsWith ¶
func HasComponentsWith(preds ...predicate.ReleaseComponent) predicate.CodeScan
HasComponentsWith applies the HasEdge predicate on the "components" edge with a given conditions (other predicates).
func HasEntryWith ¶
func HasEntryWith(preds ...predicate.ReleaseEntry) predicate.CodeScan
HasEntryWith applies the HasEdge predicate on the "entry" edge with a given conditions (other predicates).
func HasIssuesWith ¶
HasIssuesWith applies the HasEdge predicate on the "issues" edge with a given conditions (other predicates).
func HasLicenses ¶
HasLicenses applies the HasEdge predicate on the "licenses" edge.
func HasLicensesWith ¶
func HasLicensesWith(preds ...predicate.ReleaseLicense) predicate.CodeScan
HasLicensesWith applies the HasEdge predicate on the "licenses" edge with a given conditions (other predicates).
func HasRelease ¶
HasRelease applies the HasEdge predicate on the "release" edge.
func HasReleaseWith ¶
HasReleaseWith applies the HasEdge predicate on the "release" edge with a given conditions (other predicates).
func HasVulnerabilities ¶
HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.
func HasVulnerabilitiesWith ¶
func HasVulnerabilitiesWith(preds ...predicate.ReleaseVulnerability) predicate.CodeScan
HasVulnerabilitiesWith applies the HasEdge predicate on the "vulnerabilities" edge with a given conditions (other predicates).
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func ToolContains ¶
ToolContains applies the Contains predicate on the "tool" field.
func ToolContainsFold ¶
ToolContainsFold applies the ContainsFold predicate on the "tool" field.
func ToolEqualFold ¶
ToolEqualFold applies the EqualFold predicate on the "tool" field.
func ToolHasPrefix ¶
ToolHasPrefix applies the HasPrefix predicate on the "tool" field.
func ToolHasSuffix ¶
ToolHasSuffix applies the HasSuffix predicate on the "tool" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.