beacon

package
v0.0.0-...-2b4f063 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the beacon type in the database.
	Label = "beacon"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldBid holds the string denoting the bid field in the database.
	FieldBid = "bid"
	// FieldListenerID holds the string denoting the listener_id field in the database.
	FieldListenerID = "listener_id"
	// FieldExtIP holds the string denoting the ext_ip field in the database.
	FieldExtIP = "ext_ip"
	// FieldIntIP holds the string denoting the int_ip field in the database.
	FieldIntIP = "int_ip"
	// FieldOs holds the string denoting the os field in the database.
	FieldOs = "os"
	// FieldOsMeta holds the string denoting the os_meta field in the database.
	FieldOsMeta = "os_meta"
	// FieldHostname holds the string denoting the hostname field in the database.
	FieldHostname = "hostname"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// FieldPrivileged holds the string denoting the privileged field in the database.
	FieldPrivileged = "privileged"
	// FieldProcessName holds the string denoting the process_name field in the database.
	FieldProcessName = "process_name"
	// FieldPid holds the string denoting the pid field in the database.
	FieldPid = "pid"
	// FieldArch holds the string denoting the arch field in the database.
	FieldArch = "arch"
	// FieldSleep holds the string denoting the sleep field in the database.
	FieldSleep = "sleep"
	// FieldJitter holds the string denoting the jitter field in the database.
	FieldJitter = "jitter"
	// FieldFirst holds the string denoting the first field in the database.
	FieldFirst = "first"
	// FieldLast holds the string denoting the last field in the database.
	FieldLast = "last"
	// FieldCaps holds the string denoting the caps field in the database.
	FieldCaps = "caps"
	// FieldNote holds the string denoting the note field in the database.
	FieldNote = "note"
	// FieldColor holds the string denoting the color field in the database.
	FieldColor = "color"
	// EdgeListener holds the string denoting the listener edge name in mutations.
	EdgeListener = "listener"
	// EdgeGroup holds the string denoting the group edge name in mutations.
	EdgeGroup = "group"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// Table holds the table name of the beacon in the database.
	Table = "beacon"
	// ListenerTable is the table that holds the listener relation/edge.
	ListenerTable = "beacon"
	// ListenerInverseTable is the table name for the Listener entity.
	// It exists in this package in order to avoid circular dependency with the "listener" package.
	ListenerInverseTable = "listener"
	// ListenerColumn is the table column denoting the listener relation/edge.
	ListenerColumn = "listener_id"
	// GroupTable is the table that holds the group relation/edge.
	GroupTable = "group"
	// GroupInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupInverseTable = "group"
	// GroupColumn is the table column denoting the group relation/edge.
	GroupColumn = "bid"
	// TaskTable is the table that holds the task relation/edge.
	TaskTable = "task"
	// TaskInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TaskInverseTable = "task"
	// TaskColumn is the table column denoting the task relation/edge.
	TaskColumn = "bid"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// ExtIPValidator is a validator for the "ext_ip" field. It is called by the builders before save.
	ExtIPValidator func(string) error
	// IntIPValidator is a validator for the "int_ip" field. It is called by the builders before save.
	IntIPValidator func(string) error
	// OsMetaValidator is a validator for the "os_meta" field. It is called by the builders before save.
	OsMetaValidator func(string) error
	// HostnameValidator is a validator for the "hostname" field. It is called by the builders before save.
	HostnameValidator func(string) error
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator func(string) error
	// DomainValidator is a validator for the "domain" field. It is called by the builders before save.
	DomainValidator func(string) error
	// ProcessNameValidator is a validator for the "process_name" field. It is called by the builders before save.
	ProcessNameValidator func(string) error
	// DefaultFirst holds the default value on creation for the "first" field.
	DefaultFirst func() time.Time
	// DefaultLast holds the default value on creation for the "last" field.
	DefaultLast func() time.Time
	// NoteValidator is a validator for the "note" field. It is called by the builders before save.
	NoteValidator func(string) error
	// DefaultColor holds the default value on creation for the "color" field.
	DefaultColor uint32
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/c2micro/c2m/internal/ent/runtime"

Columns holds all SQL columns for beacon fields.

Functions

func And

func And(predicates ...predicate.Beacon) predicate.Beacon

And groups predicates with the AND operator between them.

func ArchEQ

ArchEQ applies the EQ predicate on the "arch" field.

func ArchIn

