checkresult

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the checkresult type in the database.
	Label = "check_result"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldLastObservedAt holds the string denoting the last_observed_at field in the database.
	FieldLastObservedAt = "last_observed_at"
	// FieldExternalURI holds the string denoting the external_uri field in the database.
	FieldExternalURI = "external_uri"
	// FieldDetails holds the string denoting the details field in the database.
	FieldDetails = "details"
	// FieldParentExternalID holds the string denoting the parent_external_id field in the database.
	FieldParentExternalID = "parent_external_id"
	// FieldIntegrationID holds the string denoting the integration_id field in the database.
	FieldIntegrationID = "integration_id"
	// EdgeBlockedGroups holds the string denoting the blocked_groups edge name in mutations.
	EdgeBlockedGroups = "blocked_groups"
	// EdgeEditors holds the string denoting the editors edge name in mutations.
	EdgeEditors = "editors"
	// EdgeViewers holds the string denoting the viewers edge name in mutations.
	EdgeViewers = "viewers"
	// EdgeControls holds the string denoting the controls edge name in mutations.
	EdgeControls = "controls"
	// EdgeFindings holds the string denoting the findings edge name in mutations.
	EdgeFindings = "findings"
	// EdgeIntegration holds the string denoting the integration edge name in mutations.
	EdgeIntegration = "integration"
	// Table holds the table name of the checkresult in the database.
	Table = "check_results"
	// BlockedGroupsTable is the table that holds the blocked_groups relation/edge.
	BlockedGroupsTable = "groups"
	// BlockedGroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	BlockedGroupsInverseTable = "groups"
	// BlockedGroupsColumn is the table column denoting the blocked_groups relation/edge.
	BlockedGroupsColumn = "check_result_blocked_groups"
	// EditorsTable is the table that holds the editors relation/edge.
	EditorsTable = "groups"
	// EditorsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	EditorsInverseTable = "groups"
	// EditorsColumn is the table column denoting the editors relation/edge.
	EditorsColumn = "check_result_editors"
	// ViewersTable is the table that holds the viewers relation/edge.
	ViewersTable = "groups"
	// ViewersInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	ViewersInverseTable = "groups"
	// ViewersColumn is the table column denoting the viewers relation/edge.
	ViewersColumn = "check_result_viewers"
	// ControlsTable is the table that holds the controls relation/edge. The primary key declared below.
	ControlsTable = "check_result_controls"
	// ControlsInverseTable is the table name for the Control entity.
	// It exists in this package in order to avoid circular dependency with the "control" package.
	ControlsInverseTable = "controls"
	// FindingsTable is the table that holds the findings relation/edge. The primary key declared below.
	FindingsTable = "finding_check_results"
	// FindingsInverseTable is the table name for the Finding entity.
	// It exists in this package in order to avoid circular dependency with the "finding" package.
	FindingsInverseTable = "findings"
	// IntegrationTable is the table that holds the integration relation/edge.
	IntegrationTable = "check_results"
	// IntegrationInverseTable is the table name for the Integration entity.
	// It exists in this package in order to avoid circular dependency with the "integration" package.
	IntegrationInverseTable = "integrations"
	// IntegrationColumn is the table column denoting the integration relation/edge.
	IntegrationColumn = "integration_id"
)
View Source
const DefaultStatus enums.CheckStatus = "UNKNOWN"

Variables

