Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Severity) predicate.Severity
- func Color(v string) predicate.Severity
- func ColorContains(v string) predicate.Severity
- func ColorContainsFold(v string) predicate.Severity
- func ColorEQ(v string) predicate.Severity
- func ColorEqualFold(v string) predicate.Severity
- func ColorGT(v string) predicate.Severity
- func ColorGTE(v string) predicate.Severity
- func ColorHasPrefix(v string) predicate.Severity
- func ColorHasSuffix(v string) predicate.Severity
- func ColorIn(vs ...string) predicate.Severity
- func ColorIsNil() predicate.Severity
- func ColorLT(v string) predicate.Severity
- func ColorLTE(v string) predicate.Severity
- func ColorNEQ(v string) predicate.Severity
- func ColorNotIn(vs ...string) predicate.Severity
- func ColorNotNil() predicate.Severity
- func HasVulnerabilities() predicate.Severity
- func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.Severity
- func ID(id int) predicate.Severity
- func IDEQ(id int) predicate.Severity
- func IDGT(id int) predicate.Severity
- func IDGTE(id int) predicate.Severity
- func IDIn(ids ...int) predicate.Severity
- func IDLT(id int) predicate.Severity
- func IDLTE(id int) predicate.Severity
- func IDNEQ(id int) predicate.Severity
- func IDNotIn(ids ...int) predicate.Severity
- func LabelContains(v string) predicate.Severity
- func LabelContainsFold(v string) predicate.Severity
- func LabelEQ(v string) predicate.Severity
- func LabelEqualFold(v string) predicate.Severity
- func LabelGT(v string) predicate.Severity
- func LabelGTE(v string) predicate.Severity
- func LabelHasPrefix(v string) predicate.Severity
- func LabelHasSuffix(v string) predicate.Severity
- func LabelIn(vs ...string) predicate.Severity
- func LabelLT(v string) predicate.Severity
- func LabelLTE(v string) predicate.Severity
- func LabelNEQ(v string) predicate.Severity
- func LabelNotIn(vs ...string) predicate.Severity
- func Not(p predicate.Severity) predicate.Severity
- func Or(predicates ...predicate.Severity) predicate.Severity
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the severity type in the database. Label = "severity" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // EdgeVulnerabilities holds the string denoting the vulnerabilities edge name in mutations. EdgeVulnerabilities = "vulnerabilities" // Table holds the table name of the severity in the database. Table = "severities" // VulnerabilitiesTable is the table that holds the vulnerabilities relation/edge. VulnerabilitiesTable = "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 = "vulnerabilities" // VulnerabilitiesColumn is the table column denoting the vulnerabilities relation/edge. VulnerabilitiesColumn = "vulnerability_custom_severity" )
Variables ¶
var Columns = []string{ FieldID, FieldLabel, FieldColor, }
Columns holds all SQL columns for severity fields.
var ( // LabelValidator is a validator for the "label" field. It is called by the builders before save. LabelValidator func(string) error )
Functions ¶
func Color ¶
Color applies equality check predicate on the "color" field. It's identical to ColorEQ.
func ColorContains ¶
ColorContains applies the Contains predicate on the "color" field.
func ColorContainsFold ¶
ColorContainsFold applies the ContainsFold predicate on the "color" field.
func ColorEqualFold ¶
ColorEqualFold applies the EqualFold predicate on the "color" field.
func ColorHasPrefix ¶
ColorHasPrefix applies the HasPrefix predicate on the "color" field.
func ColorHasSuffix ¶
ColorHasSuffix applies the HasSuffix predicate on the "color" field.
func ColorIsNil ¶
ColorIsNil applies the IsNil predicate on the "color" field.
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" field.
func ColorNotNil ¶
ColorNotNil applies the NotNil predicate on the "color" field.
func HasVulnerabilities ¶
HasVulnerabilities applies the HasEdge predicate on the "vulnerabilities" edge.
func HasVulnerabilitiesWith ¶
func HasVulnerabilitiesWith(preds ...predicate.Vulnerability) predicate.Severity
HasVulnerabilitiesWith applies the HasEdge predicate on the "vulnerabilities" edge with a given conditions (other predicates).
func LabelContains ¶
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEqualFold ¶
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelHasPrefix ¶
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelNotIn ¶
LabelNotIn applies the NotIn predicate on the "label" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.