Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AgentRuleVersion) predicate.AgentRuleVersion
- func Content(v string) predicate.AgentRuleVersion
- func ContentContains(v string) predicate.AgentRuleVersion
- func ContentContainsFold(v string) predicate.AgentRuleVersion
- func ContentEQ(v string) predicate.AgentRuleVersion
- func ContentEqualFold(v string) predicate.AgentRuleVersion
- func ContentGT(v string) predicate.AgentRuleVersion
- func ContentGTE(v string) predicate.AgentRuleVersion
- func ContentHasPrefix(v string) predicate.AgentRuleVersion
- func ContentHasSuffix(v string) predicate.AgentRuleVersion
- func ContentIn(vs ...string) predicate.AgentRuleVersion
- func ContentLT(v string) predicate.AgentRuleVersion
- func ContentLTE(v string) predicate.AgentRuleVersion
- func ContentNEQ(v string) predicate.AgentRuleVersion
- func ContentNotIn(vs ...string) predicate.AgentRuleVersion
- func CreatedAt(v time.Time) predicate.AgentRuleVersion
- func CreatedAtEQ(v time.Time) predicate.AgentRuleVersion
- func CreatedAtGT(v time.Time) predicate.AgentRuleVersion
- func CreatedAtGTE(v time.Time) predicate.AgentRuleVersion
- func CreatedAtIn(vs ...time.Time) predicate.AgentRuleVersion
- func CreatedAtLT(v time.Time) predicate.AgentRuleVersion
- func CreatedAtLTE(v time.Time) predicate.AgentRuleVersion
- func CreatedAtNEQ(v time.Time) predicate.AgentRuleVersion
- func CreatedAtNotIn(vs ...time.Time) predicate.AgentRuleVersion
- func HasRule() predicate.AgentRuleVersion
- func HasRuleWith(preds ...predicate.AgentRule) predicate.AgentRuleVersion
- func ID(id uuid.UUID) predicate.AgentRuleVersion
- func IDEQ(id uuid.UUID) predicate.AgentRuleVersion
- func IDGT(id uuid.UUID) predicate.AgentRuleVersion
- func IDGTE(id uuid.UUID) predicate.AgentRuleVersion
- func IDIn(ids ...uuid.UUID) predicate.AgentRuleVersion
- func IDLT(id uuid.UUID) predicate.AgentRuleVersion
- func IDLTE(id uuid.UUID) predicate.AgentRuleVersion
- func IDNEQ(id uuid.UUID) predicate.AgentRuleVersion
- func IDNotIn(ids ...uuid.UUID) predicate.AgentRuleVersion
- func Not(p predicate.AgentRuleVersion) predicate.AgentRuleVersion
- func Or(predicates ...predicate.AgentRuleVersion) predicate.AgentRuleVersion
- func RuleID(v uuid.UUID) predicate.AgentRuleVersion
- func RuleIDEQ(v uuid.UUID) predicate.AgentRuleVersion
- func RuleIDIn(vs ...uuid.UUID) predicate.AgentRuleVersion
- func RuleIDNEQ(v uuid.UUID) predicate.AgentRuleVersion
- func RuleIDNotIn(vs ...uuid.UUID) predicate.AgentRuleVersion
- func ValidColumn(column string) bool
- func Version(v string) predicate.AgentRuleVersion
- func VersionContains(v string) predicate.AgentRuleVersion
- func VersionContainsFold(v string) predicate.AgentRuleVersion
- func VersionEQ(v string) predicate.AgentRuleVersion
- func VersionEqualFold(v string) predicate.AgentRuleVersion
- func VersionGT(v string) predicate.AgentRuleVersion
- func VersionGTE(v string) predicate.AgentRuleVersion
- func VersionHasPrefix(v string) predicate.AgentRuleVersion
- func VersionHasSuffix(v string) predicate.AgentRuleVersion
- func VersionIn(vs ...string) predicate.AgentRuleVersion
- func VersionLT(v string) predicate.AgentRuleVersion
- func VersionLTE(v string) predicate.AgentRuleVersion
- func VersionNEQ(v string) predicate.AgentRuleVersion
- func VersionNotIn(vs ...string) predicate.AgentRuleVersion
- type OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRuleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRuleID(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the agentruleversion type in the database. Label = "agent_rule_version" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRuleID holds the string denoting the rule_id field in the database. FieldRuleID = "rule_id" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeRule holds the string denoting the rule edge name in mutations. EdgeRule = "rule" // Table holds the table name of the agentruleversion in the database. Table = "agent_rule_versions" // RuleTable is the table that holds the rule relation/edge. RuleTable = "agent_rule_versions" // RuleInverseTable is the table name for the AgentRule entity. // It exists in this package in order to avoid circular dependency with the "agentrule" package. RuleInverseTable = "agent_rules" // RuleColumn is the table column denoting the rule relation/edge. RuleColumn = "rule_id" )
Variables ¶
var ( // VersionValidator is a validator for the "version" field. It is called by the builders before save. VersionValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldRuleID, FieldVersion, FieldContent, FieldCreatedAt, }
Columns holds all SQL columns for agentruleversion fields.
Functions ¶
func And ¶
func And(predicates ...predicate.AgentRuleVersion) predicate.AgentRuleVersion
And groups predicates with the AND operator between them.
func Content ¶
func Content(v string) predicate.AgentRuleVersion
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
func ContentContains(v string) predicate.AgentRuleVersion
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
func ContentContainsFold(v string) predicate.AgentRuleVersion
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEQ ¶
func ContentEQ(v string) predicate.AgentRuleVersion
ContentEQ applies the EQ predicate on the "content" field.
func ContentEqualFold ¶
func ContentEqualFold(v string) predicate.AgentRuleVersion
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGT ¶
func ContentGT(v string) predicate.AgentRuleVersion
ContentGT applies the GT predicate on the "content" field.
func ContentGTE ¶
func ContentGTE(v string) predicate.AgentRuleVersion
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
func ContentHasPrefix(v string) predicate.AgentRuleVersion
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
func ContentHasSuffix(v string) predicate.AgentRuleVersion
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentIn ¶
func ContentIn(vs ...string) predicate.AgentRuleVersion
ContentIn applies the In predicate on the "content" field.
func ContentLT ¶
func ContentLT(v string) predicate.AgentRuleVersion
ContentLT applies the LT predicate on the "content" field.
func ContentLTE ¶
func ContentLTE(v string) predicate.AgentRuleVersion
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
func ContentNEQ(v string) predicate.AgentRuleVersion
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
func ContentNotIn(vs ...string) predicate.AgentRuleVersion
ContentNotIn applies the NotIn predicate on the "content" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.AgentRuleVersion
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.AgentRuleVersion
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.AgentRuleVersion
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.AgentRuleVersion
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.AgentRuleVersion
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.AgentRuleVersion
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.AgentRuleVersion
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.AgentRuleVersion
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.AgentRuleVersion
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasRule ¶
func HasRule() predicate.AgentRuleVersion
HasRule applies the HasEdge predicate on the "rule" edge.
func HasRuleWith ¶
func HasRuleWith(preds ...predicate.AgentRule) predicate.AgentRuleVersion
HasRuleWith applies the HasEdge predicate on the "rule" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.AgentRuleVersion
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.AgentRuleVersion
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.AgentRuleVersion
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.AgentRuleVersion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.AgentRuleVersion
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.AgentRuleVersion
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.AgentRuleVersion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.AgentRuleVersion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.AgentRuleVersion
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.AgentRuleVersion) predicate.AgentRuleVersion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AgentRuleVersion) predicate.AgentRuleVersion
Or groups predicates with the OR operator between them.
func RuleID ¶
func RuleID(v uuid.UUID) predicate.AgentRuleVersion
RuleID applies equality check predicate on the "rule_id" field. It's identical to RuleIDEQ.
func RuleIDEQ ¶
func RuleIDEQ(v uuid.UUID) predicate.AgentRuleVersion
RuleIDEQ applies the EQ predicate on the "rule_id" field.
func RuleIDIn ¶
func RuleIDIn(vs ...uuid.UUID) predicate.AgentRuleVersion
RuleIDIn applies the In predicate on the "rule_id" field.
func RuleIDNEQ ¶
func RuleIDNEQ(v uuid.UUID) predicate.AgentRuleVersion
RuleIDNEQ applies the NEQ predicate on the "rule_id" field.
func RuleIDNotIn ¶
func RuleIDNotIn(vs ...uuid.UUID) predicate.AgentRuleVersion
RuleIDNotIn applies the NotIn predicate on the "rule_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
func Version(v string) predicate.AgentRuleVersion
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.AgentRuleVersion
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.AgentRuleVersion
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.AgentRuleVersion
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.AgentRuleVersion
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.AgentRuleVersion
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.AgentRuleVersion
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.AgentRuleVersion
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.AgentRuleVersion
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.AgentRuleVersion
VersionIn applies the In predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.AgentRuleVersion
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.AgentRuleVersion
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.AgentRuleVersion
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.AgentRuleVersion
VersionNotIn applies the NotIn predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the AgentRuleVersion queries.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRuleField ¶
func ByRuleField(field string, opts ...sql.OrderTermOption) OrderOption
ByRuleField orders the results by rule field.
func ByRuleID ¶
func ByRuleID(opts ...sql.OrderTermOption) OrderOption
ByRuleID orders the results by the rule_id field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.