event

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the event type in the database.
	Label = "event"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldEventID holds the string denoting the event_id field in the database.
	FieldEventID = "event_id"
	// FieldCorrelationID holds the string denoting the correlation_id field in the database.
	FieldCorrelationID = "correlation_id"
	// FieldEventType holds the string denoting the event_type field in the database.
	FieldEventType = "event_type"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeUsers holds the string denoting the users edge name in mutations.
	EdgeUsers = "users"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeIntegrations holds the string denoting the integrations edge name in mutations.
	EdgeIntegrations = "integrations"
	// EdgeOrganizations holds the string denoting the organizations edge name in mutations.
	EdgeOrganizations = "organizations"
	// EdgeInvites holds the string denoting the invites edge name in mutations.
	EdgeInvites = "invites"
	// EdgePersonalAccessTokens holds the string denoting the personal_access_tokens edge name in mutations.
	EdgePersonalAccessTokens = "personal_access_tokens"
	// EdgeSecrets holds the string denoting the secrets edge name in mutations.
	EdgeSecrets = "secrets"
	// EdgeOrgMemberships holds the string denoting the org_memberships edge name in mutations.
	EdgeOrgMemberships = "org_memberships"
	// EdgeGroupMemberships holds the string denoting the group_memberships edge name in mutations.
	EdgeGroupMemberships = "group_memberships"
	// EdgeSubscribers holds the string denoting the subscribers edge name in mutations.
	EdgeSubscribers = "subscribers"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// EdgeOrgSubscriptions holds the string denoting the org_subscriptions edge name in mutations.
	EdgeOrgSubscriptions = "org_subscriptions"
	// Table holds the table name of the event in the database.
	Table = "events"
	// UsersTable is the table that holds the users relation/edge. The primary key declared below.
	UsersTable = "user_events"
	// UsersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UsersInverseTable = "users"
	// GroupsTable is the table that holds the groups relation/edge. The primary key declared below.
	GroupsTable = "group_events"
	// GroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupsInverseTable = "groups"
	// IntegrationsTable is the table that holds the integrations relation/edge. The primary key declared below.
	IntegrationsTable = "integration_events"
	// IntegrationsInverseTable is the table name for the Integration entity.
	// It exists in this package in order to avoid circular dependency with the "integration" package.
	IntegrationsInverseTable = "integrations"
	// OrganizationsTable is the table that holds the organizations relation/edge. The primary key declared below.
	OrganizationsTable = "organization_events"
	// OrganizationsInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationsInverseTable = "organizations"
	// InvitesTable is the table that holds the invites relation/edge. The primary key declared below.
	InvitesTable = "invite_events"
	// InvitesInverseTable is the table name for the Invite entity.
	// It exists in this package in order to avoid circular dependency with the "invite" package.
	InvitesInverseTable = "invites"
	// PersonalAccessTokensTable is the table that holds the personal_access_tokens relation/edge. The primary key declared below.
	PersonalAccessTokensTable = "personal_access_token_events"
	// PersonalAccessTokensInverseTable is the table name for the PersonalAccessToken entity.
	// It exists in this package in order to avoid circular dependency with the "personalaccesstoken" package.
	PersonalAccessTokensInverseTable = "personal_access_tokens"
	// SecretsTable is the table that holds the secrets relation/edge. The primary key declared below.
	SecretsTable = "hush_events"
	// SecretsInverseTable is the table name for the Hush entity.
	// It exists in this package in order to avoid circular dependency with the "hush" package.
	SecretsInverseTable = "hushes"
	// OrgMembershipsTable is the table that holds the org_memberships relation/edge. The primary key declared below.
	OrgMembershipsTable = "org_membership_events"
	// OrgMembershipsInverseTable is the table name for the OrgMembership entity.
	// It exists in this package in order to avoid circular dependency with the "orgmembership" package.
	OrgMembershipsInverseTable = "org_memberships"
	// GroupMembershipsTable is the table that holds the group_memberships relation/edge. The primary key declared below.
	GroupMembershipsTable = "group_membership_events"
	// GroupMembershipsInverseTable is the table name for the GroupMembership entity.
	// It exists in this package in order to avoid circular dependency with the "groupmembership" package.
	GroupMembershipsInverseTable = "group_memberships"
	// SubscribersTable is the table that holds the subscribers relation/edge. The primary key declared below.
	SubscribersTable = "subscriber_events"
	// SubscribersInverseTable is the table name for the Subscriber entity.
	// It exists in this package in order to avoid circular dependency with the "subscriber" package.
	SubscribersInverseTable = "subscribers"
	// FilesTable is the table that holds the files relation/edge. The primary key declared below.
	FilesTable = "file_events"
	// FilesInverseTable is the table name for the File entity.
	// It exists in this package in order to avoid circular dependency with the "file" package.
	FilesInverseTable = "files"
	// OrgSubscriptionsTable is the table that holds the org_subscriptions relation/edge. The primary key declared below.
	OrgSubscriptionsTable = "org_subscription_events"
	// OrgSubscriptionsInverseTable is the table name for the OrgSubscription entity.
	// It exists in this package in order to avoid circular dependency with the "orgsubscription" package.
	OrgSubscriptionsInverseTable = "org_subscriptions"
)

