action

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the action type in the database.
	Label = "action"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "oid"
	// FieldIPAddress holds the string denoting the ip_address field in the database.
	FieldIPAddress = "ip_address"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldMessage holds the string denoting the message field in the database.
	FieldMessage = "message"
	// FieldPerformedAt holds the string denoting the performed_at field in the database.
	FieldPerformedAt = "performed_at"
	// EdgeActionToUser holds the string denoting the actiontouser edge name in mutations.
	EdgeActionToUser = "ActionToUser"
	// EdgeActionToServiceAccount holds the string denoting the actiontoserviceaccount edge name in mutations.
	EdgeActionToServiceAccount = "ActionToServiceAccount"
	// Table holds the table name of the action in the database.
	Table = "actions"
	// ActionToUserTable is the table that holds the ActionToUser relation/edge.
	ActionToUserTable = "actions"
	// ActionToUserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	ActionToUserInverseTable = "users"
	// ActionToUserColumn is the table column denoting the ActionToUser relation/edge.
	ActionToUserColumn = "user_user_to_actions"
	// ActionToServiceAccountTable is the table that holds the ActionToServiceAccount relation/edge.
	ActionToServiceAccountTable = "actions"
	// ActionToServiceAccountInverseTable is the table name for the ServiceAccount entity.
	// It exists in this package in order to avoid circular dependency with the "serviceaccount" package.
	ActionToServiceAccountInverseTable = "service_accounts"
	// ActionToServiceAccountColumn is the table column denoting the ActionToServiceAccount relation/edge.
	ActionToServiceAccountColumn = "service_account_service_account_to_actions"
)

Variables

View Source
var (
	// DefaultIPAddress holds the default value on creation for the "ip_address" field.
	DefaultIPAddress string
	// DefaultPerformedAt holds the default value on creation for the "performed_at" field.
	DefaultPerformedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for action fields.

View Source
var ForeignKeys = []string{
	"service_account_service_account_to_actions",
	"user_user_to_actions",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "actions" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Action) predicate.Action

And groups predicates with the AND operator between them.

func HasActionToServiceAccount

func HasActionToServiceAccount() predicate.Action

HasActionToServiceAccount applies the HasEdge predicate on the "ActionToServiceAccount" edge.

func HasActionToServiceAccountWith

func HasActionToServiceAccountWith(preds ...predicate.ServiceAccount) predicate.Action

HasActionToServiceAccountWith applies the HasEdge predicate on the "ActionToServiceAccount" edge with a given conditions (other predicates).

func HasActionToUser

func HasActionToUser() predicate.Action

HasActionToUser applies the HasEdge predicate on the "ActionToUser" edge.

func HasActionToUserWith

func HasActionToUserWith(preds ...predicate.User) predicate.Action

HasActionToUserWith applies the HasEdge predicate on the "ActionToUser" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Action

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Action

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Action

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Action

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Action

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Action

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Action

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IPAddress

func IPAddress(v string) predicate.Action

IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.

func IPAddressContains

func IPAddressContains(v string) predicate.Action

IPAddressContains applies the Contains predicate on the "ip_address" field.

func IPAddressContainsFold

func IPAddressContainsFold(v string) predicate.Action

IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.

func IPAddressEQ

func IPAddressEQ(v string) predicate.Action

IPAddressEQ applies the EQ predicate on the "ip_address" field.

func IPAddressEqualFold

func IPAddressEqualFold(v string) predicate.Action

IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.

func IPAddressGT

func IPAddressGT(v string) predicate.Action

IPAddressGT applies the GT predicate on the "ip_address" field.

func IPAddressGTE

func IPAddressGTE(v string) predicate.Action

IPAddressGTE applies the GTE predicate on the "ip_address" field.

func IPAddressHasPrefix

func IPAddressHasPrefix(v string) predicate.Action

IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.

func IPAddressHasSuffix

func IPAddressHasSuffix(v string) predicate.Action

IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.

func IPAddressIn

func IPAddressIn(vs ...string) predicate.Action

IPAddressIn applies the In predicate on the "ip_address" field.

func IPAddressLT

func IPAddressLT(v string) predicate.Action

IPAddressLT applies the LT predicate on the "ip_address" field.

func IPAddressLTE

func IPAddressLTE(v string) predicate.Action

IPAddressLTE applies the LTE predicate on the "ip_address" field.

func IPAddressNEQ

func IPAddressNEQ(v string) predicate.Action

IPAddressNEQ applies the NEQ predicate on the "ip_address" field.

func IPAddressNotIn

func IPAddressNotIn(vs ...string) predicate.Action

IPAddressNotIn applies the NotIn predicate on the "ip_address" field.

func Message

func Message(v string) predicate.Action

Message applies equality check predicate on the "message" field. It's identical to MessageEQ.

func MessageContains

func MessageContains(v string) predicate.Action

MessageContains applies the Contains predicate on the "message" field.

func MessageContainsFold

func MessageContainsFold(v string) predicate.Action

MessageContainsFold applies the ContainsFold predicate on the "message" field.

func MessageEQ

func MessageEQ(v string) predicate.Action

MessageEQ applies the EQ predicate on the "message" field.

func MessageEqualFold

func MessageEqualFold(v string) predicate.Action

MessageEqualFold applies the EqualFold predicate on the "message" field.

func MessageGT

func MessageGT(v string) predicate.Action

MessageGT applies the GT predicate on the "message" field.

func MessageGTE

func MessageGTE(v string) predicate.Action

MessageGTE applies the GTE predicate on the "message" field.

func MessageHasPrefix

func MessageHasPrefix(v string) predicate.Action

MessageHasPrefix applies the HasPrefix predicate on the "message" field.

func MessageHasSuffix

func MessageHasSuffix(v string) predicate.Action

MessageHasSuffix applies the HasSuffix predicate on the "message" field.

func MessageIn

func MessageIn(vs ...string) predicate.Action

MessageIn applies the In predicate on the "message" field.

func MessageLT

func MessageLT(v string) predicate.Action

MessageLT applies the LT predicate on the "message" field.

func MessageLTE

func MessageLTE(v string) predicate.Action

MessageLTE applies the LTE predicate on the "message" field.

func MessageNEQ

func MessageNEQ(v string) predicate.Action

MessageNEQ applies the NEQ predicate on the "message" field.

func MessageNotIn

func MessageNotIn(vs ...string) predicate.Action

MessageNotIn applies the NotIn predicate on the "message" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Action) predicate.Action

