Documentation ¶
Index ¶
- Constants
- Variables
- func Action(v string) predicate.AuditLog
- func ActionContains(v string) predicate.AuditLog
- func ActionContainsFold(v string) predicate.AuditLog
- func ActionEQ(v string) predicate.AuditLog
- func ActionEqualFold(v string) predicate.AuditLog
- func ActionGT(v string) predicate.AuditLog
- func ActionGTE(v string) predicate.AuditLog
- func ActionHasPrefix(v string) predicate.AuditLog
- func ActionHasSuffix(v string) predicate.AuditLog
- func ActionIn(vs ...string) predicate.AuditLog
- func ActionLT(v string) predicate.AuditLog
- func ActionLTE(v string) predicate.AuditLog
- func ActionNEQ(v string) predicate.AuditLog
- func ActionNotIn(vs ...string) predicate.AuditLog
- func And(predicates ...predicate.AuditLog) predicate.AuditLog
- func EntitySchema(v string) predicate.AuditLog
- func EntitySchemaContains(v string) predicate.AuditLog
- func EntitySchemaContainsFold(v string) predicate.AuditLog
- func EntitySchemaEQ(v string) predicate.AuditLog
- func EntitySchemaEqualFold(v string) predicate.AuditLog
- func EntitySchemaGT(v string) predicate.AuditLog
- func EntitySchemaGTE(v string) predicate.AuditLog
- func EntitySchemaHasPrefix(v string) predicate.AuditLog
- func EntitySchemaHasSuffix(v string) predicate.AuditLog
- func EntitySchemaIn(vs ...string) predicate.AuditLog
- func EntitySchemaLT(v string) predicate.AuditLog
- func EntitySchemaLTE(v string) predicate.AuditLog
- func EntitySchemaNEQ(v string) predicate.AuditLog
- func EntitySchemaNotIn(vs ...string) predicate.AuditLog
- func EntityUUID(v string) predicate.AuditLog
- func EntityUUIDContains(v string) predicate.AuditLog
- func EntityUUIDContainsFold(v string) predicate.AuditLog
- func EntityUUIDEQ(v string) predicate.AuditLog
- func EntityUUIDEqualFold(v string) predicate.AuditLog
- func EntityUUIDGT(v string) predicate.AuditLog
- func EntityUUIDGTE(v string) predicate.AuditLog
- func EntityUUIDHasPrefix(v string) predicate.AuditLog
- func EntityUUIDHasSuffix(v string) predicate.AuditLog
- func EntityUUIDIn(vs ...string) predicate.AuditLog
- func EntityUUIDIsNil() predicate.AuditLog
- func EntityUUIDLT(v string) predicate.AuditLog
- func EntityUUIDLTE(v string) predicate.AuditLog
- func EntityUUIDNEQ(v string) predicate.AuditLog
- func EntityUUIDNotIn(vs ...string) predicate.AuditLog
- func EntityUUIDNotNil() predicate.AuditLog
- func EntityValuesIsNil() predicate.AuditLog
- func EntityValuesNotNil() predicate.AuditLog
- func ID(id uuid.UUID) predicate.AuditLog
- func IDEQ(id uuid.UUID) predicate.AuditLog
- func IDGT(id uuid.UUID) predicate.AuditLog
- func IDGTE(id uuid.UUID) predicate.AuditLog
- func IDIn(ids ...uuid.UUID) predicate.AuditLog
- func IDLT(id uuid.UUID) predicate.AuditLog
- func IDLTE(id uuid.UUID) predicate.AuditLog
- func IDNEQ(id uuid.UUID) predicate.AuditLog
- func IDNotIn(ids ...uuid.UUID) predicate.AuditLog
- func Not(p predicate.AuditLog) predicate.AuditLog
- func Or(predicates ...predicate.AuditLog) predicate.AuditLog
- func Timestamp(v time.Time) predicate.AuditLog
- func TimestampEQ(v time.Time) predicate.AuditLog
- func TimestampGT(v time.Time) predicate.AuditLog
- func TimestampGTE(v time.Time) predicate.AuditLog
- func TimestampIn(vs ...time.Time) predicate.AuditLog
- func TimestampLT(v time.Time) predicate.AuditLog
- func TimestampLTE(v time.Time) predicate.AuditLog
- func TimestampNEQ(v time.Time) predicate.AuditLog
- func TimestampNotIn(vs ...time.Time) predicate.AuditLog
- func User(v string) predicate.AuditLog
- func UserContains(v string) predicate.AuditLog
- func UserContainsFold(v string) predicate.AuditLog
- func UserEQ(v string) predicate.AuditLog
- func UserEqualFold(v string) predicate.AuditLog
- func UserGT(v string) predicate.AuditLog
- func UserGTE(v string) predicate.AuditLog
- func UserHasPrefix(v string) predicate.AuditLog
- func UserHasSuffix(v string) predicate.AuditLog
- func UserIn(vs ...string) predicate.AuditLog
- func UserLT(v string) predicate.AuditLog
- func UserLTE(v string) predicate.AuditLog
- func UserNEQ(v string) predicate.AuditLog
- func UserNotIn(vs ...string) predicate.AuditLog
- func ValidColumn(column string) bool
- type OrderOption
- func ByAction(opts ...sql.OrderTermOption) OrderOption
- func ByEntitySchema(opts ...sql.OrderTermOption) OrderOption
- func ByEntityUUID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
- func ByUser(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
var ( // 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 )
var Columns = []string{ FieldID, FieldUser, FieldAction, FieldEntitySchema, FieldEntityValues, FieldEntityUUID, FieldTimestamp, }
Columns holds all SQL columns for auditlog fields.
Functions ¶
func Action ¶
Action applies equality check predicate on the "action" field. It's identical to ActionEQ.
func ActionContains ¶
ActionContains applies the Contains predicate on the "action" field.
func ActionContainsFold ¶
ActionContainsFold applies the ContainsFold predicate on the "action" field.
func ActionEqualFold ¶
ActionEqualFold applies the EqualFold predicate on the "action" field.
func ActionHasPrefix ¶
ActionHasPrefix applies the HasPrefix predicate on the "action" field.
func ActionHasSuffix ¶
ActionHasSuffix applies the HasSuffix predicate on the "action" field.
func ActionNotIn ¶
ActionNotIn applies the NotIn predicate on the "action" field.
func EntitySchema ¶
EntitySchema applies equality check predicate on the "entity_schema" field. It's identical to EntitySchemaEQ.
func EntitySchemaContains ¶
EntitySchemaContains applies the Contains predicate on the "entity_schema" field.
func EntitySchemaContainsFold ¶
EntitySchemaContainsFold applies the ContainsFold predicate on the "entity_schema" field.
func EntitySchemaEQ ¶
EntitySchemaEQ applies the EQ predicate on the "entity_schema" field.
func EntitySchemaEqualFold ¶
EntitySchemaEqualFold applies the EqualFold predicate on the "entity_schema" field.
func EntitySchemaGT ¶
EntitySchemaGT applies the GT predicate on the "entity_schema" field.
func EntitySchemaGTE ¶
EntitySchemaGTE applies the GTE predicate on the "entity_schema" field.
func EntitySchemaHasPrefix ¶
EntitySchemaHasPrefix applies the HasPrefix predicate on the "entity_schema" field.
func EntitySchemaHasSuffix ¶
EntitySchemaHasSuffix applies the HasSuffix predicate on the "entity_schema" field.
func EntitySchemaIn ¶
EntitySchemaIn applies the In predicate on the "entity_schema" field.
func EntitySchemaLT ¶
EntitySchemaLT applies the LT predicate on the "entity_schema" field.
func EntitySchemaLTE ¶
EntitySchemaLTE applies the LTE predicate on the "entity_schema" field.
func EntitySchemaNEQ ¶
EntitySchemaNEQ applies the NEQ predicate on the "entity_schema" field.
func EntitySchemaNotIn ¶
EntitySchemaNotIn applies the NotIn predicate on the "entity_schema" field.
func EntityUUID ¶
EntityUUID applies equality check predicate on the "entity_uuid" field. It's identical to EntityUUIDEQ.
func EntityUUIDContains ¶
EntityUUIDContains applies the Contains predicate on the "entity_uuid" field.
func EntityUUIDContainsFold ¶
EntityUUIDContainsFold applies the ContainsFold predicate on the "entity_uuid" field.
func EntityUUIDEQ ¶
EntityUUIDEQ applies the EQ predicate on the "entity_uuid" field.
func EntityUUIDEqualFold ¶
EntityUUIDEqualFold applies the EqualFold predicate on the "entity_uuid" field.
func EntityUUIDGT ¶
EntityUUIDGT applies the GT predicate on the "entity_uuid" field.
func EntityUUIDGTE ¶
EntityUUIDGTE applies the GTE predicate on the "entity_uuid" field.
func EntityUUIDHasPrefix ¶
EntityUUIDHasPrefix applies the HasPrefix predicate on the "entity_uuid" field.
func EntityUUIDHasSuffix ¶
EntityUUIDHasSuffix applies the HasSuffix predicate on the "entity_uuid" field.
func EntityUUIDIn ¶
EntityUUIDIn applies the In predicate on the "entity_uuid" field.
func EntityUUIDIsNil ¶
EntityUUIDIsNil applies the IsNil predicate on the "entity_uuid" field.
func EntityUUIDLT ¶
EntityUUIDLT applies the LT predicate on the "entity_uuid" field.
func EntityUUIDLTE ¶
EntityUUIDLTE applies the LTE predicate on the "entity_uuid" field.
func EntityUUIDNEQ ¶
EntityUUIDNEQ applies the NEQ predicate on the "entity_uuid" field.
func EntityUUIDNotIn ¶
EntityUUIDNotIn applies the NotIn predicate on the "entity_uuid" field.
func EntityUUIDNotNil ¶
EntityUUIDNotNil applies the NotNil predicate on the "entity_uuid" field.
func EntityValuesIsNil ¶
EntityValuesIsNil applies the IsNil predicate on the "entity_values" field.
func EntityValuesNotNil ¶
EntityValuesNotNil applies the NotNil predicate on the "entity_values" field.
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func UserContains ¶
UserContains applies the Contains predicate on the "user" field.
func UserContainsFold ¶
UserContainsFold applies the ContainsFold predicate on the "user" field.
func UserEqualFold ¶
UserEqualFold applies the EqualFold predicate on the "user" field.
func UserHasPrefix ¶
UserHasPrefix applies the HasPrefix predicate on the "user" field.
func UserHasSuffix ¶
UserHasSuffix applies the HasSuffix predicate on the "user" 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 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.