Variables

View Source
var (
	// UsersPrimaryKey and UsersColumn2 are the table columns denoting the
	// primary key for the users relation (M2M).
	UsersPrimaryKey = []string{"user_id", "event_id"}
	// GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
	// primary key for the groups relation (M2M).
	GroupsPrimaryKey = []string{"group_id", "event_id"}
	// IntegrationsPrimaryKey and IntegrationsColumn2 are the table columns denoting the
	// primary key for the integrations relation (M2M).
	IntegrationsPrimaryKey = []string{"integration_id", "event_id"}
	// OrganizationsPrimaryKey and OrganizationsColumn2 are the table columns denoting the
	// primary key for the organizations relation (M2M).
	OrganizationsPrimaryKey = []string{"organization_id", "event_id"}
	// InvitesPrimaryKey and InvitesColumn2 are the table columns denoting the
	// primary key for the invites relation (M2M).
	InvitesPrimaryKey = []string{"invite_id", "event_id"}
	// PersonalAccessTokensPrimaryKey and PersonalAccessTokensColumn2 are the table columns denoting the
	// primary key for the personal_access_tokens relation (M2M).
	PersonalAccessTokensPrimaryKey = []string{"personal_access_token_id", "event_id"}
	// SecretsPrimaryKey and SecretsColumn2 are the table columns denoting the
	// primary key for the secrets relation (M2M).
	SecretsPrimaryKey = []string{"hush_id", "event_id"}
	// OrgMembershipsPrimaryKey and OrgMembershipsColumn2 are the table columns denoting the
	// primary key for the org_memberships relation (M2M).
	OrgMembershipsPrimaryKey = []string{"org_membership_id", "event_id"}
	// GroupMembershipsPrimaryKey and GroupMembershipsColumn2 are the table columns denoting the
	// primary key for the group_memberships relation (M2M).
	GroupMembershipsPrimaryKey = []string{"group_membership_id", "event_id"}
	// SubscribersPrimaryKey and SubscribersColumn2 are the table columns denoting the
	// primary key for the subscribers relation (M2M).
	SubscribersPrimaryKey = []string{"subscriber_id", "event_id"}
	// FilesPrimaryKey and FilesColumn2 are the table columns denoting the
	// primary key for the files relation (M2M).
	FilesPrimaryKey = []string{"file_id", "event_id"}
	// OrgSubscriptionsPrimaryKey and OrgSubscriptionsColumn2 are the table columns denoting the
	// primary key for the org_subscriptions relation (M2M).
	OrgSubscriptionsPrimaryKey = []string{"org_subscription_id", "event_id"}
)
View Source
var (
	Hooks  [3]ent.Hook
	Policy ent.Policy
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

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/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for event fields.

View Source
var ForeignKeys = []string{
	"directory_membership_events",
	"export_events",
}

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

Functions

func And

func And(predicates ...predicate.Event) predicate.Event

And groups predicates with the AND operator between them.

func CorrelationID

func CorrelationID(v string) predicate.Event

CorrelationID applies equality check predicate on the "correlation_id" field. It's identical to CorrelationIDEQ.

func CorrelationIDContains

func CorrelationIDContains(v string) predicate.Event

CorrelationIDContains applies the Contains predicate on the "correlation_id" field.

func CorrelationIDContainsFold

func CorrelationIDContainsFold(v string) predicate.Event

CorrelationIDContainsFold applies the ContainsFold predicate on the "correlation_id" field.

func CorrelationIDEQ

func CorrelationIDEQ(v string) predicate.Event

CorrelationIDEQ applies the EQ predicate on the "correlation_id" field.

func CorrelationIDEqualFold

func CorrelationIDEqualFold(v string) predicate.Event

CorrelationIDEqualFold applies the EqualFold predicate on the "correlation_id" field.

func CorrelationIDGT

func CorrelationIDGT(v string) predicate.Event

CorrelationIDGT applies the GT predicate on the "correlation_id" field.

func CorrelationIDGTE

func CorrelationIDGTE(v string) predicate.Event

CorrelationIDGTE applies the GTE predicate on the "correlation_id" field.

func CorrelationIDHasPrefix

func CorrelationIDHasPrefix(v string) predicate.Event

CorrelationIDHasPrefix applies the HasPrefix predicate on the "correlation_id" field.

func CorrelationIDHasSuffix

func CorrelationIDHasSuffix(v string) predicate.Event

CorrelationIDHasSuffix applies the HasSuffix predicate on the "correlation_id" field.

func CorrelationIDIn

func CorrelationIDIn(vs ...string) predicate.Event

CorrelationIDIn applies the In predicate on the "correlation_id" field.

func CorrelationIDIsNil

func CorrelationIDIsNil() predicate.Event

CorrelationIDIsNil applies the IsNil predicate on the "correlation_id" field.

func CorrelationIDLT

func CorrelationIDLT(v string) predicate.Event

CorrelationIDLT applies the LT predicate on the "correlation_id" field.

func CorrelationIDLTE

func CorrelationIDLTE(v string) predicate.Event

CorrelationIDLTE applies the LTE predicate on the "correlation_id" field.

func CorrelationIDNEQ

func CorrelationIDNEQ(v string) predicate.Event

CorrelationIDNEQ applies the NEQ predicate on the "correlation_id" field.

func CorrelationIDNotIn

func CorrelationIDNotIn(vs ...string) predicate.Event

CorrelationIDNotIn applies the NotIn predicate on the "correlation_id" field.

func CorrelationIDNotNil

func CorrelationIDNotNil() predicate.Event

CorrelationIDNotNil applies the NotNil predicate on the "correlation_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Event

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Event

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Event

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Event

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Event

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Event

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Event

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Event

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Event

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Event

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Event

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.Event

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.Event

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Event

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.Event

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Event

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.Event

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.Event

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Event

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Event

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.Event

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Event

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.Event

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.Event

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Event

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.Event

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Event

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func EventID

func EventID(v string) predicate.Event

EventID applies equality check predicate on the "event_id" field. It's identical to EventIDEQ.

func EventIDContains

func EventIDContains(v string) predicate.Event

EventIDContains applies the Contains predicate on the "event_id" field.

func EventIDContainsFold

func EventIDContainsFold(v string) predicate.Event

EventIDContainsFold applies the ContainsFold predicate on the "event_id" field.

func EventIDEQ

func EventIDEQ(v string) predicate.Event

EventIDEQ applies the EQ predicate on the "event_id" field.

func EventIDEqualFold

func EventIDEqualFold(v string) predicate.Event

EventIDEqualFold applies the EqualFold predicate on the "event_id" field.

func EventIDGT

func EventIDGT(v string) predicate.Event

EventIDGT applies the GT predicate on the "event_id" field.

func EventIDGTE

func EventIDGTE(v string) predicate.Event

EventIDGTE applies the GTE predicate on the "event_id" field.

func EventIDHasPrefix

func EventIDHasPrefix(v string) predicate.Event

EventIDHasPrefix applies the HasPrefix predicate on the "event_id" field.

func EventIDHasSuffix

func EventIDHasSuffix(v string) predicate.Event

EventIDHasSuffix applies the HasSuffix predicate on the "event_id" field.

func EventIDIn

func EventIDIn(vs ...string) predicate.Event

EventIDIn applies the In predicate on the "event_id" field.

func EventIDIsNil

func EventIDIsNil() predicate.Event

EventIDIsNil applies the IsNil predicate on the "event_id" field.

func EventIDLT

func EventIDLT(v string) predicate.Event

EventIDLT applies the LT predicate on the "event_id" field.

func EventIDLTE

func EventIDLTE(v string) predicate.Event

EventIDLTE applies the LTE predicate on the "event_id" field.

func EventIDNEQ

func EventIDNEQ(v string) predicate.Event

EventIDNEQ applies the NEQ predicate on the "event_id" field.

func EventIDNotIn

func EventIDNotIn(vs ...string) predicate.Event

EventIDNotIn applies the NotIn predicate on the "event_id" field.

func EventIDNotNil

func EventIDNotNil() predicate.Event

EventIDNotNil applies the NotNil predicate on the "event_id" field.

func EventType

func EventType(v string) predicate.Event

EventType applies equality check predicate on the "event_type" field. It's identical to EventTypeEQ.

func EventTypeContains

func EventTypeContains(v string) predicate.Event

EventTypeContains applies the Contains predicate on the "event_type" field.

func EventTypeContainsFold

func EventTypeContainsFold(v string) predicate.Event

EventTypeContainsFold applies the ContainsFold predicate on the "event_type" field.

func EventTypeEQ

func EventTypeEQ(v string) predicate.Event

EventTypeEQ applies the EQ predicate on the "event_type" field.

func EventTypeEqualFold

func EventTypeEqualFold(v string) predicate.Event

EventTypeEqualFold applies the EqualFold predicate on the "event_type" field.

func EventTypeGT

func EventTypeGT(v string) predicate.Event

EventTypeGT applies the GT predicate on the "event_type" field.

func EventTypeGTE

func EventTypeGTE(v string) predicate.Event

EventTypeGTE applies the GTE predicate on the "event_type" field.

func EventTypeHasPrefix

func EventTypeHasPrefix(v string) predicate.Event

EventTypeHasPrefix applies the HasPrefix predicate on the "event_type" field.

func EventTypeHasSuffix

func EventTypeHasSuffix(v string) predicate.Event

EventTypeHasSuffix applies the HasSuffix predicate on the "event_type" field.

func EventTypeIn

func EventTypeIn(vs ...string) predicate.Event

EventTypeIn applies the In predicate on the "event_type" field.

func EventTypeLT

func EventTypeLT(v string) predicate.Event

EventTypeLT applies the LT predicate on the "event_type" field.

func EventTypeLTE

func EventTypeLTE(v string) predicate.Event

EventTypeLTE applies the LTE predicate on the "event_type" field.

func EventTypeNEQ

func EventTypeNEQ(v string) predicate.Event

EventTypeNEQ applies the NEQ predicate on the "event_type" field.

func EventTypeNotIn

func EventTypeNotIn(vs ...string) predicate.Event

EventTypeNotIn applies the NotIn predicate on the "event_type" field.

func HasFiles added in v0.8.2

func HasFiles() predicate.Event

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith added in v0.8.2

func HasFilesWith(preds ...predicate.File) predicate.Event

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

func HasGroupMemberships added in v0.26.0

func HasGroupMemberships() predicate.Event

HasGroupMemberships applies the HasEdge predicate on the "group_memberships" edge.

func HasGroupMembershipsWith added in v0.26.0

func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.Event

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

func HasGroups added in v0.8.2

func HasGroups() predicate.Event

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith added in v0.8.2

func HasGroupsWith(preds ...predicate.Group) predicate.Event

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

func HasIntegrations added in v0.8.2

func HasIntegrations() predicate.Event

HasIntegrations applies the HasEdge predicate on the "integrations" edge.

func HasIntegrationsWith added in v0.8.2

func HasIntegrationsWith(preds ...predicate.Integration) predicate.Event

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

func HasInvites added in v0.8.2

func HasInvites() predicate.Event

HasInvites applies the HasEdge predicate on the "invites" edge.

func HasInvitesWith added in v0.8.2

func HasInvitesWith(preds ...predicate.Invite) predicate.Event

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

func HasOrgMemberships added in v0.26.0

func HasOrgMemberships() predicate.Event

HasOrgMemberships applies the HasEdge predicate on the "org_memberships" edge.

func HasOrgMembershipsWith added in v0.26.0

func HasOrgMembershipsWith(preds ...predicate.OrgMembership) predicate.Event

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

func HasOrgSubscriptions added in v0.8.2

func HasOrgSubscriptions() predicate.Event

HasOrgSubscriptions applies the HasEdge predicate on the "org_subscriptions" edge.

func HasOrgSubscriptionsWith added in v0.8.2

func HasOrgSubscriptionsWith(preds ...predicate.OrgSubscription) predicate.Event

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

func HasOrganizations added in v0.8.2

func HasOrganizations() predicate.Event

HasOrganizations applies the HasEdge predicate on the "organizations" edge.

func HasOrganizationsWith added in v0.8.2

func HasOrganizationsWith(preds ...predicate.Organization) predicate.Event

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

func HasPersonalAccessTokens added in v0.8.2

func HasPersonalAccessTokens() predicate.Event

HasPersonalAccessTokens applies the HasEdge predicate on the "personal_access_tokens" edge.

func HasPersonalAccessTokensWith added in v0.8.2

func HasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) predicate.Event

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

