package
1.6.8
Repository: https://github.com/crowdsecurity/crowdsec.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
AuthType applies equality check predicate on the "auth_type" field.
AuthTypeContains applies the Contains predicate on the "auth_type" field.
AuthTypeContainsFold applies the ContainsFold predicate on the "auth_type" field.
AuthTypeEQ applies the EQ predicate on the "auth_type" field.
AuthTypeEqualFold applies the EqualFold predicate on the "auth_type" field.
AuthTypeGT applies the GT predicate on the "auth_type" field.
AuthTypeGTE applies the GTE predicate on the "auth_type" field.
AuthTypeHasPrefix applies the HasPrefix predicate on the "auth_type" field.
AuthTypeHasSuffix applies the HasSuffix predicate on the "auth_type" field.
AuthTypeIn applies the In predicate on the "auth_type" field.
AuthTypeLT applies the LT predicate on the "auth_type" field.
AuthTypeLTE applies the LTE predicate on the "auth_type" field.
AuthTypeNEQ applies the NEQ predicate on the "auth_type" field.
AuthTypeNotIn applies the NotIn predicate on the "auth_type" field.
ByAlerts orders the results by alerts terms.
ByAlertsCount orders the results by alerts count.
ByAuthType orders the results by the auth_type field.
ByCreatedAt orders the results by the created_at field.
ByFeatureflags orders the results by the featureflags field.
ByID orders the results by the id field.
ByIpAddress orders the results by the ipAddress field.
ByIsValidated orders the results by the isValidated field.
ByLastHeartbeat orders the results by the last_heartbeat field.
ByLastPush orders the results by the last_push field.
ByMachineId orders the results by the machineId field.
ByOsname orders the results by the osname field.
ByOsversion orders the results by the osversion field.
ByPassword orders the results by the password field.
ByScenarios orders the results by the scenarios field.
ByUpdatedAt orders the results by the updated_at field.
ByVersion orders the results by the version field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
DatasourcesIsNil applies the IsNil predicate on the "datasources" field.
DatasourcesNotNil applies the NotNil predicate on the "datasources" field.
Featureflags applies equality check predicate on the "featureflags" field.
FeatureflagsContains applies the Contains predicate on the "featureflags" field.
FeatureflagsContainsFold applies the ContainsFold predicate on the "featureflags" field.
FeatureflagsEQ applies the EQ predicate on the "featureflags" field.
FeatureflagsEqualFold applies the EqualFold predicate on the "featureflags" field.
FeatureflagsGT applies the GT predicate on the "featureflags" field.
FeatureflagsGTE applies the GTE predicate on the "featureflags" field.
FeatureflagsHasPrefix applies the HasPrefix predicate on the "featureflags" field.
FeatureflagsHasSuffix applies the HasSuffix predicate on the "featureflags" field.
FeatureflagsIn applies the In predicate on the "featureflags" field.
FeatureflagsIsNil applies the IsNil predicate on the "featureflags" field.
FeatureflagsLT applies the LT predicate on the "featureflags" field.
FeatureflagsLTE applies the LTE predicate on the "featureflags" field.
FeatureflagsNEQ applies the NEQ predicate on the "featureflags" field.
FeatureflagsNotIn applies the NotIn predicate on the "featureflags" field.
FeatureflagsNotNil applies the NotNil predicate on the "featureflags" field.
HasAlerts applies the HasEdge predicate on the "alerts" edge.
HasAlertsWith applies the HasEdge predicate on the "alerts" edge with a given conditions (other predicates).
HubstateIsNil applies the IsNil predicate on the "hubstate" field.
HubstateNotNil applies the NotNil predicate on the "hubstate" field.
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
IpAddress applies equality check predicate on the "ipAddress" field.
IpAddressContains applies the Contains predicate on the "ipAddress" field.
IpAddressContainsFold applies the ContainsFold predicate on the "ipAddress" field.
IpAddressEQ applies the EQ predicate on the "ipAddress" field.
IpAddressEqualFold applies the EqualFold predicate on the "ipAddress" field.
IpAddressGT applies the GT predicate on the "ipAddress" field.
IpAddressGTE applies the GTE predicate on the "ipAddress" field.
IpAddressHasPrefix applies the HasPrefix predicate on the "ipAddress" field.
IpAddressHasSuffix applies the HasSuffix predicate on the "ipAddress" field.
IpAddressIn applies the In predicate on the "ipAddress" field.
IpAddressLT applies the LT predicate on the "ipAddress" field.
IpAddressLTE applies the LTE predicate on the "ipAddress" field.
IpAddressNEQ applies the NEQ predicate on the "ipAddress" field.
IpAddressNotIn applies the NotIn predicate on the "ipAddress" field.
IsValidated applies equality check predicate on the "isValidated" field.
IsValidatedEQ applies the EQ predicate on the "isValidated" field.
IsValidatedNEQ applies the NEQ predicate on the "isValidated" field.
LastHeartbeat applies equality check predicate on the "last_heartbeat" field.
LastHeartbeatEQ applies the EQ predicate on the "last_heartbeat" field.
LastHeartbeatGT applies the GT predicate on the "last_heartbeat" field.
LastHeartbeatGTE applies the GTE predicate on the "last_heartbeat" field.
LastHeartbeatIn applies the In predicate on the "last_heartbeat" field.
LastHeartbeatIsNil applies the IsNil predicate on the "last_heartbeat" field.
LastHeartbeatLT applies the LT predicate on the "last_heartbeat" field.
LastHeartbeatLTE applies the LTE predicate on the "last_heartbeat" field.
LastHeartbeatNEQ applies the NEQ predicate on the "last_heartbeat" field.
LastHeartbeatNotIn applies the NotIn predicate on the "last_heartbeat" field.
LastHeartbeatNotNil applies the NotNil predicate on the "last_heartbeat" field.
LastPush applies equality check predicate on the "last_push" field.
LastPushEQ applies the EQ predicate on the "last_push" field.
LastPushGT applies the GT predicate on the "last_push" field.
LastPushGTE applies the GTE predicate on the "last_push" field.
LastPushIn applies the In predicate on the "last_push" field.
LastPushIsNil applies the IsNil predicate on the "last_push" field.
LastPushLT applies the LT predicate on the "last_push" field.
LastPushLTE applies the LTE predicate on the "last_push" field.
LastPushNEQ applies the NEQ predicate on the "last_push" field.
LastPushNotIn applies the NotIn predicate on the "last_push" field.
LastPushNotNil applies the NotNil predicate on the "last_push" field.
MachineId applies equality check predicate on the "machineId" field.
MachineIdContains applies the Contains predicate on the "machineId" field.
MachineIdContainsFold applies the ContainsFold predicate on the "machineId" field.
MachineIdEQ applies the EQ predicate on the "machineId" field.
MachineIdEqualFold applies the EqualFold predicate on the "machineId" field.
MachineIdGT applies the GT predicate on the "machineId" field.
MachineIdGTE applies the GTE predicate on the "machineId" field.
MachineIdHasPrefix applies the HasPrefix predicate on the "machineId" field.
MachineIdHasSuffix applies the HasSuffix predicate on the "machineId" field.
MachineIdIn applies the In predicate on the "machineId" field.
MachineIdLT applies the LT predicate on the "machineId" field.
MachineIdLTE applies the LTE predicate on the "machineId" field.
MachineIdNEQ applies the NEQ predicate on the "machineId" field.
MachineIdNotIn applies the NotIn predicate on the "machineId" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
Osname applies equality check predicate on the "osname" field.
OsnameContains applies the Contains predicate on the "osname" field.
OsnameContainsFold applies the ContainsFold predicate on the "osname" field.
OsnameEQ applies the EQ predicate on the "osname" field.
OsnameEqualFold applies the EqualFold predicate on the "osname" field.
OsnameGT applies the GT predicate on the "osname" field.
OsnameGTE applies the GTE predicate on the "osname" field.
OsnameHasPrefix applies the HasPrefix predicate on the "osname" field.
OsnameHasSuffix applies the HasSuffix predicate on the "osname" field.
OsnameIn applies the In predicate on the "osname" field.
OsnameIsNil applies the IsNil predicate on the "osname" field.
OsnameLT applies the LT predicate on the "osname" field.
OsnameLTE applies the LTE predicate on the "osname" field.
OsnameNEQ applies the NEQ predicate on the "osname" field.
OsnameNotIn applies the NotIn predicate on the "osname" field.
OsnameNotNil applies the NotNil predicate on the "osname" field.
Osversion applies equality check predicate on the "osversion" field.
OsversionContains applies the Contains predicate on the "osversion" field.
OsversionContainsFold applies the ContainsFold predicate on the "osversion" field.
OsversionEQ applies the EQ predicate on the "osversion" field.
OsversionEqualFold applies the EqualFold predicate on the "osversion" field.
OsversionGT applies the GT predicate on the "osversion" field.
OsversionGTE applies the GTE predicate on the "osversion" field.
OsversionHasPrefix applies the HasPrefix predicate on the "osversion" field.
OsversionHasSuffix applies the HasSuffix predicate on the "osversion" field.
OsversionIn applies the In predicate on the "osversion" field.
OsversionIsNil applies the IsNil predicate on the "osversion" field.
OsversionLT applies the LT predicate on the "osversion" field.
OsversionLTE applies the LTE predicate on the "osversion" field.
OsversionNEQ applies the NEQ predicate on the "osversion" field.
OsversionNotIn applies the NotIn predicate on the "osversion" field.
OsversionNotNil applies the NotNil predicate on the "osversion" field.
Password applies equality check predicate on the "password" field.
PasswordContains applies the Contains predicate on the "password" field.
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
PasswordEQ applies the EQ predicate on the "password" field.
PasswordEqualFold applies the EqualFold predicate on the "password" field.
PasswordGT applies the GT predicate on the "password" field.
PasswordGTE applies the GTE predicate on the "password" field.
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
PasswordIn applies the In predicate on the "password" field.
PasswordLT applies the LT predicate on the "password" field.
PasswordLTE applies the LTE predicate on the "password" field.
PasswordNEQ applies the NEQ predicate on the "password" field.
PasswordNotIn applies the NotIn predicate on the "password" field.
Scenarios applies equality check predicate on the "scenarios" field.
ScenariosContains applies the Contains predicate on the "scenarios" field.
ScenariosContainsFold applies the ContainsFold predicate on the "scenarios" field.
ScenariosEQ applies the EQ predicate on the "scenarios" field.
ScenariosEqualFold applies the EqualFold predicate on the "scenarios" field.
ScenariosGT applies the GT predicate on the "scenarios" field.
ScenariosGTE applies the GTE predicate on the "scenarios" field.
ScenariosHasPrefix applies the HasPrefix predicate on the "scenarios" field.
ScenariosHasSuffix applies the HasSuffix predicate on the "scenarios" field.
ScenariosIn applies the In predicate on the "scenarios" field.
ScenariosIsNil applies the IsNil predicate on the "scenarios" field.
ScenariosLT applies the LT predicate on the "scenarios" field.
ScenariosLTE applies the LTE predicate on the "scenarios" field.
ScenariosNEQ applies the NEQ predicate on the "scenarios" field.
ScenariosNotIn applies the NotIn predicate on the "scenarios" field.
ScenariosNotNil applies the NotNil predicate on the "scenarios" field.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
ValidColumn reports if the column name is valid (part of the table columns).
Version applies equality check predicate on the "version" field.
VersionContains applies the Contains predicate on the "version" field.
VersionContainsFold applies the ContainsFold predicate on the "version" field.
VersionEQ applies the EQ predicate on the "version" field.
VersionEqualFold applies the EqualFold predicate on the "version" field.
VersionGT applies the GT predicate on the "version" field.
VersionGTE applies the GTE predicate on the "version" field.
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
VersionIn applies the In predicate on the "version" field.
VersionIsNil applies the IsNil predicate on the "version" field.
VersionLT applies the LT predicate on the "version" field.
VersionLTE applies the LTE predicate on the "version" field.
VersionNEQ applies the NEQ predicate on the "version" field.
VersionNotIn applies the NotIn predicate on the "version" field.
VersionNotNil applies the NotNil predicate on the "version" field.

