Documentation
¶
Index ¶
- Constants
- Variables
- func ActionEQ(v Action) predicate.AuditLog
- func ActionIn(vs ...Action) predicate.AuditLog
- func ActionNEQ(v Action) predicate.AuditLog
- func ActionNotIn(vs ...Action) predicate.AuditLog
- func ActionValidator(a Action) error
- func Actor(v string) predicate.AuditLog
- func ActorContains(v string) predicate.AuditLog
- func ActorContainsFold(v string) predicate.AuditLog
- func ActorEQ(v string) predicate.AuditLog
- func ActorEqualFold(v string) predicate.AuditLog
- func ActorGT(v string) predicate.AuditLog
- func ActorGTE(v string) predicate.AuditLog
- func ActorHasPrefix(v string) predicate.AuditLog
- func ActorHasSuffix(v string) predicate.AuditLog
- func ActorIn(vs ...string) predicate.AuditLog
- func ActorLT(v string) predicate.AuditLog
- func ActorLTE(v string) predicate.AuditLog
- func ActorNEQ(v string) predicate.AuditLog
- func ActorNotIn(vs ...string) predicate.AuditLog
- func And(predicates ...predicate.AuditLog) predicate.AuditLog
- func DetailsIsNil() predicate.AuditLog
- func DetailsNotNil() predicate.AuditLog
- func ID(id uuid.UUID) predicate.AuditLog
- func IDEQ(id uuid.UUID) predicate.AuditLog
- func IDGT(id uuid.UUID) predicate.AuditLog
- func IDGTE(id uuid.UUID) predicate.AuditLog
- func IDIn(ids ...uuid.UUID) predicate.AuditLog
- func IDLT(id uuid.UUID) predicate.AuditLog
- func IDLTE(id uuid.UUID) predicate.AuditLog
- func IDNEQ(id uuid.UUID) predicate.AuditLog
- func IDNotIn(ids ...uuid.UUID) predicate.AuditLog
- func Not(p predicate.AuditLog) predicate.AuditLog
- func Or(predicates ...predicate.AuditLog) predicate.AuditLog
- func SessionKey(v string) predicate.AuditLog
- func SessionKeyContains(v string) predicate.AuditLog
- func SessionKeyContainsFold(v string) predicate.AuditLog
- func SessionKeyEQ(v string) predicate.AuditLog
- func SessionKeyEqualFold(v string) predicate.AuditLog
- func SessionKeyGT(v string) predicate.AuditLog
- func SessionKeyGTE(v string) predicate.AuditLog
- func SessionKeyHasPrefix(v string) predicate.AuditLog
- func SessionKeyHasSuffix(v string) predicate.AuditLog
- func SessionKeyIn(vs ...string) predicate.AuditLog
- func SessionKeyIsNil() predicate.AuditLog
- func SessionKeyLT(v string) predicate.AuditLog
- func SessionKeyLTE(v string) predicate.AuditLog
- func SessionKeyNEQ(v string) predicate.AuditLog
- func SessionKeyNotIn(vs ...string) predicate.AuditLog
- func SessionKeyNotNil() predicate.AuditLog
- func Target(v string) predicate.AuditLog
- func TargetContains(v string) predicate.AuditLog
- func TargetContainsFold(v string) predicate.AuditLog
- func TargetEQ(v string) predicate.AuditLog
- func TargetEqualFold(v string) predicate.AuditLog
- func TargetGT(v string) predicate.AuditLog
- func TargetGTE(v string) predicate.AuditLog
- func TargetHasPrefix(v string) predicate.AuditLog
- func TargetHasSuffix(v string) predicate.AuditLog
- func TargetIn(vs ...string) predicate.AuditLog
- func TargetIsNil() predicate.AuditLog
- func TargetLT(v string) predicate.AuditLog
- func TargetLTE(v string) predicate.AuditLog
- func TargetNEQ(v string) predicate.AuditLog
- func TargetNotIn(vs ...string) predicate.AuditLog
- func TargetNotNil() predicate.AuditLog
- func Timestamp(v time.Time) predicate.AuditLog
- func TimestampEQ(v time.Time) predicate.AuditLog
- func TimestampGT(v time.Time) predicate.AuditLog
- func TimestampGTE(v time.Time) predicate.AuditLog
- func TimestampIn(vs ...time.Time) predicate.AuditLog
- func TimestampLT(v time.Time) predicate.AuditLog
- func TimestampLTE(v time.Time) predicate.AuditLog
- func TimestampNEQ(v time.Time) predicate.AuditLog
- func TimestampNotIn(vs ...time.Time) predicate.AuditLog
- func ValidColumn(column string) bool
- type Action
- type OrderOption
- func ByAction(opts ...sql.OrderTermOption) OrderOption
- func ByActor(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func BySessionKey(opts ...sql.OrderTermOption) OrderOption
- func ByTarget(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the auditlog type in the database. Label = "audit_log" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSessionKey holds the string denoting the session_key field in the database. FieldSessionKey = "session_key" // FieldAction holds the string denoting the action field in the database. FieldAction = "action" // FieldActor holds the string denoting the actor field in the database. FieldActor = "actor" // FieldTarget holds the string denoting the target field in the database. FieldTarget = "target" // FieldDetails holds the string denoting the details field in the database. FieldDetails = "details" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // Table holds the table name of the auditlog in the database. Table = "audit_logs" )
Variables ¶
var ( // ActorValidator is a validator for the "actor" field. It is called by the builders before save. ActorValidator func(string) error // DefaultTimestamp holds the default value on creation for the "timestamp" field. DefaultTimestamp func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldSessionKey, FieldAction, FieldActor, FieldTarget, FieldDetails, FieldTimestamp, }
Columns holds all SQL columns for auditlog fields.
Functions ¶
func ActionNotIn ¶
ActionNotIn applies the NotIn predicate on the "action" field.
func ActionValidator ¶
ActionValidator is a validator for the "action" field enum values. It is called by the builders before save.
func Actor ¶
Actor applies equality check predicate on the "actor" field. It's identical to ActorEQ.
func ActorContains ¶
ActorContains applies the Contains predicate on the "actor" field.
func ActorContainsFold ¶
ActorContainsFold applies the ContainsFold predicate on the "actor" field.
func ActorEqualFold ¶
ActorEqualFold applies the EqualFold predicate on the "actor" field.
func ActorHasPrefix ¶
ActorHasPrefix applies the HasPrefix predicate on the "actor" field.
func ActorHasSuffix ¶
ActorHasSuffix applies the HasSuffix predicate on the "actor" field.
func ActorNotIn ¶
ActorNotIn applies the NotIn predicate on the "actor" field.
func DetailsIsNil ¶
DetailsIsNil applies the IsNil predicate on the "details" field.
func DetailsNotNil ¶
DetailsNotNil applies the NotNil predicate on the "details" field.
func SessionKey ¶
SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.
func SessionKeyContains ¶
SessionKeyContains applies the Contains predicate on the "session_key" field.
func SessionKeyContainsFold ¶
SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.
func SessionKeyEQ ¶
SessionKeyEQ applies the EQ predicate on the "session_key" field.
func SessionKeyEqualFold ¶
SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.
func SessionKeyGT ¶
SessionKeyGT applies the GT predicate on the "session_key" field.
func SessionKeyGTE ¶
SessionKeyGTE applies the GTE predicate on the "session_key" field.
func SessionKeyHasPrefix ¶
SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.
func SessionKeyHasSuffix ¶
SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.
func SessionKeyIn ¶
SessionKeyIn applies the In predicate on the "session_key" field.
func SessionKeyIsNil ¶
SessionKeyIsNil applies the IsNil predicate on the "session_key" field.
func SessionKeyLT ¶
SessionKeyLT applies the LT predicate on the "session_key" field.
func SessionKeyLTE ¶
SessionKeyLTE applies the LTE predicate on the "session_key" field.
func SessionKeyNEQ ¶
SessionKeyNEQ applies the NEQ predicate on the "session_key" field.
func SessionKeyNotIn ¶
SessionKeyNotIn applies the NotIn predicate on the "session_key" field.
func SessionKeyNotNil ¶
SessionKeyNotNil applies the NotNil predicate on the "session_key" 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 Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type Action ¶
type Action string
Action defines the type for the "action" enum field.
const ( ActionToolCall Action = "tool_call" ActionKnowledgeSave Action = "knowledge_save" ActionLearningSave Action = "learning_save" ActionSkillCreate Action = "skill_create" ActionSkillExecute Action = "skill_execute" ActionSkillImport Action = "skill_import" ActionSkillImportBulk Action = "skill_import_bulk" ActionKnowledgeSearch Action = "knowledge_search" ActionApprovalRequest Action = "approval_request" ActionApprovalResponse Action = "approval_response" )
Action values.
type OrderOption ¶
OrderOption defines the ordering options for the AuditLog queries.
func ByAction ¶
func ByAction(opts ...sql.OrderTermOption) OrderOption
ByAction orders the results by the action field.
func ByActor ¶
func ByActor(opts ...sql.OrderTermOption) OrderOption
ByActor orders the results by the actor field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func BySessionKey ¶
func BySessionKey(opts ...sql.OrderTermOption) OrderOption
BySessionKey orders the results by the session_key field.
func ByTarget ¶
func ByTarget(opts ...sql.OrderTermOption) OrderOption
ByTarget orders the results by the target field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.