tag

package
v0.0.0-...-d4cf3a4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the tag type in the database.
	Label = "tag"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTag holds the string denoting the tag field in the database.
	FieldTag = "tag"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldColor holds the string denoting the color field in the database.
	FieldColor = "color"
	// FieldCatalogRing holds the string denoting the catalog_ring field in the database.
	FieldCatalogRing = "catalog_ring"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeParent holds the string denoting the parent edge name in mutations.
	EdgeParent = "parent"
	// EdgeChildren holds the string denoting the children edge name in mutations.
	EdgeChildren = "children"
	// EdgeProfile holds the string denoting the profile edge name in mutations.
	EdgeProfile = "profile"
	// EdgeTenant holds the string denoting the tenant edge name in mutations.
	EdgeTenant = "tenant"
	// AgentFieldID holds the string denoting the ID field of the Agent.
	AgentFieldID = "oid"
	// Table holds the table name of the tag in the database.
	Table = "tags"
	// OwnerTable is the table that holds the owner relation/edge. The primary key declared below.
	OwnerTable = "agent_tags"
	// OwnerInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	OwnerInverseTable = "agents"
	// ParentTable is the table that holds the parent relation/edge.
	ParentTable = "tags"
	// ParentColumn is the table column denoting the parent relation/edge.
	ParentColumn = "tag_children"
	// ChildrenTable is the table that holds the children relation/edge.
	ChildrenTable = "tags"
	// ChildrenColumn is the table column denoting the children relation/edge.
	ChildrenColumn = "tag_children"
	// ProfileTable is the table that holds the profile relation/edge. The primary key declared below.
	ProfileTable = "profile_tags"
	// ProfileInverseTable is the table name for the Profile entity.
	// It exists in this package in order to avoid circular dependency with the "profile" package.
	ProfileInverseTable = "profiles"
	// TenantTable is the table that holds the tenant relation/edge.
	TenantTable = "tags"
	// TenantInverseTable is the table name for the Tenant entity.
	// It exists in this package in order to avoid circular dependency with the "tenant" package.
	TenantInverseTable = "tenants"
	// TenantColumn is the table column denoting the tenant relation/edge.
	TenantColumn = "tenant_tags"
)

Variables

View Source
var (
	// OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the
	// primary key for the owner relation (M2M).
	OwnerPrimaryKey = []string{"agent_id", "tag_id"}
	// ProfilePrimaryKey and ProfileColumn2 are the table columns denoting the
	// primary key for the profile relation (M2M).
	ProfilePrimaryKey = []string{"profile_id", "tag_id"}
)

Columns holds all SQL columns for tag fields.

