template

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the template type in the database.
	Label = "template"
	// 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"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldSystemOwned holds the string denoting the system_owned field in the database.
	FieldSystemOwned = "system_owned"
	// FieldInternalNotes holds the string denoting the internal_notes field in the database.
	FieldInternalNotes = "internal_notes"
	// FieldSystemInternalID holds the string denoting the system_internal_id field in the database.
	FieldSystemInternalID = "system_internal_id"
	// FieldEnvironmentName holds the string denoting the environment_name field in the database.
	FieldEnvironmentName = "environment_name"
	// FieldEnvironmentID holds the string denoting the environment_id field in the database.
	FieldEnvironmentID = "environment_id"
	// FieldScopeName holds the string denoting the scope_name field in the database.
	FieldScopeName = "scope_name"
	// FieldScopeID holds the string denoting the scope_id field in the database.
	FieldScopeID = "scope_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldTemplateType holds the string denoting the template_type field in the database.
	FieldTemplateType = "template_type"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldJsonconfig holds the string denoting the jsonconfig field in the database.
	FieldJsonconfig = "jsonconfig"
	// FieldUischema holds the string denoting the uischema field in the database.
	FieldUischema = "uischema"
	// FieldTrustCenterID holds the string denoting the trust_center_id field in the database.
	FieldTrustCenterID = "trust_center_id"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeEnvironment holds the string denoting the environment edge name in mutations.
	EdgeEnvironment = "environment"
	// EdgeScope holds the string denoting the scope edge name in mutations.
	EdgeScope = "scope"
	// EdgeDocuments holds the string denoting the documents edge name in mutations.
	EdgeDocuments = "documents"
	// EdgeFiles holds the string denoting the files edge name in mutations.
	EdgeFiles = "files"
	// EdgeTrustCenter holds the string denoting the trust_center edge name in mutations.
	EdgeTrustCenter = "trust_center"
	// EdgeAssessments holds the string denoting the assessments edge name in mutations.
	EdgeAssessments = "assessments"
	// EdgeCampaigns holds the string denoting the campaigns edge name in mutations.
	EdgeCampaigns = "campaigns"
	// EdgeIdentityHolders holds the string denoting the identity_holders edge name in mutations.
	EdgeIdentityHolders = "identity_holders"
	// Table holds the table name of the template in the database.
	Table = "templates"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "templates"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// EnvironmentTable is the table that holds the environment relation/edge.
	EnvironmentTable = "templates"
	// EnvironmentInverseTable is the table name for the CustomTypeEnum entity.
	// It exists in this package in order to avoid circular dependency with the "customtypeenum" package.
	EnvironmentInverseTable = "custom_type_enums"
	// EnvironmentColumn is the table column denoting the environment relation/edge.
	EnvironmentColumn = "environment_id"
	// ScopeTable is the table that holds the scope relation/edge.
	ScopeTable = "templates"
	// ScopeInverseTable is the table name for the CustomTypeEnum entity.
	// It exists in this package in order to avoid circular dependency with the "customtypeenum" package.
	ScopeInverseTable = "custom_type_enums"
	// ScopeColumn is the table column denoting the scope relation/edge.
	ScopeColumn = "scope_id"
	// DocumentsTable is the table that holds the documents relation/edge.
	DocumentsTable = "document_data"
	// DocumentsInverseTable is the table name for the DocumentData entity.
	// It exists in this package in order to avoid circular dependency with the "documentdata" package.
	DocumentsInverseTable = "document_data"
	// DocumentsColumn is the table column denoting the documents relation/edge.
	DocumentsColumn = "template_id"
	// FilesTable is the table that holds the files relation/edge. The primary key declared below.
	FilesTable = "template_files"
	// 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"
	// TrustCenterTable is the table that holds the trust_center relation/edge.
	TrustCenterTable = "templates"
	// TrustCenterInverseTable is the table name for the TrustCenter entity.
	// It exists in this package in order to avoid circular dependency with the "trustcenter" package.
	TrustCenterInverseTable = "trust_centers"
	// TrustCenterColumn is the table column denoting the trust_center relation/edge.
	TrustCenterColumn = "trust_center_id"
	// AssessmentsTable is the table that holds the assessments relation/edge.
	AssessmentsTable = "assessments"
	// AssessmentsInverseTable is the table name for the Assessment entity.
	// It exists in this package in order to avoid circular dependency with the "assessment" package.
	AssessmentsInverseTable = "assessments"
	// AssessmentsColumn is the table column denoting the assessments relation/edge.
	AssessmentsColumn = "template_id"
	// CampaignsTable is the table that holds the campaigns relation/edge.
	CampaignsTable = "campaigns"
	// CampaignsInverseTable is the table name for the Campaign entity.
	// It exists in this package in order to avoid circular dependency with the "campaign" package.
	CampaignsInverseTable = "campaigns"
	// CampaignsColumn is the table column denoting the campaigns relation/edge.
	CampaignsColumn = "template_id"
	// IdentityHoldersTable is the table that holds the identity_holders relation/edge. The primary key declared below.
	IdentityHoldersTable = "identity_holder_templates"
	// IdentityHoldersInverseTable is the table name for the IdentityHolder entity.
	// It exists in this package in order to avoid circular dependency with the "identityholder" package.
	IdentityHoldersInverseTable = "identity_holders"
)
View Source
const DefaultKind enums.TemplateKind = "QUESTIONNAIRE"
View Source
const DefaultTemplateType enums.DocumentType = "DOCUMENT"

