authauditevent

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the authauditevent type in the database.
	Label = "auth_audit_event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldSessionID holds the string denoting the session_id field in the database.
	FieldSessionID = "session_id"
	// FieldActorID holds the string denoting the actor_id field in the database.
	FieldActorID = "actor_id"
	// FieldEventType holds the string denoting the event_type field in the database.
	FieldEventType = "event_type"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the authauditevent in the database.
	Table = "auth_audit_events"
)

Variables

View Source
var (
	// DefaultActorID holds the default value on creation for the "actor_id" field.
	DefaultActorID string
	// EventTypeValidator is a validator for the "event_type" field. It is called by the builders before save.
	EventTypeValidator func(string) error
	// DefaultMessage holds the default value on creation for the "message" field.
	DefaultMessage string
	// DefaultMetadata holds the default value on creation for the "metadata" field.
	DefaultMetadata func() map[string]interface{}
	// 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 authauditevent fields.

Functions

func ActorID

func ActorID(v string) predicate.AuthAuditEvent

ActorID applies equality check predicate on the "actor_id" field. It's identical to ActorIDEQ.

func ActorIDContains

func ActorIDContains(v string) predicate.AuthAuditEvent

ActorIDContains applies the Contains predicate on the "actor_id" field.

func ActorIDContainsFold

func ActorIDContainsFold(v string) predicate.AuthAuditEvent

ActorIDContainsFold applies the ContainsFold predicate on the "actor_id" field.

func ActorIDEQ

func ActorIDEQ(v string) predicate.AuthAuditEvent

ActorIDEQ applies the EQ predicate on the "actor_id" field.

func ActorIDEqualFold

func ActorIDEqualFold(v string) predicate.AuthAuditEvent

ActorIDEqualFold applies the EqualFold predicate on the "actor_id" field.

func ActorIDGT

func ActorIDGT(v string) predicate.AuthAuditEvent

ActorIDGT applies the GT predicate on the "actor_id" field.

func ActorIDGTE

func ActorIDGTE(v string) predicate.AuthAuditEvent

ActorIDGTE applies the GTE predicate on the "actor_id" field.

func ActorIDHasPrefix

func ActorIDHasPrefix(v string) predicate.AuthAuditEvent

ActorIDHasPrefix applies the HasPrefix predicate on the "actor_id" field.

func ActorIDHasSuffix

func ActorIDHasSuffix(v string) predicate.AuthAuditEvent

ActorIDHasSuffix applies the HasSuffix predicate on the "actor_id" field.

func ActorIDIn

func ActorIDIn(vs ...string) predicate.AuthAuditEvent

ActorIDIn applies the In predicate on the "actor_id" field.

func ActorIDLT

func ActorIDLT(v string) predicate.AuthAuditEvent

ActorIDLT applies the LT predicate on the "actor_id" field.

func ActorIDLTE

func ActorIDLTE(v string) predicate.AuthAuditEvent

ActorIDLTE applies the LTE predicate on the "actor_id" field.

func ActorIDNEQ

func ActorIDNEQ(v string) predicate.AuthAuditEvent

ActorIDNEQ applies the NEQ predicate on the "actor_id" field.

func ActorIDNotIn

func ActorIDNotIn(vs ...string) predicate.AuthAuditEvent

ActorIDNotIn applies the NotIn predicate on the "actor_id" field.

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AuthAuditEvent

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

func CreatedAtNotIn

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

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

func EventType

func EventType(v string) predicate.AuthAuditEvent

EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.AuthAuditEvent

EventTypeContains applies the Contains predicate on the "event_type" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.AuthAuditEvent

EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.

func EventTypeEQ

func EventTypeEQ(v string) predicate.AuthAuditEvent

EventTypeEQ applies the EQ predicate on the "event_type" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.AuthAuditEvent

EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.

func EventTypeGT

func EventTypeGT(v string) predicate.AuthAuditEvent

EventTypeGT applies the GT predicate on the "event_type" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.AuthAuditEvent

EventTypeGTE applies the GTE predicate on the "event_type" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.AuthAuditEvent

EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.AuthAuditEvent

EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.AuthAuditEvent

EventTypeIn applies the In predicate on the "event_type" field.

func EventTypeLT

func EventTypeLT(v string) predicate.AuthAuditEvent

EventTypeLT applies the LT predicate on the "event_type" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.AuthAuditEvent

EventTypeLTE applies the LTE predicate on the "event_type" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.AuthAuditEvent

EventTypeNEQ applies the NEQ predicate on the "event_type" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.AuthAuditEvent

EventTypeNotIn applies the NotIn predicate on the "event_type" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Message

func Message(v string) predicate.AuthAuditEvent

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.AuthAuditEvent

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.AuthAuditEvent

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.AuthAuditEvent

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.AuthAuditEvent

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.AuthAuditEvent

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.AuthAuditEvent

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.AuthAuditEvent

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.AuthAuditEvent

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.AuthAuditEvent

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.AuthAuditEvent

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.AuthAuditEvent

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.AuthAuditEvent

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.AuthAuditEvent

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func SessionID

func SessionID(v uuid.UUID) predicate.AuthAuditEvent

SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.

func SessionIDEQ

func SessionIDEQ(v uuid.UUID) predicate.AuthAuditEvent

SessionIDEQ applies the EQ predicate on the "session_id" field.

func SessionIDGT

func SessionIDGT(v uuid.UUID) predicate.AuthAuditEvent

SessionIDGT applies the GT predicate on the "session_id" field.

func SessionIDGTE

func SessionIDGTE(v uuid.UUID) predicate.AuthAuditEvent

SessionIDGTE applies the GTE predicate on the "session_id" field.

func SessionIDIn

func SessionIDIn(vs ...uuid.UUID) predicate.AuthAuditEvent

SessionIDIn applies the In predicate on the "session_id" field.

func SessionIDIsNil

func SessionIDIsNil() predicate.AuthAuditEvent

SessionIDIsNil applies the IsNil predicate on the "session_id" field.

func SessionIDLT

func SessionIDLT(v uuid.UUID) predicate.AuthAuditEvent

SessionIDLT applies the LT predicate on the "session_id" field.

func SessionIDLTE

func SessionIDLTE(v uuid.UUID) predicate.AuthAuditEvent

SessionIDLTE applies the LTE predicate on the "session_id" field.

func SessionIDNEQ

func SessionIDNEQ(v uuid.UUID) predicate.AuthAuditEvent

SessionIDNEQ applies the NEQ predicate on the "session_id" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...uuid.UUID) predicate.AuthAuditEvent

SessionIDNotIn applies the NotIn predicate on the "session_id" field.

func SessionIDNotNil

func SessionIDNotNil() predicate.AuthAuditEvent

SessionIDNotNil applies the NotNil predicate on the "session_id" field.

func UserID

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.AuthAuditEvent

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uuid.UUID) predicate.AuthAuditEvent

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uuid.UUID) predicate.AuthAuditEvent

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.AuthAuditEvent

UserIDIn applies the In predicate on the "user_id" field.

func UserIDIsNil

func UserIDIsNil() predicate.AuthAuditEvent

UserIDIsNil applies the IsNil predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uuid.UUID) predicate.AuthAuditEvent

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uuid.UUID) predicate.AuthAuditEvent

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.AuthAuditEvent

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.AuthAuditEvent

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func UserIDNotNil

func UserIDNotNil() predicate.AuthAuditEvent

UserIDNotNil applies the NotNil predicate on the "user_id" 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 AuthAuditEvent queries.

func ByActorID

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

ByActorID orders the results by the actor_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEventType

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

ByEventType orders the results by the event_type field.

func ByID

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

ByID orders the results by the id field.

func ByMessage

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

ByMessage orders the results by the message field.

func BySessionID

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

BySessionID orders the results by the session_id field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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