toolusage

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the toolusage type in the database.
	Label = "tool_usage"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAgent holds the string denoting the agent field in the database.
	FieldAgent = "agent"
	// FieldTeam holds the string denoting the team field in the database.
	FieldTeam = "team"
	// FieldCommand holds the string denoting the command field in the database.
	FieldCommand = "command"
	// FieldSubcommand holds the string denoting the subcommand field in the database.
	FieldSubcommand = "subcommand"
	// FieldTarget holds the string denoting the target field in the database.
	FieldTarget = "target"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the toolusage in the database.
	Table = "tool_usages"
)

Variables

View Source
var (
	// AgentValidator is a validator for the "agent" field. It is called by the builders before save.
	AgentValidator func(string) error
	// TeamValidator is a validator for the "team" field. It is called by the builders before save.
	TeamValidator func(string) error
	// CommandValidator is a validator for the "command" field. It is called by the builders before save.
	CommandValidator func(string) error
	// SubcommandValidator is a validator for the "subcommand" field. It is called by the builders before save.
	SubcommandValidator 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
)

Columns holds all SQL columns for toolusage fields.

Functions

func Agent

func Agent(v string) predicate.ToolUsage

Agent applies equality check predicate on the "agent" field. It's identical to AgentEQ.

func AgentContains

func AgentContains(v string) predicate.ToolUsage

AgentContains applies the Contains predicate on the "agent" field.

func AgentContainsFold

func AgentContainsFold(v string) predicate.ToolUsage

AgentContainsFold applies the ContainsFold predicate on the "agent" field.

func AgentEQ

func AgentEQ(v string) predicate.ToolUsage

AgentEQ applies the EQ predicate on the "agent" field.

func AgentEqualFold

func AgentEqualFold(v string) predicate.ToolUsage

AgentEqualFold applies the EqualFold predicate on the "agent" field.

func AgentGT

func AgentGT(v string) predicate.ToolUsage

AgentGT applies the GT predicate on the "agent" field.

func AgentGTE

func AgentGTE(v string) predicate.ToolUsage

AgentGTE applies the GTE predicate on the "agent" field.

func AgentHasPrefix

func AgentHasPrefix(v string) predicate.ToolUsage

AgentHasPrefix applies the HasPrefix predicate on the "agent" field.

func AgentHasSuffix

func AgentHasSuffix(v string) predicate.ToolUsage

AgentHasSuffix applies the HasSuffix predicate on the "agent" field.

func AgentIn

func AgentIn(vs ...string) predicate.ToolUsage

AgentIn applies the In predicate on the "agent" field.

func AgentLT

func AgentLT(v string) predicate.ToolUsage

AgentLT applies the LT predicate on the "agent" field.

func AgentLTE

func AgentLTE(v string) predicate.ToolUsage

AgentLTE applies the LTE predicate on the "agent" field.

func AgentNEQ

func AgentNEQ(v string) predicate.ToolUsage

AgentNEQ applies the NEQ predicate on the "agent" field.

func AgentNotIn

func AgentNotIn(vs ...string) predicate.ToolUsage

AgentNotIn applies the NotIn predicate on the "agent" field.

func And

func And(predicates ...predicate.ToolUsage) predicate.ToolUsage

And groups predicates with the AND operator between them.

func Command

func Command(v string) predicate.ToolUsage

Command applies equality check predicate on the "command" field. It's identical to CommandEQ.

func CommandContains

func CommandContains(v string) predicate.ToolUsage

CommandContains applies the Contains predicate on the "command" field.

func CommandContainsFold

func CommandContainsFold(v string) predicate.ToolUsage

CommandContainsFold applies the ContainsFold predicate on the "command" field.

func CommandEQ

func CommandEQ(v string) predicate.ToolUsage

CommandEQ applies the EQ predicate on the "command" field.

func CommandEqualFold

func CommandEqualFold(v string) predicate.ToolUsage

CommandEqualFold applies the EqualFold predicate on the "command" field.

func CommandGT

func CommandGT(v string) predicate.ToolUsage

CommandGT applies the GT predicate on the "command" field.

func CommandGTE

func CommandGTE(v string) predicate.ToolUsage

