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.
ByAllowlist orders the results by allowlist terms.
ByAllowlistCount orders the results by allowlist count.
ByComment orders the results by the comment field.
ByCreatedAt orders the results by the created_at field.
ByEndIP orders the results by the end_ip field.
ByEndSuffix orders the results by the end_suffix field.
ByExpiresAt orders the results by the expires_at field.
ByID orders the results by the id field.
ByIPSize orders the results by the ip_size field.
ByStartIP orders the results by the start_ip field.
ByStartSuffix orders the results by the start_suffix field.
ByUpdatedAt orders the results by the updated_at field.
ByValue orders the results by the value field.
Comment applies equality check predicate on the "comment" field.
CommentContains applies the Contains predicate on the "comment" field.
CommentContainsFold applies the ContainsFold predicate on the "comment" field.
CommentEQ applies the EQ predicate on the "comment" field.
CommentEqualFold applies the EqualFold predicate on the "comment" field.
CommentGT applies the GT predicate on the "comment" field.
CommentGTE applies the GTE predicate on the "comment" field.
CommentHasPrefix applies the HasPrefix predicate on the "comment" field.
CommentHasSuffix applies the HasSuffix predicate on the "comment" field.
CommentIn applies the In predicate on the "comment" field.
CommentIsNil applies the IsNil predicate on the "comment" field.
CommentLT applies the LT predicate on the "comment" field.
CommentLTE applies the LTE predicate on the "comment" field.
CommentNEQ applies the NEQ predicate on the "comment" field.
CommentNotIn applies the NotIn predicate on the "comment" field.
CommentNotNil applies the NotNil predicate on the "comment" 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.
EndIP applies equality check predicate on the "end_ip" field.
EndIPEQ applies the EQ predicate on the "end_ip" field.
EndIPGT applies the GT predicate on the "end_ip" field.
EndIPGTE applies the GTE predicate on the "end_ip" field.
EndIPIn applies the In predicate on the "end_ip" field.
EndIPIsNil applies the IsNil predicate on the "end_ip" field.
EndIPLT applies the LT predicate on the "end_ip" field.
EndIPLTE applies the LTE predicate on the "end_ip" field.
EndIPNEQ applies the NEQ predicate on the "end_ip" field.
EndIPNotIn applies the NotIn predicate on the "end_ip" field.
EndIPNotNil applies the NotNil predicate on the "end_ip" field.
EndSuffix applies equality check predicate on the "end_suffix" field.
EndSuffixEQ applies the EQ predicate on the "end_suffix" field.
EndSuffixGT applies the GT predicate on the "end_suffix" field.
EndSuffixGTE applies the GTE predicate on the "end_suffix" field.
EndSuffixIn applies the In predicate on the "end_suffix" field.
EndSuffixIsNil applies the IsNil predicate on the "end_suffix" field.
EndSuffixLT applies the LT predicate on the "end_suffix" field.
EndSuffixLTE applies the LTE predicate on the "end_suffix" field.
EndSuffixNEQ applies the NEQ predicate on the "end_suffix" field.
EndSuffixNotIn applies the NotIn predicate on the "end_suffix" field.
EndSuffixNotNil applies the NotNil predicate on the "end_suffix" field.
ExpiresAt applies equality check predicate on the "expires_at" field.
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
ExpiresAtGT applies the GT predicate on the "expires_at" field.
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
ExpiresAtIn applies the In predicate on the "expires_at" field.
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
ExpiresAtLT applies the LT predicate on the "expires_at" field.
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
HasAllowlist applies the HasEdge predicate on the "allowlist" edge.
HasAllowlistWith applies the HasEdge predicate on the "allowlist" edge with a given conditions (other predicates).
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.
IPSize applies equality check predicate on the "ip_size" field.
IPSizeEQ applies the EQ predicate on the "ip_size" field.
IPSizeGT applies the GT predicate on the "ip_size" field.
IPSizeGTE applies the GTE predicate on the "ip_size" field.
IPSizeIn applies the In predicate on the "ip_size" field.
IPSizeIsNil applies the IsNil predicate on the "ip_size" field.
IPSizeLT applies the LT predicate on the "ip_size" field.
IPSizeLTE applies the LTE predicate on the "ip_size" field.
IPSizeNEQ applies the NEQ predicate on the "ip_size" field.
IPSizeNotIn applies the NotIn predicate on the "ip_size" field.
IPSizeNotNil applies the NotNil predicate on the "ip_size" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
StartIP applies equality check predicate on the "start_ip" field.
StartIPEQ applies the EQ predicate on the "start_ip" field.
StartIPGT applies the GT predicate on the "start_ip" field.
StartIPGTE applies the GTE predicate on the "start_ip" field.
StartIPIn applies the In predicate on the "start_ip" field.
StartIPIsNil applies the IsNil predicate on the "start_ip" field.
StartIPLT applies the LT predicate on the "start_ip" field.
StartIPLTE applies the LTE predicate on the "start_ip" field.
StartIPNEQ applies the NEQ predicate on the "start_ip" field.
StartIPNotIn applies the NotIn predicate on the "start_ip" field.
StartIPNotNil applies the NotNil predicate on the "start_ip" field.
StartSuffix applies equality check predicate on the "start_suffix" field.
StartSuffixEQ applies the EQ predicate on the "start_suffix" field.
StartSuffixGT applies the GT predicate on the "start_suffix" field.
StartSuffixGTE applies the GTE predicate on the "start_suffix" field.
StartSuffixIn applies the In predicate on the "start_suffix" field.
StartSuffixIsNil applies the IsNil predicate on the "start_suffix" field.
StartSuffixLT applies the LT predicate on the "start_suffix" field.
StartSuffixLTE applies the LTE predicate on the "start_suffix" field.
StartSuffixNEQ applies the NEQ predicate on the "start_suffix" field.
StartSuffixNotIn applies the NotIn predicate on the "start_suffix" field.
StartSuffixNotNil applies the NotNil predicate on the "start_suffix" 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).
Value applies equality check predicate on the "value" field.
ValueContains applies the Contains predicate on the "value" field.
ValueContainsFold applies the ContainsFold predicate on the "value" field.
ValueEQ applies the EQ predicate on the "value" field.
ValueEqualFold applies the EqualFold predicate on the "value" field.
ValueGT applies the GT predicate on the "value" field.
ValueGTE applies the GTE predicate on the "value" field.
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
ValueIn applies the In predicate on the "value" field.
ValueLT applies the LT predicate on the "value" field.
ValueLTE applies the LTE predicate on the "value" field.
ValueNEQ applies the NEQ predicate on the "value" field.
ValueNotIn applies the NotIn predicate on the "value" field.

# Constants

AllowlistInverseTable is the table name for the AllowList entity.
AllowlistTable is the table that holds the allowlist relation/edge.
EdgeAllowlist holds the string denoting the allowlist edge name in mutations.
FieldComment holds the string denoting the comment field in the database.
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldEndIP holds the string denoting the end_ip field in the database.
FieldEndSuffix holds the string denoting the end_suffix field in the database.
FieldExpiresAt holds the string denoting the expires_at field in the database.
FieldID holds the string denoting the id field in the database.
FieldIPSize holds the string denoting the ip_size field in the database.
FieldStartIP holds the string denoting the start_ip field in the database.
FieldStartSuffix holds the string denoting the start_suffix field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
FieldValue holds the string denoting the value field in the database.
Label holds the string label denoting the allowlistitem type in the database.
Table holds the table name of the allowlistitem in the database.

# Variables

AllowlistPrimaryKey and AllowlistColumn2 are the table columns denoting the primary key for the allowlist relation (M2M).
Columns holds all SQL columns for allowlistitem fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the AllowListItem queries.