Documentation
¶
Index ¶
- Constants
- Variables
- func Actions(v string) predicate.Rule
- func ActionsContains(v string) predicate.Rule
- func ActionsContainsFold(v string) predicate.Rule
- func ActionsEQ(v string) predicate.Rule
- func ActionsEqualFold(v string) predicate.Rule
- func ActionsGT(v string) predicate.Rule
- func ActionsGTE(v string) predicate.Rule
- func ActionsHasPrefix(v string) predicate.Rule
- func ActionsHasSuffix(v string) predicate.Rule
- func ActionsIn(vs ...string) predicate.Rule
- func ActionsLT(v string) predicate.Rule
- func ActionsLTE(v string) predicate.Rule
- func ActionsNEQ(v string) predicate.Rule
- func ActionsNotIn(vs ...string) predicate.Rule
- func ActivatedAt(v time.Time) predicate.Rule
- func ActivatedAtEQ(v time.Time) predicate.Rule
- func ActivatedAtGT(v time.Time) predicate.Rule
- func ActivatedAtGTE(v time.Time) predicate.Rule
- func ActivatedAtIn(vs ...time.Time) predicate.Rule
- func ActivatedAtIsNil() predicate.Rule
- func ActivatedAtLT(v time.Time) predicate.Rule
- func ActivatedAtLTE(v time.Time) predicate.Rule
- func ActivatedAtNEQ(v time.Time) predicate.Rule
- func ActivatedAtNotIn(vs ...time.Time) predicate.Rule
- func ActivatedAtNotNil() predicate.Rule
- func And(predicates ...predicate.Rule) predicate.Rule
- func Condition(v string) predicate.Rule
- func ConditionContains(v string) predicate.Rule
- func ConditionContainsFold(v string) predicate.Rule
- func ConditionEQ(v string) predicate.Rule
- func ConditionEqualFold(v string) predicate.Rule
- func ConditionGT(v string) predicate.Rule
- func ConditionGTE(v string) predicate.Rule
- func ConditionHasPrefix(v string) predicate.Rule
- func ConditionHasSuffix(v string) predicate.Rule
- func ConditionIn(vs ...string) predicate.Rule
- func ConditionIsNil() predicate.Rule
- func ConditionLT(v string) predicate.Rule
- func ConditionLTE(v string) predicate.Rule
- func ConditionNEQ(v string) predicate.Rule
- func ConditionNotIn(vs ...string) predicate.Rule
- func ConditionNotNil() predicate.Rule
- func CreatedAt(v time.Time) predicate.Rule
- func CreatedAtEQ(v time.Time) predicate.Rule
- func CreatedAtGT(v time.Time) predicate.Rule
- func CreatedAtGTE(v time.Time) predicate.Rule
- func CreatedAtIn(vs ...time.Time) predicate.Rule
- func CreatedAtLT(v time.Time) predicate.Rule
- func CreatedAtLTE(v time.Time) predicate.Rule
- func CreatedAtNEQ(v time.Time) predicate.Rule
- func CreatedAtNotIn(vs ...time.Time) predicate.Rule
- func DiscardedAt(v time.Time) predicate.Rule
- func DiscardedAtEQ(v time.Time) predicate.Rule
- func DiscardedAtGT(v time.Time) predicate.Rule
- func DiscardedAtGTE(v time.Time) predicate.Rule
- func DiscardedAtIn(vs ...time.Time) predicate.Rule
- func DiscardedAtIsNil() predicate.Rule
- func DiscardedAtLT(v time.Time) predicate.Rule
- func DiscardedAtLTE(v time.Time) predicate.Rule
- func DiscardedAtNEQ(v time.Time) predicate.Rule
- func DiscardedAtNotIn(vs ...time.Time) predicate.Rule
- func DiscardedAtNotNil() predicate.Rule
- func HasFirings() predicate.Rule
- func HasFiringsWith(preds ...predicate.RuleFiring) predicate.Rule
- func HasTriggers() predicate.Rule
- func HasTriggersWith(preds ...predicate.RuleTrigger) predicate.Rule
- func HasWorkspace() predicate.Rule
- func HasWorkspaceWith(preds ...predicate.Workspace) predicate.Rule
- func ID(id int64) predicate.Rule
- func IDEQ(id int64) predicate.Rule
- func IDGT(id int64) predicate.Rule
- func IDGTE(id int64) predicate.Rule
- func IDIn(ids ...int64) predicate.Rule
- func IDLT(id int64) predicate.Rule
- func IDLTE(id int64) predicate.Rule
- func IDNEQ(id int64) predicate.Rule
- func IDNotIn(ids ...int64) predicate.Rule
- func Name(v string) predicate.Rule
- func NameContains(v string) predicate.Rule
- func NameContainsFold(v string) predicate.Rule
- func NameEQ(v string) predicate.Rule
- func NameEqualFold(v string) predicate.Rule
- func NameGT(v string) predicate.Rule
- func NameGTE(v string) predicate.Rule
- func NameHasPrefix(v string) predicate.Rule
- func NameHasSuffix(v string) predicate.Rule
- func NameIn(vs ...string) predicate.Rule
- func NameLT(v string) predicate.Rule
- func NameLTE(v string) predicate.Rule
- func NameNEQ(v string) predicate.Rule
- func NameNotIn(vs ...string) predicate.Rule
- func Not(p predicate.Rule) predicate.Rule
- func Or(predicates ...predicate.Rule) predicate.Rule
- func StatusEQ(v Status) predicate.Rule
- func StatusIn(vs ...Status) predicate.Rule
- func StatusNEQ(v Status) predicate.Rule
- func StatusNotIn(vs ...Status) predicate.Rule
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Rule
- func UpdatedAtEQ(v time.Time) predicate.Rule
- func UpdatedAtGT(v time.Time) predicate.Rule
- func UpdatedAtGTE(v time.Time) predicate.Rule
- func UpdatedAtIn(vs ...time.Time) predicate.Rule
- func UpdatedAtLT(v time.Time) predicate.Rule
- func UpdatedAtLTE(v time.Time) predicate.Rule
- func UpdatedAtNEQ(v time.Time) predicate.Rule
- func UpdatedAtNotIn(vs ...time.Time) predicate.Rule
- func ValidColumn(column string) bool
- func WorkspaceID(v int64) predicate.Rule
- func WorkspaceIDEQ(v int64) predicate.Rule
- func WorkspaceIDIn(vs ...int64) predicate.Rule
- func WorkspaceIDNEQ(v int64) predicate.Rule
- func WorkspaceIDNotIn(vs ...int64) predicate.Rule
- type OrderOption
- func ByActions(opts ...sql.OrderTermOption) OrderOption
- func ByActivatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCondition(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDiscardedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFirings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFiringsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTriggers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTriggersCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the rule type in the database. Label = "rule" // 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" // FieldWorkspaceID holds the string denoting the workspace_id field in the database. FieldWorkspaceID = "workspace_id" // FieldDiscardedAt holds the string denoting the discarded_at field in the database. FieldDiscardedAt = "discarded_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldActivatedAt holds the string denoting the activated_at field in the database. FieldActivatedAt = "activated_at" // FieldCondition holds the string denoting the condition field in the database. FieldCondition = "condition" // FieldActions holds the string denoting the actions field in the database. FieldActions = "actions" // EdgeWorkspace holds the string denoting the workspace edge name in mutations. EdgeWorkspace = "workspace" // EdgeTriggers holds the string denoting the triggers edge name in mutations. EdgeTriggers = "triggers" // EdgeFirings holds the string denoting the firings edge name in mutations. EdgeFirings = "firings" // Table holds the table name of the rule in the database. Table = "rules" // WorkspaceTable is the table that holds the workspace relation/edge. WorkspaceTable = "rules" // WorkspaceInverseTable is the table name for the Workspace entity. // It exists in this package in order to avoid circular dependency with the "workspace" package. WorkspaceInverseTable = "workspaces" // WorkspaceColumn is the table column denoting the workspace relation/edge. WorkspaceColumn = "workspace_id" // TriggersTable is the table that holds the triggers relation/edge. TriggersTable = "rule_triggers" // TriggersInverseTable is the table name for the RuleTrigger entity. // It exists in this package in order to avoid circular dependency with the "ruletrigger" package. TriggersInverseTable = "rule_triggers" // TriggersColumn is the table column denoting the triggers relation/edge. TriggersColumn = "rule_id" // FiringsTable is the table that holds the firings relation/edge. FiringsTable = "rule_firings" // FiringsInverseTable is the table name for the RuleFiring entity. // It exists in this package in order to avoid circular dependency with the "rulefiring" package. FiringsInverseTable = "rule_firings" // FiringsColumn is the table column denoting the firings relation/edge. FiringsColumn = "rule_id" )
const DefaultStatus = StatusDraft
StatusDraft is the default value of the Status enum.
Variables ¶
var ( // 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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultActions holds the default value on creation for the "actions" field. DefaultActions string )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldWorkspaceID, FieldDiscardedAt, FieldName, FieldStatus, FieldActivatedAt, FieldCondition, FieldActions, }
Columns holds all SQL columns for rule fields.
Functions ¶
func Actions ¶
Actions applies equality check predicate on the "actions" field. It's identical to ActionsEQ.
func ActionsContains ¶
ActionsContains applies the Contains predicate on the "actions" field.
func ActionsContainsFold ¶
ActionsContainsFold applies the ContainsFold predicate on the "actions" field.
func ActionsEqualFold ¶
ActionsEqualFold applies the EqualFold predicate on the "actions" field.
func ActionsGTE ¶
ActionsGTE applies the GTE predicate on the "actions" field.
func ActionsHasPrefix ¶
ActionsHasPrefix applies the HasPrefix predicate on the "actions" field.
func ActionsHasSuffix ¶
ActionsHasSuffix applies the HasSuffix predicate on the "actions" field.
func ActionsLTE ¶
ActionsLTE applies the LTE predicate on the "actions" field.
func ActionsNEQ ¶
ActionsNEQ applies the NEQ predicate on the "actions" field.
func ActionsNotIn ¶
ActionsNotIn applies the NotIn predicate on the "actions" field.
func ActivatedAt ¶
ActivatedAt applies equality check predicate on the "activated_at" field. It's identical to ActivatedAtEQ.
func ActivatedAtEQ ¶
ActivatedAtEQ applies the EQ predicate on the "activated_at" field.
func ActivatedAtGT ¶
ActivatedAtGT applies the GT predicate on the "activated_at" field.
func ActivatedAtGTE ¶
ActivatedAtGTE applies the GTE predicate on the "activated_at" field.
func ActivatedAtIn ¶
ActivatedAtIn applies the In predicate on the "activated_at" field.
func ActivatedAtIsNil ¶
ActivatedAtIsNil applies the IsNil predicate on the "activated_at" field.
func ActivatedAtLT ¶
ActivatedAtLT applies the LT predicate on the "activated_at" field.
func ActivatedAtLTE ¶
ActivatedAtLTE applies the LTE predicate on the "activated_at" field.
func ActivatedAtNEQ ¶
ActivatedAtNEQ applies the NEQ predicate on the "activated_at" field.
func ActivatedAtNotIn ¶
ActivatedAtNotIn applies the NotIn predicate on the "activated_at" field.
func ActivatedAtNotNil ¶
ActivatedAtNotNil applies the NotNil predicate on the "activated_at" field.
func Condition ¶
Condition applies equality check predicate on the "condition" field. It's identical to ConditionEQ.
func ConditionContains ¶
ConditionContains applies the Contains predicate on the "condition" field.
func ConditionContainsFold ¶
ConditionContainsFold applies the ContainsFold predicate on the "condition" field.
func ConditionEQ ¶
ConditionEQ applies the EQ predicate on the "condition" field.
func ConditionEqualFold ¶
ConditionEqualFold applies the EqualFold predicate on the "condition" field.
func ConditionGT ¶
ConditionGT applies the GT predicate on the "condition" field.
func ConditionGTE ¶
ConditionGTE applies the GTE predicate on the "condition" field.
func ConditionHasPrefix ¶
ConditionHasPrefix applies the HasPrefix predicate on the "condition" field.
func ConditionHasSuffix ¶
ConditionHasSuffix applies the HasSuffix predicate on the "condition" field.
func ConditionIn ¶
ConditionIn applies the In predicate on the "condition" field.
func ConditionIsNil ¶
ConditionIsNil applies the IsNil predicate on the "condition" field.
func ConditionLT ¶
ConditionLT applies the LT predicate on the "condition" field.
func ConditionLTE ¶
ConditionLTE applies the LTE predicate on the "condition" field.
func ConditionNEQ ¶
ConditionNEQ applies the NEQ predicate on the "condition" field.
func ConditionNotIn ¶
ConditionNotIn applies the NotIn predicate on the "condition" field.
func ConditionNotNil ¶
ConditionNotNil applies the NotNil predicate on the "condition" 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 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 DiscardedAt ¶
DiscardedAt applies equality check predicate on the "discarded_at" field. It's identical to DiscardedAtEQ.
func DiscardedAtEQ ¶
DiscardedAtEQ applies the EQ predicate on the "discarded_at" field.
func DiscardedAtGT ¶
DiscardedAtGT applies the GT predicate on the "discarded_at" field.
func DiscardedAtGTE ¶
DiscardedAtGTE applies the GTE predicate on the "discarded_at" field.
func DiscardedAtIn ¶
DiscardedAtIn applies the In predicate on the "discarded_at" field.
func DiscardedAtIsNil ¶
DiscardedAtIsNil applies the IsNil predicate on the "discarded_at" field.
func DiscardedAtLT ¶
DiscardedAtLT applies the LT predicate on the "discarded_at" field.
func DiscardedAtLTE ¶
DiscardedAtLTE applies the LTE predicate on the "discarded_at" field.
func DiscardedAtNEQ ¶
DiscardedAtNEQ applies the NEQ predicate on the "discarded_at" field.
func DiscardedAtNotIn ¶
DiscardedAtNotIn applies the NotIn predicate on the "discarded_at" field.
func DiscardedAtNotNil ¶
DiscardedAtNotNil applies the NotNil predicate on the "discarded_at" field.
func HasFirings ¶
HasFirings applies the HasEdge predicate on the "firings" edge.
func HasFiringsWith ¶
func HasFiringsWith(preds ...predicate.RuleFiring) predicate.Rule
HasFiringsWith applies the HasEdge predicate on the "firings" edge with a given conditions (other predicates).
func HasTriggers ¶
HasTriggers applies the HasEdge predicate on the "triggers" edge.
func HasTriggersWith ¶
func HasTriggersWith(preds ...predicate.RuleTrigger) predicate.Rule
HasTriggersWith applies the HasEdge predicate on the "triggers" edge with a given conditions (other predicates).
func HasWorkspace ¶
HasWorkspace applies the HasEdge predicate on the "workspace" edge.
func HasWorkspaceWith ¶
HasWorkspaceWith applies the HasEdge predicate on the "workspace" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WorkspaceID ¶
WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.
func WorkspaceIDEQ ¶
WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.
func WorkspaceIDIn ¶
WorkspaceIDIn applies the In predicate on the "workspace_id" field.
func WorkspaceIDNEQ ¶
WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.
func WorkspaceIDNotIn ¶
WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Rule queries.
func ByActions ¶
func ByActions(opts ...sql.OrderTermOption) OrderOption
ByActions orders the results by the actions field.
func ByActivatedAt ¶
func ByActivatedAt(opts ...sql.OrderTermOption) OrderOption
ByActivatedAt orders the results by the activated_at field.
func ByCondition ¶
func ByCondition(opts ...sql.OrderTermOption) OrderOption
ByCondition orders the results by the condition field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDiscardedAt ¶
func ByDiscardedAt(opts ...sql.OrderTermOption) OrderOption
ByDiscardedAt orders the results by the discarded_at field.
func ByFirings ¶
func ByFirings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFirings orders the results by firings terms.
func ByFiringsCount ¶
func ByFiringsCount(opts ...sql.OrderTermOption) OrderOption
ByFiringsCount orders the results by firings count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTriggers ¶
func ByTriggers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTriggers orders the results by triggers terms.
func ByTriggersCount ¶
func ByTriggersCount(opts ...sql.OrderTermOption) OrderOption
ByTriggersCount orders the results by triggers count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByWorkspaceField ¶
func ByWorkspaceField(field string, opts ...sql.OrderTermOption) OrderOption
ByWorkspaceField orders the results by workspace field.
func ByWorkspaceID ¶
func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption
ByWorkspaceID orders the results by the workspace_id field.