event

package
v0.0.0-...-72a65b5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the event type in the database.
	Label = "event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldEventTime holds the string denoting the event_time field in the database.
	FieldEventTime = "event_time"
	// FieldEventName holds the string denoting the event_name field in the database.
	FieldEventName = "event_name"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldResource holds the string denoting the resource field in the database.
	FieldResource = "resource"
	// FieldSourceIP holds the string denoting the source_ip field in the database.
	FieldSourceIP = "source_ip"
	// FieldRequestID holds the string denoting the request_id field in the database.
	FieldRequestID = "request_id"
	// FieldReadOnly holds the string denoting the read_only field in the database.
	FieldReadOnly = "read_only"
	// FieldEventData holds the string denoting the event_data field in the database.
	FieldEventData = "event_data"
	// FieldEventSource holds the string denoting the event_source field in the database.
	FieldEventSource = "event_source"
	// Table holds the table name of the event in the database.
	Table = "events"
)

Variables

View Source
var (
	// DefaultEventTime holds the default value on creation for the "event_time" field.
	DefaultEventTime time.Time
	// DefaultResource holds the default value on creation for the "resource" field.
	DefaultResource string
	// DefaultSourceIP holds the default value on creation for the "source_ip" field.
	DefaultSourceIP string
	// DefaultRequestID holds the default value on creation for the "request_id" field.
	DefaultRequestID string
	// DefaultReadOnly holds the default value on creation for the "read_only" field.
	DefaultReadOnly bool
	// DefaultEventSource holds the default value on creation for the "event_source" field.
	DefaultEventSource string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for event fields.

Functions

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func EventName

func EventName(v string) predicate.Event

EventName applies equality check predicate on the "event_name" field. It's identical to EventNameEQ.

func EventNameContains

func EventNameContains(v string) predicate.Event

EventNameContains applies the Contains predicate on the "event_name" field.

func EventNameContainsFold

func EventNameContainsFold(v string) predicate.Event

EventNameContainsFold applies the ContainsFold predicate on the "event_name" field.

func EventNameEQ

func EventNameEQ(v string) predicate.Event

EventNameEQ applies the EQ predicate on the "event_name" field.

func EventNameEqualFold

func EventNameEqualFold(v string) predicate.Event

EventNameEqualFold applies the EqualFold predicate on the "event_name" field.

func EventNameGT

func EventNameGT(v string) predicate.Event

EventNameGT applies the GT predicate on the "event_name" field.

func EventNameGTE

func EventNameGTE(v string) predicate.Event

EventNameGTE applies the GTE predicate on the "event_name" field.

func EventNameHasPrefix

func EventNameHasPrefix(v string) predicate.Event

EventNameHasPrefix applies the HasPrefix predicate on the "event_name" field.

func EventNameHasSuffix

func EventNameHasSuffix(v string) predicate.Event

EventNameHasSuffix applies the HasSuffix predicate on the "event_name" field.

func EventNameIn

func EventNameIn(vs ...string) predicate.Event

EventNameIn applies the In predicate on the "event_name" field.

func EventNameLT

func EventNameLT(v string) predicate.Event

EventNameLT applies the LT predicate on the "event_name" field.

func EventNameLTE

func EventNameLTE(v string) predicate.Event

EventNameLTE applies the LTE predicate on the "event_name" field.

func EventNameNEQ

func EventNameNEQ(v string) predicate.Event

EventNameNEQ applies the NEQ predicate on the "event_name" field.

func EventNameNotIn

func EventNameNotIn(vs ...string) predicate.Event

EventNameNotIn applies the NotIn predicate on the "event_name" field.

func EventSource

func EventSource(v string) predicate.Event

EventSource applies equality check predicate on the "event_source" field. It's identical to EventSourceEQ.

func EventSourceContains

func EventSourceContains(v string) predicate.Event

EventSourceContains applies the Contains predicate on the "event_source" field.

func EventSourceContainsFold

func EventSourceContainsFold(v string) predicate.Event

EventSourceContainsFold applies the ContainsFold predicate on the "event_source" field.

func EventSourceEQ

func EventSourceEQ(v string) predicate.Event

EventSourceEQ applies the EQ predicate on the "event_source" field.

func EventSourceEqualFold

func EventSourceEqualFold(v string) predicate.Event

EventSourceEqualFold applies the EqualFold predicate on the "event_source" field.

func EventSourceGT

func EventSourceGT(v string) predicate.Event

EventSourceGT applies the GT predicate on the "event_source" field.

func EventSourceGTE

func EventSourceGTE(v string) predicate.Event

EventSourceGTE applies the GTE predicate on the "event_source" field.

func EventSourceHasPrefix

func EventSourceHasPrefix(v string) predicate.Event

EventSourceHasPrefix applies the HasPrefix predicate on the "event_source" field.

func EventSourceHasSuffix

func EventSourceHasSuffix(v string) predicate.Event

EventSourceHasSuffix applies the HasSuffix predicate on the "event_source" field.

func EventSourceIn

func EventSourceIn(vs ...string) predicate.Event

EventSourceIn applies the In predicate on the "event_source" field.

func EventSourceLT

func EventSourceLT(v string) predicate.Event

EventSourceLT applies the LT predicate on the "event_source" field.

func EventSourceLTE

func EventSourceLTE(v string) predicate.Event

EventSourceLTE applies the LTE predicate on the "event_source" field.

func EventSourceNEQ

func EventSourceNEQ(v string) predicate.Event

EventSourceNEQ applies the NEQ predicate on the "event_source" field.

func EventSourceNotIn

func EventSourceNotIn(vs ...string) predicate.Event

EventSourceNotIn applies the NotIn predicate on the "event_source" field.

func EventTime

func EventTime(v time.Time) predicate.Event

EventTime applies equality check predicate on the "event_time" field. It's identical to EventTimeEQ.

func EventTimeEQ

func EventTimeEQ(v time.Time) predicate.Event

EventTimeEQ applies the EQ predicate on the "event_time" field.

func EventTimeGT

func EventTimeGT(v time.Time) predicate.Event

EventTimeGT applies the GT predicate on the "event_time" field.

func EventTimeGTE

func EventTimeGTE(v time.Time) predicate.Event

EventTimeGTE applies the GTE predicate on the "event_time" field.

func EventTimeIn

func EventTimeIn(vs ...time.Time) predicate.Event

EventTimeIn applies the In predicate on the "event_time" field.

func EventTimeLT

func EventTimeLT(v time.Time) predicate.Event

EventTimeLT applies the LT predicate on the "event_time" field.

func EventTimeLTE

func EventTimeLTE(v time.Time) predicate.Event

EventTimeLTE applies the LTE predicate on the "event_time" field.

func EventTimeNEQ

func EventTimeNEQ(v time.Time) predicate.Event

EventTimeNEQ applies the NEQ predicate on the "event_time" field.

func EventTimeNotIn

func EventTimeNotIn(vs ...time.Time) predicate.Event

EventTimeNotIn applies the NotIn predicate on the "event_time" field.

func ID

func ID(id uuid.UUID) predicate.Event

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func ReadOnly

func ReadOnly(v bool) predicate.Event

ReadOnly applies equality check predicate on the "read_only" field. It's identical to ReadOnlyEQ.

func ReadOnlyEQ

func ReadOnlyEQ(v bool) predicate.Event

ReadOnlyEQ applies the EQ predicate on the "read_only" field.

func ReadOnlyNEQ

func ReadOnlyNEQ(v bool) predicate.Event

ReadOnlyNEQ applies the NEQ predicate on the "read_only" field.

func RequestID

func RequestID(v string) predicate.Event

RequestID applies equality check predicate on the "request_id" field. It's identical to RequestIDEQ.

func RequestIDContains

func RequestIDContains(v string) predicate.Event

RequestIDContains applies the Contains predicate on the "request_id" field.

func RequestIDContainsFold

func RequestIDContainsFold(v string) predicate.Event

RequestIDContainsFold applies the ContainsFold predicate on the "request_id" field.

func RequestIDEQ

func RequestIDEQ(v string) predicate.Event

RequestIDEQ applies the EQ predicate on the "request_id" field.

func RequestIDEqualFold

func RequestIDEqualFold(v string) predicate.Event

RequestIDEqualFold applies the EqualFold predicate on the "request_id" field.

func RequestIDGT

func RequestIDGT(v string) predicate.Event

RequestIDGT applies the GT predicate on the "request_id" field.

func RequestIDGTE

func RequestIDGTE(v string) predicate.Event

RequestIDGTE applies the GTE predicate on the "request_id" field.

func RequestIDHasPrefix

func RequestIDHasPrefix(v string) predicate.Event

RequestIDHasPrefix applies the HasPrefix predicate on the "request_id" field.

func RequestIDHasSuffix

func RequestIDHasSuffix(v string) predicate.Event

RequestIDHasSuffix applies the HasSuffix predicate on the "request_id" field.

func RequestIDIn

func RequestIDIn(vs ...string) predicate.Event

RequestIDIn applies the In predicate on the "request_id" field.

func RequestIDLT

func RequestIDLT(v string) predicate.Event

RequestIDLT applies the LT predicate on the "request_id" field.

func RequestIDLTE

func RequestIDLTE(v string) predicate.Event

RequestIDLTE applies the LTE predicate on the "request_id" field.

func RequestIDNEQ

func RequestIDNEQ(v string) predicate.Event

RequestIDNEQ applies the NEQ predicate on the "request_id" field.

func RequestIDNotIn

func RequestIDNotIn(vs ...string) predicate.Event

RequestIDNotIn applies the NotIn predicate on the "request_id" field.

func Resource

func Resource(v string) predicate.Event

Resource applies equality check predicate on the "resource" field. It's identical to ResourceEQ.

func ResourceContains

func ResourceContains(v string) predicate.Event

ResourceContains applies the Contains predicate on the "resource" field.

func ResourceContainsFold

func ResourceContainsFold(v string) predicate.Event

ResourceContainsFold applies the ContainsFold predicate on the "resource" field.

func ResourceEQ

func ResourceEQ(v string) predicate.Event

ResourceEQ applies the EQ predicate on the "resource" field.

func ResourceEqualFold

func ResourceEqualFold(v string) predicate.Event

ResourceEqualFold applies the EqualFold predicate on the "resource" field.

func ResourceGT

func ResourceGT(v string) predicate.Event

ResourceGT applies the GT predicate on the "resource" field.

func ResourceGTE

func ResourceGTE(v string) predicate.Event

ResourceGTE applies the GTE predicate on the "resource" field.

func ResourceHasPrefix

func ResourceHasPrefix(v string) predicate.Event

ResourceHasPrefix applies the HasPrefix predicate on the "resource" field.

func ResourceHasSuffix

func ResourceHasSuffix(v string) predicate.Event

ResourceHasSuffix applies the HasSuffix predicate on the "resource" field.

func ResourceIn

func ResourceIn(vs ...string) predicate.Event

ResourceIn applies the In predicate on the "resource" field.

func ResourceLT

func ResourceLT(v string) predicate.Event

ResourceLT applies the LT predicate on the "resource" field.

func ResourceLTE

func ResourceLTE(v string) predicate.Event

ResourceLTE applies the LTE predicate on the "resource" field.

func ResourceNEQ

func ResourceNEQ(v string) predicate.Event

ResourceNEQ applies the NEQ predicate on the "resource" field.

func ResourceNotIn

func ResourceNotIn(vs ...string) predicate.Event

ResourceNotIn applies the NotIn predicate on the "resource" field.

func SourceIP

func SourceIP(v string) predicate.Event

SourceIP applies equality check predicate on the "source_ip" field. It's identical to SourceIPEQ.

func SourceIPContains

func SourceIPContains(v string) predicate.Event

SourceIPContains applies the Contains predicate on the "source_ip" field.

func SourceIPContainsFold

func SourceIPContainsFold(v string) predicate.Event

SourceIPContainsFold applies the ContainsFold predicate on the "source_ip" field.

func SourceIPEQ

func SourceIPEQ(v string) predicate.Event

SourceIPEQ applies the EQ predicate on the "source_ip" field.

func SourceIPEqualFold

func SourceIPEqualFold(v string) predicate.Event

SourceIPEqualFold applies the EqualFold predicate on the "source_ip" field.

func SourceIPGT

func SourceIPGT(v string) predicate.Event

SourceIPGT applies the GT predicate on the "source_ip" field.

func SourceIPGTE

func SourceIPGTE(v string) predicate.Event

SourceIPGTE applies the GTE predicate on the "source_ip" field.

func SourceIPHasPrefix

func SourceIPHasPrefix(v string) predicate.Event

SourceIPHasPrefix applies the HasPrefix predicate on the "source_ip" field.

func SourceIPHasSuffix

func SourceIPHasSuffix(v string) predicate.Event

SourceIPHasSuffix applies the HasSuffix predicate on the "source_ip" field.

func SourceIPIn

func SourceIPIn(vs ...string) predicate.Event

SourceIPIn applies the In predicate on the "source_ip" field.

func SourceIPLT

func SourceIPLT(v string) predicate.Event

SourceIPLT applies the LT predicate on the "source_ip" field.

func SourceIPLTE

func SourceIPLTE(v string) predicate.Event

SourceIPLTE applies the LTE predicate on the "source_ip" field.

func SourceIPNEQ

func SourceIPNEQ(v string) predicate.Event

SourceIPNEQ applies the NEQ predicate on the "source_ip" field.

func SourceIPNotIn

func SourceIPNotIn(vs ...string) predicate.Event

SourceIPNotIn applies the NotIn predicate on the "source_ip" field.

func Username

func Username(v string) predicate.Event

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Event

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Event

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Event

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Event

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.Event

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Event

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Event

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Event

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Event

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Event

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Event

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Event

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Event

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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