View Source
var ForeignKeys = []string{
	"tag_children",
	"task_tags",
	"tenant_tags",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "tags" table and are not defined as standalone fields in the schema.

View Source
var (
	// TagValidator is a validator for the "tag" field. It is called by the builders before save.
	TagValidator func(string) error
)

Functions

func And

func And(predicates ...predicate.Tag) predicate.Tag

And groups predicates with the AND operator between them.

func CatalogRing

func CatalogRing(v string) predicate.Tag

CatalogRing applies equality check predicate on the "catalog_ring" field. It's identical to CatalogRingEQ.

func CatalogRingContains

func CatalogRingContains(v string) predicate.Tag

CatalogRingContains applies the Contains predicate on the "catalog_ring" field.

func CatalogRingContainsFold

func CatalogRingContainsFold(v string) predicate.Tag

CatalogRingContainsFold applies the ContainsFold predicate on the "catalog_ring" field.

func CatalogRingEQ

func CatalogRingEQ(v string) predicate.Tag

CatalogRingEQ applies the EQ predicate on the "catalog_ring" field.

func CatalogRingEqualFold

func CatalogRingEqualFold(v string) predicate.Tag

CatalogRingEqualFold applies the EqualFold predicate on the "catalog_ring" field.

func CatalogRingGT

func CatalogRingGT(v string) predicate.Tag

CatalogRingGT applies the GT predicate on the "catalog_ring" field.

func CatalogRingGTE

func CatalogRingGTE(v string) predicate.Tag

CatalogRingGTE applies the GTE predicate on the "catalog_ring" field.

func CatalogRingHasPrefix

func CatalogRingHasPrefix(v string) predicate.Tag

CatalogRingHasPrefix applies the HasPrefix predicate on the "catalog_ring" field.

func CatalogRingHasSuffix

func CatalogRingHasSuffix(v string) predicate.Tag

CatalogRingHasSuffix applies the HasSuffix predicate on the "catalog_ring" field.

func CatalogRingIn

func CatalogRingIn(vs ...string) predicate.Tag

CatalogRingIn applies the In predicate on the "catalog_ring" field.

func CatalogRingIsNil

func CatalogRingIsNil() predicate.Tag

CatalogRingIsNil applies the IsNil predicate on the "catalog_ring" field.

func CatalogRingLT

func CatalogRingLT(v string) predicate.Tag

CatalogRingLT applies the LT predicate on the "catalog_ring" field.

func CatalogRingLTE

func CatalogRingLTE(v string) predicate.Tag

CatalogRingLTE applies the LTE predicate on the "catalog_ring" field.

func CatalogRingNEQ

func CatalogRingNEQ(v string) predicate.Tag

CatalogRingNEQ applies the NEQ predicate on the "catalog_ring" field.

func CatalogRingNotIn

func CatalogRingNotIn(vs ...string) predicate.Tag

CatalogRingNotIn applies the NotIn predicate on the "catalog_ring" field.

func CatalogRingNotNil

func CatalogRingNotNil() predicate.Tag

CatalogRingNotNil applies the NotNil predicate on the "catalog_ring" field.

func Color

func Color(v string) predicate.Tag

Color applies equality check predicate on the "color" field. It's identical to ColorEQ.

func ColorContains

func ColorContains(v string) predicate.Tag

ColorContains applies the Contains predicate on the "color" field.

func ColorContainsFold

func ColorContainsFold(v string) predicate.Tag

ColorContainsFold applies the ContainsFold predicate on the "color" field.

func ColorEQ

func ColorEQ(v string) predicate.Tag

ColorEQ applies the EQ predicate on the "color" field.

func ColorEqualFold

func ColorEqualFold(v string) predicate.Tag

ColorEqualFold applies the EqualFold predicate on the "color" field.

func ColorGT

func ColorGT(v string) predicate.Tag

ColorGT applies the GT predicate on the "color" field.

func ColorGTE

func ColorGTE(v string) predicate.Tag

ColorGTE applies the GTE predicate on the "color" field.

func ColorHasPrefix

func ColorHasPrefix(v string) predicate.Tag

ColorHasPrefix applies the HasPrefix predicate on the "color" field.

func ColorHasSuffix

func ColorHasSuffix(v string) predicate.Tag

ColorHasSuffix applies the HasSuffix predicate on the "color" field.

func ColorIn

func ColorIn(vs ...string) predicate.Tag

ColorIn applies the In predicate on the "color" field.

func ColorLT

func ColorLT(v string) predicate.Tag

ColorLT applies the LT predicate on the "color" field.

func ColorLTE

func ColorLTE(v string) predicate.Tag

ColorLTE applies the LTE predicate on the "color" field.

func ColorNEQ

func ColorNEQ(v string) predicate.Tag

ColorNEQ applies the NEQ predicate on the "color" field.

func ColorNotIn

func ColorNotIn(vs ...string) predicate.Tag

ColorNotIn applies the NotIn predicate on the "color" field.

func Description

func Description(v string) predicate.Tag

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

func DescriptionContains

func DescriptionContains(v string) predicate.Tag

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Tag

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Tag

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Tag

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

func DescriptionGT

func DescriptionGT(v string) predicate.Tag

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Tag

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Tag

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Tag

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Tag

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

func DescriptionLT

func DescriptionLT(v string) predicate.Tag

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Tag

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Tag

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Tag

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

func HasChildren

func HasChildren() predicate.Tag

HasChildren applies the HasEdge predicate on the "children" edge.

func HasChildrenWith

func HasChildrenWith(preds ...predicate.Tag) predicate.Tag

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

func HasOwner

func HasOwner() predicate.Tag

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.Tag

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

func HasParent

func HasParent() predicate.Tag

HasParent applies the HasEdge predicate on the "parent" edge.

func HasParentWith

func HasParentWith(preds ...predicate.Tag) predicate.Tag

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

func HasProfile

func HasProfile() predicate.Tag

HasProfile applies the HasEdge predicate on the "profile" edge.

func HasProfileWith

func HasProfileWith(preds ...predicate.Profile) predicate.Tag

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

func HasTenant

func HasTenant() predicate.Tag

HasTenant applies the HasEdge predicate on the "tenant" edge.

func HasTenantWith

func HasTenantWith(preds ...predicate.Tenant) predicate.Tag

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

func ID

func ID(id int) predicate.Tag

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Tag

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Tag

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Tag

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Tag

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Tag

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Tag

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Tag

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Tag

IDNotIn applies the NotIn predicate on the ID field.

func Not

func Not(p predicate.Tag) predicate.Tag

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Tag) predicate.Tag

