severity

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for severity fields.

View Source
var (
	// LabelValidator is a validator for the "label" field. It is called by the builders before save.
	LabelValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Severity) predicate.Severity

And groups predicates with the AND operator between them.

func Color

func Color(v string) predicate.Severity

Color applies equality check predicate on the "color" field. It's identical to ColorEQ.

func ColorContains

func ColorContains(v string) predicate.Severity

ColorContains applies the Contains predicate on the "color" field.

func ColorContainsFold

func ColorContainsFold(v string) predicate.Severity

ColorContainsFold applies the ContainsFold predicate on the "color" field.

func ColorEQ

func ColorEQ(v string) predicate.Severity

ColorEQ applies the EQ predicate on the "color" field.

func ColorEqualFold

func ColorEqualFold(v string) predicate.Severity

ColorEqualFold applies the EqualFold predicate on the "color" field.

func ColorGT

func ColorGT(v string) predicate.Severity

ColorGT applies the GT predicate on the "color" field.

func ColorGTE

func ColorGTE(v string) predicate.Severity

ColorGTE applies the GTE predicate on the "color" field.

func ColorHasPrefix

func ColorHasPrefix(v string) predicate.Severity

ColorHasPrefix applies the HasPrefix predicate on the "color" field.

func ColorHasSuffix

func ColorHasSuffix(v string) predicate.Severity

ColorHasSuffix applies the HasSuffix predicate on the "color" field.

func ColorIn

func ColorIn(vs ...string) predicate.Severity

ColorIn applies the In predicate on the "color" field.

func ColorIsNil

func ColorIsNil() predicate.Severity

ColorIsNil applies the IsNil predicate on the "color" field.

func ColorLT

func ColorLT(v string) predicate.Severity

ColorLT applies the LT predicate on the "color" field.

func ColorLTE

func ColorLTE(v string) predicate.Severity

ColorLTE applies the LTE predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v string) predicate.Severity

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...string) predicate.Severity

ColorNotIn applies the NotIn predicate on the "color" field.

func ColorNotNil

func ColorNotNil() predicate.Severity

ColorNotNil applies the NotNil predicate on the "color" field.

func HasVulnerabilities

func HasVulnerabilities() predicate.Severity

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 ID

func ID(id int) predicate.Severity

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Severity

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Severity

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Severity

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Severity

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Severity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Severity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelContains

func LabelContains(v string) predicate.Severity

LabelContains applies the Contains predicate on the "label" field.

func LabelContainsFold

func LabelContainsFold(v string) predicate.Severity

LabelContainsFold applies the ContainsFold predicate on the "label" field.

func LabelEQ

func LabelEQ(v string) predicate.Severity

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

func LabelEqualFold(v string) predicate.Severity

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

func LabelGT(v string) predicate.Severity

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

func LabelGTE(v string) predicate.Severity

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

func LabelHasPrefix(v string) predicate.Severity

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

func LabelHasSuffix(v string) predicate.Severity

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

func LabelIn(vs ...string) predicate.Severity

LabelIn applies the In predicate on the "label" field.

func LabelLT

func LabelLT(v string) predicate.Severity

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

func LabelLTE(v string) predicate.Severity

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

func LabelNEQ(v string) predicate.Severity

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

func LabelNotIn(vs ...string) predicate.Severity

LabelNotIn applies the NotIn predicate on the "label" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Severity) predicate.Severity

Or groups predicates with the OR operator between them.

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