Variables

View Source
var (
	// FilesPrimaryKey and FilesColumn2 are the table columns denoting the
	// primary key for the files relation (M2M).
	FilesPrimaryKey = []string{"template_id", "file_id"}
	// IdentityHoldersPrimaryKey and IdentityHoldersColumn2 are the table columns denoting the
	// primary key for the identity_holders relation (M2M).
	IdentityHoldersPrimaryKey = []string{"identity_holder_id", "template_id"}
)
View Source
var (
	Hooks        [13]ent.Hook
	Interceptors [3]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
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// DefaultSystemOwned holds the default value on creation for the "system_owned" field.
	DefaultSystemOwned bool
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// 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 template fields.

Functions

func And

func And(predicates ...predicate.Template) predicate.Template

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Template

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Template

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Template

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Template

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Template

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Template

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Template

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Template

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Template

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

func CreatedBy

func CreatedBy(v string) predicate.Template

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

func CreatedByContains

func CreatedByContains(v string) predicate.Template

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Template

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.Template

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Template

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

func CreatedByGT

func CreatedByGT(v string) predicate.Template

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.Template

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Template

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Template

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.Template

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

func CreatedByLT

func CreatedByLT(v string) predicate.Template

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.Template

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Template

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.Template

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Template

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Template

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Template

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Template

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Template

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Template

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Template

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Template

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Template

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

func DeletedBy

func DeletedBy(v string) predicate.Template

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

func DeletedByContains

func DeletedByContains(v string) predicate.Template

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

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.Template

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

func DeletedByEQ

func DeletedByEQ(v string) predicate.Template

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

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.Template

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

func DeletedByGT

func DeletedByGT(v string) predicate.Template

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

func DeletedByGTE

func DeletedByGTE(v string) predicate.Template

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

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.Template

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

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.Template

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

func DeletedByIn

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

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

func DeletedByIsNil

func DeletedByIsNil() predicate.Template

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

func DeletedByLT

func DeletedByLT(v string) predicate.Template

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

func DeletedByLTE

func DeletedByLTE(v string) predicate.Template

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

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.Template

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

func DeletedByNotIn

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

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

func DeletedByNotNil

func DeletedByNotNil() predicate.Template

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

func Description

func Description(v string) predicate.Template

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Template

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Template

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Template

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Template

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Template

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Template

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Template

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Template

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Template

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Template

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Template

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Template

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Template

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Template

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Template

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EnvironmentID added in v1.5.0

func EnvironmentID(v string) predicate.Template

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains added in v1.5.0

func EnvironmentIDContains(v string) predicate.Template

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold added in v1.5.0

func EnvironmentIDContainsFold(v string) predicate.Template

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ added in v1.5.0

func EnvironmentIDEQ(v string) predicate.Template

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold added in v1.5.0

func EnvironmentIDEqualFold(v string) predicate.Template

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT added in v1.5.0

func EnvironmentIDGT(v string) predicate.Template

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE added in v1.5.0

func EnvironmentIDGTE(v string) predicate.Template

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix added in v1.5.0

func EnvironmentIDHasPrefix(v string) predicate.Template

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix added in v1.5.0

func EnvironmentIDHasSuffix(v string) predicate.Template

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn added in v1.5.0

func EnvironmentIDIn(vs ...string) predicate.Template

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDIsNil added in v1.5.0

func EnvironmentIDIsNil() predicate.Template

EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.

func EnvironmentIDLT added in v1.5.0

func EnvironmentIDLT(v string) predicate.Template

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE added in v1.5.0

func EnvironmentIDLTE(v string) predicate.Template

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ added in v1.5.0

func EnvironmentIDNEQ(v string) predicate.Template

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn added in v1.5.0

func EnvironmentIDNotIn(vs ...string) predicate.Template

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func EnvironmentIDNotNil added in v1.5.0

func EnvironmentIDNotNil() predicate.Template

EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.

func EnvironmentName added in v1.5.0

func EnvironmentName(v string) predicate.Template

EnvironmentName applies equality check predicate on the "environment_name" field. It's identical to EnvironmentNameEQ.

func EnvironmentNameContains added in v1.5.0

func EnvironmentNameContains(v string) predicate.Template

EnvironmentNameContains applies the Contains predicate on the "environment_name" field.

func EnvironmentNameContainsFold added in v1.5.0

func EnvironmentNameContainsFold(v string) predicate.Template

EnvironmentNameContainsFold applies the ContainsFold predicate on the "environment_name" field.

func EnvironmentNameEQ added in v1.5.0

func EnvironmentNameEQ(v string) predicate.Template

EnvironmentNameEQ applies the EQ predicate on the "environment_name" field.

func EnvironmentNameEqualFold added in v1.5.0

func EnvironmentNameEqualFold(v string) predicate.Template

EnvironmentNameEqualFold applies the EqualFold predicate on the "environment_name" field.

func EnvironmentNameGT added in v1.5.0

func EnvironmentNameGT(v string) predicate.Template

EnvironmentNameGT applies the GT predicate on the "environment_name" field.

func EnvironmentNameGTE added in v1.5.0

func EnvironmentNameGTE(v string) predicate.Template

EnvironmentNameGTE applies the GTE predicate on the "environment_name" field.

func EnvironmentNameHasPrefix added in v1.5.0

func EnvironmentNameHasPrefix(v string) predicate.Template

EnvironmentNameHasPrefix applies the HasPrefix predicate on the "environment_name" field.

func EnvironmentNameHasSuffix added in v1.5.0

func EnvironmentNameHasSuffix(v string) predicate.Template

EnvironmentNameHasSuffix applies the HasSuffix predicate on the "environment_name" field.

func EnvironmentNameIn added in v1.5.0

func EnvironmentNameIn(vs ...string) predicate.Template

EnvironmentNameIn applies the In predicate on the "environment_name" field.

func EnvironmentNameIsNil added in v1.5.0

func EnvironmentNameIsNil() predicate.Template

EnvironmentNameIsNil applies the IsNil predicate on the "environment_name" field.

func EnvironmentNameLT added in v1.5.0

func EnvironmentNameLT(v string) predicate.Template

EnvironmentNameLT applies the LT predicate on the "environment_name" field.

func EnvironmentNameLTE added in v1.5.0

func EnvironmentNameLTE(v string) predicate.Template

EnvironmentNameLTE applies the LTE predicate on the "environment_name" field.

func EnvironmentNameNEQ added in v1.5.0

func EnvironmentNameNEQ(v string) predicate.Template

EnvironmentNameNEQ applies the NEQ predicate on the "environment_name" field.

func EnvironmentNameNotIn added in v1.5.0

func EnvironmentNameNotIn(vs ...string) predicate.Template

EnvironmentNameNotIn applies the NotIn predicate on the "environment_name" field.

func EnvironmentNameNotNil added in v1.5.0

func EnvironmentNameNotNil() predicate.Template

EnvironmentNameNotNil applies the NotNil predicate on the "environment_name" field.

func HasAssessments added in v0.46.3

func HasAssessments() predicate.Template

HasAssessments applies the HasEdge predicate on the "assessments" edge.

func HasAssessmentsWith added in v0.46.3

func HasAssessmentsWith(preds ...predicate.Assessment) predicate.Template

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

func HasCampaigns added in v1.5.0

func HasCampaigns() predicate.Template

HasCampaigns applies the HasEdge predicate on the "campaigns" edge.

func HasCampaignsWith added in v1.5.0

func HasCampaignsWith(preds ...predicate.Campaign) predicate.Template

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

func HasDocuments

func HasDocuments() predicate.Template

HasDocuments applies the HasEdge predicate on the "documents" edge.

func HasDocumentsWith

func HasDocumentsWith(preds ...predicate.DocumentData) predicate.Template

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

func HasEnvironment added in v1.5.0

func HasEnvironment() predicate.Template

HasEnvironment applies the HasEdge predicate on the "environment" edge.

func HasEnvironmentWith added in v1.5.0

func HasEnvironmentWith(preds ...predicate.CustomTypeEnum) predicate.Template

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

func HasFiles added in v0.3.0

func HasFiles() predicate.Template

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

func HasFilesWith added in v0.3.0

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

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

func HasIdentityHolders added in v1.5.0

func HasIdentityHolders() predicate.Template

HasIdentityHolders applies the HasEdge predicate on the "identity_holders" edge.

func HasIdentityHoldersWith added in v1.5.0

func HasIdentityHoldersWith(preds ...predicate.IdentityHolder) predicate.Template

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

func HasOwner

func HasOwner() predicate.Template

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Template

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

func HasScope added in v1.5.0

func HasScope() predicate.Template

HasScope applies the HasEdge predicate on the "scope" edge.

func HasScopeWith added in v1.5.0

func HasScopeWith(preds ...predicate.CustomTypeEnum) predicate.Template

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

func HasTrustCenter added in v0.34.1

func HasTrustCenter() predicate.Template

HasTrustCenter applies the HasEdge predicate on the "trust_center" edge.

func HasTrustCenterWith added in v0.34.1

func HasTrustCenterWith(preds ...predicate.TrustCenter) predicate.Template

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

func ID

func ID(id string) predicate.Template

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Template

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Template

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Template

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Template

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Template

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Template

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Template

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Template

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InternalNotes added in v0.34.0

func InternalNotes(v string) predicate.Template

InternalNotes applies equality check predicate on the "internal_notes" field. It's identical to InternalNotesEQ.

func InternalNotesContains added in v0.34.0

func InternalNotesContains(v string) predicate.Template

InternalNotesContains applies the Contains predicate on the "internal_notes" field.

func InternalNotesContainsFold added in v0.34.0

func InternalNotesContainsFold(v string) predicate.Template

InternalNotesContainsFold applies the ContainsFold predicate on the "internal_notes" field.

func InternalNotesEQ added in v0.34.0

func InternalNotesEQ(v string) predicate.Template

InternalNotesEQ applies the EQ predicate on the "internal_notes" field.

func InternalNotesEqualFold added in v0.34.0

func InternalNotesEqualFold(v string) predicate.Template

InternalNotesEqualFold applies the EqualFold predicate on the "internal_notes" field.

func InternalNotesGT added in v0.34.0

func InternalNotesGT(v string) predicate.Template

InternalNotesGT applies the GT predicate on the "internal_notes" field.

func InternalNotesGTE added in v0.34.0

func InternalNotesGTE(v string) predicate.Template

InternalNotesGTE applies the GTE predicate on the "internal_notes" field.

func InternalNotesHasPrefix added in v0.34.0

func InternalNotesHasPrefix(v string) predicate.Template

InternalNotesHasPrefix applies the HasPrefix predicate on the "internal_notes" field.

func InternalNotesHasSuffix added in v0.34.0

func InternalNotesHasSuffix(v string) predicate.Template

InternalNotesHasSuffix applies the HasSuffix predicate on the "internal_notes" field.

func InternalNotesIn added in v0.34.0

func InternalNotesIn(vs ...string) predicate.Template

InternalNotesIn applies the In predicate on the "internal_notes" field.

func InternalNotesIsNil added in v0.34.0

func InternalNotesIsNil() predicate.Template

InternalNotesIsNil applies the IsNil predicate on the "internal_notes" field.

func InternalNotesLT added in v0.34.0

func InternalNotesLT(v string) predicate.Template

InternalNotesLT applies the LT predicate on the "internal_notes" field.

func InternalNotesLTE added in v0.34.0

func InternalNotesLTE(v string) predicate.Template

InternalNotesLTE applies the LTE predicate on the "internal_notes" field.

func InternalNotesNEQ added in v0.34.0

func InternalNotesNEQ(v string) predicate.Template

InternalNotesNEQ applies the NEQ predicate on the "internal_notes" field.

func InternalNotesNotIn added in v0.34.0

func InternalNotesNotIn(vs ...string) predicate.Template

InternalNotesNotIn applies the NotIn predicate on the "internal_notes" field.

func InternalNotesNotNil added in v0.34.0

func InternalNotesNotNil() predicate.Template

InternalNotesNotNil applies the NotNil predicate on the "internal_notes" field.

func KindEQ added in v0.32.0

KindEQ applies the EQ predicate on the "kind" field.

func KindIn added in v0.32.0

func KindIn(vs ...enums.TemplateKind) predicate.Template

KindIn applies the In predicate on the "kind" field.

func KindIsNil added in v0.32.0

func KindIsNil() predicate.Template

KindIsNil applies the IsNil predicate on the "kind" field.

func KindNEQ added in v0.32.0

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn added in v0.32.0

func KindNotIn(vs ...enums.TemplateKind) predicate.Template

KindNotIn applies the NotIn predicate on the "kind" field.

func KindNotNil added in v0.32.0

func KindNotNil() predicate.Template

KindNotNil applies the NotNil predicate on the "kind" field.

func KindValidator added in v0.32.0

func KindValidator(k enums.TemplateKind) error

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

func Name

func Name(v string) predicate.Template

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Template

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Template

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Template

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Template

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Template

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Template

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Template

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Template

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Template

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Template

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Template

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Template

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Template

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Template) predicate.Template

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.Template

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.Template

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Template

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Template

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Template

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Template

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Template

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Template

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Template

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.Template

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Template

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Template

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Template

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Template

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.Template

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Template

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func ScopeID added in v1.5.0