func HasSecrets added in v0.8.2

func HasSecrets() predicate.Event

HasSecrets applies the HasEdge predicate on the "secrets" edge.

func HasSecretsWith added in v0.8.2

func HasSecretsWith(preds ...predicate.Hush) predicate.Event

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

func HasSubscribers added in v0.8.2

func HasSubscribers() predicate.Event

HasSubscribers applies the HasEdge predicate on the "subscribers" edge.

func HasSubscribersWith added in v0.8.2

func HasSubscribersWith(preds ...predicate.Subscriber) predicate.Event

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

func HasUsers added in v0.8.2

func HasUsers() predicate.Event

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith added in v0.8.2

func HasUsersWith(preds ...predicate.User) predicate.Event

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

func ID

func ID(id string) predicate.Event

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Event

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Event

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Event

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Event

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Event

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Event

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Event

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Event

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Event

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Event

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Event

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Event

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Event) predicate.Event

Or groups predicates with the OR operator between them.

func TagsIsNil

func TagsIsNil() predicate.Event

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.Event

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Event

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Event

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Event

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Event

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Event

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Event

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Event

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Event

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Event

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Event

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Event

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.Event

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.Event

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Event

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Event

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Event

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.Event

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Event

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Event

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Event

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.Event

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Event

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.Event

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Event

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Event

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.Event

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Event

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Event queries.

