vulnerabilitytype

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the vulnerabilitytype type in the database.
	Label = "vulnerability_type"
	// 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"
	// EdgeVulnerabilityIds holds the string denoting the vulnerability_ids edge name in mutations.
	EdgeVulnerabilityIds = "vulnerability_ids"
	// Table holds the table name of the vulnerabilitytype in the database.
	Table = "vulnerability_types"
	// VulnerabilityIdsTable is the table that holds the vulnerability_ids relation/edge.
	VulnerabilityIdsTable = "vulnerability_ids"
	// VulnerabilityIdsInverseTable is the table name for the VulnerabilityID entity.
	// It exists in this package in order to avoid circular dependency with the "vulnerabilityid" package.
	VulnerabilityIdsInverseTable = "vulnerability_ids"
	// VulnerabilityIdsColumn is the table column denoting the vulnerability_ids relation/edge.
	VulnerabilityIdsColumn = "type_id"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldType,
}

Columns holds all SQL columns for vulnerabilitytype fields.

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

Functions

func And

And groups predicates with the AND operator between them.

func HasVulnerabilityIds

func HasVulnerabilityIds() predicate.VulnerabilityType

HasVulnerabilityIds applies the HasEdge predicate on the "vulnerability_ids" edge.

func HasVulnerabilityIdsWith

func HasVulnerabilityIdsWith(preds ...predicate.VulnerabilityID) predicate.VulnerabilityType

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Type

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.VulnerabilityType

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.VulnerabilityType

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.VulnerabilityType

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.VulnerabilityType

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.VulnerabilityType

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.VulnerabilityType

TypeIn applies the In predicate on the "type" field.

func TypeLT

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.VulnerabilityType

TypeNotIn applies the NotIn predicate on the "type" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the VulnerabilityType queries.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByVulnerabilityIds

func ByVulnerabilityIds(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVulnerabilityIds orders the results by vulnerability_ids terms.

func ByVulnerabilityIdsCount

func ByVulnerabilityIdsCount(opts ...sql.OrderTermOption) OrderOption

ByVulnerabilityIdsCount orders the results by vulnerability_ids count.

Jump to

Keyboard shortcuts

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