codescan

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"}
)
View Source
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"

Columns holds all SQL columns for codescan fields.

View Source
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 And

func And(predicates ...predicate.CodeScan) predicate.CodeScan

And groups predicates with the AND operator between them.

func HasComponents

func HasComponents() predicate.CodeScan

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 HasEntry

func HasEntry() predicate.CodeScan

HasEntry applies the HasEdge predicate on the "entry" edge.

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 HasIssues

func HasIssues() predicate.CodeScan

HasIssues applies the HasEdge predicate on the "issues" edge.

func HasIssuesWith

func HasIssuesWith(preds ...predicate.CodeIssue) predicate.CodeScan

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

func HasLicenses

func HasLicenses() predicate.CodeScan

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

func HasRelease() predicate.CodeScan

HasRelease applies the HasEdge predicate on the "release" edge.

func HasReleaseWith

func HasReleaseWith(preds ...predicate.Release) predicate.CodeScan

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

func HasVulnerabilities

func HasVulnerabilities() predicate.CodeScan

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 ID

func ID(id int) predicate.CodeScan

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CodeScan

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CodeScan

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CodeScan

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CodeScan

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CodeScan

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CodeScan

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.CodeScan

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

func MetadataNotNil

func MetadataNotNil() predicate.CodeScan

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CodeScan) predicate.CodeScan

Or groups predicates with the OR operator between them.

func Time

func Time(v time.Time) predicate.CodeScan

Time applies equality check predicate on the "time" field. It's identical to TimeEQ.

func TimeEQ

func TimeEQ(v time.Time) predicate.CodeScan

TimeEQ applies the EQ predicate on the "time" field.

func TimeGT

func TimeGT(v time.Time) predicate.CodeScan

TimeGT applies the GT predicate on the "time" field.

func TimeGTE

func TimeGTE(v time.Time) predicate.CodeScan

TimeGTE applies the GTE predicate on the "time" field.

func TimeIn

func TimeIn(vs ...time.Time) predicate.CodeScan

TimeIn applies the In predicate on the "time" field.

func TimeLT

func TimeLT(v time.Time) predicate.CodeScan

TimeLT applies the LT predicate on the "time" field.

func TimeLTE

func TimeLTE(v time.Time) predicate.CodeScan

TimeLTE applies the LTE predicate on the "time" field.

func TimeNEQ

func TimeNEQ(v time.Time) predicate.CodeScan

TimeNEQ applies the NEQ predicate on the "time" field.

func TimeNotIn

func TimeNotIn(vs ...time.Time) predicate.CodeScan

TimeNotIn applies the NotIn predicate on the "time" field.

func Tool

func Tool(v string) predicate.CodeScan

Tool applies equality check predicate on the "tool" field. It's identical to ToolEQ.

func ToolContains

func ToolContains(v string) predicate.CodeScan

ToolContains applies the Contains predicate on the "tool" field.

func ToolContainsFold

func ToolContainsFold(v string) predicate.CodeScan

ToolContainsFold applies the ContainsFold predicate on the "tool" field.

func ToolEQ

func ToolEQ(v string) predicate.CodeScan

ToolEQ applies the EQ predicate on the "tool" field.

func ToolEqualFold

func ToolEqualFold(v string) predicate.CodeScan

ToolEqualFold applies the EqualFold predicate on the "tool" field.

func ToolGT

func ToolGT(v string) predicate.CodeScan

ToolGT applies the GT predicate on the "tool" field.

func ToolGTE

func ToolGTE(v string) predicate.CodeScan

ToolGTE applies the GTE predicate on the "tool" field.

func ToolHasPrefix

func ToolHasPrefix(v string) predicate.CodeScan

ToolHasPrefix applies the HasPrefix predicate on the "tool" field.

func ToolHasSuffix

func ToolHasSuffix(v string) predicate.CodeScan

ToolHasSuffix applies the HasSuffix predicate on the "tool" field.

func ToolIn

func ToolIn(vs ...string) predicate.CodeScan

ToolIn applies the In predicate on the "tool" field.

func ToolLT

func ToolLT(v string) predicate.CodeScan

ToolLT applies the LT predicate on the "tool" field.

func ToolLTE

func ToolLTE(v string) predicate.CodeScan

ToolLTE applies the LTE predicate on the "tool" field.

func ToolNEQ

func ToolNEQ(v string) predicate.CodeScan

ToolNEQ applies the NEQ predicate on the "tool" field.

func ToolNotIn

func ToolNotIn(vs ...string) predicate.CodeScan

ToolNotIn applies the NotIn predicate on the "tool" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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