func ByCorrelationID

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

ByCorrelationID orders the results by the correlation_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByEventID

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

ByEventID orders the results by the event_id field.

func ByEventType

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

ByEventType orders the results by the event_type field.

func ByFiles added in v0.8.2

func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFiles orders the results by files terms.

func ByFilesCount added in v0.8.2

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

ByFilesCount orders the results by files count.

func ByGroupMemberships added in v0.26.0

func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroupMemberships orders the results by group_memberships terms.

func ByGroupMembershipsCount added in v0.26.0

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

ByGroupMembershipsCount orders the results by group_memberships count.

func ByGroups added in v0.8.2

func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroups orders the results by groups terms.

func ByGroupsCount added in v0.8.2

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

ByGroupsCount orders the results by groups count.

func ByID

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

ByID orders the results by the id field.

func ByIntegrations added in v0.8.2

func ByIntegrations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByIntegrations orders the results by integrations terms.

func ByIntegrationsCount added in v0.8.2

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

ByIntegrationsCount orders the results by integrations count.

func ByInvites added in v0.8.2

func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByInvites orders the results by invites terms.

func ByInvitesCount added in v0.8.2

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

ByInvitesCount orders the results by invites count.

func ByOrgMemberships added in v0.26.0

func ByOrgMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgMemberships orders the results by org_memberships terms.

