deployment

package
v0.0.0-...-738d89c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the deployment type in the database.
	Label = "deployment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldTenantID holds the string denoting the tenant_id field in the database.
	FieldTenantID = "tenant_id"
	// FieldAppID holds the string denoting the app_id field in the database.
	FieldAppID = "app_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldDeployTime holds the string denoting the deploy_time field in the database.
	FieldDeployTime = "deploy_time"
	// EdgeProcDefs holds the string denoting the proc_defs edge name in mutations.
	EdgeProcDefs = "proc_defs"
	// EdgeDecisionReqs holds the string denoting the decision_reqs edge name in mutations.
	EdgeDecisionReqs = "decision_reqs"
	// Table holds the table name of the deployment in the database.
	Table = "act_deployment"
	// ProcDefsTable is the table that holds the proc_defs relation/edge.
	ProcDefsTable = "act_proc_def"
	// ProcDefsInverseTable is the table name for the ProcDef entity.
	// It exists in this package in order to avoid circular dependency with the "procdef" package.
	ProcDefsInverseTable = "act_proc_def"
	// ProcDefsColumn is the table column denoting the proc_defs relation/edge.
	ProcDefsColumn = "deployment_id"
	// DecisionReqsTable is the table that holds the decision_reqs relation/edge.
	DecisionReqsTable = "act_decision_req_def"
	// DecisionReqsInverseTable is the table name for the DecisionReqDef entity.
	// It exists in this package in order to avoid circular dependency with the "decisionreqdef" package.
	DecisionReqsInverseTable = "act_decision_req_def"
	// DecisionReqsColumn is the table column denoting the decision_reqs relation/edge.
	DecisionReqsColumn = "deployment_id"
)

Variables

View Source
var (
	Hooks        [2]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultDeployTime holds the default value on creation for the "deploy_time" field.
	DefaultDeployTime func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int
)

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/woocoos/workflow/ent/runtime"

Columns holds all SQL columns for deployment fields.

Functions

func And

func And(predicates ...predicate.Deployment) predicate.Deployment

And groups predicates with the AND operator between them.

func AppID

func AppID(v int) predicate.Deployment

AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.

func AppIDEQ

func AppIDEQ(v int) predicate.Deployment

AppIDEQ applies the EQ predicate on the "app_id" field.

func AppIDGT

func AppIDGT(v int) predicate.Deployment

AppIDGT applies the GT predicate on the "app_id" field.

func AppIDGTE

func AppIDGTE(v int) predicate.Deployment

AppIDGTE applies the GTE predicate on the "app_id" field.

func AppIDIn

func AppIDIn(vs ...int) predicate.Deployment

AppIDIn applies the In predicate on the "app_id" field.

func AppIDLT

func AppIDLT(v int) predicate.Deployment

AppIDLT applies the LT predicate on the "app_id" field.

func AppIDLTE

func AppIDLTE(v int) predicate.Deployment

AppIDLTE applies the LTE predicate on the "app_id" field.

func AppIDNEQ

func AppIDNEQ(v int) predicate.Deployment

AppIDNEQ applies the NEQ predicate on the "app_id" field.

func AppIDNotIn

func AppIDNotIn(vs ...int) predicate.Deployment

AppIDNotIn applies the NotIn predicate on the "app_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Deployment

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Deployment

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Deployment

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Deployment

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Deployment

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Deployment

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Deployment

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.Deployment

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

func CreatedByEQ

func CreatedByEQ(v int) predicate.Deployment

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

func CreatedByGT

func CreatedByGT(v int) predicate.Deployment

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

func CreatedByGTE

func CreatedByGTE(v int) predicate.Deployment

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

func CreatedByIn

func CreatedByIn(vs ...int) predicate.Deployment

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

func CreatedByLT

func CreatedByLT(v int) predicate.Deployment

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

func CreatedByLTE

func CreatedByLTE(v int) predicate.Deployment

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

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.Deployment

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

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.Deployment

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

func DeployTime

func DeployTime(v time.Time) predicate.Deployment

DeployTime applies equality check predicate on the "deploy_time" field. It's identical to DeployTimeEQ.

func DeployTimeEQ

func DeployTimeEQ(v time.Time) predicate.Deployment

DeployTimeEQ applies the EQ predicate on the "deploy_time" field.

func DeployTimeGT

func DeployTimeGT(v time.Time) predicate.Deployment

DeployTimeGT applies the GT predicate on the "deploy_time" field.

func DeployTimeGTE

func DeployTimeGTE(v time.Time) predicate.Deployment

DeployTimeGTE applies the GTE predicate on the "deploy_time" field.

func DeployTimeIn

func DeployTimeIn(vs ...time.Time) predicate.Deployment

DeployTimeIn applies the In predicate on the "deploy_time" field.