View Source
var (
	// ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the
	// primary key for the controls relation (M2M).
	ControlsPrimaryKey = []string{"check_result_id", "control_id"}
	// FindingsPrimaryKey and FindingsColumn2 are the table columns denoting the
	// primary key for the findings relation (M2M).
	FindingsPrimaryKey = []string{"finding_id", "check_result_id"}
)
View Source
var (
	Hooks        [8]ent.Hook
	Interceptors [2]ent.Interceptor
	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 checkresult fields.

Functions

func And

func And(predicates ...predicate.CheckResult) predicate.CheckResult

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CheckResult

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CheckResult

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CheckResult

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CheckResult

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.CheckResult

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CheckResult

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CheckResult

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CheckResult

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.CheckResult

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

func CreatedBy

func CreatedBy(v string) predicate.CheckResult

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

func CreatedByContains

func CreatedByContains(v string) predicate.CheckResult

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.CheckResult

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.CheckResult

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.CheckResult

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

func CreatedByGT

func CreatedByGT(v string) predicate.CheckResult

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.CheckResult

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.CheckResult

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.CheckResult

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.CheckResult

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

func CreatedByLT

func CreatedByLT(v string) predicate.CheckResult

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.CheckResult

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.CheckResult

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.CheckResult

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

func DeletedAt

func DeletedAt(v time.Time) predicate.CheckResult

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.CheckResult

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.CheckResult

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.CheckResult

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.CheckResult

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.CheckResult

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.CheckResult

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.CheckResult

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.CheckResult

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.CheckResult

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.CheckResult

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.CheckResult

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.CheckResult

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.CheckResult

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.CheckResult

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.CheckResult

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.CheckResult

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.CheckResult

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.CheckResult

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.CheckResult

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.CheckResult

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.CheckResult

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.CheckResult

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.CheckResult

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.CheckResult

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.CheckResult

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.CheckResult

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func Details

func Details(v string) predicate.CheckResult

Details applies equality check predicate on the "details" field. It's identical to DetailsEQ.

func DetailsContains

func DetailsContains(v string) predicate.CheckResult

DetailsContains applies the Contains predicate on the "details" field.

func DetailsContainsFold

func DetailsContainsFold(v string) predicate.CheckResult

DetailsContainsFold applies the ContainsFold predicate on the "details" field.

func DetailsEQ

func DetailsEQ(v string) predicate.CheckResult

DetailsEQ applies the EQ predicate on the "details" field.

func DetailsEqualFold

func DetailsEqualFold(v string) predicate.CheckResult

DetailsEqualFold applies the EqualFold predicate on the "details" field.

func DetailsGT

func DetailsGT(v string) predicate.CheckResult

DetailsGT applies the GT predicate on the "details" field.

func DetailsGTE

func DetailsGTE(v string) predicate.CheckResult

DetailsGTE applies the GTE predicate on the "details" field.

func DetailsHasPrefix

func DetailsHasPrefix(v string) predicate.CheckResult

DetailsHasPrefix applies the HasPrefix predicate on the "details" field.

func DetailsHasSuffix

func DetailsHasSuffix(v string) predicate.CheckResult

DetailsHasSuffix applies the HasSuffix predicate on the "details" field.

func DetailsIn

func DetailsIn(vs ...string) predicate.CheckResult

DetailsIn applies the In predicate on the "details" field.

func DetailsIsNil

func DetailsIsNil() predicate.CheckResult

DetailsIsNil applies the IsNil predicate on the "details" field.

func DetailsLT

func DetailsLT(v string) predicate.CheckResult

DetailsLT applies the LT predicate on the "details" field.

func DetailsLTE

func DetailsLTE(v string) predicate.CheckResult

DetailsLTE applies the LTE predicate on the "details" field.

func DetailsNEQ

func DetailsNEQ(v string) predicate.CheckResult

DetailsNEQ applies the NEQ predicate on the "details" field.

func DetailsNotIn

func DetailsNotIn(vs ...string) predicate.CheckResult

DetailsNotIn applies the NotIn predicate on the "details" field.

func DetailsNotNil

func DetailsNotNil() predicate.CheckResult

DetailsNotNil applies the NotNil predicate on the "details" field.

func ExternalURI

func ExternalURI(v string) predicate.CheckResult

ExternalURI applies equality check predicate on the "external_uri" field. It's identical to ExternalURIEQ.

func ExternalURIContains

func ExternalURIContains(v string) predicate.CheckResult

ExternalURIContains applies the Contains predicate on the "external_uri" field.

func ExternalURIContainsFold

func ExternalURIContainsFold(v string) predicate.CheckResult

ExternalURIContainsFold applies the ContainsFold predicate on the "external_uri" field.

func ExternalURIEQ

func ExternalURIEQ(v string) predicate.CheckResult

ExternalURIEQ applies the EQ predicate on the "external_uri" field.

func ExternalURIEqualFold

func ExternalURIEqualFold(v string) predicate.CheckResult

ExternalURIEqualFold applies the EqualFold predicate on the "external_uri" field.

func ExternalURIGT

func ExternalURIGT(v string) predicate.CheckResult

ExternalURIGT applies the GT predicate on the "external_uri" field.

func ExternalURIGTE

func ExternalURIGTE(v string) predicate.CheckResult

ExternalURIGTE applies the GTE predicate on the "external_uri" field.

func ExternalURIHasPrefix

func ExternalURIHasPrefix(v string) predicate.CheckResult

ExternalURIHasPrefix applies the HasPrefix predicate on the "external_uri" field.

func ExternalURIHasSuffix

func ExternalURIHasSuffix(v string) predicate.CheckResult

ExternalURIHasSuffix applies the HasSuffix predicate on the "external_uri" field.

func ExternalURIIn

func ExternalURIIn(vs ...string) predicate.CheckResult

ExternalURIIn applies the In predicate on the "external_uri" field.

func ExternalURIIsNil

func ExternalURIIsNil() predicate.CheckResult

ExternalURIIsNil applies the IsNil predicate on the "external_uri" field.

func ExternalURILT

func ExternalURILT(v string) predicate.CheckResult

ExternalURILT applies the LT predicate on the "external_uri" field.

func ExternalURILTE

func ExternalURILTE(v string) predicate.CheckResult

ExternalURILTE applies the LTE predicate on the "external_uri" field.

func ExternalURINEQ

func ExternalURINEQ(v string) predicate.CheckResult

ExternalURINEQ applies the NEQ predicate on the "external_uri" field.

func ExternalURINotIn

func ExternalURINotIn(vs ...string) predicate.CheckResult

ExternalURINotIn applies the NotIn predicate on the "external_uri" field.

func ExternalURINotNil

func ExternalURINotNil() predicate.CheckResult

ExternalURINotNil applies the NotNil predicate on the "external_uri" field.

func HasBlockedGroups

func HasBlockedGroups() predicate.CheckResult

HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.

func HasBlockedGroupsWith

func HasBlockedGroupsWith(preds ...predicate.Group) predicate.CheckResult

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

func HasControls

func HasControls() predicate.CheckResult

HasControls applies the HasEdge predicate on the "controls" edge.

func HasControlsWith

func HasControlsWith(preds ...predicate.Control) predicate.CheckResult

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

func HasEditors

func HasEditors() predicate.CheckResult

HasEditors applies the HasEdge predicate on the "editors" edge.

func HasEditorsWith

func HasEditorsWith(preds ...predicate.Group) predicate.CheckResult

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

func HasFindings

func HasFindings() predicate.CheckResult

HasFindings applies the HasEdge predicate on the "findings" edge.

func HasFindingsWith

func HasFindingsWith(preds ...predicate.Finding) predicate.CheckResult

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

func HasIntegration

func HasIntegration() predicate.CheckResult

HasIntegration applies the HasEdge predicate on the "integration" edge.

func HasIntegrationWith

func HasIntegrationWith(preds ...predicate.Integration) predicate.CheckResult

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

func HasViewers

func HasViewers() predicate.CheckResult

HasViewers applies the HasEdge predicate on the "viewers" edge.

func HasViewersWith

func HasViewersWith(preds ...predicate.Group) predicate.CheckResult

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.CheckResult

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.CheckResult

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.CheckResult

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.CheckResult

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.CheckResult

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.CheckResult

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.CheckResult

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.CheckResult

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IntegrationID

func IntegrationID(v string) predicate.CheckResult

IntegrationID applies equality check predicate on the "integration_id" field. It's identical to IntegrationIDEQ.

func IntegrationIDContains

func IntegrationIDContains(v string) predicate.CheckResult

IntegrationIDContains applies the Contains predicate on the "integration_id" field.

func IntegrationIDContainsFold

func IntegrationIDContainsFold(v string) predicate.CheckResult

IntegrationIDContainsFold applies the ContainsFold predicate on the "integration_id" field.

func IntegrationIDEQ

func IntegrationIDEQ(v string) predicate.CheckResult

IntegrationIDEQ applies the EQ predicate on the "integration_id" field.

func IntegrationIDEqualFold

func IntegrationIDEqualFold(v string) predicate.CheckResult

IntegrationIDEqualFold applies the EqualFold predicate on the "integration_id" field.

func IntegrationIDGT

func IntegrationIDGT(v string) predicate.CheckResult

IntegrationIDGT applies the GT predicate on the "integration_id" field.

func IntegrationIDGTE

func IntegrationIDGTE(v string) predicate.CheckResult

IntegrationIDGTE applies the GTE predicate on the "integration_id" field.

func IntegrationIDHasPrefix

func IntegrationIDHasPrefix(v string) predicate.CheckResult

IntegrationIDHasPrefix applies the HasPrefix predicate on the "integration_id" field.

func IntegrationIDHasSuffix

func IntegrationIDHasSuffix(v string) predicate.CheckResult

IntegrationIDHasSuffix applies the HasSuffix predicate on the "integration_id" field.

func IntegrationIDIn

func IntegrationIDIn(vs ...string) predicate.CheckResult

IntegrationIDIn applies the In predicate on the "integration_id" field.

func IntegrationIDIsNil

func IntegrationIDIsNil() predicate.CheckResult

IntegrationIDIsNil applies the IsNil predicate on the "integration_id" field.

func IntegrationIDLT

func IntegrationIDLT(v string) predicate.CheckResult

IntegrationIDLT applies the LT predicate on the "integration_id" field.

func IntegrationIDLTE

func IntegrationIDLTE(v string) predicate.CheckResult

IntegrationIDLTE applies the LTE predicate on the "integration_id" field.

func IntegrationIDNEQ

func IntegrationIDNEQ(v string) predicate.CheckResult

IntegrationIDNEQ applies the NEQ predicate on the "integration_id" field.

func IntegrationIDNotIn

func IntegrationIDNotIn(vs ...string) predicate.CheckResult

IntegrationIDNotIn applies the NotIn predicate on the "integration_id" field.

func IntegrationIDNotNil

func IntegrationIDNotNil() predicate.CheckResult

IntegrationIDNotNil applies the NotNil predicate on the "integration_id" field.

func LastObservedAt

func LastObservedAt(v models.DateTime) predicate.CheckResult

LastObservedAt applies equality check predicate on the "last_observed_at" field. It's identical to LastObservedAtEQ.

func LastObservedAtEQ

func LastObservedAtEQ(v models.DateTime) predicate.CheckResult

LastObservedAtEQ applies the EQ predicate on the "last_observed_at" field.

func LastObservedAtGT

func LastObservedAtGT(v models.DateTime) predicate.CheckResult

LastObservedAtGT applies the GT predicate on the "last_observed_at" field.

func LastObservedAtGTE

func LastObservedAtGTE(v models.DateTime) predicate.CheckResult

LastObservedAtGTE applies the GTE predicate on the "last_observed_at" field.

func LastObservedAtIn

func LastObservedAtIn(vs ...models.DateTime) predicate.CheckResult

LastObservedAtIn applies the In predicate on the "last_observed_at" field.

func LastObservedAtIsNil

func LastObservedAtIsNil() predicate.CheckResult

LastObservedAtIsNil applies the IsNil predicate on the "last_observed_at" field.

func LastObservedAtLT

func LastObservedAtLT(v models.DateTime) predicate.CheckResult

LastObservedAtLT applies the LT predicate on the "last_observed_at" field.

func LastObservedAtLTE

func LastObservedAtLTE(v models.DateTime) predicate.CheckResult

LastObservedAtLTE applies the LTE predicate on the "last_observed_at" field.

func LastObservedAtNEQ

func LastObservedAtNEQ(v models.DateTime) predicate.CheckResult

LastObservedAtNEQ applies the NEQ predicate on the "last_observed_at" field.

func LastObservedAtNotIn

func LastObservedAtNotIn(vs ...models.DateTime) predicate.CheckResult

LastObservedAtNotIn applies the NotIn predicate on the "last_observed_at" field.

func LastObservedAtNotNil

func LastObservedAtNotNil() predicate.CheckResult

LastObservedAtNotNil applies the NotNil predicate on the "last_observed_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CheckResult) predicate.CheckResult

Or groups predicates with the OR operator between them.

func ParentExternalID

func ParentExternalID(v string) predicate.CheckResult

ParentExternalID applies equality check predicate on the "parent_external_id" field. It's identical to ParentExternalIDEQ.

func ParentExternalIDContains

func ParentExternalIDContains(v string) predicate.CheckResult

ParentExternalIDContains applies the Contains predicate on the "parent_external_id" field.

func ParentExternalIDContainsFold

func ParentExternalIDContainsFold(v string) predicate.CheckResult

ParentExternalIDContainsFold applies the ContainsFold predicate on the "parent_external_id" field.

func ParentExternalIDEQ

func ParentExternalIDEQ(v string) predicate.CheckResult

ParentExternalIDEQ applies the EQ predicate on the "parent_external_id" field.

func ParentExternalIDEqualFold

func ParentExternalIDEqualFold(v string) predicate.CheckResult

ParentExternalIDEqualFold applies the EqualFold predicate on the "parent_external_id" field.

func ParentExternalIDGT

func ParentExternalIDGT(v string) predicate.CheckResult

ParentExternalIDGT applies the GT predicate on the "parent_external_id" field.

func ParentExternalIDGTE

func ParentExternalIDGTE(v string) predicate.CheckResult

ParentExternalIDGTE applies the GTE predicate on the "parent_external_id" field.

func ParentExternalIDHasPrefix

func ParentExternalIDHasPrefix(v string) predicate.CheckResult

ParentExternalIDHasPrefix applies the HasPrefix predicate on the "parent_external_id" field.

func ParentExternalIDHasSuffix

func ParentExternalIDHasSuffix(v string) predicate.CheckResult

ParentExternalIDHasSuffix applies the HasSuffix predicate on the "parent_external_id" field.

func ParentExternalIDIn

func ParentExternalIDIn(vs ...string) predicate.CheckResult

ParentExternalIDIn applies the In predicate on the "parent_external_id" field.

func ParentExternalIDIsNil

func ParentExternalIDIsNil() predicate.CheckResult

ParentExternalIDIsNil applies the IsNil predicate on the "parent_external_id" field.

func ParentExternalIDLT

func ParentExternalIDLT(v string) predicate.CheckResult

ParentExternalIDLT applies the LT predicate on the "parent_external_id" field.

func ParentExternalIDLTE

func ParentExternalIDLTE(v string) predicate.CheckResult

ParentExternalIDLTE applies the LTE predicate on the "parent_external_id" field.

func ParentExternalIDNEQ

func ParentExternalIDNEQ(v string) predicate.CheckResult

ParentExternalIDNEQ applies the NEQ predicate on the "parent_external_id" field.

func ParentExternalIDNotIn

func ParentExternalIDNotIn(vs ...string) predicate.CheckResult

ParentExternalIDNotIn applies the NotIn predicate on the "parent_external_id" field.

func ParentExternalIDNotNil

func ParentExternalIDNotNil() predicate.CheckResult

ParentExternalIDNotNil applies the NotNil predicate on the "parent_external_id" field.

func Source

func Source(v string) predicate.CheckResult

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.CheckResult

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.CheckResult

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.CheckResult

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.CheckResult

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.CheckResult

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.CheckResult

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.CheckResult

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.CheckResult

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

func SourceIn(vs ...string) predicate.CheckResult

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.CheckResult

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.CheckResult

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.CheckResult

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...string) predicate.CheckResult

