agentrule

package
v0.0.0-...-7f647c9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the agentrule type in the database.
	Label = "agent_rule"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldScopeType holds the string denoting the scope_type field in the database.
	FieldScopeType = "scope_type"
	// FieldScopeID holds the string denoting the scope_id field in the database.
	FieldScopeID = "scope_id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldActiveVersionID holds the string denoting the active_version_id field in the database.
	FieldActiveVersionID = "active_version_id"
	// FieldExtensionPackageID holds the string denoting the extension_package_id field in the database.
	FieldExtensionPackageID = "extension_package_id"
	// FieldExtensionRuleID holds the string denoting the extension_rule_id field in the database.
	FieldExtensionRuleID = "extension_rule_id"
	// FieldExtensionVersion holds the string denoting the extension_version field in the database.
	FieldExtensionVersion = "extension_version"
	// FieldIsDeleted holds the string denoting the is_deleted field in the database.
	FieldIsDeleted = "is_deleted"
	// 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"
	// EdgeVersions holds the string denoting the versions edge name in mutations.
	EdgeVersions = "versions"
	// Table holds the table name of the agentrule in the database.
	Table = "agent_rules"
	// VersionsTable is the table that holds the versions relation/edge.
	VersionsTable = "agent_rule_versions"
	// VersionsInverseTable is the table name for the AgentRuleVersion entity.
	// It exists in this package in order to avoid circular dependency with the "agentruleversion" package.
	VersionsInverseTable = "agent_rule_versions"
	// VersionsColumn is the table column denoting the versions relation/edge.
	VersionsColumn = "rule_id"
)
View Source
const DefaultScopeType = ScopeTypeGlobal

ScopeTypeGlobal is the default value of the ScopeType enum.

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultScopeID holds the default value on creation for the "scope_id" field.
	DefaultScopeID string
	// DefaultIsDeleted holds the default value on creation for the "is_deleted" field.
	DefaultIsDeleted bool
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for agentrule fields.

Functions

func ActiveVersionID

func ActiveVersionID(v uuid.UUID) predicate.AgentRule

ActiveVersionID applies equality check predicate on the "active_version_id" field. It's identical to ActiveVersionIDEQ.

func ActiveVersionIDEQ

func ActiveVersionIDEQ(v uuid.UUID) predicate.AgentRule

ActiveVersionIDEQ applies the EQ predicate on the "active_version_id" field.

func ActiveVersionIDGT

func ActiveVersionIDGT(v uuid.UUID) predicate.AgentRule

ActiveVersionIDGT applies the GT predicate on the "active_version_id" field.

func ActiveVersionIDGTE

func ActiveVersionIDGTE(v uuid.UUID) predicate.AgentRule

ActiveVersionIDGTE applies the GTE predicate on the "active_version_id" field.

func ActiveVersionIDIn

func ActiveVersionIDIn(vs ...uuid.UUID) predicate.AgentRule

ActiveVersionIDIn applies the In predicate on the "active_version_id" field.

func ActiveVersionIDIsNil

func ActiveVersionIDIsNil() predicate.AgentRule

ActiveVersionIDIsNil applies the IsNil predicate on the "active_version_id" field.

func ActiveVersionIDLT

func ActiveVersionIDLT(v uuid.UUID) predicate.AgentRule

ActiveVersionIDLT applies the LT predicate on the "active_version_id" field.

func ActiveVersionIDLTE

func ActiveVersionIDLTE(v uuid.UUID) predicate.AgentRule

ActiveVersionIDLTE applies the LTE predicate on the "active_version_id" field.

func ActiveVersionIDNEQ

func ActiveVersionIDNEQ(v uuid.UUID) predicate.AgentRule

ActiveVersionIDNEQ applies the NEQ predicate on the "active_version_id" field.

func ActiveVersionIDNotIn

func ActiveVersionIDNotIn(vs ...uuid.UUID) predicate.AgentRule

ActiveVersionIDNotIn applies the NotIn predicate on the "active_version_id" field.

func ActiveVersionIDNotNil

func ActiveVersionIDNotNil() predicate.AgentRule

