antivirus

package
v0.0.0-...-481d7d6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the antivirus type in the database.
	Label = "antivirus"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIsActive holds the string denoting the is_active field in the database.
	FieldIsActive = "is_active"
	// FieldIsUpdated holds the string denoting the is_updated field in the database.
	FieldIsUpdated = "is_updated"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// AgentFieldID holds the string denoting the ID field of the Agent.
	AgentFieldID = "oid"
	// Table holds the table name of the antivirus in the database.
	Table = "antiviri"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "antiviri"
	// OwnerInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	OwnerInverseTable = "agents"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "agent_antivirus"
)

Variables

Columns holds all SQL columns for antivirus fields.

View Source
var ForeignKeys = []string{
	"agent_antivirus",
}

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

Functions

func And

func And(predicates ...predicate.Antivirus) predicate.Antivirus

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.Antivirus

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.Antivirus

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

func ID

func ID(id int) predicate.Antivirus

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Antivirus

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Antivirus

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Antivirus

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Antivirus

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Antivirus

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Antivirus

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.Antivirus

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.Antivirus

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.Antivirus

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func IsUpdated

func IsUpdated(v bool) predicate.Antivirus

IsUpdated applies equality check predicate on the "is_updated" field. It's identical to IsUpdatedEQ.

func IsUpdatedEQ

func IsUpdatedEQ(v bool) predicate.Antivirus

IsUpdatedEQ applies the EQ predicate on the "is_updated" field.

func IsUpdatedNEQ

func IsUpdatedNEQ(v bool) predicate.Antivirus

IsUpdatedNEQ applies the NEQ predicate on the "is_updated" field.

func Name

func Name(v string) predicate.Antivirus

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Antivirus

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Antivirus

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Antivirus

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Antivirus

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Antivirus

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Antivirus

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Antivirus

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Antivirus

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Antivirus

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Antivirus

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Antivirus

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Antivirus

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Antivirus

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Antivirus) predicate.Antivirus

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Antivirus queries.

func ByID

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

ByID orders the results by the id field.

func ByIsActive

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

ByIsActive orders the results by the is_active field.

func ByIsUpdated

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

ByIsUpdated orders the results by the is_updated field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

Jump to

Keyboard shortcuts

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