Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Action) predicate.Action
- func HasActionToServiceAccount() predicate.Action
- func HasActionToServiceAccountWith(preds ...predicate.ServiceAccount) predicate.Action
- func HasActionToUser() predicate.Action
- func HasActionToUserWith(preds ...predicate.User) predicate.Action
- func ID(id uuid.UUID) predicate.Action
- func IDEQ(id uuid.UUID) predicate.Action
- func IDGT(id uuid.UUID) predicate.Action
- func IDGTE(id uuid.UUID) predicate.Action
- func IDIn(ids ...uuid.UUID) predicate.Action
- func IDLT(id uuid.UUID) predicate.Action
- func IDLTE(id uuid.UUID) predicate.Action
- func IDNEQ(id uuid.UUID) predicate.Action
- func IDNotIn(ids ...uuid.UUID) predicate.Action
- func IPAddress(v string) predicate.Action
- func IPAddressContains(v string) predicate.Action
- func IPAddressContainsFold(v string) predicate.Action
- func IPAddressEQ(v string) predicate.Action
- func IPAddressEqualFold(v string) predicate.Action
- func IPAddressGT(v string) predicate.Action
- func IPAddressGTE(v string) predicate.Action
- func IPAddressHasPrefix(v string) predicate.Action
- func IPAddressHasSuffix(v string) predicate.Action
- func IPAddressIn(vs ...string) predicate.Action
- func IPAddressLT(v string) predicate.Action
- func IPAddressLTE(v string) predicate.Action
- func IPAddressNEQ(v string) predicate.Action
- func IPAddressNotIn(vs ...string) predicate.Action
- func Message(v string) predicate.Action
- func MessageContains(v string) predicate.Action
- func MessageContainsFold(v string) predicate.Action
- func MessageEQ(v string) predicate.Action
- func MessageEqualFold(v string) predicate.Action
- func MessageGT(v string) predicate.Action
- func MessageGTE(v string) predicate.Action
- func MessageHasPrefix(v string) predicate.Action
- func MessageHasSuffix(v string) predicate.Action
- func MessageIn(vs ...string) predicate.Action
- func MessageLT(v string) predicate.Action
- func MessageLTE(v string) predicate.Action
- func MessageNEQ(v string) predicate.Action
- func MessageNotIn(vs ...string) predicate.Action
- func Not(p predicate.Action) predicate.Action
- func Or(predicates ...predicate.Action) predicate.Action
- func PerformedAt(v time.Time) predicate.Action
- func PerformedAtEQ(v time.Time) predicate.Action
- func PerformedAtGT(v time.Time) predicate.Action
- func PerformedAtGTE(v time.Time) predicate.Action
- func PerformedAtIn(vs ...time.Time) predicate.Action
- func PerformedAtLT(v time.Time) predicate.Action
- func PerformedAtLTE(v time.Time) predicate.Action
- func PerformedAtNEQ(v time.Time) predicate.Action
- func PerformedAtNotIn(vs ...time.Time) predicate.Action
- func TypeEQ(v Type) predicate.Action
- func TypeIn(vs ...Type) predicate.Action
- func TypeNEQ(v Type) predicate.Action
- func TypeNotIn(vs ...Type) predicate.Action
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type Type
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldIPAddress, FieldType, FieldMessage, FieldPerformedAt, }
Columns holds all SQL columns for action fields.
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 HasActionToServiceAccount ¶
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 ¶
HasActionToUser applies the HasEdge predicate on the "ActionToUser" edge.
func HasActionToUserWith ¶
HasActionToUserWith applies the HasEdge predicate on the "ActionToUser" edge with a given conditions (other predicates).
func IPAddress ¶
IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
func IPAddressContains ¶
IPAddressContains applies the Contains predicate on the "ip_address" field.
func IPAddressContainsFold ¶
IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
func IPAddressEQ ¶
IPAddressEQ applies the EQ predicate on the "ip_address" field.
func IPAddressEqualFold ¶
IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
func IPAddressGT ¶
IPAddressGT applies the GT predicate on the "ip_address" field.
func IPAddressGTE ¶
IPAddressGTE applies the GTE predicate on the "ip_address" field.
func IPAddressHasPrefix ¶
IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
func IPAddressHasSuffix ¶
IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
func IPAddressIn ¶
IPAddressIn applies the In predicate on the "ip_address" field.
func IPAddressLT ¶
IPAddressLT applies the LT predicate on the "ip_address" field.
func IPAddressLTE ¶
IPAddressLTE applies the LTE predicate on the "ip_address" field.
func IPAddressNEQ ¶
IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
func IPAddressNotIn ¶
IPAddressNotIn applies the NotIn predicate on the "ip_address" field.
func Message ¶
Message applies equality check predicate on the "message" field. It's identical to MessageEQ.
func MessageContains ¶
MessageContains applies the Contains predicate on the "message" field.
func MessageContainsFold ¶
MessageContainsFold applies the ContainsFold predicate on the "message" field.
func MessageEqualFold ¶
MessageEqualFold applies the EqualFold predicate on the "message" field.
func MessageGTE ¶
MessageGTE applies the GTE predicate on the "message" field.
func MessageHasPrefix ¶
MessageHasPrefix applies the HasPrefix predicate on the "message" field.
func MessageHasSuffix ¶
MessageHasSuffix applies the HasSuffix predicate on the "message" field.
func MessageLTE ¶
MessageLTE applies the LTE predicate on the "message" field.
func MessageNEQ ¶
MessageNEQ applies the NEQ predicate on the "message" field.
func MessageNotIn ¶
MessageNotIn applies the NotIn predicate on the "message" field.
func PerformedAt ¶
PerformedAt applies equality check predicate on the "performed_at" field. It's identical to PerformedAtEQ.
func PerformedAtEQ ¶
PerformedAtEQ applies the EQ predicate on the "performed_at" field.
func PerformedAtGT ¶
PerformedAtGT applies the GT predicate on the "performed_at" field.
func PerformedAtGTE ¶
PerformedAtGTE applies the GTE predicate on the "performed_at" field.
func PerformedAtIn ¶
PerformedAtIn applies the In predicate on the "performed_at" field.
func PerformedAtLT ¶
PerformedAtLT applies the LT predicate on the "performed_at" field.
func PerformedAtLTE ¶
PerformedAtLTE applies the LTE predicate on the "performed_at" field.
func PerformedAtNEQ ¶
PerformedAtNEQ applies the NEQ predicate on the "performed_at" field.
func PerformedAtNotIn ¶
PerformedAtNotIn applies the NotIn predicate on the "performed_at" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func ValidColumn ¶
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 ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Type) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.