ActiveVersionIDNotNil applies the NotNil predicate on the "active_version_id" field.

func And

func And(predicates ...predicate.AgentRule) predicate.AgentRule

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.AgentRule

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AgentRule

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AgentRule

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AgentRule

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AgentRule

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AgentRule

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AgentRule

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v uuid.UUID) predicate.AgentRule

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v uuid.UUID) predicate.AgentRule

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v uuid.UUID) predicate.AgentRule

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v uuid.UUID) predicate.AgentRule

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...uuid.UUID) predicate.AgentRule

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v uuid.UUID) predicate.AgentRule

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v uuid.UUID) predicate.AgentRule

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v uuid.UUID) predicate.AgentRule

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...uuid.UUID) predicate.AgentRule

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func Description

func Description(v string) predicate.AgentRule

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.AgentRule

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.AgentRule

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.AgentRule

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.AgentRule

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.AgentRule

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.AgentRule

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.AgentRule

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.AgentRule

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.AgentRule

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.AgentRule

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.AgentRule

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.AgentRule

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.AgentRule

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.AgentRule

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.AgentRule

DescriptionNotNil applies the NotNil predicate on the "description" field.

func ExtensionPackageID

func ExtensionPackageID(v string) predicate.AgentRule

ExtensionPackageID applies equality check predicate on the "extension_package_id" field. It's identical to ExtensionPackageIDEQ.

func ExtensionPackageIDContains

func ExtensionPackageIDContains(v string) predicate.AgentRule

ExtensionPackageIDContains applies the Contains predicate on the "extension_package_id" field.

func ExtensionPackageIDContainsFold

func ExtensionPackageIDContainsFold(v string) predicate.AgentRule

ExtensionPackageIDContainsFold applies the ContainsFold predicate on the "extension_package_id" field.

func ExtensionPackageIDEQ

func ExtensionPackageIDEQ(v string) predicate.AgentRule

ExtensionPackageIDEQ applies the EQ predicate on the "extension_package_id" field.

func ExtensionPackageIDEqualFold

func ExtensionPackageIDEqualFold(v string) predicate.AgentRule

ExtensionPackageIDEqualFold applies the EqualFold predicate on the "extension_package_id" field.

func ExtensionPackageIDGT

func ExtensionPackageIDGT(v string) predicate.AgentRule

ExtensionPackageIDGT applies the GT predicate on the "extension_package_id" field.

func ExtensionPackageIDGTE

func ExtensionPackageIDGTE(v string) predicate.AgentRule

ExtensionPackageIDGTE applies the GTE predicate on the "extension_package_id" field.

func ExtensionPackageIDHasPrefix

func ExtensionPackageIDHasPrefix(v string) predicate.AgentRule

ExtensionPackageIDHasPrefix applies the HasPrefix predicate on the "extension_package_id" field.

func ExtensionPackageIDHasSuffix

func ExtensionPackageIDHasSuffix(v string) predicate.AgentRule

ExtensionPackageIDHasSuffix applies the HasSuffix predicate on the "extension_package_id" field.

func ExtensionPackageIDIn

func ExtensionPackageIDIn(vs ...string) predicate.AgentRule

ExtensionPackageIDIn applies the In predicate on the "extension_package_id" field.

func ExtensionPackageIDIsNil

func ExtensionPackageIDIsNil() predicate.AgentRule

ExtensionPackageIDIsNil applies the IsNil predicate on the "extension_package_id" field.

func ExtensionPackageIDLT

func ExtensionPackageIDLT(v string) predicate.AgentRule

ExtensionPackageIDLT applies the LT predicate on the "extension_package_id" field.

func ExtensionPackageIDLTE

func ExtensionPackageIDLTE(v string) predicate.AgentRule

ExtensionPackageIDLTE applies the LTE predicate on the "extension_package_id" field.

func ExtensionPackageIDNEQ

func ExtensionPackageIDNEQ(v string) predicate.AgentRule

ExtensionPackageIDNEQ applies the NEQ predicate on the "extension_package_id" field.

func ExtensionPackageIDNotIn

func ExtensionPackageIDNotIn(vs ...string) predicate.AgentRule

