Documentation
¶
Index ¶
- Constants
- Variables
- func ActorID(v string) predicate.AuthAuditEvent
- func ActorIDContains(v string) predicate.AuthAuditEvent
- func ActorIDContainsFold(v string) predicate.AuthAuditEvent
- func ActorIDEQ(v string) predicate.AuthAuditEvent
- func ActorIDEqualFold(v string) predicate.AuthAuditEvent
- func ActorIDGT(v string) predicate.AuthAuditEvent
- func ActorIDGTE(v string) predicate.AuthAuditEvent
- func ActorIDHasPrefix(v string) predicate.AuthAuditEvent
- func ActorIDHasSuffix(v string) predicate.AuthAuditEvent
- func ActorIDIn(vs ...string) predicate.AuthAuditEvent
- func ActorIDLT(v string) predicate.AuthAuditEvent
- func ActorIDLTE(v string) predicate.AuthAuditEvent
- func ActorIDNEQ(v string) predicate.AuthAuditEvent
- func ActorIDNotIn(vs ...string) predicate.AuthAuditEvent
- func And(predicates ...predicate.AuthAuditEvent) predicate.AuthAuditEvent
- func CreatedAt(v time.Time) predicate.AuthAuditEvent
- func CreatedAtEQ(v time.Time) predicate.AuthAuditEvent
- func CreatedAtGT(v time.Time) predicate.AuthAuditEvent
- func CreatedAtGTE(v time.Time) predicate.AuthAuditEvent
- func CreatedAtIn(vs ...time.Time) predicate.AuthAuditEvent
- func CreatedAtLT(v time.Time) predicate.AuthAuditEvent
- func CreatedAtLTE(v time.Time) predicate.AuthAuditEvent
- func CreatedAtNEQ(v time.Time) predicate.AuthAuditEvent
- func CreatedAtNotIn(vs ...time.Time) predicate.AuthAuditEvent
- func EventType(v string) predicate.AuthAuditEvent
- func EventTypeContains(v string) predicate.AuthAuditEvent
- func EventTypeContainsFold(v string) predicate.AuthAuditEvent
- func EventTypeEQ(v string) predicate.AuthAuditEvent
- func EventTypeEqualFold(v string) predicate.AuthAuditEvent
- func EventTypeGT(v string) predicate.AuthAuditEvent
- func EventTypeGTE(v string) predicate.AuthAuditEvent
- func EventTypeHasPrefix(v string) predicate.AuthAuditEvent
- func EventTypeHasSuffix(v string) predicate.AuthAuditEvent
- func EventTypeIn(vs ...string) predicate.AuthAuditEvent
- func EventTypeLT(v string) predicate.AuthAuditEvent
- func EventTypeLTE(v string) predicate.AuthAuditEvent
- func EventTypeNEQ(v string) predicate.AuthAuditEvent
- func EventTypeNotIn(vs ...string) predicate.AuthAuditEvent
- func ID(id uuid.UUID) predicate.AuthAuditEvent
- func IDEQ(id uuid.UUID) predicate.AuthAuditEvent
- func IDGT(id uuid.UUID) predicate.AuthAuditEvent
- func IDGTE(id uuid.UUID) predicate.AuthAuditEvent
- func IDIn(ids ...uuid.UUID) predicate.AuthAuditEvent
- func IDLT(id uuid.UUID) predicate.AuthAuditEvent
- func IDLTE(id uuid.UUID) predicate.AuthAuditEvent
- func IDNEQ(id uuid.UUID) predicate.AuthAuditEvent
- func IDNotIn(ids ...uuid.UUID) predicate.AuthAuditEvent
- func Message(v string) predicate.AuthAuditEvent
- func MessageContains(v string) predicate.AuthAuditEvent
- func MessageContainsFold(v string) predicate.AuthAuditEvent
- func MessageEQ(v string) predicate.AuthAuditEvent
- func MessageEqualFold(v string) predicate.AuthAuditEvent
- func MessageGT(v string) predicate.AuthAuditEvent
- func MessageGTE(v string) predicate.AuthAuditEvent
- func MessageHasPrefix(v string) predicate.AuthAuditEvent
- func MessageHasSuffix(v string) predicate.AuthAuditEvent
- func MessageIn(vs ...string) predicate.AuthAuditEvent
- func MessageLT(v string) predicate.AuthAuditEvent
- func MessageLTE(v string) predicate.AuthAuditEvent
- func MessageNEQ(v string) predicate.AuthAuditEvent
- func MessageNotIn(vs ...string) predicate.AuthAuditEvent
- func Not(p predicate.AuthAuditEvent) predicate.AuthAuditEvent
- func Or(predicates ...predicate.AuthAuditEvent) predicate.AuthAuditEvent
- func SessionID(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDEQ(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDGT(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDGTE(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDIn(vs ...uuid.UUID) predicate.AuthAuditEvent
- func SessionIDIsNil() predicate.AuthAuditEvent
- func SessionIDLT(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDLTE(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDNEQ(v uuid.UUID) predicate.AuthAuditEvent
- func SessionIDNotIn(vs ...uuid.UUID) predicate.AuthAuditEvent
- func SessionIDNotNil() predicate.AuthAuditEvent
- func UserID(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDEQ(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDGT(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDGTE(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDIn(vs ...uuid.UUID) predicate.AuthAuditEvent
- func UserIDIsNil() predicate.AuthAuditEvent
- func UserIDLT(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDLTE(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDNEQ(v uuid.UUID) predicate.AuthAuditEvent
- func UserIDNotIn(vs ...uuid.UUID) predicate.AuthAuditEvent
- func UserIDNotNil() predicate.AuthAuditEvent
- func ValidColumn(column string) bool
- type OrderOption
- func ByActorID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEventType(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMessage(opts ...sql.OrderTermOption) OrderOption
- func BySessionID(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldUserID, FieldSessionID, FieldActorID, FieldEventType, FieldMessage, FieldMetadata, FieldCreatedAt, }
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 ¶
func And(predicates ...predicate.AuthAuditEvent) predicate.AuthAuditEvent
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 ¶
func ID(id uuid.UUID) predicate.AuthAuditEvent
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.AuthAuditEvent
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.AuthAuditEvent
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.AuthAuditEvent
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 ¶
func IDLT(id uuid.UUID) predicate.AuthAuditEvent
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.AuthAuditEvent
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.AuthAuditEvent
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 ¶
func Not(p predicate.AuthAuditEvent) predicate.AuthAuditEvent
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.AuthAuditEvent) predicate.AuthAuditEvent
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 ¶
func UserID(v uuid.UUID) predicate.AuthAuditEvent
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.