func ArchIn(vs ...defaults.BeaconArch) predicate.Beacon

ArchIn applies the In predicate on the "arch" field.

func ArchNEQ

ArchNEQ applies the NEQ predicate on the "arch" field.

func ArchNotIn

func ArchNotIn(vs ...defaults.BeaconArch) predicate.Beacon

ArchNotIn applies the NotIn predicate on the "arch" field.

func ArchValidator

func ArchValidator(a defaults.BeaconArch) error

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

func Bid

func Bid(v uint32) predicate.Beacon

Bid applies equality check predicate on the "bid" field. It's identical to BidEQ.

func BidEQ

func BidEQ(v uint32) predicate.Beacon

BidEQ applies the EQ predicate on the "bid" field.

func BidGT

func BidGT(v uint32) predicate.Beacon

BidGT applies the GT predicate on the "bid" field.

func BidGTE

func BidGTE(v uint32) predicate.Beacon

BidGTE applies the GTE predicate on the "bid" field.

func BidIn

func BidIn(vs ...uint32) predicate.Beacon

BidIn applies the In predicate on the "bid" field.

func BidLT

func BidLT(v uint32) predicate.Beacon

BidLT applies the LT predicate on the "bid" field.

func BidLTE

func BidLTE(v uint32) predicate.Beacon

BidLTE applies the LTE predicate on the "bid" field.

func BidNEQ

func BidNEQ(v uint32) predicate.Beacon

BidNEQ applies the NEQ predicate on the "bid" field.

func BidNotIn

func BidNotIn(vs ...uint32) predicate.Beacon

BidNotIn applies the NotIn predicate on the "bid" field.

func Caps

func Caps(v uint32) predicate.Beacon

Caps applies equality check predicate on the "caps" field. It's identical to CapsEQ.

func CapsEQ

func CapsEQ(v uint32) predicate.Beacon

CapsEQ applies the EQ predicate on the "caps" field.

func CapsGT

func CapsGT(v uint32) predicate.Beacon

CapsGT applies the GT predicate on the "caps" field.

func CapsGTE

func CapsGTE(v uint32) predicate.Beacon

CapsGTE applies the GTE predicate on the "caps" field.

func CapsIn

func CapsIn(vs ...uint32) predicate.Beacon

CapsIn applies the In predicate on the "caps" field.

func CapsLT

func CapsLT(v uint32) predicate.Beacon

CapsLT applies the LT predicate on the "caps" field.

func CapsLTE

func CapsLTE(v uint32) predicate.Beacon

CapsLTE applies the LTE predicate on the "caps" field.

func CapsNEQ

func CapsNEQ(v uint32) predicate.Beacon

CapsNEQ applies the NEQ predicate on the "caps" field.

func CapsNotIn

func CapsNotIn(vs ...uint32) predicate.Beacon

CapsNotIn applies the NotIn predicate on the "caps" field.

func Color

func Color(v uint32) predicate.Beacon

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

func ColorEQ

func ColorEQ(v uint32) predicate.Beacon

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

func ColorGT

func ColorGT(v uint32) predicate.Beacon

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

func ColorGTE

func ColorGTE(v uint32) predicate.Beacon

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

func ColorIn

func ColorIn(vs ...uint32) predicate.Beacon

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

func ColorLT

func ColorLT(v uint32) predicate.Beacon

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

func ColorLTE

func ColorLTE(v uint32) predicate.Beacon

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

func ColorNEQ

func ColorNEQ(v uint32) predicate.Beacon

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

func ColorNotIn

func ColorNotIn(vs ...uint32) predicate.Beacon

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Beacon

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Beacon

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Beacon

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Beacon

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

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Beacon

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Beacon

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Beacon

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Beacon

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Beacon

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Beacon

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Beacon

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Beacon

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Beacon

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Beacon

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Beacon

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Beacon

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Beacon

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Beacon

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Beacon

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Beacon

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Domain

func Domain(v string) predicate.Beacon

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Beacon

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Beacon

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Beacon

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Beacon

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Beacon

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Beacon

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Beacon

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Beacon

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Beacon

DomainIn applies the In predicate on the "domain" field.

func DomainIsNil

func DomainIsNil() predicate.Beacon

DomainIsNil applies the IsNil predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Beacon

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Beacon

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Beacon

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Beacon

DomainNotIn applies the NotIn predicate on the "domain" field.

func DomainNotNil

func DomainNotNil() predicate.Beacon