ExtensionPackageIDNotIn applies the NotIn predicate on the "extension_package_id" field.

func ExtensionPackageIDNotNil

func ExtensionPackageIDNotNil() predicate.AgentRule

ExtensionPackageIDNotNil applies the NotNil predicate on the "extension_package_id" field.

func ExtensionRuleID

func ExtensionRuleID(v string) predicate.AgentRule

ExtensionRuleID applies equality check predicate on the "extension_rule_id" field. It's identical to ExtensionRuleIDEQ.

func ExtensionRuleIDContains

func ExtensionRuleIDContains(v string) predicate.AgentRule

ExtensionRuleIDContains applies the Contains predicate on the "extension_rule_id" field.

func ExtensionRuleIDContainsFold

func ExtensionRuleIDContainsFold(v string) predicate.AgentRule

ExtensionRuleIDContainsFold applies the ContainsFold predicate on the "extension_rule_id" field.

func ExtensionRuleIDEQ

func ExtensionRuleIDEQ(v string) predicate.AgentRule

ExtensionRuleIDEQ applies the EQ predicate on the "extension_rule_id" field.

func ExtensionRuleIDEqualFold

func ExtensionRuleIDEqualFold(v string) predicate.AgentRule

ExtensionRuleIDEqualFold applies the EqualFold predicate on the "extension_rule_id" field.

func ExtensionRuleIDGT

func ExtensionRuleIDGT(v string) predicate.AgentRule

ExtensionRuleIDGT applies the GT predicate on the "extension_rule_id" field.

func ExtensionRuleIDGTE

func ExtensionRuleIDGTE(v string) predicate.AgentRule

ExtensionRuleIDGTE applies the GTE predicate on the "extension_rule_id" field.

func ExtensionRuleIDHasPrefix

func ExtensionRuleIDHasPrefix(v string) predicate.AgentRule

ExtensionRuleIDHasPrefix applies the HasPrefix predicate on the "extension_rule_id" field.

func ExtensionRuleIDHasSuffix

func ExtensionRuleIDHasSuffix(v string) predicate.AgentRule

ExtensionRuleIDHasSuffix applies the HasSuffix predicate on the "extension_rule_id" field.

func ExtensionRuleIDIn

func ExtensionRuleIDIn(vs ...string) predicate.AgentRule

ExtensionRuleIDIn applies the In predicate on the "extension_rule_id" field.

func ExtensionRuleIDIsNil

func ExtensionRuleIDIsNil() predicate.AgentRule

ExtensionRuleIDIsNil applies the IsNil predicate on the "extension_rule_id" field.

func ExtensionRuleIDLT

func ExtensionRuleIDLT(v string) predicate.AgentRule

ExtensionRuleIDLT applies the LT predicate on the "extension_rule_id" field.

func ExtensionRuleIDLTE

func ExtensionRuleIDLTE(v string) predicate.AgentRule

ExtensionRuleIDLTE applies the LTE predicate on the "extension_rule_id" field.

func ExtensionRuleIDNEQ

func ExtensionRuleIDNEQ(v string) predicate.AgentRule

ExtensionRuleIDNEQ applies the NEQ predicate on the "extension_rule_id" field.

func ExtensionRuleIDNotIn

func ExtensionRuleIDNotIn(vs ...string) predicate.AgentRule

ExtensionRuleIDNotIn applies the NotIn predicate on the "extension_rule_id" field.

func ExtensionRuleIDNotNil

func ExtensionRuleIDNotNil() predicate.AgentRule

ExtensionRuleIDNotNil applies the NotNil predicate on the "extension_rule_id" field.

func ExtensionVersion

func ExtensionVersion(v string) predicate.AgentRule

ExtensionVersion applies equality check predicate on the "extension_version" field. It's identical to ExtensionVersionEQ.

func ExtensionVersionContains

func ExtensionVersionContains(v string) predicate.AgentRule

ExtensionVersionContains applies the Contains predicate on the "extension_version" field.

func ExtensionVersionContainsFold

func ExtensionVersionContainsFold(v string) predicate.AgentRule

