Documentation
¶
Index ¶
- Constants
- Variables
- func Agent(v string) predicate.ToolUsage
- func AgentContains(v string) predicate.ToolUsage
- func AgentContainsFold(v string) predicate.ToolUsage
- func AgentEQ(v string) predicate.ToolUsage
- func AgentEqualFold(v string) predicate.ToolUsage
- func AgentGT(v string) predicate.ToolUsage
- func AgentGTE(v string) predicate.ToolUsage
- func AgentHasPrefix(v string) predicate.ToolUsage
- func AgentHasSuffix(v string) predicate.ToolUsage
- func AgentIn(vs ...string) predicate.ToolUsage
- func AgentLT(v string) predicate.ToolUsage
- func AgentLTE(v string) predicate.ToolUsage
- func AgentNEQ(v string) predicate.ToolUsage
- func AgentNotIn(vs ...string) predicate.ToolUsage
- func And(predicates ...predicate.ToolUsage) predicate.ToolUsage
- func Command(v string) predicate.ToolUsage
- func CommandContains(v string) predicate.ToolUsage
- func CommandContainsFold(v string) predicate.ToolUsage
- func CommandEQ(v string) predicate.ToolUsage
- func CommandEqualFold(v string) predicate.ToolUsage
- func CommandGT(v string) predicate.ToolUsage
- func CommandGTE(v string) predicate.ToolUsage
- func CommandHasPrefix(v string) predicate.ToolUsage
- func CommandHasSuffix(v string) predicate.ToolUsage
- func CommandIn(vs ...string) predicate.ToolUsage
- func CommandLT(v string) predicate.ToolUsage
- func CommandLTE(v string) predicate.ToolUsage
- func CommandNEQ(v string) predicate.ToolUsage
- func CommandNotIn(vs ...string) predicate.ToolUsage
- func CreatedAt(v time.Time) predicate.ToolUsage
- func CreatedAtEQ(v time.Time) predicate.ToolUsage
- func CreatedAtGT(v time.Time) predicate.ToolUsage
- func CreatedAtGTE(v time.Time) predicate.ToolUsage
- func CreatedAtIn(vs ...time.Time) predicate.ToolUsage
- func CreatedAtLT(v time.Time) predicate.ToolUsage
- func CreatedAtLTE(v time.Time) predicate.ToolUsage
- func CreatedAtNEQ(v time.Time) predicate.ToolUsage
- func CreatedAtNotIn(vs ...time.Time) predicate.ToolUsage
- func ID(id uuid.UUID) predicate.ToolUsage
- func IDEQ(id uuid.UUID) predicate.ToolUsage
- func IDGT(id uuid.UUID) predicate.ToolUsage
- func IDGTE(id uuid.UUID) predicate.ToolUsage
- func IDIn(ids ...uuid.UUID) predicate.ToolUsage
- func IDLT(id uuid.UUID) predicate.ToolUsage
- func IDLTE(id uuid.UUID) predicate.ToolUsage
- func IDNEQ(id uuid.UUID) predicate.ToolUsage
- func IDNotIn(ids ...uuid.UUID) predicate.ToolUsage
- func Not(p predicate.ToolUsage) predicate.ToolUsage
- func Or(predicates ...predicate.ToolUsage) predicate.ToolUsage
- func Subcommand(v string) predicate.ToolUsage
- func SubcommandContains(v string) predicate.ToolUsage
- func SubcommandContainsFold(v string) predicate.ToolUsage
- func SubcommandEQ(v string) predicate.ToolUsage
- func SubcommandEqualFold(v string) predicate.ToolUsage
- func SubcommandGT(v string) predicate.ToolUsage
- func SubcommandGTE(v string) predicate.ToolUsage
- func SubcommandHasPrefix(v string) predicate.ToolUsage
- func SubcommandHasSuffix(v string) predicate.ToolUsage
- func SubcommandIn(vs ...string) predicate.ToolUsage
- func SubcommandLT(v string) predicate.ToolUsage
- func SubcommandLTE(v string) predicate.ToolUsage
- func SubcommandNEQ(v string) predicate.ToolUsage
- func SubcommandNotIn(vs ...string) predicate.ToolUsage
- func Target(v string) predicate.ToolUsage
- func TargetContains(v string) predicate.ToolUsage
- func TargetContainsFold(v string) predicate.ToolUsage
- func TargetEQ(v string) predicate.ToolUsage
- func TargetEqualFold(v string) predicate.ToolUsage
- func TargetGT(v string) predicate.ToolUsage
- func TargetGTE(v string) predicate.ToolUsage
- func TargetHasPrefix(v string) predicate.ToolUsage
- func TargetHasSuffix(v string) predicate.ToolUsage
- func TargetIn(vs ...string) predicate.ToolUsage
- func TargetIsNil() predicate.ToolUsage
- func TargetLT(v string) predicate.ToolUsage
- func TargetLTE(v string) predicate.ToolUsage
- func TargetNEQ(v string) predicate.ToolUsage
- func TargetNotIn(vs ...string) predicate.ToolUsage
- func TargetNotNil() predicate.ToolUsage
- func Team(v string) predicate.ToolUsage
- func TeamContains(v string) predicate.ToolUsage
- func TeamContainsFold(v string) predicate.ToolUsage
- func TeamEQ(v string) predicate.ToolUsage
- func TeamEqualFold(v string) predicate.ToolUsage
- func TeamGT(v string) predicate.ToolUsage
- func TeamGTE(v string) predicate.ToolUsage
- func TeamHasPrefix(v string) predicate.ToolUsage
- func TeamHasSuffix(v string) predicate.ToolUsage
- func TeamIn(vs ...string) predicate.ToolUsage
- func TeamLT(v string) predicate.ToolUsage
- func TeamLTE(v string) predicate.ToolUsage
- func TeamNEQ(v string) predicate.ToolUsage
- func TeamNotIn(vs ...string) predicate.ToolUsage
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgent(opts ...sql.OrderTermOption) OrderOption
- func ByCommand(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySubcommand(opts ...sql.OrderTermOption) OrderOption
- func ByTarget(opts ...sql.OrderTermOption) OrderOption
- func ByTeam(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldAgent, FieldTeam, FieldCommand, FieldSubcommand, FieldTarget, FieldCreatedAt, }
Columns holds all SQL columns for toolusage fields.
Functions ¶
func Agent ¶
Agent applies equality check predicate on the "agent" field. It's identical to AgentEQ.
func AgentContains ¶
AgentContains applies the Contains predicate on the "agent" field.
func AgentContainsFold ¶
AgentContainsFold applies the ContainsFold predicate on the "agent" field.
func AgentEqualFold ¶
AgentEqualFold applies the EqualFold predicate on the "agent" field.
func AgentHasPrefix ¶
AgentHasPrefix applies the HasPrefix predicate on the "agent" field.
func AgentHasSuffix ¶
AgentHasSuffix applies the HasSuffix predicate on the "agent" field.
func AgentNotIn ¶
AgentNotIn applies the NotIn predicate on the "agent" field.
func Command ¶
Command applies equality check predicate on the "command" field. It's identical to CommandEQ.
func CommandContains ¶
CommandContains applies the Contains predicate on the "command" field.
func CommandContainsFold ¶
CommandContainsFold applies the ContainsFold predicate on the "command" field.
func CommandEqualFold ¶
CommandEqualFold applies the EqualFold predicate on the "command" field.
func CommandGTE ¶
CommandGTE applies the GTE predicate on the "command" field.
func CommandHasPrefix ¶
CommandHasPrefix applies the HasPrefix predicate on the "command" field.
func CommandHasSuffix ¶
CommandHasSuffix applies the HasSuffix predicate on the "command" field.
func CommandLTE ¶
CommandLTE applies the LTE predicate on the "command" field.
func CommandNEQ ¶
CommandNEQ applies the NEQ predicate on the "command" field.
func CommandNotIn ¶
CommandNotIn applies the NotIn predicate on the "command" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Subcommand ¶
Subcommand applies equality check predicate on the "subcommand" field. It's identical to SubcommandEQ.
func SubcommandContains ¶
SubcommandContains applies the Contains predicate on the "subcommand" field.
func SubcommandContainsFold ¶
SubcommandContainsFold applies the ContainsFold predicate on the "subcommand" field.
func SubcommandEQ ¶
SubcommandEQ applies the EQ predicate on the "subcommand" field.
func SubcommandEqualFold ¶
SubcommandEqualFold applies the EqualFold predicate on the "subcommand" field.
func SubcommandGT ¶
SubcommandGT applies the GT predicate on the "subcommand" field.
func SubcommandGTE ¶
SubcommandGTE applies the GTE predicate on the "subcommand" field.
func SubcommandHasPrefix ¶
SubcommandHasPrefix applies the HasPrefix predicate on the "subcommand" field.
func SubcommandHasSuffix ¶
SubcommandHasSuffix applies the HasSuffix predicate on the "subcommand" field.
func SubcommandIn ¶
SubcommandIn applies the In predicate on the "subcommand" field.
func SubcommandLT ¶
SubcommandLT applies the LT predicate on the "subcommand" field.
func SubcommandLTE ¶
SubcommandLTE applies the LTE predicate on the "subcommand" field.
func SubcommandNEQ ¶
SubcommandNEQ applies the NEQ predicate on the "subcommand" field.
func SubcommandNotIn ¶
SubcommandNotIn applies the NotIn predicate on the "subcommand" field.
func Target ¶
Target applies equality check predicate on the "target" field. It's identical to TargetEQ.
func TargetContains ¶
TargetContains applies the Contains predicate on the "target" field.
func TargetContainsFold ¶
TargetContainsFold applies the ContainsFold predicate on the "target" field.
func TargetEqualFold ¶
TargetEqualFold applies the EqualFold predicate on the "target" field.
func TargetHasPrefix ¶
TargetHasPrefix applies the HasPrefix predicate on the "target" field.
func TargetHasSuffix ¶
TargetHasSuffix applies the HasSuffix predicate on the "target" field.
func TargetIsNil ¶
TargetIsNil applies the IsNil predicate on the "target" field.
func TargetNotIn ¶
TargetNotIn applies the NotIn predicate on the "target" field.
func TargetNotNil ¶
TargetNotNil applies the NotNil predicate on the "target" field.
func TeamContains ¶
TeamContains applies the Contains predicate on the "team" field.
func TeamContainsFold ¶
TeamContainsFold applies the ContainsFold predicate on the "team" field.
func TeamEqualFold ¶
TeamEqualFold applies the EqualFold predicate on the "team" field.
func TeamHasPrefix ¶
TeamHasPrefix applies the HasPrefix predicate on the "team" field.
func TeamHasSuffix ¶
TeamHasSuffix applies the HasSuffix predicate on the "team" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.