DomainNotNil applies the NotNil predicate on the "domain" field.

func ExtIP

func ExtIP(v types.Inet) predicate.Beacon

ExtIP applies equality check predicate on the "ext_ip" field. It's identical to ExtIPEQ.

func ExtIPContains

func ExtIPContains(v types.Inet) predicate.Beacon

ExtIPContains applies the Contains predicate on the "ext_ip" field.

func ExtIPContainsFold

func ExtIPContainsFold(v types.Inet) predicate.Beacon

ExtIPContainsFold applies the ContainsFold predicate on the "ext_ip" field.

func ExtIPEQ

func ExtIPEQ(v types.Inet) predicate.Beacon

ExtIPEQ applies the EQ predicate on the "ext_ip" field.

func ExtIPEqualFold

func ExtIPEqualFold(v types.Inet) predicate.Beacon

ExtIPEqualFold applies the EqualFold predicate on the "ext_ip" field.

func ExtIPGT

func ExtIPGT(v types.Inet) predicate.Beacon

ExtIPGT applies the GT predicate on the "ext_ip" field.

func ExtIPGTE

func ExtIPGTE(v types.Inet) predicate.Beacon

ExtIPGTE applies the GTE predicate on the "ext_ip" field.

func ExtIPHasPrefix

func ExtIPHasPrefix(v types.Inet) predicate.Beacon

ExtIPHasPrefix applies the HasPrefix predicate on the "ext_ip" field.

func ExtIPHasSuffix

func ExtIPHasSuffix(v types.Inet) predicate.Beacon

ExtIPHasSuffix applies the HasSuffix predicate on the "ext_ip" field.

func ExtIPIn

func ExtIPIn(vs ...types.Inet) predicate.Beacon

ExtIPIn applies the In predicate on the "ext_ip" field.

func ExtIPIsNil

func ExtIPIsNil() predicate.Beacon

ExtIPIsNil applies the IsNil predicate on the "ext_ip" field.

func ExtIPLT

func ExtIPLT(v types.Inet) predicate.Beacon

ExtIPLT applies the LT predicate on the "ext_ip" field.

func ExtIPLTE

func ExtIPLTE(v types.Inet) predicate.Beacon

ExtIPLTE applies the LTE predicate on the "ext_ip" field.

func ExtIPNEQ

func ExtIPNEQ(v types.Inet) predicate.Beacon

ExtIPNEQ applies the NEQ predicate on the "ext_ip" field.

func ExtIPNotIn

func ExtIPNotIn(vs ...types.Inet) predicate.Beacon

ExtIPNotIn applies the NotIn predicate on the "ext_ip" field.

func ExtIPNotNil

func ExtIPNotNil() predicate.Beacon

ExtIPNotNil applies the NotNil predicate on the "ext_ip" field.

func First

func First(v time.Time) predicate.Beacon

First applies equality check predicate on the "first" field. It's identical to FirstEQ.

func FirstEQ

func FirstEQ(v time.Time) predicate.Beacon

FirstEQ applies the EQ predicate on the "first" field.

func FirstGT

func FirstGT(v time.Time) predicate.Beacon

FirstGT applies the GT predicate on the "first" field.

func FirstGTE

func FirstGTE(v time.Time) predicate.Beacon

FirstGTE applies the GTE predicate on the "first" field.

func FirstIn

func FirstIn(vs ...time.Time) predicate.Beacon

FirstIn applies the In predicate on the "first" field.

func FirstLT

func FirstLT(v time.Time) predicate.Beacon

FirstLT applies the LT predicate on the "first" field.

func FirstLTE

func FirstLTE(v time.Time) predicate.Beacon

FirstLTE applies the LTE predicate on the "first" field.

func FirstNEQ

func FirstNEQ(v time.Time) predicate.Beacon

FirstNEQ applies the NEQ predicate on the "first" field.

func FirstNotIn

func FirstNotIn(vs ...time.Time) predicate.Beacon

FirstNotIn applies the NotIn predicate on the "first" field.

func HasGroup

func HasGroup() predicate.Beacon

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

func HasGroupWith(preds ...predicate.Group) predicate.Beacon

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

func HasListener

func HasListener() predicate.Beacon

HasListener applies the HasEdge predicate on the "listener" edge.

func HasListenerWith

func HasListenerWith(preds ...predicate.Listener) predicate.Beacon

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

func HasTask

func HasTask() predicate.Beacon

