Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Agent) predicate.Agent
- func ArchEQ(v shared.AgentArch) predicate.Agent
- func ArchIn(vs ...shared.AgentArch) predicate.Agent
- func ArchNEQ(v shared.AgentArch) predicate.Agent
- func ArchNotIn(vs ...shared.AgentArch) predicate.Agent
- func ArchValidator(a shared.AgentArch) error
- func Caps(v uint32) predicate.Agent
- func CapsEQ(v uint32) predicate.Agent
- func CapsGT(v uint32) predicate.Agent
- func CapsGTE(v uint32) predicate.Agent
- func CapsIn(vs ...uint32) predicate.Agent
- func CapsLT(v uint32) predicate.Agent
- func CapsLTE(v uint32) predicate.Agent
- func CapsNEQ(v uint32) predicate.Agent
- func CapsNotIn(vs ...uint32) predicate.Agent
- func Color(v uint32) predicate.Agent
- func ColorEQ(v uint32) predicate.Agent
- func ColorGT(v uint32) predicate.Agent
- func ColorGTE(v uint32) predicate.Agent
- func ColorIn(vs ...uint32) predicate.Agent
- func ColorLT(v uint32) predicate.Agent
- func ColorLTE(v uint32) predicate.Agent
- func ColorNEQ(v uint32) predicate.Agent
- func ColorNotIn(vs ...uint32) predicate.Agent
- func CreatedAt(v time.Time) predicate.Agent
- func CreatedAtEQ(v time.Time) predicate.Agent
- func CreatedAtGT(v time.Time) predicate.Agent
- func CreatedAtGTE(v time.Time) predicate.Agent
- func CreatedAtIn(vs ...time.Time) predicate.Agent
- func CreatedAtLT(v time.Time) predicate.Agent
- func CreatedAtLTE(v time.Time) predicate.Agent
- func CreatedAtNEQ(v time.Time) predicate.Agent
- func CreatedAtNotIn(vs ...time.Time) predicate.Agent
- func DeletedAt(v time.Time) predicate.Agent
- func DeletedAtEQ(v time.Time) predicate.Agent
- func DeletedAtGT(v time.Time) predicate.Agent
- func DeletedAtGTE(v time.Time) predicate.Agent
- func DeletedAtIn(vs ...time.Time) predicate.Agent
- func DeletedAtIsNil() predicate.Agent
- func DeletedAtLT(v time.Time) predicate.Agent
- func DeletedAtLTE(v time.Time) predicate.Agent
- func DeletedAtNEQ(v time.Time) predicate.Agent
- func DeletedAtNotIn(vs ...time.Time) predicate.Agent
- func DeletedAtNotNil() predicate.Agent
- func Domain(v string) predicate.Agent
- func DomainContains(v string) predicate.Agent
- func DomainContainsFold(v string) predicate.Agent
- func DomainEQ(v string) predicate.Agent
- func DomainEqualFold(v string) predicate.Agent
- func DomainGT(v string) predicate.Agent
- func DomainGTE(v string) predicate.Agent
- func DomainHasPrefix(v string) predicate.Agent
- func DomainHasSuffix(v string) predicate.Agent
- func DomainIn(vs ...string) predicate.Agent
- func DomainIsNil() predicate.Agent
- func DomainLT(v string) predicate.Agent
- func DomainLTE(v string) predicate.Agent
- func DomainNEQ(v string) predicate.Agent
- func DomainNotIn(vs ...string) predicate.Agent
- func DomainNotNil() predicate.Agent
- func ExtIP(v types.Inet) predicate.Agent
- func ExtIPContains(v types.Inet) predicate.Agent
- func ExtIPContainsFold(v types.Inet) predicate.Agent
- func ExtIPEQ(v types.Inet) predicate.Agent
- func ExtIPEqualFold(v types.Inet) predicate.Agent
- func ExtIPGT(v types.Inet) predicate.Agent
- func ExtIPGTE(v types.Inet) predicate.Agent
- func ExtIPHasPrefix(v types.Inet) predicate.Agent
- func ExtIPHasSuffix(v types.Inet) predicate.Agent
- func ExtIPIn(vs ...types.Inet) predicate.Agent
- func ExtIPIsNil() predicate.Agent
- func ExtIPLT(v types.Inet) predicate.Agent
- func ExtIPLTE(v types.Inet) predicate.Agent
- func ExtIPNEQ(v types.Inet) predicate.Agent
- func ExtIPNotIn(vs ...types.Inet) predicate.Agent
- func ExtIPNotNil() predicate.Agent
- func First(v time.Time) predicate.Agent
- func FirstEQ(v time.Time) predicate.Agent
- func FirstGT(v time.Time) predicate.Agent
- func FirstGTE(v time.Time) predicate.Agent
- func FirstIn(vs ...time.Time) predicate.Agent
- func FirstLT(v time.Time) predicate.Agent
- func FirstLTE(v time.Time) predicate.Agent
- func FirstNEQ(v time.Time) predicate.Agent
- func FirstNotIn(vs ...time.Time) predicate.Agent
- func HasCommand() predicate.Agent
- func HasCommandWith(preds ...predicate.Command) predicate.Agent
- func HasListener() predicate.Agent
- func HasListenerWith(preds ...predicate.Listener) predicate.Agent
- func HasTask() predicate.Agent
- func HasTaskWith(preds ...predicate.Task) predicate.Agent
- func Hostname(v string) predicate.Agent
- func HostnameContains(v string) predicate.Agent
- func HostnameContainsFold(v string) predicate.Agent
- func HostnameEQ(v string) predicate.Agent
- func HostnameEqualFold(v string) predicate.Agent
- func HostnameGT(v string) predicate.Agent
- func HostnameGTE(v string) predicate.Agent
- func HostnameHasPrefix(v string) predicate.Agent
- func HostnameHasSuffix(v string) predicate.Agent
- func HostnameIn(vs ...string) predicate.Agent
- func HostnameIsNil() predicate.Agent
- func HostnameLT(v string) predicate.Agent
- func HostnameLTE(v string) predicate.Agent
- func HostnameNEQ(v string) predicate.Agent
- func HostnameNotIn(vs ...string) predicate.Agent
- func HostnameNotNil() predicate.Agent
- func ID(id uint32) predicate.Agent
- func IDEQ(id uint32) predicate.Agent
- func IDGT(id uint32) predicate.Agent
- func IDGTE(id uint32) predicate.Agent
- func IDIn(ids ...uint32) predicate.Agent
- func IDLT(id uint32) predicate.Agent
- func IDLTE(id uint32) predicate.Agent
- func IDNEQ(id uint32) predicate.Agent
- func IDNotIn(ids ...uint32) predicate.Agent
- func IntIP(v types.Inet) predicate.Agent
- func IntIPContains(v types.Inet) predicate.Agent
- func IntIPContainsFold(v types.Inet) predicate.Agent
- func IntIPEQ(v types.Inet) predicate.Agent
- func IntIPEqualFold(v types.Inet) predicate.Agent
- func IntIPGT(v types.Inet) predicate.Agent
- func IntIPGTE(v types.Inet) predicate.Agent
- func IntIPHasPrefix(v types.Inet) predicate.Agent
- func IntIPHasSuffix(v types.Inet) predicate.Agent
- func IntIPIn(vs ...types.Inet) predicate.Agent
- func IntIPIsNil() predicate.Agent
- func IntIPLT(v types.Inet) predicate.Agent
- func IntIPLTE(v types.Inet) predicate.Agent
- func IntIPNEQ(v types.Inet) predicate.Agent
- func IntIPNotIn(vs ...types.Inet) predicate.Agent
- func IntIPNotNil() predicate.Agent
- func Jitter(v uint8) predicate.Agent
- func JitterEQ(v uint8) predicate.Agent
- func JitterGT(v uint8) predicate.Agent
- func JitterGTE(v uint8) predicate.Agent
- func JitterIn(vs ...uint8) predicate.Agent
- func JitterLT(v uint8) predicate.Agent
- func JitterLTE(v uint8) predicate.Agent
- func JitterNEQ(v uint8) predicate.Agent
- func JitterNotIn(vs ...uint8) predicate.Agent
- func Last(v time.Time) predicate.Agent
- func LastEQ(v time.Time) predicate.Agent
- func LastGT(v time.Time) predicate.Agent
- func LastGTE(v time.Time) predicate.Agent
- func LastIn(vs ...time.Time) predicate.Agent
- func LastLT(v time.Time) predicate.Agent
- func LastLTE(v time.Time) predicate.Agent
- func LastNEQ(v time.Time) predicate.Agent
- func LastNotIn(vs ...time.Time) predicate.Agent
- func ListenerID(v int64) predicate.Agent
- func ListenerIDEQ(v int64) predicate.Agent
- func ListenerIDIn(vs ...int64) predicate.Agent
- func ListenerIDNEQ(v int64) predicate.Agent
- func ListenerIDNotIn(vs ...int64) predicate.Agent
- func Not(p predicate.Agent) predicate.Agent
- func Note(v string) predicate.Agent
- func NoteContains(v string) predicate.Agent
- func NoteContainsFold(v string) predicate.Agent
- func NoteEQ(v string) predicate.Agent
- func NoteEqualFold(v string) predicate.Agent
- func NoteGT(v string) predicate.Agent
- func NoteGTE(v string) predicate.Agent
- func NoteHasPrefix(v string) predicate.Agent
- func NoteHasSuffix(v string) predicate.Agent
- func NoteIn(vs ...string) predicate.Agent
- func NoteIsNil() predicate.Agent
- func NoteLT(v string) predicate.Agent
- func NoteLTE(v string) predicate.Agent
- func NoteNEQ(v string) predicate.Agent
- func NoteNotIn(vs ...string) predicate.Agent
- func NoteNotNil() predicate.Agent
- func Or(predicates ...predicate.Agent) predicate.Agent
- func OsEQ(v shared.AgentOs) predicate.Agent
- func OsIn(vs ...shared.AgentOs) predicate.Agent
- func OsMeta(v string) predicate.Agent
- func OsMetaContains(v string) predicate.Agent
- func OsMetaContainsFold(v string) predicate.Agent
- func OsMetaEQ(v string) predicate.Agent
- func OsMetaEqualFold(v string) predicate.Agent
- func OsMetaGT(v string) predicate.Agent
- func OsMetaGTE(v string) predicate.Agent
- func OsMetaHasPrefix(v string) predicate.Agent
- func OsMetaHasSuffix(v string) predicate.Agent
- func OsMetaIn(vs ...string) predicate.Agent
- func OsMetaIsNil() predicate.Agent
- func OsMetaLT(v string) predicate.Agent
- func OsMetaLTE(v string) predicate.Agent
- func OsMetaNEQ(v string) predicate.Agent
- func OsMetaNotIn(vs ...string) predicate.Agent
- func OsMetaNotNil() predicate.Agent
- func OsNEQ(v shared.AgentOs) predicate.Agent
- func OsNotIn(vs ...shared.AgentOs) predicate.Agent
- func OsValidator(o shared.AgentOs) error
- func Pid(v int64) predicate.Agent
- func PidEQ(v int64) predicate.Agent
- func PidGT(v int64) predicate.Agent
- func PidGTE(v int64) predicate.Agent
- func PidIn(vs ...int64) predicate.Agent
- func PidIsNil() predicate.Agent
- func PidLT(v int64) predicate.Agent
- func PidLTE(v int64) predicate.Agent
- func PidNEQ(v int64) predicate.Agent
- func PidNotIn(vs ...int64) predicate.Agent
- func PidNotNil() predicate.Agent
- func Privileged(v bool) predicate.Agent
- func PrivilegedEQ(v bool) predicate.Agent
- func PrivilegedIsNil() predicate.Agent
- func PrivilegedNEQ(v bool) predicate.Agent
- func PrivilegedNotNil() predicate.Agent
- func ProcessName(v string) predicate.Agent
- func ProcessNameContains(v string) predicate.Agent
- func ProcessNameContainsFold(v string) predicate.Agent
- func ProcessNameEQ(v string) predicate.Agent
- func ProcessNameEqualFold(v string) predicate.Agent
- func ProcessNameGT(v string) predicate.Agent
- func ProcessNameGTE(v string) predicate.Agent
- func ProcessNameHasPrefix(v string) predicate.Agent
- func ProcessNameHasSuffix(v string) predicate.Agent
- func ProcessNameIn(vs ...string) predicate.Agent
- func ProcessNameIsNil() predicate.Agent
- func ProcessNameLT(v string) predicate.Agent
- func ProcessNameLTE(v string) predicate.Agent
- func ProcessNameNEQ(v string) predicate.Agent
- func ProcessNameNotIn(vs ...string) predicate.Agent
- func ProcessNameNotNil() predicate.Agent
- func Sleep(v uint32) predicate.Agent
- func SleepEQ(v uint32) predicate.Agent
- func SleepGT(v uint32) predicate.Agent
- func SleepGTE(v uint32) predicate.Agent
- func SleepIn(vs ...uint32) predicate.Agent
- func SleepLT(v uint32) predicate.Agent
- func SleepLTE(v uint32) predicate.Agent
- func SleepNEQ(v uint32) predicate.Agent
- func SleepNotIn(vs ...uint32) predicate.Agent
- func UpdatedAt(v time.Time) predicate.Agent
- func UpdatedAtEQ(v time.Time) predicate.Agent
- func UpdatedAtGT(v time.Time) predicate.Agent
- func UpdatedAtGTE(v time.Time) predicate.Agent
- func UpdatedAtIn(vs ...time.Time) predicate.Agent
- func UpdatedAtLT(v time.Time) predicate.Agent
- func UpdatedAtLTE(v time.Time) predicate.Agent
- func UpdatedAtNEQ(v time.Time) predicate.Agent
- func UpdatedAtNotIn(vs ...time.Time) predicate.Agent
- func Username(v string) predicate.Agent
- func UsernameContains(v string) predicate.Agent
- func UsernameContainsFold(v string) predicate.Agent
- func UsernameEQ(v string) predicate.Agent
- func UsernameEqualFold(v string) predicate.Agent
- func UsernameGT(v string) predicate.Agent
- func UsernameGTE(v string) predicate.Agent
- func UsernameHasPrefix(v string) predicate.Agent
- func UsernameHasSuffix(v string) predicate.Agent
- func UsernameIn(vs ...string) predicate.Agent
- func UsernameIsNil() predicate.Agent
- func UsernameLT(v string) predicate.Agent
- func UsernameLTE(v string) predicate.Agent
- func UsernameNEQ(v string) predicate.Agent
- func UsernameNotIn(vs ...string) predicate.Agent
- func UsernameNotNil() predicate.Agent
- func ValidColumn(column string) bool
- type OrderOption
- func ByArch(opts ...sql.OrderTermOption) OrderOption
- func ByCaps(opts ...sql.OrderTermOption) OrderOption
- func ByColor(opts ...sql.OrderTermOption) OrderOption
- func ByCommand(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCommandCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByExtIP(opts ...sql.OrderTermOption) OrderOption
- func ByFirst(opts ...sql.OrderTermOption) OrderOption
- func ByHostname(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIntIP(opts ...sql.OrderTermOption) OrderOption
- func ByJitter(opts ...sql.OrderTermOption) OrderOption
- func ByLast(opts ...sql.OrderTermOption) OrderOption
- func ByListenerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByListenerID(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByOs(opts ...sql.OrderTermOption) OrderOption
- func ByOsMeta(opts ...sql.OrderTermOption) OrderOption
- func ByPid(opts ...sql.OrderTermOption) OrderOption
- func ByPrivileged(opts ...sql.OrderTermOption) OrderOption
- func ByProcessName(opts ...sql.OrderTermOption) OrderOption
- func BySleep(opts ...sql.OrderTermOption) OrderOption
- func ByTask(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTaskCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldListenerID, FieldExtIP, FieldIntIP, FieldOs, FieldOsMeta, FieldHostname, FieldUsername, FieldDomain, FieldPrivileged, FieldProcessName, FieldPid, FieldArch, FieldSleep, FieldJitter, FieldFirst, FieldLast, FieldCaps, FieldNote, FieldColor, }
Columns holds all SQL columns for agent fields.
Functions ¶
func ArchValidator ¶
ArchValidator is a validator for the "arch" field enum values. It is called by the builders before save.
func Color ¶
Color applies equality check predicate on the "color" field. It's identical to ColorEQ.
func ColorNotIn ¶
ColorNotIn applies the NotIn predicate on the "color" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainIsNil ¶
DomainIsNil applies the IsNil predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func DomainNotNil ¶
DomainNotNil applies the NotNil predicate on the "domain" field.
func ExtIP ¶
ExtIP applies equality check predicate on the "ext_ip" field. It's identical to ExtIPEQ.
func ExtIPContains ¶
ExtIPContains applies the Contains predicate on the "ext_ip" field.
func ExtIPContainsFold ¶
ExtIPContainsFold applies the ContainsFold predicate on the "ext_ip" field.
func ExtIPEqualFold ¶
ExtIPEqualFold applies the EqualFold predicate on the "ext_ip" field.
func ExtIPHasPrefix ¶
ExtIPHasPrefix applies the HasPrefix predicate on the "ext_ip" field.
func ExtIPHasSuffix ¶
ExtIPHasSuffix applies the HasSuffix predicate on the "ext_ip" field.
func ExtIPIsNil ¶
ExtIPIsNil applies the IsNil predicate on the "ext_ip" field.
func ExtIPNotIn ¶
ExtIPNotIn applies the NotIn predicate on the "ext_ip" field.
func ExtIPNotNil ¶
ExtIPNotNil applies the NotNil predicate on the "ext_ip" field.
func First ¶
First applies equality check predicate on the "first" field. It's identical to FirstEQ.
func FirstNotIn ¶
FirstNotIn applies the NotIn predicate on the "first" field.
func HasCommand ¶
HasCommand applies the HasEdge predicate on the "command" edge.
func HasCommandWith ¶
HasCommandWith applies the HasEdge predicate on the "command" edge with a given conditions (other predicates).
func HasListener ¶
HasListener applies the HasEdge predicate on the "listener" edge.
func HasListenerWith ¶
HasListenerWith applies the HasEdge predicate on the "listener" edge with a given conditions (other predicates).
func HasTaskWith ¶
HasTaskWith applies the HasEdge predicate on the "task" edge with a given conditions (other predicates).
func Hostname ¶
Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.
func HostnameContains ¶
HostnameContains applies the Contains predicate on the "hostname" field.
func HostnameContainsFold ¶
HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.
func HostnameEQ ¶
HostnameEQ applies the EQ predicate on the "hostname" field.
func HostnameEqualFold ¶
HostnameEqualFold applies the EqualFold predicate on the "hostname" field.
func HostnameGT ¶
HostnameGT applies the GT predicate on the "hostname" field.
func HostnameGTE ¶
HostnameGTE applies the GTE predicate on the "hostname" field.
func HostnameHasPrefix ¶
HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.
func HostnameHasSuffix ¶
HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.
func HostnameIn ¶
HostnameIn applies the In predicate on the "hostname" field.
func HostnameIsNil ¶
HostnameIsNil applies the IsNil predicate on the "hostname" field.
func HostnameLT ¶
HostnameLT applies the LT predicate on the "hostname" field.
func HostnameLTE ¶
HostnameLTE applies the LTE predicate on the "hostname" field.
func HostnameNEQ ¶
HostnameNEQ applies the NEQ predicate on the "hostname" field.
func HostnameNotIn ¶
HostnameNotIn applies the NotIn predicate on the "hostname" field.
func HostnameNotNil ¶
HostnameNotNil applies the NotNil predicate on the "hostname" field.
func IntIP ¶
IntIP applies equality check predicate on the "int_ip" field. It's identical to IntIPEQ.
func IntIPContains ¶
IntIPContains applies the Contains predicate on the "int_ip" field.
func IntIPContainsFold ¶
IntIPContainsFold applies the ContainsFold predicate on the "int_ip" field.
func IntIPEqualFold ¶
IntIPEqualFold applies the EqualFold predicate on the "int_ip" field.
func IntIPHasPrefix ¶
IntIPHasPrefix applies the HasPrefix predicate on the "int_ip" field.
func IntIPHasSuffix ¶
IntIPHasSuffix applies the HasSuffix predicate on the "int_ip" field.
func IntIPIsNil ¶
IntIPIsNil applies the IsNil predicate on the "int_ip" field.
func IntIPNotIn ¶
IntIPNotIn applies the NotIn predicate on the "int_ip" field.
func IntIPNotNil ¶
IntIPNotNil applies the NotNil predicate on the "int_ip" field.
func Jitter ¶
Jitter applies equality check predicate on the "jitter" field. It's identical to JitterEQ.
func JitterNotIn ¶
JitterNotIn applies the NotIn predicate on the "jitter" field.
func ListenerID ¶
ListenerID applies equality check predicate on the "listener_id" field. It's identical to ListenerIDEQ.
func ListenerIDEQ ¶
ListenerIDEQ applies the EQ predicate on the "listener_id" field.
func ListenerIDIn ¶
ListenerIDIn applies the In predicate on the "listener_id" field.
func ListenerIDNEQ ¶
ListenerIDNEQ applies the NEQ predicate on the "listener_id" field.
func ListenerIDNotIn ¶
ListenerIDNotIn applies the NotIn predicate on the "listener_id" field.
func NoteContains ¶
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEqualFold ¶
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteHasPrefix ¶
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteNotNil ¶
NoteNotNil applies the NotNil predicate on the "note" field.
func OsMeta ¶
OsMeta applies equality check predicate on the "os_meta" field. It's identical to OsMetaEQ.
func OsMetaContains ¶
OsMetaContains applies the Contains predicate on the "os_meta" field.
func OsMetaContainsFold ¶
OsMetaContainsFold applies the ContainsFold predicate on the "os_meta" field.
func OsMetaEqualFold ¶
OsMetaEqualFold applies the EqualFold predicate on the "os_meta" field.
func OsMetaHasPrefix ¶
OsMetaHasPrefix applies the HasPrefix predicate on the "os_meta" field.
func OsMetaHasSuffix ¶
OsMetaHasSuffix applies the HasSuffix predicate on the "os_meta" field.
func OsMetaIsNil ¶
OsMetaIsNil applies the IsNil predicate on the "os_meta" field.
func OsMetaNotIn ¶
OsMetaNotIn applies the NotIn predicate on the "os_meta" field.
func OsMetaNotNil ¶
OsMetaNotNil applies the NotNil predicate on the "os_meta" field.
func OsValidator ¶
OsValidator is a validator for the "os" field enum values. It is called by the builders before save.
func Privileged ¶
Privileged applies equality check predicate on the "privileged" field. It's identical to PrivilegedEQ.
func PrivilegedEQ ¶
PrivilegedEQ applies the EQ predicate on the "privileged" field.
func PrivilegedIsNil ¶
PrivilegedIsNil applies the IsNil predicate on the "privileged" field.
func PrivilegedNEQ ¶
PrivilegedNEQ applies the NEQ predicate on the "privileged" field.
func PrivilegedNotNil ¶
PrivilegedNotNil applies the NotNil predicate on the "privileged" field.
func ProcessName ¶
ProcessName applies equality check predicate on the "process_name" field. It's identical to ProcessNameEQ.
func ProcessNameContains ¶
ProcessNameContains applies the Contains predicate on the "process_name" field.
func ProcessNameContainsFold ¶
ProcessNameContainsFold applies the ContainsFold predicate on the "process_name" field.
func ProcessNameEQ ¶
ProcessNameEQ applies the EQ predicate on the "process_name" field.
func ProcessNameEqualFold ¶
ProcessNameEqualFold applies the EqualFold predicate on the "process_name" field.
func ProcessNameGT ¶
ProcessNameGT applies the GT predicate on the "process_name" field.
func ProcessNameGTE ¶
ProcessNameGTE applies the GTE predicate on the "process_name" field.
func ProcessNameHasPrefix ¶
ProcessNameHasPrefix applies the HasPrefix predicate on the "process_name" field.
func ProcessNameHasSuffix ¶
ProcessNameHasSuffix applies the HasSuffix predicate on the "process_name" field.
func ProcessNameIn ¶
ProcessNameIn applies the In predicate on the "process_name" field.
func ProcessNameIsNil ¶
ProcessNameIsNil applies the IsNil predicate on the "process_name" field.
func ProcessNameLT ¶
ProcessNameLT applies the LT predicate on the "process_name" field.
func ProcessNameLTE ¶
ProcessNameLTE applies the LTE predicate on the "process_name" field.
func ProcessNameNEQ ¶
ProcessNameNEQ applies the NEQ predicate on the "process_name" field.
func ProcessNameNotIn ¶
ProcessNameNotIn applies the NotIn predicate on the "process_name" field.
func ProcessNameNotNil ¶
ProcessNameNotNil applies the NotNil predicate on the "process_name" field.
func Sleep ¶
Sleep applies equality check predicate on the "sleep" field. It's identical to SleepEQ.
func SleepNotIn ¶
SleepNotIn applies the NotIn predicate on the "sleep" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameIsNil ¶
UsernameIsNil applies the IsNil predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func UsernameNotNil ¶
UsernameNotNil applies the NotNil predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.