auditlog

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 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"
	// FieldUser holds the string denoting the user field in the database.
	FieldUser = "user"
	// FieldAction holds the string denoting the action field in the database.
	FieldAction = "action"
	// FieldEntitySchema holds the string denoting the entity_schema field in the database.
	FieldEntitySchema = "entity_schema"
	// FieldEntityValues holds the string denoting the entity_values field in the database.
	FieldEntityValues = "entity_values"
	// FieldEntityUUID holds the string denoting the entity_uuid field in the database.
	FieldEntityUUID = "entity_uuid"
	// 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 (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// UserValidator is a validator for the "user" field. It is called by the builders before save.
	UserValidator func(string) error
	// ActionValidator is a validator for the "action" field. It is called by the builders before save.
	ActionValidator func(string) error
	// EntitySchemaValidator is a validator for the "entity_schema" field. It is called by the builders before save.
	EntitySchemaValidator 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
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/hkonitzer/ohmab/ent/runtime"

Columns holds all SQL columns for auditlog fields.

Functions

func Action

func Action(v string) predicate.AuditLog

Action applies equality check predicate on the "action" field. It's identical to ActionEQ.

func ActionContains

func ActionContains(v string) predicate.AuditLog

ActionContains applies the Contains predicate on the "action" field.

func ActionContainsFold

func ActionContainsFold(v string) predicate.AuditLog

ActionContainsFold applies the ContainsFold predicate on the "action" field.

func ActionEQ

func ActionEQ(v string) predicate.AuditLog

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

func ActionEqualFold

func ActionEqualFold(v string) predicate.AuditLog

ActionEqualFold applies the EqualFold predicate on the "action" field.

func ActionGT

func ActionGT(v string) predicate.AuditLog

ActionGT applies the GT predicate on the "action" field.

func ActionGTE

func ActionGTE(v string) predicate.AuditLog

ActionGTE applies the GTE predicate on the "action" field.

func ActionHasPrefix

func ActionHasPrefix(v string) predicate.AuditLog

ActionHasPrefix applies the HasPrefix predicate on the "action" field.

func ActionHasSuffix

func ActionHasSuffix(v string) predicate.AuditLog

ActionHasSuffix applies the HasSuffix predicate on the "action" field.

func ActionIn

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

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

func ActionLT

func ActionLT(v string) predicate.AuditLog

ActionLT applies the LT predicate on the "action" field.

func ActionLTE

func ActionLTE(v string) predicate.AuditLog

ActionLTE applies the LTE predicate on the "action" field.

func ActionNEQ

func ActionNEQ(v string) predicate.AuditLog

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

func ActionNotIn

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

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

func And

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

And groups predicates with the AND operator between them.

func EntitySchema

func EntitySchema(v string) predicate.AuditLog

EntitySchema applies equality check predicate on the "entity_schema" field. It's identical to EntitySchemaEQ.

func EntitySchemaContains

func EntitySchemaContains(v string) predicate.AuditLog

EntitySchemaContains applies the Contains predicate on the "entity_schema" field.

func EntitySchemaContainsFold

func EntitySchemaContainsFold(v string) predicate.AuditLog

EntitySchemaContainsFold applies the ContainsFold predicate on the "entity_schema" field.

func EntitySchemaEQ

func EntitySchemaEQ(v string) predicate.AuditLog

EntitySchemaEQ applies the EQ predicate on the "entity_schema" field.

func EntitySchemaEqualFold

func EntitySchemaEqualFold(v string) predicate.AuditLog

EntitySchemaEqualFold applies the EqualFold predicate on the "entity_schema" field.

func EntitySchemaGT

func EntitySchemaGT(v string) predicate.AuditLog

EntitySchemaGT applies the GT predicate on the "entity_schema" field.

func EntitySchemaGTE

func EntitySchemaGTE(v string) predicate.AuditLog

EntitySchemaGTE applies the GTE predicate on the "entity_schema" field.

func EntitySchemaHasPrefix

func EntitySchemaHasPrefix(v string) predicate.AuditLog

EntitySchemaHasPrefix applies the HasPrefix predicate on the "entity_schema" field.

func EntitySchemaHasSuffix

func EntitySchemaHasSuffix(v string) predicate.AuditLog

EntitySchemaHasSuffix applies the HasSuffix predicate on the "entity_schema" field.

func EntitySchemaIn

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

EntitySchemaIn applies the In predicate on the "entity_schema" field.

func EntitySchemaLT

func EntitySchemaLT(v string) predicate.AuditLog

EntitySchemaLT applies the LT predicate on the "entity_schema" field.

func EntitySchemaLTE

func EntitySchemaLTE(v string) predicate.AuditLog

EntitySchemaLTE applies the LTE predicate on the "entity_schema" field.

func EntitySchemaNEQ

func EntitySchemaNEQ(v string) predicate.AuditLog

EntitySchemaNEQ applies the NEQ predicate on the "entity_schema" field.

func EntitySchemaNotIn

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

EntitySchemaNotIn applies the NotIn predicate on the "entity_schema" field.

func EntityUUID

func EntityUUID(v string) predicate.AuditLog