HasTask applies the HasEdge predicate on the "task" edge.

func HasTaskWith

func HasTaskWith(preds ...predicate.Task) predicate.Beacon

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

func Hostname

func Hostname(v string) predicate.Beacon

Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.

func HostnameContains

func HostnameContains(v string) predicate.Beacon

HostnameContains applies the Contains predicate on the "hostname" field.

func HostnameContainsFold

func HostnameContainsFold(v string) predicate.Beacon

HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.

func HostnameEQ

func HostnameEQ(v string) predicate.Beacon

HostnameEQ applies the EQ predicate on the "hostname" field.

func HostnameEqualFold

func HostnameEqualFold(v string) predicate.Beacon

HostnameEqualFold applies the EqualFold predicate on the "hostname" field.

func HostnameGT

func HostnameGT(v string) predicate.Beacon

HostnameGT applies the GT predicate on the "hostname" field.

func HostnameGTE

func HostnameGTE(v string) predicate.Beacon

HostnameGTE applies the GTE predicate on the "hostname" field.

func HostnameHasPrefix

func HostnameHasPrefix(v string) predicate.Beacon

HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.

func HostnameHasSuffix

func HostnameHasSuffix(v string) predicate.Beacon

HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.

func HostnameIn

func HostnameIn(vs ...string) predicate.Beacon

HostnameIn applies the In predicate on the "hostname" field.

func HostnameIsNil

func HostnameIsNil() predicate.Beacon

HostnameIsNil applies the IsNil predicate on the "hostname" field.

func HostnameLT

func HostnameLT(v string) predicate.Beacon

HostnameLT applies the LT predicate on the "hostname" field.

func HostnameLTE

func HostnameLTE(v string) predicate.Beacon

HostnameLTE applies the LTE predicate on the "hostname" field.

func HostnameNEQ

func HostnameNEQ(v string) predicate.Beacon

HostnameNEQ applies the NEQ predicate on the "hostname" field.

func HostnameNotIn

func HostnameNotIn(vs ...string) predicate.Beacon

HostnameNotIn applies the NotIn predicate on the "hostname" field.

func HostnameNotNil

func HostnameNotNil() predicate.Beacon

HostnameNotNil applies the NotNil predicate on the "hostname" field.

func ID

func ID(id int) predicate.Beacon

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Beacon

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Beacon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Beacon

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Beacon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Beacon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Beacon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IntIP

func IntIP(v types.Inet) predicate.Beacon

IntIP applies equality check predicate on the "int_ip" field. It's identical to IntIPEQ.

func IntIPContains

func IntIPContains(v types.Inet) predicate.Beacon

IntIPContains applies the Contains predicate on the "int_ip" field.

func IntIPContainsFold

func IntIPContainsFold(v types.Inet) predicate.Beacon

IntIPContainsFold applies the ContainsFold predicate on the "int_ip" field.

func IntIPEQ

func IntIPEQ(v types.Inet) predicate.Beacon

IntIPEQ applies the EQ predicate on the "int_ip" field.

func IntIPEqualFold

func IntIPEqualFold(v types.Inet) predicate.Beacon

IntIPEqualFold applies the EqualFold predicate on the "int_ip" field.

func IntIPGT

func IntIPGT(v types.Inet) predicate.Beacon

IntIPGT applies the GT predicate on the "int_ip" field.

func IntIPGTE

func IntIPGTE(v types.Inet) predicate.Beacon

IntIPGTE applies the GTE predicate on the "int_ip" field.

func IntIPHasPrefix

func IntIPHasPrefix(v types.Inet) predicate.Beacon

IntIPHasPrefix applies the HasPrefix predicate on the "int_ip" field.

func IntIPHasSuffix

func IntIPHasSuffix(v types.Inet) predicate.Beacon

IntIPHasSuffix applies the HasSuffix predicate on the "int_ip" field.

func IntIPIn

func IntIPIn(vs ...types.Inet) predicate.Beacon

IntIPIn applies the In predicate on the "int_ip" field.

func IntIPIsNil

func IntIPIsNil() predicate.Beacon

IntIPIsNil applies the IsNil predicate on the "int_ip" field.

func IntIPLT

func IntIPLT(v types.Inet) predicate.Beacon

IntIPLT applies the LT predicate on the "int_ip" field.

func IntIPLTE

func IntIPLTE(v types.Inet) predicate.Beacon

IntIPLTE applies the LTE predicate on the "int_ip" field.

