agent

package
v0.0.0-...-52fa7fc Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the agent type in the database.
	Label = "agent"
	// 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"
	// 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"
	// EdgeCommand holds the string denoting the command edge name in mutations.
	EdgeCommand = "command"
	// EdgeTask holds the string denoting the task edge name in mutations.
	EdgeTask = "task"
	// Table holds the table name of the agent in the database.
	Table = "agent"
	// ListenerTable is the table that holds the listener relation/edge.
	ListenerTable = "agent"
	// 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"
	// CommandTable is the table that holds the command relation/edge.
	CommandTable = "command"
	// CommandInverseTable is the table name for the Command entity.
	// It exists in this package in order to avoid circular dependency with the "command" package.
	CommandInverseTable = "command"
	// CommandColumn is the table column denoting the command relation/edge.
	CommandColumn = "agent_id"
	// 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 = "agent_id"
)

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/PicoTools/pico/internal/ent/runtime"

Columns holds all SQL columns for agent fields.

Functions

func And

func And(predicates ...predicate.Agent) predicate.Agent

And groups predicates with the AND operator between them.

func ArchEQ

func ArchEQ(v shared.AgentArch) predicate.Agent

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

func ArchIn

func ArchIn(vs ...shared.AgentArch) predicate.Agent

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

func ArchNEQ

func ArchNEQ(v shared.AgentArch) predicate.Agent

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

func ArchNotIn

func ArchNotIn(vs ...shared.AgentArch) predicate.Agent

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

func ArchValidator

func ArchValidator(a shared.AgentArch) error

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

func Caps

func Caps(v uint32) predicate.Agent

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

func CapsEQ

func CapsEQ(v uint32) predicate.Agent

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

func CapsGT

func CapsGT(v uint32) predicate.Agent

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

func CapsGTE

func CapsGTE(v uint32) predicate.Agent

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

func CapsIn

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

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

func CapsLT

func CapsLT(v uint32) predicate.Agent

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

func CapsLTE

func CapsLTE(v uint32) predicate.Agent

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

func CapsNEQ

func CapsNEQ(v uint32) predicate.Agent

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

func CapsNotIn

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

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

func Color

func Color(v uint32) predicate.Agent

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

func ColorEQ

func ColorEQ(v uint32) predicate.Agent

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

func ColorGT

func ColorGT(v uint32) predicate.Agent

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

func ColorGTE

func ColorGTE(v uint32) predicate.Agent

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

func ColorIn

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

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

func ColorLT

func ColorLT(v uint32) predicate.Agent

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

func ColorLTE

func ColorLTE(v uint32) predicate.Agent

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

func ColorNEQ

func ColorNEQ(v uint32) predicate.Agent

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

func ColorNotIn

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

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Agent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Agent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Agent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Agent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Agent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Agent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Agent

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Agent

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Agent

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Agent

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Agent

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Agent

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Agent

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Agent

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Agent

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Agent

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

func Domain

func Domain(v string) predicate.Agent

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

func DomainContains

func DomainContains(v string) predicate.Agent

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

func DomainContainsFold

func DomainContainsFold(v string) predicate.Agent

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

func DomainEQ

func DomainEQ(v string) predicate.Agent

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

func DomainEqualFold

func DomainEqualFold(v string) predicate.Agent

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

func DomainGT

func DomainGT(v string) predicate.Agent

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

func DomainGTE

func DomainGTE(v string) predicate.Agent

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

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Agent

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

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Agent

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

func DomainIn

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

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

func DomainIsNil

func DomainIsNil() predicate.Agent

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

func DomainLT

func DomainLT(v string) predicate.Agent

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

func DomainLTE

func DomainLTE(v string) predicate.Agent

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

func DomainNEQ

func DomainNEQ(v string) predicate.Agent

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

func DomainNotIn

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

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

func DomainNotNil

func DomainNotNil() predicate.Agent

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

func ExtIP

func ExtIP(v types.Inet) predicate.Agent

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

func ExtIPContains

func ExtIPContains(v types.Inet) predicate.Agent

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

func ExtIPContainsFold

func ExtIPContainsFold(v types.Inet) predicate.Agent

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

func ExtIPEQ

func ExtIPEQ(v types.Inet) predicate.Agent

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

func ExtIPEqualFold

func ExtIPEqualFold(v types.Inet) predicate.Agent

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

func ExtIPGT

func ExtIPGT(v types.Inet) predicate.Agent

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

func ExtIPGTE