CommandGTE applies the GTE predicate on the "command" field.

func CommandHasPrefix

func CommandHasPrefix(v string) predicate.ToolUsage

CommandHasPrefix applies the HasPrefix predicate on the "command" field.

func CommandHasSuffix

func CommandHasSuffix(v string) predicate.ToolUsage

CommandHasSuffix applies the HasSuffix predicate on the "command" field.

func CommandIn

func CommandIn(vs ...string) predicate.ToolUsage

CommandIn applies the In predicate on the "command" field.

func CommandLT

func CommandLT(v string) predicate.ToolUsage

CommandLT applies the LT predicate on the "command" field.

func CommandLTE

func CommandLTE(v string) predicate.ToolUsage

CommandLTE applies the LTE predicate on the "command" field.

func CommandNEQ

func CommandNEQ(v string) predicate.ToolUsage

CommandNEQ applies the NEQ predicate on the "command" field.

func CommandNotIn

func CommandNotIn(vs ...string) predicate.ToolUsage

CommandNotIn applies the NotIn predicate on the "command" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.ToolUsage

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ToolUsage

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ToolUsage

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ToolUsage

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ToolUsage

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ToolUsage

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ToolUsage

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

func CreatedAtNotIn

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ToolUsage

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ToolUsage

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ToolUsage

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ToolUsage

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ToolUsage

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ToolUsage

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ToolUsage) predicate.ToolUsage

Or groups predicates with the OR operator between them.

func Subcommand

func Subcommand(v string) predicate.ToolUsage

Subcommand applies equality check predicate on the "subcommand" field. It's identical to SubcommandEQ.

func SubcommandContains

func SubcommandContains(v string) predicate.ToolUsage

SubcommandContains applies the Contains predicate on the "subcommand" field.

func SubcommandContainsFold

func SubcommandContainsFold(v string) predicate.ToolUsage

SubcommandContainsFold applies the ContainsFold predicate on the "subcommand" field.

func SubcommandEQ

func SubcommandEQ(v string) predicate.ToolUsage

SubcommandEQ applies the EQ predicate on the "subcommand" field.

func SubcommandEqualFold

func SubcommandEqualFold(v string) predicate.ToolUsage

SubcommandEqualFold applies the EqualFold predicate on the "subcommand" field.

func SubcommandGT

func SubcommandGT(v string) predicate.ToolUsage

SubcommandGT applies the GT predicate on the "subcommand" field.

func SubcommandGTE

func SubcommandGTE(v string) predicate.ToolUsage

SubcommandGTE applies the GTE predicate on the "subcommand" field.

func SubcommandHasPrefix

func SubcommandHasPrefix(v string) predicate.ToolUsage

SubcommandHasPrefix applies the HasPrefix predicate on the "subcommand" field.

func SubcommandHasSuffix

func SubcommandHasSuffix(v string) predicate.ToolUsage

SubcommandHasSuffix applies the HasSuffix predicate on the "subcommand" field.

func SubcommandIn

func SubcommandIn(vs ...string) predicate.ToolUsage

SubcommandIn applies the In predicate on the "subcommand" field.

func SubcommandLT

func SubcommandLT(v string) predicate.ToolUsage

SubcommandLT applies the LT predicate on the "subcommand" field.

func SubcommandLTE

func SubcommandLTE(v string) predicate.ToolUsage

SubcommandLTE applies the LTE predicate on the "subcommand" field.

func SubcommandNEQ

func SubcommandNEQ(v string) predicate.ToolUsage

SubcommandNEQ applies the NEQ predicate on the "subcommand" field.

func SubcommandNotIn

func SubcommandNotIn(vs ...string) predicate.ToolUsage

SubcommandNotIn applies the NotIn predicate on the "subcommand" field.

func Target

func Target(v string) predicate.ToolUsage

Target applies equality check predicate on the "target" field. It's identical to TargetEQ.

func TargetContains

func TargetContains(v string) predicate.ToolUsage

TargetContains applies the Contains predicate on the "target" field.

func TargetContainsFold

func TargetContainsFold(v string) predicate.ToolUsage

TargetContainsFold applies the ContainsFold predicate on the "target" field.