Or groups predicates with the OR operator between them.

func Tag

func Tag(v string) predicate.Tag

Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.

func TagContains

func TagContains(v string) predicate.Tag

TagContains applies the Contains predicate on the "tag" field.

func TagContainsFold

func TagContainsFold(v string) predicate.Tag

TagContainsFold applies the ContainsFold predicate on the "tag" field.

func TagEQ

func TagEQ(v string) predicate.Tag

TagEQ applies the EQ predicate on the "tag" field.

func TagEqualFold

func TagEqualFold(v string) predicate.Tag

TagEqualFold applies the EqualFold predicate on the "tag" field.

func TagGT

func TagGT(v string) predicate.Tag

TagGT applies the GT predicate on the "tag" field.

func TagGTE

func TagGTE(v string) predicate.Tag

TagGTE applies the GTE predicate on the "tag" field.

func TagHasPrefix

func TagHasPrefix(v string) predicate.Tag

TagHasPrefix applies the HasPrefix predicate on the "tag" field.

func TagHasSuffix

func TagHasSuffix(v string) predicate.Tag

TagHasSuffix applies the HasSuffix predicate on the "tag" field.

func TagIn

func TagIn(vs ...string) predicate.Tag

TagIn applies the In predicate on the "tag" field.

func TagLT

func TagLT(v string) predicate.Tag

TagLT applies the LT predicate on the "tag" field.

func TagLTE

func TagLTE(v string) predicate.Tag

TagLTE applies the LTE predicate on the "tag" field.

func TagNEQ

func TagNEQ(v string) predicate.Tag

TagNEQ applies the NEQ predicate on the "tag" field.

func TagNotIn

func TagNotIn(vs ...string) predicate.Tag

TagNotIn applies the NotIn predicate on the "tag" 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 Tag queries.

func ByCatalogRing

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

ByCatalogRing orders the results by the catalog_ring field.

func ByChildren

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

ByChildren orders the results by children terms.

func ByChildrenCount

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

ByChildrenCount orders the results by children count.

func ByColor

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

ByColor orders the results by the color field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByID

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

ByID orders the results by the id field.

func ByOwner

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

ByOwner orders the results by owner terms.

func ByOwnerCount

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

ByOwnerCount orders the results by owner count.

func ByParentField

func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption

ByParentField orders the results by parent field.

func ByProfile

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

ByProfile orders the results by profile terms.

func ByProfileCount

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

ByProfileCount orders the results by profile count.

func ByTag

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

ByTag orders the results by the tag field.

func ByTenantField

func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption

ByTenantField orders the results by tenant field.

Jump to

Keyboard shortcuts

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