func ExtIPGTE(v types.Inet) predicate.Agent

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

func ExtIPHasPrefix

func ExtIPHasPrefix(v types.Inet) predicate.Agent

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

func ExtIPHasSuffix

func ExtIPHasSuffix(v types.Inet) predicate.Agent

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

func ExtIPIn

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

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

func ExtIPIsNil

func ExtIPIsNil() predicate.Agent

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

func ExtIPLT

func ExtIPLT(v types.Inet) predicate.Agent

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

func ExtIPLTE

func ExtIPLTE(v types.Inet) predicate.Agent

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

func ExtIPNEQ

func ExtIPNEQ(v types.Inet) predicate.Agent

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

func ExtIPNotIn

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

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

func ExtIPNotNil

func ExtIPNotNil() predicate.Agent

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

func First

func First(v time.Time) predicate.Agent

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

func FirstEQ

func FirstEQ(v time.Time) predicate.Agent

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

func FirstGT

func FirstGT(v time.Time) predicate.Agent

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

func FirstGTE

func FirstGTE(v time.Time) predicate.Agent

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

func FirstIn

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

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

func FirstLT

func FirstLT(v time.Time) predicate.Agent

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

func FirstLTE

func FirstLTE(v time.Time) predicate.Agent

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

func FirstNEQ

func FirstNEQ(v time.Time) predicate.Agent

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

func FirstNotIn

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

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

func HasCommand

func HasCommand() predicate.Agent

HasCommand applies the HasEdge predicate on the "command" edge.

func HasCommandWith

func HasCommandWith(preds ...predicate.Command) predicate.Agent

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

func HasListener

func HasListener() predicate.Agent

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

func HasListenerWith

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

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

func HasTask

func HasTask() predicate.Agent

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

func HasTaskWith

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

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

func Hostname

func Hostname(v string) predicate.Agent

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

func HostnameContains

func HostnameContains(v string) predicate.Agent

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

func HostnameContainsFold

func HostnameContainsFold(v string) predicate.Agent

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

func HostnameEQ

func HostnameEQ(v string) predicate.Agent

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

func HostnameEqualFold

func HostnameEqualFold(v string) predicate.Agent

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

func HostnameGT

func HostnameGT(v string) predicate.Agent

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

func HostnameGTE

func HostnameGTE(v string) predicate.Agent

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

func HostnameHasPrefix

func HostnameHasPrefix(v string) predicate.Agent

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

func HostnameHasSuffix

func HostnameHasSuffix(v string) predicate.Agent

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

func HostnameIn

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

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

func HostnameIsNil

func HostnameIsNil() predicate.Agent

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

func HostnameLT

func HostnameLT(v string) predicate.Agent

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

func HostnameLTE

func HostnameLTE(v string) predicate.Agent

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

func HostnameNEQ

func HostnameNEQ(v string) predicate.Agent

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

func HostnameNotIn

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

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

func HostnameNotNil

func HostnameNotNil() predicate.Agent

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

func ID

func ID(id uint32) predicate.Agent

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint32) predicate.Agent

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint32) predicate.Agent

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint32) predicate.Agent

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint32) predicate.Agent

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint32) predicate.Agent

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint32) predicate.Agent

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint32) predicate.Agent

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint32) predicate.Agent

IDNotIn applies the NotIn predicate on the ID field.

func IntIP

func IntIP(v types.Inet) predicate.Agent

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

func IntIPContains

func IntIPContains(v types.Inet) predicate.Agent

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

func IntIPContainsFold

func IntIPContainsFold(v types.Inet) predicate.Agent

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

func IntIPEQ

func IntIPEQ(v types.Inet) predicate.Agent

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

func IntIPEqualFold

func IntIPEqualFold(v types.Inet) predicate.Agent

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

func IntIPGT

func IntIPGT(v types.Inet) predicate.Agent

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

func IntIPGTE

func IntIPGTE(v types.Inet) predicate.Agent

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

func IntIPHasPrefix

func IntIPHasPrefix(v types.Inet) predicate.Agent

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

func IntIPHasSuffix

func IntIPHasSuffix(v types.Inet) predicate.Agent

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

func IntIPIn

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

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

func IntIPIsNil

func IntIPIsNil() predicate.Agent

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

func IntIPLT

func IntIPLT(v types.Inet) predicate.Agent

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

func IntIPLTE

func IntIPLTE(v types.Inet) predicate.Agent

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

func IntIPNEQ

func IntIPNEQ(v types.Inet) predicate.Agent

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

