vulnstatus

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the vulnstatus type in the database.
	Label = "vuln_status"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldPkgName holds the string denoting the pkg_name field in the database.
	FieldPkgName = "pkg_name"
	// FieldPkgType holds the string denoting the pkg_type field in the database.
	FieldPkgType = "pkg_type"
	// FieldVulnID holds the string denoting the vuln_id field in the database.
	FieldVulnID = "vuln_id"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldComment holds the string denoting the comment field in the database.
	FieldComment = "comment"
	// EdgeAuthor holds the string denoting the author edge name in mutations.
	EdgeAuthor = "author"
	// Table holds the table name of the vulnstatus in the database.
	Table = "vuln_status"
	// AuthorTable is the table that holds the author relation/edge.
	AuthorTable = "vuln_status"
	// AuthorInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	AuthorInverseTable = "users"
	// AuthorColumn is the table column denoting the author relation/edge.
	AuthorColumn = "vuln_status_author"
)

Variables

Columns holds all SQL columns for vulnstatus fields.

View Source
var ForeignKeys = []string{
	"user_edited_status",
	"vuln_status_author",
	"vuln_status_index_status",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "vuln_status" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.VulnStatus) predicate.VulnStatus

And groups predicates with the AND operator between them.

func Comment

func Comment(v string) predicate.VulnStatus

Comment applies equality check predicate on the "comment" field. It's identical to CommentEQ.

func CommentContains

func CommentContains(v string) predicate.VulnStatus

CommentContains applies the Contains predicate on the "comment" field.

func CommentContainsFold

func CommentContainsFold(v string) predicate.VulnStatus

CommentContainsFold applies the ContainsFold predicate on the "comment" field.

func CommentEQ

func CommentEQ(v string) predicate.VulnStatus

CommentEQ applies the EQ predicate on the "comment" field.

func CommentEqualFold

func CommentEqualFold(v string) predicate.VulnStatus

CommentEqualFold applies the EqualFold predicate on the "comment" field.

func CommentGT

func CommentGT(v string) predicate.VulnStatus

CommentGT applies the GT predicate on the "comment" field.

func CommentGTE

func CommentGTE(v string) predicate.VulnStatus

CommentGTE applies the GTE predicate on the "comment" field.

func CommentHasPrefix

func CommentHasPrefix(v string) predicate.VulnStatus

CommentHasPrefix applies the HasPrefix predicate on the "comment" field.

func CommentHasSuffix

func CommentHasSuffix(v string) predicate.VulnStatus

CommentHasSuffix applies the HasSuffix predicate on the "comment" field.

func CommentIn

func CommentIn(vs ...string) predicate.VulnStatus

CommentIn applies the In predicate on the "comment" field.

func CommentLT

func CommentLT(v string) predicate.VulnStatus

CommentLT applies the LT predicate on the "comment" field.

func CommentLTE

func CommentLTE(v string) predicate.VulnStatus

CommentLTE applies the LTE predicate on the "comment" field.

func CommentNEQ

func CommentNEQ(v string) predicate.VulnStatus

CommentNEQ applies the NEQ predicate on the "comment" field.

func CommentNotIn

func CommentNotIn(vs ...string) predicate.VulnStatus

CommentNotIn applies the NotIn predicate on the "comment" field.

func CreatedAt

func CreatedAt(v int64) predicate.VulnStatus

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.VulnStatus

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v int64) predicate.VulnStatus

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.VulnStatus

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...int64) predicate.VulnStatus

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v int64) predicate.VulnStatus

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.VulnStatus

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.VulnStatus

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...int64) predicate.VulnStatus

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ExpiresAt

func ExpiresAt(v int64) predicate.VulnStatus

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v int64) predicate.VulnStatus

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v int64) predicate.VulnStatus

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v int64) predicate.VulnStatus

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...int64) predicate.VulnStatus

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v int64) predicate.VulnStatus

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v int64) predicate.VulnStatus

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v int64) predicate.VulnStatus

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...int64) predicate.VulnStatus

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func HasAuthor

func HasAuthor() predicate.VulnStatus