func IntIPNEQ

func IntIPNEQ(v types.Inet) predicate.Beacon

IntIPNEQ applies the NEQ predicate on the "int_ip" field.

func IntIPNotIn

func IntIPNotIn(vs ...types.Inet) predicate.Beacon

IntIPNotIn applies the NotIn predicate on the "int_ip" field.

func IntIPNotNil

func IntIPNotNil() predicate.Beacon

IntIPNotNil applies the NotNil predicate on the "int_ip" field.

func Jitter

func Jitter(v uint8) predicate.Beacon

Jitter applies equality check predicate on the "jitter" field. It's identical to JitterEQ.

func JitterEQ

func JitterEQ(v uint8) predicate.Beacon

JitterEQ applies the EQ predicate on the "jitter" field.

func JitterGT

func JitterGT(v uint8) predicate.Beacon

JitterGT applies the GT predicate on the "jitter" field.

func JitterGTE

func JitterGTE(v uint8) predicate.Beacon

JitterGTE applies the GTE predicate on the "jitter" field.

func JitterIn

func JitterIn(vs ...uint8) predicate.Beacon

JitterIn applies the In predicate on the "jitter" field.

func JitterLT

func JitterLT(v uint8) predicate.Beacon

JitterLT applies the LT predicate on the "jitter" field.

func JitterLTE

func JitterLTE(v uint8) predicate.Beacon

JitterLTE applies the LTE predicate on the "jitter" field.

func JitterNEQ

func JitterNEQ(v uint8) predicate.Beacon

JitterNEQ applies the NEQ predicate on the "jitter" field.

func JitterNotIn

func JitterNotIn(vs ...uint8) predicate.Beacon

JitterNotIn applies the NotIn predicate on the "jitter" field.

func Last

func Last(v time.Time) predicate.Beacon

Last applies equality check predicate on the "last" field. It's identical to LastEQ.

func LastEQ

func LastEQ(v time.Time) predicate.Beacon

LastEQ applies the EQ predicate on the "last" field.

func LastGT

func LastGT(v time.Time) predicate.Beacon

LastGT applies the GT predicate on the "last" field.

func LastGTE

func LastGTE(v time.Time) predicate.Beacon

LastGTE applies the GTE predicate on the "last" field.

func LastIn

func LastIn(vs ...time.Time) predicate.Beacon

LastIn applies the In predicate on the "last" field.

func LastLT

func LastLT(v time.Time) predicate.Beacon

LastLT applies the LT predicate on the "last" field.

func LastLTE

func LastLTE(v time.Time) predicate.Beacon

LastLTE applies the LTE predicate on the "last" field.

func LastNEQ

func LastNEQ(v time.Time) predicate.Beacon

LastNEQ applies the NEQ predicate on the "last" field.

func LastNotIn

func LastNotIn(vs ...time.Time) predicate.Beacon

LastNotIn applies the NotIn predicate on the "last" field.

func ListenerID

func ListenerID(v int) predicate.Beacon

ListenerID applies equality check predicate on the "listener_id" field. It's identical to ListenerIDEQ.

func ListenerIDEQ

func ListenerIDEQ(v int) predicate.Beacon

ListenerIDEQ applies the EQ predicate on the "listener_id" field.

func ListenerIDIn

func ListenerIDIn(vs ...int) predicate.Beacon

ListenerIDIn applies the In predicate on the "listener_id" field.

func ListenerIDNEQ

func ListenerIDNEQ(v int) predicate.Beacon

ListenerIDNEQ applies the NEQ predicate on the "listener_id" field.

func ListenerIDNotIn

func ListenerIDNotIn(vs ...int) predicate.Beacon

ListenerIDNotIn applies the NotIn predicate on the "listener_id" field.

func Not

Not applies the not operator on the given predicate.

func Note

func Note(v string) predicate.Beacon

Note applies equality check predicate on the "note" field. It's identical to NoteEQ.

func NoteContains

func NoteContains(v string) predicate.Beacon

NoteContains applies the Contains predicate on the "note" field.

func NoteContainsFold

func NoteContainsFold(v string) predicate.Beacon

NoteContainsFold applies the ContainsFold predicate on the "note" field.

func NoteEQ

func NoteEQ(v string) predicate.Beacon

NoteEQ applies the EQ predicate on the "note" field.

func NoteEqualFold

func NoteEqualFold(v string) predicate.Beacon

