Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Task) predicate.Task
- func Completed(v time.Time) predicate.Task
- func CompletedEQ(v time.Time) predicate.Task
- func CompletedGT(v time.Time) predicate.Task
- func CompletedGTE(v time.Time) predicate.Task
- func CompletedIn(vs ...time.Time) predicate.Task
- func CompletedIsNil() predicate.Task
- func CompletedLT(v time.Time) predicate.Task
- func CompletedLTE(v time.Time) predicate.Task
- func CompletedNEQ(v time.Time) predicate.Task
- func CompletedNotIn(vs ...time.Time) predicate.Task
- func CompletedNotNil() predicate.Task
- func CreatedAt(v time.Time) predicate.Task
- func CreatedAtEQ(v time.Time) predicate.Task
- func CreatedAtGT(v time.Time) predicate.Task
- func CreatedAtGTE(v time.Time) predicate.Task
- func CreatedAtIn(vs ...time.Time) predicate.Task
- func CreatedAtIsNil() predicate.Task
- func CreatedAtLT(v time.Time) predicate.Task
- func CreatedAtLTE(v time.Time) predicate.Task
- func CreatedAtNEQ(v time.Time) predicate.Task
- func CreatedAtNotIn(vs ...time.Time) predicate.Task
- func CreatedAtNotNil() predicate.Task
- func CreatedBy(v string) predicate.Task
- func CreatedByContains(v string) predicate.Task
- func CreatedByContainsFold(v string) predicate.Task
- func CreatedByEQ(v string) predicate.Task
- func CreatedByEqualFold(v string) predicate.Task
- func CreatedByGT(v string) predicate.Task
- func CreatedByGTE(v string) predicate.Task
- func CreatedByHasPrefix(v string) predicate.Task
- func CreatedByHasSuffix(v string) predicate.Task
- func CreatedByIn(vs ...string) predicate.Task
- func CreatedByIsNil() predicate.Task
- func CreatedByLT(v string) predicate.Task
- func CreatedByLTE(v string) predicate.Task
- func CreatedByNEQ(v string) predicate.Task
- func CreatedByNotIn(vs ...string) predicate.Task
- func CreatedByNotNil() predicate.Task
- func DeletedAt(v time.Time) predicate.Task
- func DeletedAtEQ(v time.Time) predicate.Task
- func DeletedAtGT(v time.Time) predicate.Task
- func DeletedAtGTE(v time.Time) predicate.Task
- func DeletedAtIn(vs ...time.Time) predicate.Task
- func DeletedAtIsNil() predicate.Task
- func DeletedAtLT(v time.Time) predicate.Task
- func DeletedAtLTE(v time.Time) predicate.Task
- func DeletedAtNEQ(v time.Time) predicate.Task
- func DeletedAtNotIn(vs ...time.Time) predicate.Task
- func DeletedAtNotNil() predicate.Task
- func DeletedBy(v string) predicate.Task
- func DeletedByContains(v string) predicate.Task
- func DeletedByContainsFold(v string) predicate.Task
- func DeletedByEQ(v string) predicate.Task
- func DeletedByEqualFold(v string) predicate.Task
- func DeletedByGT(v string) predicate.Task
- func DeletedByGTE(v string) predicate.Task
- func DeletedByHasPrefix(v string) predicate.Task
- func DeletedByHasSuffix(v string) predicate.Task
- func DeletedByIn(vs ...string) predicate.Task
- func DeletedByIsNil() predicate.Task
- func DeletedByLT(v string) predicate.Task
- func DeletedByLTE(v string) predicate.Task
- func DeletedByNEQ(v string) predicate.Task
- func DeletedByNotIn(vs ...string) predicate.Task
- func DeletedByNotNil() predicate.Task
- func Description(v string) predicate.Task
- func DescriptionContains(v string) predicate.Task
- func DescriptionContainsFold(v string) predicate.Task
- func DescriptionEQ(v string) predicate.Task
- func DescriptionEqualFold(v string) predicate.Task
- func DescriptionGT(v string) predicate.Task
- func DescriptionGTE(v string) predicate.Task
- func DescriptionHasPrefix(v string) predicate.Task
- func DescriptionHasSuffix(v string) predicate.Task
- func DescriptionIn(vs ...string) predicate.Task
- func DescriptionIsNil() predicate.Task
- func DescriptionLT(v string) predicate.Task
- func DescriptionLTE(v string) predicate.Task
- func DescriptionNEQ(v string) predicate.Task
- func DescriptionNotIn(vs ...string) predicate.Task
- func DescriptionNotNil() predicate.Task
- func DetailsIsNil() predicate.Task
- func DetailsNotNil() predicate.Task
- func Due(v time.Time) predicate.Task
- func DueEQ(v time.Time) predicate.Task
- func DueGT(v time.Time) predicate.Task
- func DueGTE(v time.Time) predicate.Task
- func DueIn(vs ...time.Time) predicate.Task
- func DueIsNil() predicate.Task
- func DueLT(v time.Time) predicate.Task
- func DueLTE(v time.Time) predicate.Task
- func DueNEQ(v time.Time) predicate.Task
- func DueNotIn(vs ...time.Time) predicate.Task
- func DueNotNil() predicate.Task
- func HasAssignee() predicate.Task
- func HasAssigneeWith(preds ...predicate.User) predicate.Task
- func HasAssigner() predicate.Task
- func HasAssignerWith(preds ...predicate.User) predicate.Task
- func HasControl() predicate.Task
- func HasControlObjective() predicate.Task
- func HasControlObjectiveWith(preds ...predicate.ControlObjective) predicate.Task
- func HasControlWith(preds ...predicate.Control) predicate.Task
- func HasGroup() predicate.Task
- func HasGroupWith(preds ...predicate.Group) predicate.Task
- func HasOrganization() predicate.Task
- func HasOrganizationWith(preds ...predicate.Organization) predicate.Task
- func HasPolicy() predicate.Task
- func HasPolicyWith(preds ...predicate.InternalPolicy) predicate.Task
- func HasProcedure() predicate.Task
- func HasProcedureWith(preds ...predicate.Procedure) predicate.Task
- func HasProgram() predicate.Task
- func HasProgramWith(preds ...predicate.Program) predicate.Task
- func HasSubcontrol() predicate.Task
- func HasSubcontrolWith(preds ...predicate.Subcontrol) predicate.Task
- func ID(id string) predicate.Task
- func IDContainsFold(id string) predicate.Task
- func IDEQ(id string) predicate.Task
- func IDEqualFold(id string) predicate.Task
- func IDGT(id string) predicate.Task
- func IDGTE(id string) predicate.Task
- func IDIn(ids ...string) predicate.Task
- func IDLT(id string) predicate.Task
- func IDLTE(id string) predicate.Task
- func IDNEQ(id string) predicate.Task
- func IDNotIn(ids ...string) predicate.Task
- func MappingID(v string) predicate.Task
- func MappingIDContains(v string) predicate.Task
- func MappingIDContainsFold(v string) predicate.Task
- func MappingIDEQ(v string) predicate.Task
- func MappingIDEqualFold(v string) predicate.Task
- func MappingIDGT(v string) predicate.Task
- func MappingIDGTE(v string) predicate.Task
- func MappingIDHasPrefix(v string) predicate.Task
- func MappingIDHasSuffix(v string) predicate.Task
- func MappingIDIn(vs ...string) predicate.Task
- func MappingIDLT(v string) predicate.Task
- func MappingIDLTE(v string) predicate.Task
- func MappingIDNEQ(v string) predicate.Task
- func MappingIDNotIn(vs ...string) predicate.Task
- func Not(p predicate.Task) predicate.Task
- func Or(predicates ...predicate.Task) predicate.Task
- func StatusEQ(v enums.TaskStatus) predicate.Task
- func StatusIn(vs ...enums.TaskStatus) predicate.Task
- func StatusNEQ(v enums.TaskStatus) predicate.Task
- func StatusNotIn(vs ...enums.TaskStatus) predicate.Task
- func StatusValidator(s enums.TaskStatus) error
- func TagsIsNil() predicate.Task
- func TagsNotNil() predicate.Task
- func Title(v string) predicate.Task
- func TitleContains(v string) predicate.Task
- func TitleContainsFold(v string) predicate.Task
- func TitleEQ(v string) predicate.Task
- func TitleEqualFold(v string) predicate.Task
- func TitleGT(v string) predicate.Task
- func TitleGTE(v string) predicate.Task
- func TitleHasPrefix(v string) predicate.Task
- func TitleHasSuffix(v string) predicate.Task
- func TitleIn(vs ...string) predicate.Task
- func TitleLT(v string) predicate.Task
- func TitleLTE(v string) predicate.Task
- func TitleNEQ(v string) predicate.Task
- func TitleNotIn(vs ...string) predicate.Task
- func UpdatedAt(v time.Time) predicate.Task
- func UpdatedAtEQ(v time.Time) predicate.Task
- func UpdatedAtGT(v time.Time) predicate.Task
- func UpdatedAtGTE(v time.Time) predicate.Task
- func UpdatedAtIn(vs ...time.Time) predicate.Task
- func UpdatedAtIsNil() predicate.Task
- func UpdatedAtLT(v time.Time) predicate.Task
- func UpdatedAtLTE(v time.Time) predicate.Task
- func UpdatedAtNEQ(v time.Time) predicate.Task
- func UpdatedAtNotIn(vs ...time.Time) predicate.Task
- func UpdatedAtNotNil() predicate.Task
- func UpdatedBy(v string) predicate.Task
- func UpdatedByContains(v string) predicate.Task
- func UpdatedByContainsFold(v string) predicate.Task
- func UpdatedByEQ(v string) predicate.Task
- func UpdatedByEqualFold(v string) predicate.Task
- func UpdatedByGT(v string) predicate.Task
- func UpdatedByGTE(v string) predicate.Task
- func UpdatedByHasPrefix(v string) predicate.Task
- func UpdatedByHasSuffix(v string) predicate.Task
- func UpdatedByIn(vs ...string) predicate.Task
- func UpdatedByIsNil() predicate.Task
- func UpdatedByLT(v string) predicate.Task
- func UpdatedByLTE(v string) predicate.Task
- func UpdatedByNEQ(v string) predicate.Task
- func UpdatedByNotIn(vs ...string) predicate.Task
- func UpdatedByNotNil() predicate.Task
- func ValidColumn(column string) bool
- type OrderOption
- func ByAssigneeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAssignerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCompleted(opts ...sql.OrderTermOption) OrderOption
- func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlCount(opts ...sql.OrderTermOption) OrderOption
- func ByControlObjective(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlObjectiveCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDue(opts ...sql.OrderTermOption) OrderOption
- func ByGroup(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganization(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrganizationCount(opts ...sql.OrderTermOption) OrderOption
- func ByPolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPolicyCount(opts ...sql.OrderTermOption) OrderOption
- func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption
- func ByProgram(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProgramCount(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubcontrol(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubcontrolCount(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the task type in the database. Label = "task" // 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" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // 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" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldDetails holds the string denoting the details field in the database. FieldDetails = "details" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldDue holds the string denoting the due field in the database. FieldDue = "due" // FieldCompleted holds the string denoting the completed field in the database. FieldCompleted = "completed" // EdgeAssigner holds the string denoting the assigner edge name in mutations. EdgeAssigner = "assigner" // EdgeAssignee holds the string denoting the assignee edge name in mutations. EdgeAssignee = "assignee" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgePolicy holds the string denoting the policy edge name in mutations. EdgePolicy = "policy" // EdgeProcedure holds the string denoting the procedure edge name in mutations. EdgeProcedure = "procedure" // EdgeControl holds the string denoting the control edge name in mutations. EdgeControl = "control" // EdgeControlObjective holds the string denoting the control_objective edge name in mutations. EdgeControlObjective = "control_objective" // EdgeSubcontrol holds the string denoting the subcontrol edge name in mutations. EdgeSubcontrol = "subcontrol" // EdgeProgram holds the string denoting the program edge name in mutations. EdgeProgram = "program" // Table holds the table name of the task in the database. Table = "tasks" // AssignerTable is the table that holds the assigner relation/edge. AssignerTable = "tasks" // AssignerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AssignerInverseTable = "users" // AssignerColumn is the table column denoting the assigner relation/edge. AssignerColumn = "user_assigner_tasks" // AssigneeTable is the table that holds the assignee relation/edge. AssigneeTable = "tasks" // AssigneeInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AssigneeInverseTable = "users" // AssigneeColumn is the table column denoting the assignee relation/edge. AssigneeColumn = "user_assignee_tasks" // OrganizationTable is the table that holds the organization relation/edge. The primary key declared below. OrganizationTable = "organization_tasks" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "organizations" // GroupTable is the table that holds the group relation/edge. The primary key declared below. GroupTable = "group_tasks" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // PolicyTable is the table that holds the policy relation/edge. The primary key declared below. PolicyTable = "internal_policy_tasks" // PolicyInverseTable is the table name for the InternalPolicy entity. // It exists in this package in order to avoid circular dependency with the "internalpolicy" package. PolicyInverseTable = "internal_policies" // ProcedureTable is the table that holds the procedure relation/edge. The primary key declared below. ProcedureTable = "procedure_tasks" // ProcedureInverseTable is the table name for the Procedure entity. // It exists in this package in order to avoid circular dependency with the "procedure" package. ProcedureInverseTable = "procedures" // ControlTable is the table that holds the control relation/edge. The primary key declared below. ControlTable = "control_tasks" // ControlInverseTable is the table name for the Control entity. // It exists in this package in order to avoid circular dependency with the "control" package. ControlInverseTable = "controls" // ControlObjectiveTable is the table that holds the control_objective relation/edge. The primary key declared below. ControlObjectiveTable = "control_objective_tasks" // ControlObjectiveInverseTable is the table name for the ControlObjective entity. // It exists in this package in order to avoid circular dependency with the "controlobjective" package. ControlObjectiveInverseTable = "control_objectives" // SubcontrolTable is the table that holds the subcontrol relation/edge. The primary key declared below. SubcontrolTable = "subcontrol_tasks" // SubcontrolInverseTable is the table name for the Subcontrol entity. // It exists in this package in order to avoid circular dependency with the "subcontrol" package. SubcontrolInverseTable = "subcontrols" // ProgramTable is the table that holds the program relation/edge. The primary key declared below. ProgramTable = "program_tasks" // ProgramInverseTable is the table name for the Program entity. // It exists in this package in order to avoid circular dependency with the "program" package. ProgramInverseTable = "programs" )
const DefaultStatus enums.TaskStatus = "OPEN"
Variables ¶
var ( // OrganizationPrimaryKey and OrganizationColumn2 are the table columns denoting the // primary key for the organization relation (M2M). OrganizationPrimaryKey = []string{"organization_id", "task_id"} // GroupPrimaryKey and GroupColumn2 are the table columns denoting the // primary key for the group relation (M2M). GroupPrimaryKey = []string{"group_id", "task_id"} // PolicyPrimaryKey and PolicyColumn2 are the table columns denoting the // primary key for the policy relation (M2M). PolicyPrimaryKey = []string{"internal_policy_id", "task_id"} // ProcedurePrimaryKey and ProcedureColumn2 are the table columns denoting the // primary key for the procedure relation (M2M). ProcedurePrimaryKey = []string{"procedure_id", "task_id"} // ControlPrimaryKey and ControlColumn2 are the table columns denoting the // primary key for the control relation (M2M). ControlPrimaryKey = []string{"control_id", "task_id"} // ControlObjectivePrimaryKey and ControlObjectiveColumn2 are the table columns denoting the // primary key for the control_objective relation (M2M). ControlObjectivePrimaryKey = []string{"control_objective_id", "task_id"} // SubcontrolPrimaryKey and SubcontrolColumn2 are the table columns denoting the // primary key for the subcontrol relation (M2M). SubcontrolPrimaryKey = []string{"subcontrol_id", "task_id"} // ProgramPrimaryKey and ProgramColumn2 are the table columns denoting the // primary key for the program relation (M2M). ProgramPrimaryKey = []string{"program_id", "task_id"} )
var ( Hooks [7]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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator 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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldMappingID, FieldDeletedAt, FieldDeletedBy, FieldTags, FieldTitle, FieldDescription, FieldDetails, FieldStatus, FieldDue, FieldCompleted, }
Columns holds all SQL columns for task fields.
var ForeignKeys = []string{
"user_assigner_tasks",
"user_assignee_tasks",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "tasks" table and are not defined as standalone fields in the schema.
Functions ¶
func Completed ¶
Completed applies equality check predicate on the "completed" field. It's identical to CompletedEQ.
func CompletedEQ ¶
CompletedEQ applies the EQ predicate on the "completed" field.
func CompletedGT ¶
CompletedGT applies the GT predicate on the "completed" field.
func CompletedGTE ¶
CompletedGTE applies the GTE predicate on the "completed" field.
func CompletedIn ¶
CompletedIn applies the In predicate on the "completed" field.
func CompletedIsNil ¶
CompletedIsNil applies the IsNil predicate on the "completed" field.
func CompletedLT ¶
CompletedLT applies the LT predicate on the "completed" field.
func CompletedLTE ¶
CompletedLTE applies the LTE predicate on the "completed" field.
func CompletedNEQ ¶
CompletedNEQ applies the NEQ predicate on the "completed" field.
func CompletedNotIn ¶
CompletedNotIn applies the NotIn predicate on the "completed" field.
func CompletedNotNil ¶
CompletedNotNil applies the NotNil predicate on the "completed" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DetailsIsNil ¶
DetailsIsNil applies the IsNil predicate on the "details" field.
func DetailsNotNil ¶
DetailsNotNil applies the NotNil predicate on the "details" field.
func HasAssignee ¶
HasAssignee applies the HasEdge predicate on the "assignee" edge.
func HasAssigneeWith ¶
HasAssigneeWith applies the HasEdge predicate on the "assignee" edge with a given conditions (other predicates).
func HasAssigner ¶
HasAssigner applies the HasEdge predicate on the "assigner" edge.
func HasAssignerWith ¶
HasAssignerWith applies the HasEdge predicate on the "assigner" edge with a given conditions (other predicates).
func HasControl ¶
HasControl applies the HasEdge predicate on the "control" edge.
func HasControlObjective ¶
HasControlObjective applies the HasEdge predicate on the "control_objective" edge.
func HasControlObjectiveWith ¶
func HasControlObjectiveWith(preds ...predicate.ControlObjective) predicate.Task
HasControlObjectiveWith applies the HasEdge predicate on the "control_objective" edge with a given conditions (other predicates).
func HasControlWith ¶
HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates).
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasOrganization ¶
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.Task
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasPolicyWith ¶
func HasPolicyWith(preds ...predicate.InternalPolicy) predicate.Task
HasPolicyWith applies the HasEdge predicate on the "policy" edge with a given conditions (other predicates).
func HasProcedure ¶
HasProcedure applies the HasEdge predicate on the "procedure" edge.
func HasProcedureWith ¶
HasProcedureWith applies the HasEdge predicate on the "procedure" edge with a given conditions (other predicates).
func HasProgram ¶ added in v0.3.5
HasProgram applies the HasEdge predicate on the "program" edge.
func HasProgramWith ¶ added in v0.3.5
HasProgramWith applies the HasEdge predicate on the "program" edge with a given conditions (other predicates).
func HasSubcontrol ¶
HasSubcontrol applies the HasEdge predicate on the "subcontrol" edge.
func HasSubcontrolWith ¶
func HasSubcontrolWith(preds ...predicate.Subcontrol) predicate.Task
HasSubcontrolWith applies the HasEdge predicate on the "subcontrol" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func StatusEQ ¶
func StatusEQ(v enums.TaskStatus) predicate.Task
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.TaskStatus) predicate.Task
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.TaskStatus) predicate.Task
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.TaskStatus) predicate.Task
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s enums.TaskStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Task queries.
func ByAssigneeField ¶
func ByAssigneeField(field string, opts ...sql.OrderTermOption) OrderOption
ByAssigneeField orders the results by assignee field.
func ByAssignerField ¶
func ByAssignerField(field string, opts ...sql.OrderTermOption) OrderOption
ByAssignerField orders the results by assigner field.
func ByCompleted ¶
func ByCompleted(opts ...sql.OrderTermOption) OrderOption
ByCompleted orders the results by the completed field.
func ByControl ¶
func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControl orders the results by control terms.
func ByControlCount ¶
func ByControlCount(opts ...sql.OrderTermOption) OrderOption
ByControlCount orders the results by control count.
func ByControlObjective ¶
func ByControlObjective(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControlObjective orders the results by control_objective terms.
func ByControlObjectiveCount ¶
func ByControlObjectiveCount(opts ...sql.OrderTermOption) OrderOption
ByControlObjectiveCount orders the results by control_objective 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 ByDue ¶
func ByDue(opts ...sql.OrderTermOption) OrderOption
ByDue orders the results by the due field.
func ByGroup ¶
func ByGroup(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroup orders the results by group terms.
func ByGroupCount ¶
func ByGroupCount(opts ...sql.OrderTermOption) OrderOption
ByGroupCount orders the results by group count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByOrganization ¶
func ByOrganization(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrganization orders the results by organization terms.
func ByOrganizationCount ¶
func ByOrganizationCount(opts ...sql.OrderTermOption) OrderOption
ByOrganizationCount orders the results by organization count.
func ByPolicy ¶
func ByPolicy(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPolicy orders the results by policy terms.
func ByPolicyCount ¶
func ByPolicyCount(opts ...sql.OrderTermOption) OrderOption
ByPolicyCount orders the results by policy count.
func ByProcedure ¶
func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProcedure orders the results by procedure terms.
func ByProcedureCount ¶
func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption
ByProcedureCount orders the results by procedure count.
func ByProgram ¶ added in v0.3.5
func ByProgram(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProgram orders the results by program terms.
func ByProgramCount ¶ added in v0.3.5
func ByProgramCount(opts ...sql.OrderTermOption) OrderOption
ByProgramCount orders the results by program count.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySubcontrol ¶
func BySubcontrol(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubcontrol orders the results by subcontrol terms.
func BySubcontrolCount ¶
func BySubcontrolCount(opts ...sql.OrderTermOption) OrderOption
BySubcontrolCount orders the results by subcontrol count.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title 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.