SourceNotIn applies the NotIn predicate on the "source" field.

func StatusEQ

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

func StatusIn

func StatusIn(vs ...enums.CheckStatus) predicate.CheckResult

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

func StatusNEQ

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

func StatusNotIn

func StatusNotIn(vs ...enums.CheckStatus) predicate.CheckResult

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

func StatusValidator

func StatusValidator(s enums.CheckStatus) error

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

func TagsIsNil

func TagsIsNil() predicate.CheckResult

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

func TagsNotNil

func TagsNotNil() predicate.CheckResult

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.CheckResult

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.CheckResult

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.CheckResult

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.CheckResult

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.CheckResult

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.CheckResult

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.CheckResult

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.CheckResult

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.CheckResult

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

func UpdatedBy

func UpdatedBy(v string) predicate.CheckResult

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.CheckResult

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.CheckResult

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.CheckResult

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.CheckResult

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.CheckResult

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.CheckResult

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.CheckResult

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.CheckResult

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.CheckResult

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.CheckResult

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.CheckResult

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.CheckResult

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.CheckResult

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

func ByBlockedGroups

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

ByBlockedGroups orders the results by blocked_groups terms.

func ByBlockedGroupsCount

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

ByBlockedGroupsCount orders the results by blocked_groups count.

func ByControls

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