EntityUUID applies equality check predicate on the "entity_uuid" field. It's identical to EntityUUIDEQ.

func EntityUUIDContains

func EntityUUIDContains(v string) predicate.AuditLog

EntityUUIDContains applies the Contains predicate on the "entity_uuid" field.

func EntityUUIDContainsFold

func EntityUUIDContainsFold(v string) predicate.AuditLog

EntityUUIDContainsFold applies the ContainsFold predicate on the "entity_uuid" field.

func EntityUUIDEQ

func EntityUUIDEQ(v string) predicate.AuditLog

EntityUUIDEQ applies the EQ predicate on the "entity_uuid" field.

func EntityUUIDEqualFold

func EntityUUIDEqualFold(v string) predicate.AuditLog

EntityUUIDEqualFold applies the EqualFold predicate on the "entity_uuid" field.

func EntityUUIDGT

func EntityUUIDGT(v string) predicate.AuditLog

EntityUUIDGT applies the GT predicate on the "entity_uuid" field.

func EntityUUIDGTE

func EntityUUIDGTE(v string) predicate.AuditLog

EntityUUIDGTE applies the GTE predicate on the "entity_uuid" field.

func EntityUUIDHasPrefix

func EntityUUIDHasPrefix(v string) predicate.AuditLog

EntityUUIDHasPrefix applies the HasPrefix predicate on the "entity_uuid" field.

func EntityUUIDHasSuffix

func EntityUUIDHasSuffix(v string) predicate.AuditLog

EntityUUIDHasSuffix applies the HasSuffix predicate on the "entity_uuid" field.

func EntityUUIDIn

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

EntityUUIDIn applies the In predicate on the "entity_uuid" field.

func EntityUUIDIsNil

func EntityUUIDIsNil() predicate.AuditLog

EntityUUIDIsNil applies the IsNil predicate on the "entity_uuid" field.

func EntityUUIDLT

func EntityUUIDLT(v string) predicate.AuditLog

EntityUUIDLT applies the LT predicate on the "entity_uuid" field.

func EntityUUIDLTE

func EntityUUIDLTE(v string) predicate.AuditLog

EntityUUIDLTE applies the LTE predicate on the "entity_uuid" field.

func EntityUUIDNEQ

func EntityUUIDNEQ(v string) predicate.AuditLog

EntityUUIDNEQ applies the NEQ predicate on the "entity_uuid" field.

func EntityUUIDNotIn

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

EntityUUIDNotIn applies the NotIn predicate on the "entity_uuid" field.

func EntityUUIDNotNil

func EntityUUIDNotNil() predicate.AuditLog

EntityUUIDNotNil applies the NotNil predicate on the "entity_uuid" field.

func EntityValuesIsNil

func EntityValuesIsNil() predicate.AuditLog

EntityValuesIsNil applies the IsNil predicate on the "entity_values" field.

func EntityValuesNotNil

func EntityValuesNotNil() predicate.AuditLog

EntityValuesNotNil applies the NotNil predicate on the "entity_values" 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 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 User

func User(v string) predicate.AuditLog

User applies equality check predicate on the "user" field. It's identical to UserEQ.

func UserContains

func UserContains(v string) predicate.AuditLog

UserContains applies the Contains predicate on the "user" field.

func UserContainsFold

func UserContainsFold(v string) predicate.AuditLog

UserContainsFold applies the ContainsFold predicate on the "user" field.

func UserEQ

func UserEQ(v string) predicate.AuditLog

UserEQ applies the EQ predicate on the "user" field.

func UserEqualFold

func UserEqualFold(v string) predicate.AuditLog

UserEqualFold applies the EqualFold predicate on the "user" field.

func UserGT

func UserGT(v string) predicate.AuditLog

UserGT applies the GT predicate on the "user" field.

func UserGTE

func UserGTE(v string) predicate.AuditLog

UserGTE applies the GTE predicate on the "user" field.

func UserHasPrefix

func UserHasPrefix(v string) predicate.AuditLog

UserHasPrefix applies the HasPrefix predicate on the "user" field.

func UserHasSuffix

func UserHasSuffix(v string) predicate.AuditLog

UserHasSuffix applies the HasSuffix predicate on the "user" field.

func UserIn

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

UserIn applies the In predicate on the "user" field.

func UserLT

func UserLT(v string) predicate.AuditLog

UserLT applies the LT predicate on the "user" field.

func UserLTE

func UserLTE(v string) predicate.AuditLog

UserLTE applies the LTE predicate on the "user" field.

func UserNEQ

func UserNEQ(v string) predicate.AuditLog

UserNEQ applies the NEQ predicate on the "user" field.

func UserNotIn

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

UserNotIn applies the NotIn predicate on the "user" 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 AuditLog queries.

func ByAction

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

ByAction orders the results by the action field.

func ByEntitySchema

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

ByEntitySchema orders the results by the entity_schema field.

func ByEntityUUID

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

ByEntityUUID orders the results by the entity_uuid field.

func ByID

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

ByID orders the results by the id field.

func ByTimestamp

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

ByTimestamp orders the results by the timestamp field.

func ByUser

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

ByUser orders the results by the user field.

Jump to

Keyboard shortcuts

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