NoteEqualFold applies the EqualFold predicate on the "note" field.

func NoteGT

func NoteGT(v string) predicate.Beacon

NoteGT applies the GT predicate on the "note" field.

func NoteGTE

func NoteGTE(v string) predicate.Beacon

NoteGTE applies the GTE predicate on the "note" field.

func NoteHasPrefix

func NoteHasPrefix(v string) predicate.Beacon

NoteHasPrefix applies the HasPrefix predicate on the "note" field.

func NoteHasSuffix

func NoteHasSuffix(v string) predicate.Beacon

NoteHasSuffix applies the HasSuffix predicate on the "note" field.

func NoteIn

func NoteIn(vs ...string) predicate.Beacon

NoteIn applies the In predicate on the "note" field.

func NoteIsNil

func NoteIsNil() predicate.Beacon

NoteIsNil applies the IsNil predicate on the "note" field.

func NoteLT

func NoteLT(v string) predicate.Beacon

NoteLT applies the LT predicate on the "note" field.

func NoteLTE

func NoteLTE(v string) predicate.Beacon

NoteLTE applies the LTE predicate on the "note" field.

func NoteNEQ

func NoteNEQ(v string) predicate.Beacon

NoteNEQ applies the NEQ predicate on the "note" field.

func NoteNotIn

func NoteNotIn(vs ...string) predicate.Beacon

NoteNotIn applies the NotIn predicate on the "note" field.

func NoteNotNil

func NoteNotNil() predicate.Beacon

NoteNotNil applies the NotNil predicate on the "note" field.

func Or

func Or(predicates ...predicate.Beacon) predicate.Beacon

Or groups predicates with the OR operator between them.

func OsEQ

OsEQ applies the EQ predicate on the "os" field.

func OsIn

func OsIn(vs ...defaults.BeaconOS) predicate.Beacon

OsIn applies the In predicate on the "os" field.

func OsMeta

func OsMeta(v string) predicate.Beacon

OsMeta applies equality check predicate on the "os_meta" field. It's identical to OsMetaEQ.

func OsMetaContains

func OsMetaContains(v string) predicate.Beacon

OsMetaContains applies the Contains predicate on the "os_meta" field.

func OsMetaContainsFold

func OsMetaContainsFold(v string) predicate.Beacon

OsMetaContainsFold applies the ContainsFold predicate on the "os_meta" field.

func OsMetaEQ

func OsMetaEQ(v string) predicate.Beacon

OsMetaEQ applies the EQ predicate on the "os_meta" field.

func OsMetaEqualFold

func OsMetaEqualFold(v string) predicate.Beacon

OsMetaEqualFold applies the EqualFold predicate on the "os_meta" field.

func OsMetaGT

func OsMetaGT(v string) predicate.Beacon

OsMetaGT applies the GT predicate on the "os_meta" field.

func OsMetaGTE

func OsMetaGTE(v string) predicate.Beacon

OsMetaGTE applies the GTE predicate on the "os_meta" field.

func OsMetaHasPrefix

func OsMetaHasPrefix(v string) predicate.Beacon

OsMetaHasPrefix applies the HasPrefix predicate on the "os_meta" field.

func OsMetaHasSuffix

func OsMetaHasSuffix(v string) predicate.Beacon

OsMetaHasSuffix applies the HasSuffix predicate on the "os_meta" field.

func OsMetaIn

func OsMetaIn(vs ...string) predicate.Beacon

OsMetaIn applies the In predicate on the "os_meta" field.

func OsMetaIsNil

func OsMetaIsNil() predicate.Beacon

OsMetaIsNil applies the IsNil predicate on the "os_meta" field.

func OsMetaLT

func OsMetaLT(v string) predicate.Beacon

OsMetaLT applies the LT predicate on the "os_meta" field.

func OsMetaLTE

func OsMetaLTE(v string) predicate.Beacon

OsMetaLTE applies the LTE predicate on the "os_meta" field.

func OsMetaNEQ

func OsMetaNEQ(v string) predicate.Beacon

OsMetaNEQ applies the NEQ predicate on the "os_meta" field.

func OsMetaNotIn

func OsMetaNotIn(vs ...string) predicate.Beacon

OsMetaNotIn applies the NotIn predicate on the "os_meta" field.

func OsMetaNotNil

func OsMetaNotNil() predicate.Beacon

OsMetaNotNil applies the NotNil predicate on the "os_meta" field.

func OsNEQ