ByControls orders the results by controls terms.

func ByControlsCount

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

ByControlsCount orders the results by controls count.

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 ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

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

ByDeletedBy orders the results by the deleted_by field.

func ByDetails

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

ByDetails orders the results by the details field.

func ByEditors

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

ByEditors orders the results by editors terms.

func ByEditorsCount

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

ByEditorsCount orders the results by editors count.

func ByExternalURI

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

ByExternalURI orders the results by the external_uri field.

func ByFindings

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

ByFindings orders the results by findings terms.

func ByFindingsCount

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

ByFindingsCount orders the results by findings count.

func ByID

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

ByID orders the results by the id field.

func ByIntegrationField

func ByIntegrationField(field string, opts ...sql.OrderTermOption) OrderOption

ByIntegrationField orders the results by integration field.

func ByIntegrationID

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

ByIntegrationID orders the results by the integration_id field.

func ByLastObservedAt

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

ByLastObservedAt orders the results by the last_observed_at field.

func ByParentExternalID

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

ByParentExternalID orders the results by the parent_external_id field.

func BySource

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

BySource orders the results by the source field.

func ByStatus

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

ByStatus orders the results by the status field.

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 ByViewers

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

ByViewers orders the results by viewers terms.

func ByViewersCount

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

ByViewersCount orders the results by viewers count.

Jump to

Keyboard shortcuts

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