HasAuthor applies the HasEdge predicate on the "author" edge.

func HasAuthorWith

func HasAuthorWith(preds ...predicate.User) predicate.VulnStatus

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

func ID

func ID(id int) predicate.VulnStatus

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.VulnStatus

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.VulnStatus

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.VulnStatus

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.VulnStatus

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.VulnStatus

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.VulnStatus

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.VulnStatus) predicate.VulnStatus

Or groups predicates with the OR operator between them.

func PkgName

func PkgName(v string) predicate.VulnStatus

PkgName applies equality check predicate on the "pkg_name" field. It's identical to PkgNameEQ.

func PkgNameContains

func PkgNameContains(v string) predicate.VulnStatus

PkgNameContains applies the Contains predicate on the "pkg_name" field.

func PkgNameContainsFold

func PkgNameContainsFold(v string) predicate.VulnStatus

PkgNameContainsFold applies the ContainsFold predicate on the "pkg_name" field.

func PkgNameEQ

func PkgNameEQ(v string) predicate.VulnStatus

PkgNameEQ applies the EQ predicate on the "pkg_name" field.

func PkgNameEqualFold

func PkgNameEqualFold(v string) predicate.VulnStatus

PkgNameEqualFold applies the EqualFold predicate on the "pkg_name" field.

func PkgNameGT

func PkgNameGT(v string) predicate.VulnStatus

PkgNameGT applies the GT predicate on the "pkg_name" field.

func PkgNameGTE

func PkgNameGTE(v string) predicate.VulnStatus

PkgNameGTE applies the GTE predicate on the "pkg_name" field.

func PkgNameHasPrefix

func PkgNameHasPrefix(v string) predicate.VulnStatus

PkgNameHasPrefix applies the HasPrefix predicate on the "pkg_name" field.

func PkgNameHasSuffix

func PkgNameHasSuffix(v string) predicate.VulnStatus

PkgNameHasSuffix applies the HasSuffix predicate on the "pkg_name" field.

func PkgNameIn

func PkgNameIn(vs ...string) predicate.VulnStatus

PkgNameIn applies the In predicate on the "pkg_name" field.

func PkgNameLT

func PkgNameLT(v string) predicate.VulnStatus

PkgNameLT applies the LT predicate on the "pkg_name" field.

func PkgNameLTE

func PkgNameLTE(v string) predicate.VulnStatus

PkgNameLTE applies the LTE predicate on the "pkg_name" field.

func PkgNameNEQ

func PkgNameNEQ(v string) predicate.VulnStatus

PkgNameNEQ applies the NEQ predicate on the "pkg_name" field.

func PkgNameNotIn

func PkgNameNotIn(vs ...string) predicate.VulnStatus

PkgNameNotIn applies the NotIn predicate on the "pkg_name" field.

func PkgType

func PkgType(v string) predicate.VulnStatus

PkgType applies equality check predicate on the "pkg_type" field. It's identical to PkgTypeEQ.

func PkgTypeContains

func PkgTypeContains(v string) predicate.VulnStatus

PkgTypeContains applies the Contains predicate on the "pkg_type" field.

func PkgTypeContainsFold

func PkgTypeContainsFold(v string) predicate.VulnStatus

PkgTypeContainsFold applies the ContainsFold predicate on the "pkg_type" field.

func PkgTypeEQ

func PkgTypeEQ(v string) predicate.VulnStatus

PkgTypeEQ applies the EQ predicate on the "pkg_type" field.

func PkgTypeEqualFold

func PkgTypeEqualFold(v string) predicate.VulnStatus

PkgTypeEqualFold applies the EqualFold predicate on the "pkg_type" field.

func PkgTypeGT

func PkgTypeGT(v string) predicate.VulnStatus

PkgTypeGT applies the GT predicate on the "pkg_type" field.

func PkgTypeGTE

func PkgTypeGTE(v string) predicate.VulnStatus

PkgTypeGTE applies the GTE predicate on the "pkg_type" field.

func PkgTypeHasPrefix

func PkgTypeHasPrefix(v string) predicate.VulnStatus