func IntIPNotIn

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

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

func IntIPNotNil

func IntIPNotNil() predicate.Agent

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

func Jitter

func Jitter(v uint8) predicate.Agent

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

func JitterEQ

func JitterEQ(v uint8) predicate.Agent

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

func JitterGT

func JitterGT(v uint8) predicate.Agent

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

func JitterGTE

func JitterGTE(v uint8) predicate.Agent

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

func JitterIn

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

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

func JitterLT

func JitterLT(v uint8) predicate.Agent

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

func JitterLTE

func JitterLTE(v uint8) predicate.Agent

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

func JitterNEQ

func JitterNEQ(v uint8) predicate.Agent

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

func JitterNotIn

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

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

func Last

func Last(v time.Time) predicate.Agent

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

func LastEQ

func LastEQ(v time.Time) predicate.Agent

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

func LastGT

func LastGT(v time.Time) predicate.Agent

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

func LastGTE

func LastGTE(v time.Time) predicate.Agent

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

func LastIn

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

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

func LastLT

func LastLT(v time.Time) predicate.Agent

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

func LastLTE

func LastLTE(v time.Time) predicate.Agent

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

func LastNEQ

func LastNEQ(v time.Time) predicate.Agent

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

func LastNotIn

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

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

func ListenerID

func ListenerID(v int64) predicate.Agent

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

func ListenerIDEQ

func ListenerIDEQ(v int64) predicate.Agent

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

func ListenerIDIn

func ListenerIDIn(vs ...int64) predicate.Agent

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

func ListenerIDNEQ

func ListenerIDNEQ(v int64) predicate.Agent

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

func ListenerIDNotIn

func ListenerIDNotIn(vs ...int64) predicate.Agent

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.Agent

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

func NoteContains

func NoteContains(v string) predicate.Agent

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

func NoteContainsFold

func NoteContainsFold(v string) predicate.Agent

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

func NoteEQ

func NoteEQ(v string) predicate.Agent

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

func NoteEqualFold

func NoteEqualFold(v string) predicate.Agent

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

func NoteGT

func NoteGT(v string) predicate.Agent

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

func NoteGTE

func NoteGTE(v string) predicate.Agent

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

func NoteHasPrefix

func NoteHasPrefix(v string) predicate.Agent

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

func NoteHasSuffix

func NoteHasSuffix(v string) predicate.Agent

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

func NoteIn

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

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

func NoteIsNil

func NoteIsNil() predicate.Agent

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

func NoteLT

func NoteLT(v string) predicate.Agent

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

func NoteLTE

func NoteLTE(v string) predicate.Agent

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

func NoteNEQ

func NoteNEQ(v string) predicate.Agent

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

func NoteNotIn

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

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

func NoteNotNil

func NoteNotNil() predicate.Agent

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

func Or

func Or(predicates ...predicate.Agent) predicate.Agent

Or groups predicates with the OR operator between them.

func OsEQ

func OsEQ(v shared.AgentOs) predicate.Agent

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

func OsIn

func OsIn(vs ...shared.AgentOs) predicate.Agent

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

func OsMeta

func OsMeta(v string) predicate.Agent

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

func OsMetaContains

func OsMetaContains(v string) predicate.Agent

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

func OsMetaContainsFold

func OsMetaContainsFold(v string) predicate.Agent

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

func OsMetaEQ

func OsMetaEQ(v string) predicate.Agent

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

func OsMetaEqualFold

func OsMetaEqualFold(v string) predicate.Agent

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

func OsMetaGT

func OsMetaGT(v string) predicate.Agent

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

func OsMetaGTE

func OsMetaGTE(v string) predicate.Agent

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

func OsMetaHasPrefix

func OsMetaHasPrefix(v string) predicate.Agent

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

func OsMetaHasSuffix

func OsMetaHasSuffix(v string) predicate.Agent

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

func OsMetaIn

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

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

func OsMetaIsNil

func OsMetaIsNil() predicate.Agent

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

func OsMetaLT

func OsMetaLT(v string) predicate.Agent

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

func OsMetaLTE

func OsMetaLTE(v string) predicate.Agent

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

func OsMetaNEQ

func OsMetaNEQ(v string) predicate.Agent

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

func OsMetaNotIn

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

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

func OsMetaNotNil

func OsMetaNotNil() predicate.Agent

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

func OsNEQ

func OsNEQ(v shared.AgentOs) predicate.Agent

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

func OsNotIn