func ScopeID(v string) predicate.Template

ScopeID applies equality check predicate on the "scope_id" field. It's identical to ScopeIDEQ.

func ScopeIDContains added in v1.5.0

func ScopeIDContains(v string) predicate.Template

ScopeIDContains applies the Contains predicate on the "scope_id" field.

func ScopeIDContainsFold added in v1.5.0

func ScopeIDContainsFold(v string) predicate.Template

ScopeIDContainsFold applies the ContainsFold predicate on the "scope_id" field.

func ScopeIDEQ added in v1.5.0

func ScopeIDEQ(v string) predicate.Template

ScopeIDEQ applies the EQ predicate on the "scope_id" field.

func ScopeIDEqualFold added in v1.5.0

func ScopeIDEqualFold(v string) predicate.Template

ScopeIDEqualFold applies the EqualFold predicate on the "scope_id" field.

func ScopeIDGT added in v1.5.0

func ScopeIDGT(v string) predicate.Template

ScopeIDGT applies the GT predicate on the "scope_id" field.

func ScopeIDGTE added in v1.5.0

func ScopeIDGTE(v string) predicate.Template

ScopeIDGTE applies the GTE predicate on the "scope_id" field.

func ScopeIDHasPrefix added in v1.5.0

func ScopeIDHasPrefix(v string) predicate.Template