Or groups predicates with the OR operator between them.

func PerformedAt

func PerformedAt(v time.Time) predicate.Action

PerformedAt applies equality check predicate on the "performed_at" field. It's identical to PerformedAtEQ.

func PerformedAtEQ

func PerformedAtEQ(v time.Time) predicate.Action

PerformedAtEQ applies the EQ predicate on the "performed_at" field.

func PerformedAtGT

func PerformedAtGT(v time.Time) predicate.Action

PerformedAtGT applies the GT predicate on the "performed_at" field.

func PerformedAtGTE

func PerformedAtGTE(v time.Time) predicate.Action

PerformedAtGTE applies the GTE predicate on the "performed_at" field.

func PerformedAtIn

func PerformedAtIn(vs ...time.Time) predicate.Action

PerformedAtIn applies the In predicate on the "performed_at" field.

func PerformedAtLT

func PerformedAtLT(v time.Time) predicate.Action

PerformedAtLT applies the LT predicate on the "performed_at" field.

func PerformedAtLTE

func PerformedAtLTE(v time.Time) predicate.Action

PerformedAtLTE applies the LTE predicate on the "performed_at" field.

func PerformedAtNEQ

func PerformedAtNEQ(v time.Time) predicate.Action

PerformedAtNEQ applies the NEQ predicate on the "performed_at" field.

func PerformedAtNotIn

func PerformedAtNotIn(vs ...time.Time) predicate.Action

PerformedAtNotIn applies the NotIn predicate on the "performed_at" field.

func TypeEQ

func TypeEQ(v Type) predicate.Action

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Action

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Action

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Action

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" 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 Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeSIGN_IN              Type = "SIGN_IN"
	TypeFAILED_SIGN_IN       Type = "FAILED_SIGN_IN"
	TypeSIGN_OUT             Type = "SIGN_OUT"
	TypeAPI_CALL             Type = "API_CALL"
	TypeCONSOLE_ACCESS       Type = "CONSOLE_ACCESS"
	TypePOWER_STATE          Type = "POWER_STATE"
	TypeREBOOT               Type = "REBOOT"
	TypeSHUTDOWN             Type = "SHUTDOWN"
	TypePOWER_ON             Type = "POWER_ON"
	TypePOWER_OFF            Type = "POWER_OFF"
	TypeCHANGE_SELF_PASSWORD Type = "CHANGE_SELF_PASSWORD"
	TypeCHANGE_PASSWORD      Type = "CHANGE_PASSWORD"
	TypeCREATE_OBJECT        Type = "CREATE_OBJECT"
	TypeUPDATE_OBJECT        Type = "UPDATE_OBJECT"
	TypeDELETE_OBJECT        Type = "DELETE_OBJECT"
	TypeUPDATE_LOCKOUT       Type = "UPDATE_LOCKOUT"
)

Type values.

func (Type) MarshalGQL

func (_type Type) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Type) String

func (_type Type) String() string

func (*Type) UnmarshalGQL

func (_type *Type) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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