OsNEQ applies the NEQ predicate on the "os" field.

func OsNotIn

func OsNotIn(vs ...defaults.BeaconOS) predicate.Beacon

OsNotIn applies the NotIn predicate on the "os" field.

func OsValidator

func OsValidator(o defaults.BeaconOS) error

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

func Pid

func Pid(v uint32) predicate.Beacon

Pid applies equality check predicate on the "pid" field. It's identical to PidEQ.

func PidEQ

func PidEQ(v uint32) predicate.Beacon

PidEQ applies the EQ predicate on the "pid" field.

func PidGT

func PidGT(v uint32) predicate.Beacon

PidGT applies the GT predicate on the "pid" field.

func PidGTE

func PidGTE(v uint32) predicate.Beacon

PidGTE applies the GTE predicate on the "pid" field.

func PidIn

func PidIn(vs ...uint32) predicate.Beacon

PidIn applies the In predicate on the "pid" field.

func PidIsNil

func PidIsNil() predicate.Beacon

PidIsNil applies the IsNil predicate on the "pid" field.

func PidLT

func PidLT(v uint32) predicate.Beacon

PidLT applies the LT predicate on the "pid" field.

func PidLTE

func PidLTE(v uint32) predicate.Beacon

PidLTE applies the LTE predicate on the "pid" field.

func PidNEQ

func PidNEQ(v uint32) predicate.Beacon

PidNEQ applies the NEQ predicate on the "pid" field.

func PidNotIn

func PidNotIn(vs ...uint32) predicate.Beacon

PidNotIn applies the NotIn predicate on the "pid" field.

func PidNotNil

func PidNotNil() predicate.Beacon

PidNotNil applies the NotNil predicate on the "pid" field.

func Privileged

func Privileged(v bool) predicate.Beacon

Privileged applies equality check predicate on the "privileged" field. It's identical to PrivilegedEQ.

func PrivilegedEQ

func PrivilegedEQ(v bool) predicate.Beacon

PrivilegedEQ applies the EQ predicate on the "privileged" field.

func PrivilegedIsNil

func PrivilegedIsNil() predicate.Beacon

PrivilegedIsNil applies the IsNil predicate on the "privileged" field.

func PrivilegedNEQ

func PrivilegedNEQ(v bool) predicate.Beacon

PrivilegedNEQ applies the NEQ predicate on the "privileged" field.

func PrivilegedNotNil

func PrivilegedNotNil() predicate.Beacon

PrivilegedNotNil applies the NotNil predicate on the "privileged" field.

func ProcessName

func ProcessName(v string) predicate.Beacon

ProcessName applies equality check predicate on the "process_name" field. It's identical to ProcessNameEQ.

func ProcessNameContains

func ProcessNameContains(v string) predicate.Beacon

ProcessNameContains applies the Contains predicate on the "process_name" field.

func ProcessNameContainsFold

func ProcessNameContainsFold(v string) predicate.Beacon

ProcessNameContainsFold applies the ContainsFold predicate on the "process_name" field.

func ProcessNameEQ

func ProcessNameEQ(v string) predicate.Beacon

ProcessNameEQ applies the EQ predicate on the "process_name" field.

func ProcessNameEqualFold

func ProcessNameEqualFold(v string) predicate.Beacon

ProcessNameEqualFold applies the EqualFold predicate on the "process_name" field.

func ProcessNameGT

func ProcessNameGT(v string) predicate.Beacon

ProcessNameGT applies the GT predicate on the "process_name" field.

func ProcessNameGTE

func ProcessNameGTE(v string) predicate.Beacon

ProcessNameGTE applies the GTE predicate on the "process_name" field.

func ProcessNameHasPrefix

func ProcessNameHasPrefix(v string) predicate.Beacon

ProcessNameHasPrefix applies the HasPrefix predicate on the "process_name" field.

func ProcessNameHasSuffix

func ProcessNameHasSuffix(v string) predicate.Beacon

ProcessNameHasSuffix applies the HasSuffix predicate on the "process_name" field.

func ProcessNameIn

func ProcessNameIn(vs ...string) predicate.Beacon

ProcessNameIn applies the In predicate on the "process_name" field.

func ProcessNameIsNil

func ProcessNameIsNil() predicate.Beacon

ProcessNameIsNil applies the IsNil predicate on the "process_name" field.

func ProcessNameLT

func ProcessNameLT(v string) predicate.Beacon

