actionlog

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the actionlog type in the database.
	Label = "action_log"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldActionName holds the string denoting the action_name field in the database.
	FieldActionName = "action_name"
	// FieldPrincipal holds the string denoting the principal field in the database.
	FieldPrincipal = "principal"
	// FieldParams holds the string denoting the params field in the database.
	FieldParams = "params"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldEffects holds the string denoting the effects field in the database.
	FieldEffects = "effects"
	// FieldErrorMessage holds the string denoting the error_message field in the database.
	FieldErrorMessage = "error_message"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// Table holds the table name of the actionlog in the database.
	Table = "action_logs"
)
View Source
const DefaultStatus = StatusStarted

StatusStarted is the default value of the Status enum.

Variables

View Source
var (
	// ActionNameValidator is a validator for the "action_name" field. It is called by the builders before save.
	ActionNameValidator func(string) error
	// PrincipalValidator is a validator for the "principal" field. It is called by the builders before save.
	PrincipalValidator func(string) error
	// DefaultStartedAt holds the default value on creation for the "started_at" field.
	DefaultStartedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for actionlog fields.

Functions

func ActionName

func ActionName(v string) predicate.ActionLog

ActionName applies equality check predicate on the "action_name" field. It's identical to ActionNameEQ.

func ActionNameContains

func ActionNameContains(v string) predicate.ActionLog

ActionNameContains applies the Contains predicate on the "action_name" field.

func ActionNameContainsFold

func ActionNameContainsFold(v string) predicate.ActionLog

ActionNameContainsFold applies the ContainsFold predicate on the "action_name" field.

func ActionNameEQ

func ActionNameEQ(v string) predicate.ActionLog

ActionNameEQ applies the EQ predicate on the "action_name" field.

func ActionNameEqualFold

func ActionNameEqualFold(v string) predicate.ActionLog

ActionNameEqualFold applies the EqualFold predicate on the "action_name" field.

func ActionNameGT

func ActionNameGT(v string) predicate.ActionLog

ActionNameGT applies the GT predicate on the "action_name" field.

func ActionNameGTE

func ActionNameGTE(v string) predicate.ActionLog

ActionNameGTE applies the GTE predicate on the "action_name" field.

func ActionNameHasPrefix

func ActionNameHasPrefix(v string) predicate.ActionLog

ActionNameHasPrefix applies the HasPrefix predicate on the "action_name" field.

func ActionNameHasSuffix

func ActionNameHasSuffix(v string) predicate.ActionLog

ActionNameHasSuffix applies the HasSuffix predicate on the "action_name" field.

func ActionNameIn

func ActionNameIn(vs ...string) predicate.ActionLog

ActionNameIn applies the In predicate on the "action_name" field.

func ActionNameLT

func ActionNameLT(v string) predicate.ActionLog

ActionNameLT applies the LT predicate on the "action_name" field.

func ActionNameLTE

func ActionNameLTE(v string) predicate.ActionLog

ActionNameLTE applies the LTE predicate on the "action_name" field.

func ActionNameNEQ

func ActionNameNEQ(v string) predicate.ActionLog

ActionNameNEQ applies the NEQ predicate on the "action_name" field.

func ActionNameNotIn

func ActionNameNotIn(vs ...string) predicate.ActionLog

ActionNameNotIn applies the NotIn predicate on the "action_name" field.

func And

func And(predicates ...predicate.ActionLog) predicate.ActionLog

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.ActionLog

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.ActionLog

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.ActionLog

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.ActionLog

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.ActionLog

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.ActionLog

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.ActionLog

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.ActionLog

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.ActionLog

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.ActionLog

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.ActionLog

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func EffectsIsNil

func EffectsIsNil() predicate.ActionLog

EffectsIsNil applies the IsNil predicate on the "effects" field.

func EffectsNotNil

func EffectsNotNil() predicate.ActionLog

EffectsNotNil applies the NotNil predicate on the "effects" field.

func ErrorMessage

func ErrorMessage(v string) predicate.ActionLog

ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.ActionLog

ErrorMessageContains applies the Contains predicate on the "error_message" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.ActionLog

ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.ActionLog

ErrorMessageEQ applies the EQ predicate on the "error_message" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.ActionLog

ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.ActionLog

ErrorMessageGT applies the GT predicate on the "error_message" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.ActionLog

ErrorMessageGTE applies the GTE predicate on the "error_message" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.ActionLog

ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.ActionLog

ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.ActionLog

ErrorMessageIn applies the In predicate on the "error_message" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.ActionLog

ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.ActionLog

ErrorMessageLT applies the LT predicate on the "error_message" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.ActionLog

ErrorMessageLTE applies the LTE predicate on the "error_message" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.ActionLog

ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.ActionLog

ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.ActionLog

ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ActionLog

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ActionLog

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ActionLog

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ActionLog

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ActionLog

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ActionLog

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func ParamsIsNil

func ParamsIsNil() predicate.ActionLog

ParamsIsNil applies the IsNil predicate on the "params" field.

func ParamsNotNil

func ParamsNotNil() predicate.ActionLog

ParamsNotNil applies the NotNil predicate on the "params" field.

func Principal

func Principal(v string) predicate.ActionLog

Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.

func PrincipalContains

func PrincipalContains(v string) predicate.ActionLog

PrincipalContains applies the Contains predicate on the "principal" field.

func PrincipalContainsFold

func PrincipalContainsFold(v string) predicate.ActionLog

PrincipalContainsFold applies the ContainsFold predicate on the "principal" field.

func PrincipalEQ

func PrincipalEQ(v string) predicate.ActionLog

PrincipalEQ applies the EQ predicate on the "principal" field.

func PrincipalEqualFold

func PrincipalEqualFold(v string) predicate.ActionLog

PrincipalEqualFold applies the EqualFold predicate on the "principal" field.

func PrincipalGT

func PrincipalGT(v string) predicate.ActionLog

PrincipalGT applies the GT predicate on the "principal" field.

func PrincipalGTE

func PrincipalGTE(v string) predicate.ActionLog

PrincipalGTE applies the GTE predicate on the "principal" field.

func PrincipalHasPrefix

func PrincipalHasPrefix(v string) predicate.ActionLog

PrincipalHasPrefix applies the HasPrefix predicate on the "principal" field.

func PrincipalHasSuffix

func PrincipalHasSuffix(v string) predicate.ActionLog

PrincipalHasSuffix applies the HasSuffix predicate on the "principal" field.

func PrincipalIn

func PrincipalIn(vs ...string) predicate.ActionLog

PrincipalIn applies the In predicate on the "principal" field.

func PrincipalLT

func PrincipalLT(v string) predicate.ActionLog

PrincipalLT applies the LT predicate on the "principal" field.

func PrincipalLTE

func PrincipalLTE(v string) predicate.ActionLog

PrincipalLTE applies the LTE predicate on the "principal" field.

func PrincipalNEQ

func PrincipalNEQ(v string) predicate.ActionLog

PrincipalNEQ applies the NEQ predicate on the "principal" field.

func PrincipalNotIn

func PrincipalNotIn(vs ...string) predicate.ActionLog

PrincipalNotIn applies the NotIn predicate on the "principal" field.

func StartedAt

func StartedAt(v time.Time) predicate.ActionLog

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.ActionLog

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.ActionLog

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.ActionLog

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.ActionLog

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.ActionLog

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.ActionLog

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.ActionLog

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.ActionLog

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func StatusEQ

func StatusEQ(v Status) predicate.ActionLog

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.ActionLog

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.ActionLog

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.ActionLog

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

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 ActionLog queries.

func ByActionName

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

ByActionName orders the results by the action_name field.

func ByCompletedAt

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

ByCompletedAt orders the results by the completed_at field.

func ByErrorMessage

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

ByErrorMessage orders the results by the error_message field.

func ByID

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

ByID orders the results by the id field.

func ByPrincipal

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

ByPrincipal orders the results by the principal field.

func ByStartedAt

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

ByStartedAt orders the results by the started_at field.

func ByStatus

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

ByStatus orders the results by the status field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusStarted     Status = "started"
	StatusCompleted   Status = "completed"
	StatusFailed      Status = "failed"
	StatusCompensated Status = "compensated"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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