func DeployTimeLT

func DeployTimeLT(v time.Time) predicate.Deployment

DeployTimeLT applies the LT predicate on the "deploy_time" field.

func DeployTimeLTE

func DeployTimeLTE(v time.Time) predicate.Deployment

DeployTimeLTE applies the LTE predicate on the "deploy_time" field.

func DeployTimeNEQ

func DeployTimeNEQ(v time.Time) predicate.Deployment

DeployTimeNEQ applies the NEQ predicate on the "deploy_time" field.

func DeployTimeNotIn

func DeployTimeNotIn(vs ...time.Time) predicate.Deployment

DeployTimeNotIn applies the NotIn predicate on the "deploy_time" field.

func HasDecisionReqs

func HasDecisionReqs() predicate.Deployment

HasDecisionReqs applies the HasEdge predicate on the "decision_reqs" edge.

func HasDecisionReqsWith

func HasDecisionReqsWith(preds ...predicate.DecisionReqDef) predicate.Deployment

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

func HasProcDefs

func HasProcDefs() predicate.Deployment

HasProcDefs applies the HasEdge predicate on the "proc_defs" edge.

func HasProcDefsWith

func HasProcDefsWith(preds ...predicate.ProcDef) predicate.Deployment

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

func ID

func ID(id int) predicate.Deployment

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Deployment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Deployment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Deployment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Deployment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Deployment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Deployment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Deployment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Deployment

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Deployment

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

func NameContains

func NameContains(v string) predicate.Deployment

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

func NameContainsFold

func NameContainsFold(v string) predicate.Deployment

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

func NameEQ

func NameEQ(v string) predicate.Deployment

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

func NameEqualFold

func NameEqualFold(v string) predicate.Deployment

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

func NameGT

func NameGT(v string) predicate.Deployment

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

func NameGTE

func NameGTE(v string) predicate.Deployment

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Deployment

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Deployment

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.Deployment

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Deployment

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

func NameLTE

func NameLTE(v string) predicate.Deployment

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

func NameNEQ

func NameNEQ(v string) predicate.Deployment

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.Deployment

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Deployment) predicate.Deployment

Or groups predicates with the OR operator between them.

func Source

func Source(v string) predicate.Deployment

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

func SourceContains

func SourceContains(v string) predicate.Deployment

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

func SourceContainsFold

func SourceContainsFold(v string) predicate.Deployment

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

func SourceEQ

func SourceEQ(v string) predicate.Deployment

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

func SourceEqualFold

func SourceEqualFold(v string) predicate.Deployment

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

func SourceGT

func SourceGT(v string) predicate.Deployment

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

func SourceGTE

func SourceGTE(v string) predicate.Deployment

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

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.Deployment

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

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.Deployment

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

func SourceIn

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

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

func SourceIsNil

func SourceIsNil() predicate.Deployment

SourceIsNil applies the IsNil predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.Deployment

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

func SourceLTE

func SourceLTE(v string) predicate.Deployment

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

func SourceNEQ

func SourceNEQ(v string) predicate.Deployment

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

func SourceNotIn

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

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

func SourceNotNil

func SourceNotNil() predicate.Deployment

SourceNotNil applies the NotNil predicate on the "source" field.

func TenantID

func TenantID(v int) predicate.Deployment

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDEQ

func TenantIDEQ(v int) predicate.Deployment

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v int) predicate.Deployment

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v int) predicate.Deployment

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...int) predicate.Deployment

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v int) predicate.Deployment

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v int) predicate.Deployment

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v int) predicate.Deployment

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...int) predicate.Deployment

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Deployment

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Deployment

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Deployment

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Deployment

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Deployment

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Deployment

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Deployment

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Deployment

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Deployment

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

func UpdatedBy

func UpdatedBy(v int) predicate.Deployment

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

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.Deployment

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

func UpdatedByGT

func UpdatedByGT(v int) predicate.Deployment

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

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.Deployment

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

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.Deployment

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Deployment

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

func UpdatedByLT

func UpdatedByLT(v int) predicate.Deployment

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

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.Deployment

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

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.Deployment

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

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.Deployment

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Deployment

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

func ByAppID

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

ByAppID orders the results by the app_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDecisionReqs

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

ByDecisionReqs orders the results by decision_reqs terms.

func ByDecisionReqsCount

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

ByDecisionReqsCount orders the results by decision_reqs count.

func ByDeployTime

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

ByDeployTime orders the results by the deploy_time field.

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 ByProcDefs

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

ByProcDefs orders the results by proc_defs terms.

func ByProcDefsCount

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

ByProcDefsCount orders the results by proc_defs count.

func BySource

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

BySource orders the results by the source field.

func ByTenantID

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

ByTenantID orders the results by the tenant_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