func ByOrgMembershipsCount added in v0.26.0

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

ByOrgMembershipsCount orders the results by org_memberships count.

func ByOrgSubscriptions added in v0.8.2

func ByOrgSubscriptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgSubscriptions orders the results by org_subscriptions terms.

func ByOrgSubscriptionsCount added in v0.8.2

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

ByOrgSubscriptionsCount orders the results by org_subscriptions count.

func ByOrganizations added in v0.8.2

func ByOrganizations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrganizations orders the results by organizations terms.

func ByOrganizationsCount added in v0.8.2

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

ByOrganizationsCount orders the results by organizations count.

func ByPersonalAccessTokens added in v0.8.2

func ByPersonalAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPersonalAccessTokens orders the results by personal_access_tokens terms.

func ByPersonalAccessTokensCount added in v0.8.2

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

ByPersonalAccessTokensCount orders the results by personal_access_tokens count.

func BySecrets added in v0.8.2

func BySecrets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySecrets orders the results by secrets terms.

func BySecretsCount added in v0.8.2

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

BySecretsCount orders the results by secrets count.

func BySubscribers added in v0.8.2

func BySubscribers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySubscribers orders the results by subscribers terms.

func BySubscribersCount added in v0.8.2

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

BySubscribersCount orders the results by subscribers count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByUsers added in v0.8.2

func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByUsers orders the results by users terms.

func ByUsersCount added in v0.8.2

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

ByUsersCount orders the results by users count.

Jump to

Keyboard shortcuts

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