func OsNotIn(vs ...shared.AgentOs) predicate.Agent

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

func OsValidator

func OsValidator(o shared.AgentOs) error

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

func Pid

func Pid(v int64) predicate.Agent

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

func PidEQ

func PidEQ(v int64) predicate.Agent

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

func PidGT

func PidGT(v int64) predicate.Agent

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

func PidGTE

func PidGTE(v int64) predicate.Agent

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

func PidIn

func PidIn(vs ...int64) predicate.Agent

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

func PidIsNil

func PidIsNil() predicate.Agent

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

func PidLT

func PidLT(v int64) predicate.Agent

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

func PidLTE

func PidLTE(v int64) predicate.Agent

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

func PidNEQ

func PidNEQ(v int64) predicate.Agent

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

func PidNotIn

func PidNotIn(vs ...int64) predicate.Agent

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

func PidNotNil

func PidNotNil() predicate.Agent

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

func Privileged

func Privileged(v bool) predicate.Agent

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

func PrivilegedEQ

func PrivilegedEQ(v bool) predicate.Agent

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

func PrivilegedIsNil

func PrivilegedIsNil() predicate.Agent

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

func PrivilegedNEQ

func PrivilegedNEQ(v bool) predicate.Agent

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

func PrivilegedNotNil

func PrivilegedNotNil() predicate.Agent

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

func ProcessName

func ProcessName(v string) predicate.Agent

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

func ProcessNameContains

func ProcessNameContains(v string) predicate.Agent

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

func ProcessNameContainsFold

func ProcessNameContainsFold(v string) predicate.Agent

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

func ProcessNameEQ

func ProcessNameEQ(v string) predicate.Agent

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

func ProcessNameEqualFold

func ProcessNameEqualFold(v string) predicate.Agent

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

func ProcessNameGT

func ProcessNameGT(v string) predicate.Agent

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

func ProcessNameGTE

func ProcessNameGTE(v string) predicate.Agent

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

func ProcessNameHasPrefix

func ProcessNameHasPrefix(v string) predicate.Agent

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

func ProcessNameHasSuffix

func ProcessNameHasSuffix(v string) predicate.Agent

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

func ProcessNameIn

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

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

func ProcessNameIsNil

func ProcessNameIsNil() predicate.Agent

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

func ProcessNameLT

func ProcessNameLT(v string) predicate.Agent

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

func ProcessNameLTE

func ProcessNameLTE(v string) predicate.Agent

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

func ProcessNameNEQ

func ProcessNameNEQ(v string) predicate.Agent

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

func ProcessNameNotIn

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

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

func ProcessNameNotNil

func ProcessNameNotNil() predicate.Agent

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

func Sleep

func Sleep(v uint32) predicate.Agent

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

func SleepEQ

func SleepEQ(v uint32) predicate.Agent

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

func SleepGT

func SleepGT(v uint32) predicate.Agent

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

func SleepGTE

func SleepGTE(v uint32) predicate.Agent

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

func SleepIn

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

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

func SleepLT

func SleepLT(v uint32) predicate.Agent

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

func SleepLTE

func SleepLTE(v uint32) predicate.Agent

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

func SleepNEQ

func SleepNEQ(v uint32) predicate.Agent

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

func SleepNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Agent

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Agent

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Agent

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Agent

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Agent

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Agent

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Agent

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

func UpdatedAtNotIn

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

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

func Username

func Username(v string) predicate.Agent

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

func UsernameContains

func UsernameContains(v string) predicate.Agent

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

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Agent

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

func UsernameEQ

func UsernameEQ(v string) predicate.Agent

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

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Agent

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

func UsernameGT

func UsernameGT(v string) predicate.Agent

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

func UsernameGTE

func UsernameGTE(v string) predicate.Agent

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

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Agent

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

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Agent

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

func UsernameIn

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

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

func UsernameIsNil

func UsernameIsNil() predicate.Agent

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

func UsernameLT

func UsernameLT(v string) predicate.Agent

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

func UsernameLTE

func UsernameLTE(v string) predicate.Agent

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

func UsernameNEQ

func UsernameNEQ(v string) predicate.Agent

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

func UsernameNotIn

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

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

func UsernameNotNil

func UsernameNotNil() predicate.Agent

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 Agent queries.

func ByArch

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

ByArch orders the results by the arch 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 ByCommand

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

ByCommand orders the results by command terms.

func ByCommandCount

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

ByCommandCount orders the results by command count.

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 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
JackTT - Gopher 🇻🇳