ScopeIDHasPrefix applies the HasPrefix predicate on the "scope_id" field.

func ScopeIDHasSuffix added in v1.5.0

func ScopeIDHasSuffix(v string) predicate.Template

ScopeIDHasSuffix applies the HasSuffix predicate on the "scope_id" field.

func ScopeIDIn added in v1.5.0

func ScopeIDIn(vs ...string) predicate.Template

ScopeIDIn applies the In predicate on the "scope_id" field.

func ScopeIDIsNil added in v1.5.0

func ScopeIDIsNil() predicate.Template

ScopeIDIsNil applies the IsNil predicate on the "scope_id" field.

func ScopeIDLT added in v1.5.0

func ScopeIDLT(v string) predicate.Template

ScopeIDLT applies the LT predicate on the "scope_id" field.

func ScopeIDLTE added in v1.5.0

func ScopeIDLTE(v string) predicate.Template

ScopeIDLTE applies the LTE predicate on the "scope_id" field.

func ScopeIDNEQ added in v1.5.0

func ScopeIDNEQ(v string) predicate.Template

ScopeIDNEQ applies the NEQ predicate on the "scope_id" field.

func ScopeIDNotIn added in v1.5.0

func ScopeIDNotIn(vs ...string) predicate.Template

ScopeIDNotIn applies the NotIn predicate on the "scope_id" field.