ProcessNameLT applies the LT predicate on the "process_name" field.

func ProcessNameLTE

func ProcessNameLTE(v string) predicate.Beacon

ProcessNameLTE applies the LTE predicate on the "process_name" field.

func ProcessNameNEQ

func ProcessNameNEQ(v string) predicate.Beacon

ProcessNameNEQ applies the NEQ predicate on the "process_name" field.

func ProcessNameNotIn

func ProcessNameNotIn(vs ...string) predicate.Beacon

ProcessNameNotIn applies the NotIn predicate on the "process_name" field.

func ProcessNameNotNil

func ProcessNameNotNil() predicate.Beacon

ProcessNameNotNil applies the NotNil predicate on the "process_name" field.

func Sleep

func Sleep(v uint32) predicate.Beacon

Sleep applies equality check predicate on the "sleep" field. It's identical to SleepEQ.

func SleepEQ

func SleepEQ(v uint32) predicate.Beacon

SleepEQ applies the EQ predicate on the "sleep" field.

func SleepGT

func SleepGT(v uint32) predicate.Beacon

SleepGT applies the GT predicate on the "sleep" field.

func SleepGTE

func SleepGTE(v uint32) predicate.Beacon

SleepGTE applies the GTE predicate on the "sleep" field.

func SleepIn

func SleepIn(vs ...uint32) predicate.Beacon

SleepIn applies the In predicate on the "sleep" field.

func SleepLT

func SleepLT(v uint32) predicate.Beacon

SleepLT applies the LT predicate on the "sleep" field.

func SleepLTE

func SleepLTE(v uint32) predicate.Beacon

SleepLTE applies the LTE predicate on the "sleep" field.

func SleepNEQ

func SleepNEQ(v uint32) predicate.Beacon

SleepNEQ applies the NEQ predicate on the "sleep" field.

func SleepNotIn

func SleepNotIn(vs ...uint32) predicate.Beacon

SleepNotIn applies the NotIn predicate on the "sleep" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Beacon

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Beacon

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Beacon

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Beacon

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Beacon

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Beacon

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Beacon

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Beacon

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Beacon

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Username

func Username(v string) predicate.Beacon

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Beacon

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Beacon

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Beacon

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Beacon

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.Beacon

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Beacon

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Beacon

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Beacon

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Beacon

UsernameIn applies the In predicate on the "username" field.

func UsernameIsNil

func UsernameIsNil() predicate.Beacon

UsernameIsNil applies the IsNil predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Beacon

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Beacon

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Beacon

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Beacon

UsernameNotIn applies the NotIn predicate on the "username" field.

func UsernameNotNil

func UsernameNotNil() predicate.Beacon

UsernameNotNil applies the NotNil predicate on the "username" 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 Beacon queries.

func ByArch

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

ByArch orders the results by the arch field.

func ByBid

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

ByBid orders the results by the bid field.

func ByCaps

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

ByCaps orders the results by the caps field.

func ByColor

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

ByColor orders the results by the color field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDomain

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

ByDomain orders the results by the domain field.

func ByExtIP

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

ByExtIP orders the results by the ext_ip field.

func ByFirst

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

ByFirst orders the results by the first field.

func ByGroup

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

ByGroup orders the results by group terms.

func ByGroupCount

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

ByGroupCount orders the results by group count.

func ByHostname

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

ByHostname orders the results by the hostname field.

func ByID

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

ByID orders the results by the id field.

func ByIntIP

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

ByIntIP orders the results by the int_ip field.

func ByJitter

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

ByJitter orders the results by the jitter field.

func ByLast

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

ByLast orders the results by the last field.

func ByListenerField

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

ByListenerField orders the results by listener field.

func ByListenerID

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

ByListenerID orders the results by the listener_id field.

func ByNote

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

ByNote orders the results by the note field.

func ByOs

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

ByOs orders the results by the os field.

func ByOsMeta

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

ByOsMeta orders the results by the os_meta field.

func ByPid

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

ByPid orders the results by the pid field.

func ByPrivileged

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

ByPrivileged orders the results by the privileged field.

func ByProcessName

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

ByProcessName orders the results by the process_name field.

func BySleep

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

BySleep orders the results by the sleep field.

func ByTask

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

ByTask orders the results by task terms.

func ByTaskCount

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

ByTaskCount orders the results by task count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUsername

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

ByUsername orders the results by the username field.

Jump to

Keyboard shortcuts

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