func TargetEQ

func TargetEQ(v string) predicate.ToolUsage

TargetEQ applies the EQ predicate on the "target" field.

func TargetEqualFold

func TargetEqualFold(v string) predicate.ToolUsage

TargetEqualFold applies the EqualFold predicate on the "target" field.

func TargetGT

func TargetGT(v string) predicate.ToolUsage

TargetGT applies the GT predicate on the "target" field.

func TargetGTE

func TargetGTE(v string) predicate.ToolUsage

TargetGTE applies the GTE predicate on the "target" field.

func TargetHasPrefix

func TargetHasPrefix(v string) predicate.ToolUsage

TargetHasPrefix applies the HasPrefix predicate on the "target" field.

func TargetHasSuffix

func TargetHasSuffix(v string) predicate.ToolUsage

TargetHasSuffix applies the HasSuffix predicate on the "target" field.

func TargetIn

func TargetIn(vs ...string) predicate.ToolUsage

TargetIn applies the In predicate on the "target" field.

func TargetIsNil

func TargetIsNil() predicate.ToolUsage

TargetIsNil applies the IsNil predicate on the "target" field.

func TargetLT

func TargetLT(v string) predicate.ToolUsage

TargetLT applies the LT predicate on the "target" field.

func TargetLTE

func TargetLTE(v string) predicate.ToolUsage

TargetLTE applies the LTE predicate on the "target" field.

func TargetNEQ

func TargetNEQ(v string) predicate.ToolUsage

TargetNEQ applies the NEQ predicate on the "target" field.

func TargetNotIn

func TargetNotIn(vs ...string) predicate.ToolUsage

TargetNotIn applies the NotIn predicate on the "target" field.

func TargetNotNil

func TargetNotNil() predicate.ToolUsage

TargetNotNil applies the NotNil predicate on the "target" field.

func Team

func Team(v string) predicate.ToolUsage

Team applies equality check predicate on the "team" field. It's identical to TeamEQ.

func TeamContains

func TeamContains(v string) predicate.ToolUsage

TeamContains applies the Contains predicate on the "team" field.

func TeamContainsFold

func TeamContainsFold(v string) predicate.ToolUsage

TeamContainsFold applies the ContainsFold predicate on the "team" field.

func TeamEQ

func TeamEQ(v string) predicate.ToolUsage

TeamEQ applies the EQ predicate on the "team" field.

func TeamEqualFold

func TeamEqualFold(v string) predicate.ToolUsage

TeamEqualFold applies the EqualFold predicate on the "team" field.

func TeamGT

func TeamGT(v string) predicate.ToolUsage

TeamGT applies the GT predicate on the "team" field.

func TeamGTE

func TeamGTE(v string) predicate.ToolUsage

TeamGTE applies the GTE predicate on the "team" field.

func TeamHasPrefix

func TeamHasPrefix(v string) predicate.ToolUsage

TeamHasPrefix applies the HasPrefix predicate on the "team" field.

func TeamHasSuffix

func TeamHasSuffix(v string) predicate.ToolUsage

TeamHasSuffix applies the HasSuffix predicate on the "team" field.

func TeamIn

func TeamIn(vs ...string) predicate.ToolUsage

TeamIn applies the In predicate on the "team" field.

func TeamLT

func TeamLT(v string) predicate.ToolUsage

TeamLT applies the LT predicate on the "team" field.

func TeamLTE

func TeamLTE(v string) predicate.ToolUsage

TeamLTE applies the LTE predicate on the "team" field.

func TeamNEQ

func TeamNEQ(v string) predicate.ToolUsage

TeamNEQ applies the NEQ predicate on the "team" field.

func TeamNotIn

func TeamNotIn(vs ...string) predicate.ToolUsage

TeamNotIn applies the NotIn predicate on the "team" 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 ToolUsage queries.

func ByAgent

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

ByAgent orders the results by the agent field.

func ByCommand

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

ByCommand orders the results by the command 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 BySubcommand

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

BySubcommand orders the results by the subcommand field.

func ByTarget

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

ByTarget orders the results by the target field.

func ByTeam

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

ByTeam orders the results by the team field.

Jump to

Keyboard shortcuts

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