PkgTypeHasPrefix applies the HasPrefix predicate on the "pkg_type" field.

func PkgTypeHasSuffix

func PkgTypeHasSuffix(v string) predicate.VulnStatus

PkgTypeHasSuffix applies the HasSuffix predicate on the "pkg_type" field.

func PkgTypeIn

func PkgTypeIn(vs ...string) predicate.VulnStatus

PkgTypeIn applies the In predicate on the "pkg_type" field.

func PkgTypeLT

func PkgTypeLT(v string) predicate.VulnStatus

PkgTypeLT applies the LT predicate on the "pkg_type" field.

func PkgTypeLTE

func PkgTypeLTE(v string) predicate.VulnStatus

PkgTypeLTE applies the LTE predicate on the "pkg_type" field.

func PkgTypeNEQ

func PkgTypeNEQ(v string) predicate.VulnStatus

PkgTypeNEQ applies the NEQ predicate on the "pkg_type" field.

func PkgTypeNotIn

func PkgTypeNotIn(vs ...string) predicate.VulnStatus

PkgTypeNotIn applies the NotIn predicate on the "pkg_type" field.

func Source

func Source(v string) predicate.VulnStatus

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.VulnStatus

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.VulnStatus

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.VulnStatus

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.VulnStatus

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.VulnStatus

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.VulnStatus

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.VulnStatus

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.VulnStatus

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

func SourceIn(vs ...string) predicate.VulnStatus

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.VulnStatus

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.VulnStatus

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.VulnStatus

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...string) predicate.VulnStatus

SourceNotIn applies the NotIn predicate on the "source" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...types.VulnStatusType) predicate.VulnStatus

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...types.VulnStatusType) predicate.VulnStatus

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s types.VulnStatusType) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

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

func VulnID

func VulnID(v string) predicate.VulnStatus

VulnID applies equality check predicate on the "vuln_id" field. It's identical to VulnIDEQ.

func VulnIDContains

func VulnIDContains(v string) predicate.VulnStatus

VulnIDContains applies the Contains predicate on the "vuln_id" field.

func VulnIDContainsFold

func VulnIDContainsFold(v string) predicate.VulnStatus

VulnIDContainsFold applies the ContainsFold predicate on the "vuln_id" field.

func VulnIDEQ

func VulnIDEQ(v string) predicate.VulnStatus

VulnIDEQ applies the EQ predicate on the "vuln_id" field.

func VulnIDEqualFold

func VulnIDEqualFold(v string) predicate.VulnStatus

VulnIDEqualFold applies the EqualFold predicate on the "vuln_id" field.

func VulnIDGT

func VulnIDGT(v string) predicate.VulnStatus

VulnIDGT applies the GT predicate on the "vuln_id" field.

func VulnIDGTE

func VulnIDGTE(v string) predicate.VulnStatus

VulnIDGTE applies the GTE predicate on the "vuln_id" field.

func VulnIDHasPrefix

func VulnIDHasPrefix(v string) predicate.VulnStatus

VulnIDHasPrefix applies the HasPrefix predicate on the "vuln_id" field.

func VulnIDHasSuffix

func VulnIDHasSuffix(v string) predicate.VulnStatus

VulnIDHasSuffix applies the HasSuffix predicate on the "vuln_id" field.

func VulnIDIn

func VulnIDIn(vs ...string) predicate.VulnStatus

VulnIDIn applies the In predicate on the "vuln_id" field.

func VulnIDLT

func VulnIDLT(v string) predicate.VulnStatus

VulnIDLT applies the LT predicate on the "vuln_id" field.

func VulnIDLTE

func VulnIDLTE(v string) predicate.VulnStatus

VulnIDLTE applies the LTE predicate on the "vuln_id" field.

func VulnIDNEQ

func VulnIDNEQ(v string) predicate.VulnStatus

VulnIDNEQ applies the NEQ predicate on the "vuln_id" field.

func VulnIDNotIn

func VulnIDNotIn(vs ...string) predicate.VulnStatus

VulnIDNotIn applies the NotIn predicate on the "vuln_id" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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