ExtensionVersionContainsFold applies the ContainsFold predicate on the "extension_version" field.

func ExtensionVersionEQ

func ExtensionVersionEQ(v string) predicate.AgentRule

ExtensionVersionEQ applies the EQ predicate on the "extension_version" field.

func ExtensionVersionEqualFold

func ExtensionVersionEqualFold(v string) predicate.AgentRule

ExtensionVersionEqualFold applies the EqualFold predicate on the "extension_version" field.

func ExtensionVersionGT

func ExtensionVersionGT(v string) predicate.AgentRule

ExtensionVersionGT applies the GT predicate on the "extension_version" field.

func ExtensionVersionGTE

func ExtensionVersionGTE(v string) predicate.AgentRule

ExtensionVersionGTE applies the GTE predicate on the "extension_version" field.

func ExtensionVersionHasPrefix

func ExtensionVersionHasPrefix(v string) predicate.AgentRule

ExtensionVersionHasPrefix applies the HasPrefix predicate on the "extension_version" field.

func ExtensionVersionHasSuffix

func ExtensionVersionHasSuffix(v string) predicate.AgentRule

ExtensionVersionHasSuffix applies the HasSuffix predicate on the "extension_version" field.

func ExtensionVersionIn

func ExtensionVersionIn(vs ...string) predicate.AgentRule

ExtensionVersionIn applies the In predicate on the "extension_version" field.

func ExtensionVersionIsNil

func ExtensionVersionIsNil() predicate.AgentRule

ExtensionVersionIsNil applies the IsNil predicate on the "extension_version" field.

func ExtensionVersionLT

func ExtensionVersionLT(v string) predicate.AgentRule

ExtensionVersionLT applies the LT predicate on the "extension_version" field.

func ExtensionVersionLTE

func ExtensionVersionLTE(v string) predicate.AgentRule

ExtensionVersionLTE applies the LTE predicate on the "extension_version" field.

func ExtensionVersionNEQ

func ExtensionVersionNEQ(v string) predicate.AgentRule

ExtensionVersionNEQ applies the NEQ predicate on the "extension_version" field.

func ExtensionVersionNotIn

func ExtensionVersionNotIn(vs ...string) predicate.AgentRule

ExtensionVersionNotIn applies the NotIn predicate on the "extension_version" field.

func ExtensionVersionNotNil

func ExtensionVersionNotNil() predicate.AgentRule

ExtensionVersionNotNil applies the NotNil predicate on the "extension_version" field.

func HasVersions

func HasVersions() predicate.AgentRule

HasVersions applies the HasEdge predicate on the "versions" edge.

func HasVersionsWith

func HasVersionsWith(preds ...predicate.AgentRuleVersion) predicate.AgentRule

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.AgentRule

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.AgentRule

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.AgentRule

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.AgentRule

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.AgentRule

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.AgentRule

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.AgentRule

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.AgentRule

IDNotIn applies the NotIn predicate on the ID field.

func IsDeleted

func IsDeleted(v bool) predicate.AgentRule

IsDeleted applies equality check predicate on the "is_deleted" field. It's identical to IsDeletedEQ.

func IsDeletedEQ

func IsDeletedEQ(v bool) predicate.AgentRule

IsDeletedEQ applies the EQ predicate on the "is_deleted" field.

func IsDeletedNEQ

func IsDeletedNEQ(v bool) predicate.AgentRule

IsDeletedNEQ applies the NEQ predicate on the "is_deleted" field.

func Name

func Name(v string) predicate.AgentRule

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.AgentRule

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.AgentRule

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.AgentRule

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.AgentRule

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.AgentRule

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.AgentRule

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.AgentRule

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.AgentRule

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.AgentRule

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.AgentRule

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.AgentRule

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.AgentRule

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.AgentRule

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AgentRule) predicate.AgentRule

Or groups predicates with the OR operator between them.

func ScopeID

func ScopeID(v string) predicate.AgentRule

ScopeID applies equality check predicate on the "scope_id" field. It's identical to ScopeIDEQ.

func ScopeIDContains

func ScopeIDContains(v string) predicate.AgentRule