# Constants

AlertsColumn is the table column denoting the alerts relation/edge.
AlertsInverseTable is the table name for the Alert entity.
AlertsTable is the table that holds the alerts relation/edge.
EdgeAlerts holds the string denoting the alerts edge name in mutations.
FieldAuthType holds the string denoting the auth_type field in the database.
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldDatasources holds the string denoting the datasources field in the database.
FieldFeatureflags holds the string denoting the featureflags field in the database.
FieldHubstate holds the string denoting the hubstate field in the database.
FieldID holds the string denoting the id field in the database.
FieldIpAddress holds the string denoting the ipaddress field in the database.
FieldIsValidated holds the string denoting the isvalidated field in the database.
FieldLastHeartbeat holds the string denoting the last_heartbeat field in the database.
FieldLastPush holds the string denoting the last_push field in the database.
FieldMachineId holds the string denoting the machineid field in the database.
FieldOsname holds the string denoting the osname field in the database.
FieldOsversion holds the string denoting the osversion field in the database.
FieldPassword holds the string denoting the password field in the database.
FieldScenarios holds the string denoting the scenarios field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldVersion holds the string denoting the version field in the database.
Label holds the string label denoting the machine type in the database.
Table holds the table name of the machine in the database.

# Variables

Columns holds all SQL columns for machine fields.
DefaultAuthType holds the default value on creation for the "auth_type" field.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultIsValidated holds the default value on creation for the "isValidated" field.
DefaultLastPush holds the default value on creation for the "last_push" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
ScenariosValidator is a validator for the "scenarios" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the Machine queries.