func ScopeIDNotNil added in v1.5.0

func ScopeIDNotNil() predicate.Template

ScopeIDNotNil applies the NotNil predicate on the "scope_id" field.

func ScopeName added in v1.5.0

func ScopeName(v string) predicate.Template

ScopeName applies equality check predicate on the "scope_name" field. It's identical to ScopeNameEQ.

func ScopeNameContains added in v1.5.0

func ScopeNameContains(v string) predicate.Template

ScopeNameContains applies the Contains predicate on the "scope_name" field.

func ScopeNameContainsFold added in v1.5.0

func ScopeNameContainsFold(v string) predicate.Template

ScopeNameContainsFold applies the ContainsFold predicate on the "scope_name" field.

func ScopeNameEQ added in v1.5.0

func ScopeNameEQ(v string) predicate.Template

ScopeNameEQ applies the EQ predicate on the "scope_name" field.

func ScopeNameEqualFold added in v1.5.0

func ScopeNameEqualFold(v string) predicate.Template

ScopeNameEqualFold applies the EqualFold predicate on the "scope_name" field.

func ScopeNameGT added in v1.5.0

func ScopeNameGT(v string) predicate.Template

ScopeNameGT applies the GT predicate on the "scope_name" field.

func ScopeNameGTE added in v1.5.0

func ScopeNameGTE(v string) predicate.Template

ScopeNameGTE applies the GTE predicate on the "scope_name" field.

func ScopeNameHasPrefix added in v1.5.0

func ScopeNameHasPrefix(v string) predicate.Template

ScopeNameHasPrefix applies the HasPrefix predicate on the "scope_name" field.

func ScopeNameHasSuffix added in v1.5.0

func ScopeNameHasSuffix(v string) predicate.Template

ScopeNameHasSuffix applies the HasSuffix predicate on the "scope_name" field.

func ScopeNameIn added in v1.5.0

func ScopeNameIn(vs ...string) predicate.Template

ScopeNameIn applies the In predicate on the "scope_name" field.

func ScopeNameIsNil added in v1.5.0

func ScopeNameIsNil() predicate.Template

ScopeNameIsNil applies the IsNil predicate on the "scope_name" field.

func ScopeNameLT added in v1.5.0

func ScopeNameLT(v string) predicate.Template

ScopeNameLT applies the LT predicate on the "scope_name" field.

func ScopeNameLTE added in v1.5.0

func ScopeNameLTE(v string) predicate.Template

ScopeNameLTE applies the LTE predicate on the "scope_name" field.

func ScopeNameNEQ added in v1.5.0

func ScopeNameNEQ(v string) predicate.Template

ScopeNameNEQ applies the NEQ predicate on the "scope_name" field.

func ScopeNameNotIn added in v1.5.0

func ScopeNameNotIn(vs ...string) predicate.Template

ScopeNameNotIn applies the NotIn predicate on the "scope_name" field.

func ScopeNameNotNil added in v1.5.0

func ScopeNameNotNil() predicate.Template

ScopeNameNotNil applies the NotNil predicate on the "scope_name" field.

func SystemInternalID added in v0.34.0

func SystemInternalID(v string) predicate.Template

SystemInternalID applies equality check predicate on the "system_internal_id" field. It's identical to SystemInternalIDEQ.

func SystemInternalIDContains added in v0.34.0

func SystemInternalIDContains(v string) predicate.Template

SystemInternalIDContains applies the Contains predicate on the "system_internal_id" field.

func SystemInternalIDContainsFold added in v0.34.0

func SystemInternalIDContainsFold(v string) predicate.Template

SystemInternalIDContainsFold applies the ContainsFold predicate on the "system_internal_id" field.

func SystemInternalIDEQ added in v0.34.0

func SystemInternalIDEQ(v string) predicate.Template

SystemInternalIDEQ applies the EQ predicate on the "system_internal_id" field.

func SystemInternalIDEqualFold added in v0.34.0

func SystemInternalIDEqualFold(v string) predicate.Template

SystemInternalIDEqualFold applies the EqualFold predicate on the "system_internal_id" field.

func SystemInternalIDGT added in v0.34.0

func SystemInternalIDGT(v string) predicate.Template

SystemInternalIDGT applies the GT predicate on the "system_internal_id" field.

func SystemInternalIDGTE added in v0.34.0

func SystemInternalIDGTE(v string) predicate.Template

SystemInternalIDGTE applies the GTE predicate on the "system_internal_id" field.

func SystemInternalIDHasPrefix added in v0.34.0

func SystemInternalIDHasPrefix(v string) predicate.Template

SystemInternalIDHasPrefix applies the HasPrefix predicate on the "system_internal_id" field.

func SystemInternalIDHasSuffix added in v0.34.0

func SystemInternalIDHasSuffix(v string) predicate.Template

SystemInternalIDHasSuffix applies the HasSuffix predicate on the "system_internal_id" field.

func SystemInternalIDIn added in v0.34.0

func SystemInternalIDIn(vs ...string) predicate.Template

SystemInternalIDIn applies the In predicate on the "system_internal_id" field.

func SystemInternalIDIsNil added in v0.34.0

func SystemInternalIDIsNil() predicate.Template

SystemInternalIDIsNil applies the IsNil predicate on the "system_internal_id" field.

func SystemInternalIDLT added in v0.34.0

func SystemInternalIDLT(v string) predicate.Template

SystemInternalIDLT applies the LT predicate on the "system_internal_id" field.

func SystemInternalIDLTE added in v0.34.0

func SystemInternalIDLTE(v string) predicate.Template

SystemInternalIDLTE applies the LTE predicate on the "system_internal_id" field.

func SystemInternalIDNEQ added in v0.34.0

func SystemInternalIDNEQ(v string) predicate.Template

SystemInternalIDNEQ applies the NEQ predicate on the "system_internal_id" field.

func SystemInternalIDNotIn added in v0.34.0

func SystemInternalIDNotIn(vs ...string) predicate.Template

SystemInternalIDNotIn applies the NotIn predicate on the "system_internal_id" field.

func SystemInternalIDNotNil added in v0.34.0

func SystemInternalIDNotNil() predicate.Template

SystemInternalIDNotNil applies the NotNil predicate on the "system_internal_id" field.

func SystemOwned added in v0.34.0

func SystemOwned(v bool) predicate.Template

SystemOwned applies equality check predicate on the "system_owned" field. It's identical to SystemOwnedEQ.

func SystemOwnedEQ added in v0.34.0

func SystemOwnedEQ(v bool) predicate.Template

SystemOwnedEQ applies the EQ predicate on the "system_owned" field.

func SystemOwnedIsNil added in v0.34.0

func SystemOwnedIsNil() predicate.Template

SystemOwnedIsNil applies the IsNil predicate on the "system_owned" field.

func SystemOwnedNEQ added in v0.34.0

func SystemOwnedNEQ(v bool) predicate.Template

SystemOwnedNEQ applies the NEQ predicate on the "system_owned" field.

func SystemOwnedNotNil added in v0.34.0

func SystemOwnedNotNil() predicate.Template

SystemOwnedNotNil applies the NotNil predicate on the "system_owned" field.

func TagsIsNil

func TagsIsNil() predicate.Template

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

func TagsNotNil

func TagsNotNil() predicate.Template

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

func TemplateTypeEQ

func TemplateTypeEQ(v enums.DocumentType) predicate.Template

TemplateTypeEQ applies the EQ predicate on the "template_type" field.

func TemplateTypeIn

func TemplateTypeIn(vs ...enums.DocumentType) predicate.Template

TemplateTypeIn applies the In predicate on the "template_type" field.

func TemplateTypeNEQ

func TemplateTypeNEQ(v enums.DocumentType) predicate.Template

TemplateTypeNEQ applies the NEQ predicate on the "template_type" field.

func TemplateTypeNotIn

func TemplateTypeNotIn(vs ...enums.DocumentType) predicate.Template

TemplateTypeNotIn applies the NotIn predicate on the "template_type" field.

func TemplateTypeValidator

func TemplateTypeValidator(tt enums.DocumentType) error

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

func TrustCenterID added in v0.34.1

func TrustCenterID(v string) predicate.Template

TrustCenterID applies equality check predicate on the "trust_center_id" field. It's identical to TrustCenterIDEQ.

func TrustCenterIDContains added in v0.34.1

func TrustCenterIDContains(v string) predicate.Template

TrustCenterIDContains applies the Contains predicate on the "trust_center_id" field.

func TrustCenterIDContainsFold added in v0.34.1

func TrustCenterIDContainsFold(v string) predicate.Template

TrustCenterIDContainsFold applies the ContainsFold predicate on the "trust_center_id" field.

func TrustCenterIDEQ added in v0.34.1

func TrustCenterIDEQ(v string) predicate.Template

TrustCenterIDEQ applies the EQ predicate on the "trust_center_id" field.

func TrustCenterIDEqualFold added in v0.34.1

func TrustCenterIDEqualFold(v string) predicate.Template

TrustCenterIDEqualFold applies the EqualFold predicate on the "trust_center_id" field.

func TrustCenterIDGT added in v0.34.1

func TrustCenterIDGT(v string) predicate.Template

TrustCenterIDGT applies the GT predicate on the "trust_center_id" field.

func TrustCenterIDGTE added in v0.34.1

func TrustCenterIDGTE(v string) predicate.Template

TrustCenterIDGTE applies the GTE predicate on the "trust_center_id" field.

func TrustCenterIDHasPrefix added in v0.34.1

func TrustCenterIDHasPrefix(v string) predicate.Template

TrustCenterIDHasPrefix applies the HasPrefix predicate on the "trust_center_id" field.

func TrustCenterIDHasSuffix added in v0.34.1

func TrustCenterIDHasSuffix(v string) predicate.Template

TrustCenterIDHasSuffix applies the HasSuffix predicate on the "trust_center_id" field.

func TrustCenterIDIn added in v0.34.1

func TrustCenterIDIn(vs ...string) predicate.Template

TrustCenterIDIn applies the In predicate on the "trust_center_id" field.

func TrustCenterIDIsNil added in v0.34.1

func TrustCenterIDIsNil() predicate.Template

TrustCenterIDIsNil applies the IsNil predicate on the "trust_center_id" field.

func TrustCenterIDLT added in v0.34.1

func TrustCenterIDLT(v string) predicate.Template

TrustCenterIDLT applies the LT predicate on the "trust_center_id" field.

func TrustCenterIDLTE added in v0.34.1

func TrustCenterIDLTE(v string) predicate.Template

TrustCenterIDLTE applies the LTE predicate on the "trust_center_id" field.

func TrustCenterIDNEQ added in v0.34.1

func TrustCenterIDNEQ(v string) predicate.Template

TrustCenterIDNEQ applies the NEQ predicate on the "trust_center_id" field.

func TrustCenterIDNotIn added in v0.34.1

func TrustCenterIDNotIn(vs ...string) predicate.Template

TrustCenterIDNotIn applies the NotIn predicate on the "trust_center_id" field.

func TrustCenterIDNotNil added in v0.34.1

func TrustCenterIDNotNil() predicate.Template

TrustCenterIDNotNil applies the NotNil predicate on the "trust_center_id" field.

func UischemaIsNil

func UischemaIsNil() predicate.Template

UischemaIsNil applies the IsNil predicate on the "uischema" field.

func UischemaNotNil

func UischemaNotNil() predicate.Template

UischemaNotNil applies the NotNil predicate on the "uischema" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Template

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Template

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Template

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Template

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Template

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Template

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Template

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Template

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Template

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

func UpdatedBy

func UpdatedBy(v string) predicate.Template

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.Template

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Template

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Template

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Template

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.Template

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Template

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Template

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Template

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Template

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.Template

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Template

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Template

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Template

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

func ByAssessments added in v0.46.3

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

ByAssessments orders the results by assessments terms.

func ByAssessmentsCount added in v0.46.3

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

ByAssessmentsCount orders the results by assessments count.

func ByCampaigns added in v1.5.0

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

ByCampaigns orders the results by campaigns terms.

func ByCampaignsCount added in v1.5.0

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

ByCampaignsCount orders the results by campaigns 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 ByDescription

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

ByDescription orders the results by the description field.

func ByDocuments

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

ByDocuments orders the results by documents terms.

func ByDocumentsCount

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

ByDocumentsCount orders the results by documents count.

func ByEnvironmentField added in v1.5.0

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

ByEnvironmentField orders the results by environment field.

func ByEnvironmentID added in v1.5.0

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

ByEnvironmentID orders the results by the environment_id field.

func ByEnvironmentName added in v1.5.0

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

ByEnvironmentName orders the results by the environment_name field.

func ByFiles added in v0.3.0

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

ByFiles orders the results by files terms.

func ByFilesCount added in v0.3.0

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

ByFilesCount orders the results by files count.

func ByID

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

ByID orders the results by the id field.

func ByIdentityHolders added in v1.5.0

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

ByIdentityHolders orders the results by identity_holders terms.

func ByIdentityHoldersCount added in v1.5.0

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

ByIdentityHoldersCount orders the results by identity_holders count.

func ByInternalNotes added in v0.34.0

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

ByInternalNotes orders the results by the internal_notes field.

func ByKind added in v0.32.0

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

ByKind orders the results by the kind field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByScopeField added in v1.5.0

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

ByScopeField orders the results by scope field.

func ByScopeID added in v1.5.0

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

ByScopeID orders the results by the scope_id field.

func ByScopeName added in v1.5.0

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

ByScopeName orders the results by the scope_name field.

func BySystemInternalID added in v0.34.0

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

BySystemInternalID orders the results by the system_internal_id field.

func BySystemOwned added in v0.34.0

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

BySystemOwned orders the results by the system_owned field.

func ByTemplateType

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

ByTemplateType orders the results by the template_type field.

func ByTrustCenterField added in v0.34.1

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

ByTrustCenterField orders the results by trust_center field.

func ByTrustCenterID added in v0.34.1

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

ByTrustCenterID orders the results by the trust_center_id 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.

Jump to

Keyboard shortcuts

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