ScopeIDContains applies the Contains predicate on the "scope_id" field.

func ScopeIDContainsFold

func ScopeIDContainsFold(v string) predicate.AgentRule

ScopeIDContainsFold applies the ContainsFold predicate on the "scope_id" field.

func ScopeIDEQ

func ScopeIDEQ(v string) predicate.AgentRule

ScopeIDEQ applies the EQ predicate on the "scope_id" field.

func ScopeIDEqualFold

func ScopeIDEqualFold(v string) predicate.AgentRule

ScopeIDEqualFold applies the EqualFold predicate on the "scope_id" field.

func ScopeIDGT

func ScopeIDGT(v string) predicate.AgentRule

ScopeIDGT applies the GT predicate on the "scope_id" field.

func ScopeIDGTE

func ScopeIDGTE(v string) predicate.AgentRule

ScopeIDGTE applies the GTE predicate on the "scope_id" field.

func ScopeIDHasPrefix

func ScopeIDHasPrefix(v string) predicate.AgentRule

ScopeIDHasPrefix applies the HasPrefix predicate on the "scope_id" field.

func ScopeIDHasSuffix

func ScopeIDHasSuffix(v string) predicate.AgentRule

ScopeIDHasSuffix applies the HasSuffix predicate on the "scope_id" field.

func ScopeIDIn

func ScopeIDIn(vs ...string) predicate.AgentRule

ScopeIDIn applies the In predicate on the "scope_id" field.

func ScopeIDLT

func ScopeIDLT(v string) predicate.AgentRule

ScopeIDLT applies the LT predicate on the "scope_id" field.

func ScopeIDLTE

func ScopeIDLTE(v string) predicate.AgentRule

ScopeIDLTE applies the LTE predicate on the "scope_id" field.

func ScopeIDNEQ

func ScopeIDNEQ(v string) predicate.AgentRule

ScopeIDNEQ applies the NEQ predicate on the "scope_id" field.

func ScopeIDNotIn

func ScopeIDNotIn(vs ...string) predicate.AgentRule

ScopeIDNotIn applies the NotIn predicate on the "scope_id" field.

func ScopeTypeEQ

func ScopeTypeEQ(v ScopeType) predicate.AgentRule

ScopeTypeEQ applies the EQ predicate on the "scope_type" field.

func ScopeTypeIn

func ScopeTypeIn(vs ...ScopeType) predicate.AgentRule

ScopeTypeIn applies the In predicate on the "scope_type" field.

func ScopeTypeNEQ

func ScopeTypeNEQ(v ScopeType) predicate.AgentRule

ScopeTypeNEQ applies the NEQ predicate on the "scope_type" field.

func ScopeTypeNotIn

func ScopeTypeNotIn(vs ...ScopeType) predicate.AgentRule

ScopeTypeNotIn applies the NotIn predicate on the "scope_type" field.

func ScopeTypeValidator

func ScopeTypeValidator(st ScopeType) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AgentRule

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AgentRule

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AgentRule

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AgentRule

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AgentRule

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AgentRule

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AgentRule

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 AgentRule queries.

func ByActiveVersionID

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

ByActiveVersionID orders the results by the active_version_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByExtensionPackageID

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

ByExtensionPackageID orders the results by the extension_package_id field.

func ByExtensionRuleID

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

ByExtensionRuleID orders the results by the extension_rule_id field.

func ByExtensionVersion

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

ByExtensionVersion orders the results by the extension_version field.

func ByID

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

ByID orders the results by the id field.

func ByIsDeleted

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

ByIsDeleted orders the results by the is_deleted field.

func ByName

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

ByName orders the results by the name field.

func ByScopeID

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

ByScopeID orders the results by the scope_id field.

func ByScopeType

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

ByScopeType orders the results by the scope_type field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersions

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

ByVersions orders the results by versions terms.

func ByVersionsCount

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

ByVersionsCount orders the results by versions count.

type ScopeType

type ScopeType string

ScopeType defines the type for the "scope_type" enum field.

const (
	ScopeTypeGlobal ScopeType = "global"
)

ScopeType values.

func (ScopeType) String

func (st ScopeType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL