auditlog

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for auditlog fields.

Functions

func ActionEQ

func ActionEQ(v Action) predicate.AuditLog

ActionEQ applies the EQ predicate on the "action" field.

func ActionIn

func ActionIn(vs ...Action) predicate.AuditLog

ActionIn applies the In predicate on the "action" field.

func ActionNEQ

func ActionNEQ(v Action) predicate.AuditLog

ActionNEQ applies the NEQ predicate on the "action" field.

func ActionNotIn

func ActionNotIn(vs ...Action) predicate.AuditLog

ActionNotIn applies the NotIn predicate on the "action" field.

func ActionValidator

func ActionValidator(a Action) error

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

func Actor

func Actor(v string) predicate.AuditLog

Actor applies equality check predicate on the "actor" field. It's identical to ActorEQ.

func ActorContains

func ActorContains(v string) predicate.AuditLog

ActorContains applies the Contains predicate on the "actor" field.

func ActorContainsFold

func ActorContainsFold(v string) predicate.AuditLog

ActorContainsFold applies the ContainsFold predicate on the "actor" field.

func ActorEQ

func ActorEQ(v string) predicate.AuditLog

ActorEQ applies the EQ predicate on the "actor" field.

func ActorEqualFold

func ActorEqualFold(v string) predicate.AuditLog

ActorEqualFold applies the EqualFold predicate on the "actor" field.

func ActorGT

func ActorGT(v string) predicate.AuditLog

ActorGT applies the GT predicate on the "actor" field.

func ActorGTE

func ActorGTE(v string) predicate.AuditLog

ActorGTE applies the GTE predicate on the "actor" field.

func ActorHasPrefix

func ActorHasPrefix(v string) predicate.AuditLog

ActorHasPrefix applies the HasPrefix predicate on the "actor" field.

func ActorHasSuffix

func ActorHasSuffix(v string) predicate.AuditLog

ActorHasSuffix applies the HasSuffix predicate on the "actor" field.

func ActorIn

func ActorIn(vs ...string) predicate.AuditLog

ActorIn applies the In predicate on the "actor" field.

func ActorLT

func ActorLT(v string) predicate.AuditLog

ActorLT applies the LT predicate on the "actor" field.

func ActorLTE

func ActorLTE(v string) predicate.AuditLog

ActorLTE applies the LTE predicate on the "actor" field.

func ActorNEQ

func ActorNEQ(v string) predicate.AuditLog

ActorNEQ applies the NEQ predicate on the "actor" field.

func ActorNotIn

func ActorNotIn(vs ...string) predicate.AuditLog

ActorNotIn applies the NotIn predicate on the "actor" field.

func And

func And(predicates ...predicate.AuditLog) predicate.AuditLog

And groups predicates with the AND operator between them.

func DetailsIsNil

func DetailsIsNil() predicate.AuditLog

DetailsIsNil applies the IsNil predicate on the "details" field.

func DetailsNotNil

func DetailsNotNil() predicate.AuditLog

DetailsNotNil applies the NotNil predicate on the "details" field.

func ID

func ID(id uuid.UUID) predicate.AuditLog

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.AuditLog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.AuditLog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.AuditLog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.AuditLog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.AuditLog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.AuditLog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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.AuditLog) predicate.AuditLog

Or groups predicates with the OR operator between them.

func SessionKey

func SessionKey(v string) predicate.AuditLog

SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.

func SessionKeyContains

func SessionKeyContains(v string) predicate.AuditLog

SessionKeyContains applies the Contains predicate on the "session_key" field.

func SessionKeyContainsFold

func SessionKeyContainsFold(v string) predicate.AuditLog

SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.

func SessionKeyEQ

func SessionKeyEQ(v string) predicate.AuditLog

SessionKeyEQ applies the EQ predicate on the "session_key" field.

func SessionKeyEqualFold

func SessionKeyEqualFold(v string) predicate.AuditLog

SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.

func SessionKeyGT

func SessionKeyGT(v string) predicate.AuditLog

SessionKeyGT applies the GT predicate on the "session_key" field.

func SessionKeyGTE

func SessionKeyGTE(v string) predicate.AuditLog

SessionKeyGTE applies the GTE predicate on the "session_key" field.

func SessionKeyHasPrefix

func SessionKeyHasPrefix(v string) predicate.AuditLog

SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.

func SessionKeyHasSuffix

func SessionKeyHasSuffix(v string) predicate.AuditLog

SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.

func SessionKeyIn

func SessionKeyIn(vs ...string) predicate.AuditLog

SessionKeyIn applies the In predicate on the "session_key" field.

func SessionKeyIsNil

func SessionKeyIsNil() predicate.AuditLog

SessionKeyIsNil applies the IsNil predicate on the "session_key" field.

func SessionKeyLT

func SessionKeyLT(v string) predicate.AuditLog

SessionKeyLT applies the LT predicate on the "session_key" field.

func SessionKeyLTE

func SessionKeyLTE(v string) predicate.AuditLog

SessionKeyLTE applies the LTE predicate on the "session_key" field.

func SessionKeyNEQ

func SessionKeyNEQ(v string) predicate.AuditLog

SessionKeyNEQ applies the NEQ predicate on the "session_key" field.

func SessionKeyNotIn

func SessionKeyNotIn(vs ...string) predicate.AuditLog

SessionKeyNotIn applies the NotIn predicate on the "session_key" field.

func SessionKeyNotNil

func SessionKeyNotNil() predicate.AuditLog

SessionKeyNotNil applies the NotNil predicate on the "session_key" field.

func Target

func Target(v string) predicate.AuditLog

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

func TargetContains

func TargetContains(v string) predicate.AuditLog

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

func TargetContainsFold

func TargetContainsFold(v string) predicate.AuditLog

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

func TargetEQ

func TargetEQ(v string) predicate.AuditLog

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

func TargetEqualFold

func TargetEqualFold(v string) predicate.AuditLog

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

func TargetGT

func TargetGT(v string) predicate.AuditLog

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

func TargetGTE

func TargetGTE(v string) predicate.AuditLog

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

func TargetHasPrefix

func TargetHasPrefix(v string) predicate.AuditLog

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

func TargetHasSuffix

func TargetHasSuffix(v string) predicate.AuditLog

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

func TargetIn

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

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

func TargetIsNil

func TargetIsNil() predicate.AuditLog

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

func TargetLT

func TargetLT(v string) predicate.AuditLog

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

func TargetLTE

func TargetLTE(v string) predicate.AuditLog

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

func TargetNEQ

func TargetNEQ(v string) predicate.AuditLog

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

func TargetNotIn

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

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

func TargetNotNil

func TargetNotNil() predicate.AuditLog

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

func Timestamp

func Timestamp(v time.Time) predicate.AuditLog

Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.

func TimestampEQ

func TimestampEQ(v time.Time) predicate.AuditLog

TimestampEQ applies the EQ predicate on the "timestamp" field.

func TimestampGT

func TimestampGT(v time.Time) predicate.AuditLog

TimestampGT applies the GT predicate on the "timestamp" field.

func TimestampGTE

func TimestampGTE(v time.Time) predicate.AuditLog

TimestampGTE applies the GTE predicate on the "timestamp" field.

func TimestampIn

func TimestampIn(vs ...time.Time) predicate.AuditLog

TimestampIn applies the In predicate on the "timestamp" field.

func TimestampLT

func TimestampLT(v time.Time) predicate.AuditLog

TimestampLT applies the LT predicate on the "timestamp" field.

func TimestampLTE

func TimestampLTE(v time.Time) predicate.AuditLog

TimestampLTE applies the LTE predicate on the "timestamp" field.

func TimestampNEQ

func TimestampNEQ(v time.Time) predicate.AuditLog

TimestampNEQ applies the NEQ predicate on the "timestamp" field.

func TimestampNotIn

func TimestampNotIn(vs ...time.Time) predicate.AuditLog

TimestampNotIn applies the NotIn predicate on the "timestamp" field.

func ValidColumn

func ValidColumn(column string) bool

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"
	ActionPolicyDecision   Action = "policy_decision"
	ActionAlert            Action = "alert"
	ActionSandboxDecision  Action = "sandbox_decision"
)

Action values.

func (Action) String

func (a Action) String() string

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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