ent

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Operation types.
	OpCreate    = ent.OpCreate
	OpDelete    = ent.OpDelete
	OpDeleteOne = ent.OpDeleteOne
	OpUpdate    = ent.OpUpdate
	OpUpdateOne = ent.OpUpdateOne

	// Node types.
	TypeCloudEvents        = "CloudEvents"
	TypeNamespace          = "Namespace"
	TypeServices           = "Services"
	TypeWorkflow           = "Workflow"
	TypeWorkflowEvents     = "WorkflowEvents"
	TypeWorkflowEventsWait = "WorkflowEventsWait"
	TypeWorkflowInstance   = "WorkflowInstance"
)

Variables

This section is empty.

Functions

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

Types

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

As is a pseudo aggregation function for renaming another other functions with custom names. For example:

GroupBy(field1, field2).
Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")).
Scan(ctx, &v)

func Count

func Count() AggregateFunc

Count applies the "count" aggregation function on each group.

func Max

func Max(field string) AggregateFunc

Max applies the "max" aggregation function on the given field of each group.

func Mean

func Mean(field string) AggregateFunc

Mean applies the "mean" aggregation function on the given field of each group.

func Min

func Min(field string) AggregateFunc

Min applies the "min" aggregation function on the given field of each group.

func Sum

func Sum(field string) AggregateFunc

Sum applies the "sum" aggregation function on the given field of each group.

type Client

type Client struct {

	// Schema is the client for creating, migrating and dropping schema.
	Schema *migrate.Schema
	// CloudEvents is the client for interacting with the CloudEvents builders.
	CloudEvents *CloudEventsClient
	// Namespace is the client for interacting with the Namespace builders.
	Namespace *NamespaceClient
	// Services is the client for interacting with the Services builders.
	Services *ServicesClient
	// Workflow is the client for interacting with the Workflow builders.
	Workflow *WorkflowClient
	// WorkflowEvents is the client for interacting with the WorkflowEvents builders.
	WorkflowEvents *WorkflowEventsClient
	// WorkflowEventsWait is the client for interacting with the WorkflowEventsWait builders.
	WorkflowEventsWait *WorkflowEventsWaitClient
	// WorkflowInstance is the client for interacting with the WorkflowInstance builders.
	WorkflowInstance *WorkflowInstanceClient
	// contains filtered or unexported fields
}

Client is the client that holds all ent builders.

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) DB

func (c *Client) DB() *sql.DB

DB exports the underlying DB driver

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	CloudEvents.
	Query().
	Count(ctx)

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CloudEvents

type CloudEvents struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// Namespace holds the value of the "namespace" field.
	Namespace string `json:"namespace,omitempty"`
	// Event holds the value of the "event" field.
	Event event.Event `json:"event,omitempty"`
	// Fire holds the value of the "fire" field.
	Fire time.Time `json:"fire,omitempty"`
	// Created holds the value of the "created" field.
	Created time.Time `json:"created,omitempty"`
	// Processed holds the value of the "processed" field.
	Processed bool `json:"processed,omitempty"`
	// contains filtered or unexported fields
}

CloudEvents is the model entity for the CloudEvents schema.

func (*CloudEvents) String

func (ce *CloudEvents) String() string

String implements the fmt.Stringer.

func (*CloudEvents) Unwrap

func (ce *CloudEvents) Unwrap() *CloudEvents

Unwrap unwraps the CloudEvents entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*CloudEvents) Update

func (ce *CloudEvents) Update() *CloudEventsUpdateOne

Update returns a builder for updating this CloudEvents. Note that you need to call CloudEvents.Unwrap() before calling this method if this CloudEvents was returned from a transaction, and the transaction was committed or rolled back.

type CloudEventsClient

type CloudEventsClient struct {
	// contains filtered or unexported fields
}

CloudEventsClient is a client for the CloudEvents schema.

func NewCloudEventsClient

func NewCloudEventsClient(c config) *CloudEventsClient

NewCloudEventsClient returns a client for the CloudEvents from the given config.

func (*CloudEventsClient) Create

func (c *CloudEventsClient) Create() *CloudEventsCreate

Create returns a create builder for CloudEvents.

func (*CloudEventsClient) CreateBulk

func (c *CloudEventsClient) CreateBulk(builders ...*CloudEventsCreate) *CloudEventsCreateBulk

CreateBulk returns a builder for creating a bulk of CloudEvents entities.

func (*CloudEventsClient) Delete

func (c *CloudEventsClient) Delete() *CloudEventsDelete

Delete returns a delete builder for CloudEvents.

func (*CloudEventsClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*CloudEventsClient) DeleteOneID

func (c *CloudEventsClient) DeleteOneID(id string) *CloudEventsDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*CloudEventsClient) Get

Get returns a CloudEvents entity by its id.

func (*CloudEventsClient) GetX

GetX is like Get, but panics if an error occurs.

func (*CloudEventsClient) Hooks

func (c *CloudEventsClient) Hooks() []Hook

Hooks returns the client hooks.

func (*CloudEventsClient) Query

func (c *CloudEventsClient) Query() *CloudEventsQuery

Query returns a query builder for CloudEvents.

func (*CloudEventsClient) Update

func (c *CloudEventsClient) Update() *CloudEventsUpdate

Update returns an update builder for CloudEvents.

func (*CloudEventsClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*CloudEventsClient) UpdateOneID

func (c *CloudEventsClient) UpdateOneID(id string) *CloudEventsUpdateOne

UpdateOneID returns an update builder for the given id.

func (*CloudEventsClient) Use

func (c *CloudEventsClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `cloudevents.Hooks(f(g(h())))`.

type CloudEventsCreate

type CloudEventsCreate struct {
	// contains filtered or unexported fields
}

CloudEventsCreate is the builder for creating a CloudEvents entity.

func (*CloudEventsCreate) Exec

func (cec *CloudEventsCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*CloudEventsCreate) ExecX

func (cec *CloudEventsCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CloudEventsCreate) Mutation

func (cec *CloudEventsCreate) Mutation() *CloudEventsMutation

Mutation returns the CloudEventsMutation object of the builder.

func (*CloudEventsCreate) Save

func (cec *CloudEventsCreate) Save(ctx context.Context) (*CloudEvents, error)

Save creates the CloudEvents in the database.

func (*CloudEventsCreate) SaveX

func (cec *CloudEventsCreate) SaveX(ctx context.Context) *CloudEvents

SaveX calls Save and panics if Save returns an error.

func (*CloudEventsCreate) SetCreated

func (cec *CloudEventsCreate) SetCreated(t time.Time) *CloudEventsCreate

SetCreated sets the "created" field.

func (*CloudEventsCreate) SetEvent

func (cec *CloudEventsCreate) SetEvent(e event.Event) *CloudEventsCreate

SetEvent sets the "event" field.

func (*CloudEventsCreate) SetFire

func (cec *CloudEventsCreate) SetFire(t time.Time) *CloudEventsCreate

SetFire sets the "fire" field.

func (*CloudEventsCreate) SetID

SetID sets the "id" field.

func (*CloudEventsCreate) SetNamespace

func (cec *CloudEventsCreate) SetNamespace(s string) *CloudEventsCreate

SetNamespace sets the "namespace" field.

func (*CloudEventsCreate) SetNillableCreated

func (cec *CloudEventsCreate) SetNillableCreated(t *time.Time) *CloudEventsCreate

SetNillableCreated sets the "created" field if the given value is not nil.

func (*CloudEventsCreate) SetNillableFire

func (cec *CloudEventsCreate) SetNillableFire(t *time.Time) *CloudEventsCreate

SetNillableFire sets the "fire" field if the given value is not nil.

func (*CloudEventsCreate) SetProcessed

func (cec *CloudEventsCreate) SetProcessed(b bool) *CloudEventsCreate

SetProcessed sets the "processed" field.

type CloudEventsCreateBulk

type CloudEventsCreateBulk struct {
	// contains filtered or unexported fields
}

CloudEventsCreateBulk is the builder for creating many CloudEvents entities in bulk.

func (*CloudEventsCreateBulk) Exec

func (cecb *CloudEventsCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*CloudEventsCreateBulk) ExecX

func (cecb *CloudEventsCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CloudEventsCreateBulk) Save

func (cecb *CloudEventsCreateBulk) Save(ctx context.Context) ([]*CloudEvents, error)

Save creates the CloudEvents entities in the database.

func (*CloudEventsCreateBulk) SaveX

func (cecb *CloudEventsCreateBulk) SaveX(ctx context.Context) []*CloudEvents

SaveX is like Save, but panics if an error occurs.

type CloudEventsDelete

type CloudEventsDelete struct {
	// contains filtered or unexported fields
}

CloudEventsDelete is the builder for deleting a CloudEvents entity.

func (*CloudEventsDelete) Exec

func (ced *CloudEventsDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*CloudEventsDelete) ExecX

func (ced *CloudEventsDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*CloudEventsDelete) Where

Where appends a list predicates to the CloudEventsDelete builder.

type CloudEventsDeleteOne

type CloudEventsDeleteOne struct {
	// contains filtered or unexported fields
}

CloudEventsDeleteOne is the builder for deleting a single CloudEvents entity.

func (*CloudEventsDeleteOne) Exec

func (cedo *CloudEventsDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*CloudEventsDeleteOne) ExecX

func (cedo *CloudEventsDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type CloudEventsGroupBy

type CloudEventsGroupBy struct {
	// contains filtered or unexported fields
}

CloudEventsGroupBy is the group-by builder for CloudEvents entities.

func (*CloudEventsGroupBy) Aggregate

func (cegb *CloudEventsGroupBy) Aggregate(fns ...AggregateFunc) *CloudEventsGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*CloudEventsGroupBy) Bool

func (cegb *CloudEventsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) BoolX

func (cegb *CloudEventsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*CloudEventsGroupBy) Bools

func (cegb *CloudEventsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) BoolsX

func (cegb *CloudEventsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*CloudEventsGroupBy) Float64

func (cegb *CloudEventsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) Float64X

func (cegb *CloudEventsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*CloudEventsGroupBy) Float64s

func (cegb *CloudEventsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) Float64sX

func (cegb *CloudEventsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*CloudEventsGroupBy) Int

func (cegb *CloudEventsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) IntX

func (cegb *CloudEventsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*CloudEventsGroupBy) Ints

func (cegb *CloudEventsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) IntsX

func (cegb *CloudEventsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*CloudEventsGroupBy) Scan

func (cegb *CloudEventsGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*CloudEventsGroupBy) ScanX

func (cegb *CloudEventsGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*CloudEventsGroupBy) String

func (cegb *CloudEventsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) StringX

func (cegb *CloudEventsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*CloudEventsGroupBy) Strings

func (cegb *CloudEventsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*CloudEventsGroupBy) StringsX

func (cegb *CloudEventsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type CloudEventsMutation

type CloudEventsMutation struct {
	// contains filtered or unexported fields
}

CloudEventsMutation represents an operation that mutates the CloudEvents nodes in the graph.

func (*CloudEventsMutation) AddField

func (m *CloudEventsMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*CloudEventsMutation) AddedEdges

func (m *CloudEventsMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*CloudEventsMutation) AddedField

func (m *CloudEventsMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*CloudEventsMutation) AddedFields

func (m *CloudEventsMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*CloudEventsMutation) AddedIDs

func (m *CloudEventsMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*CloudEventsMutation) ClearEdge

func (m *CloudEventsMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*CloudEventsMutation) ClearField

func (m *CloudEventsMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*CloudEventsMutation) ClearedEdges

func (m *CloudEventsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*CloudEventsMutation) ClearedFields

func (m *CloudEventsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (CloudEventsMutation) Client

func (m CloudEventsMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*CloudEventsMutation) Created

func (m *CloudEventsMutation) Created() (r time.Time, exists bool)

Created returns the value of the "created" field in the mutation.

func (*CloudEventsMutation) EdgeCleared

func (m *CloudEventsMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*CloudEventsMutation) Event

func (m *CloudEventsMutation) Event() (r event.Event, exists bool)

Event returns the value of the "event" field in the mutation.

func (*CloudEventsMutation) Field

func (m *CloudEventsMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*CloudEventsMutation) FieldCleared

func (m *CloudEventsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*CloudEventsMutation) Fields

func (m *CloudEventsMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*CloudEventsMutation) Fire

func (m *CloudEventsMutation) Fire() (r time.Time, exists bool)

Fire returns the value of the "fire" field in the mutation.

func (*CloudEventsMutation) ID

func (m *CloudEventsMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*CloudEventsMutation) Namespace

func (m *CloudEventsMutation) Namespace() (r string, exists bool)

Namespace returns the value of the "namespace" field in the mutation.

func (*CloudEventsMutation) OldCreated

func (m *CloudEventsMutation) OldCreated(ctx context.Context) (v time.Time, err error)

OldCreated returns the old "created" field's value of the CloudEvents entity. If the CloudEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CloudEventsMutation) OldEvent

func (m *CloudEventsMutation) OldEvent(ctx context.Context) (v event.Event, err error)

OldEvent returns the old "event" field's value of the CloudEvents entity. If the CloudEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CloudEventsMutation) OldField

func (m *CloudEventsMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*CloudEventsMutation) OldFire

func (m *CloudEventsMutation) OldFire(ctx context.Context) (v time.Time, err error)

OldFire returns the old "fire" field's value of the CloudEvents entity. If the CloudEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CloudEventsMutation) OldNamespace

func (m *CloudEventsMutation) OldNamespace(ctx context.Context) (v string, err error)

OldNamespace returns the old "namespace" field's value of the CloudEvents entity. If the CloudEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CloudEventsMutation) OldProcessed

func (m *CloudEventsMutation) OldProcessed(ctx context.Context) (v bool, err error)

OldProcessed returns the old "processed" field's value of the CloudEvents entity. If the CloudEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CloudEventsMutation) Op

func (m *CloudEventsMutation) Op() Op

Op returns the operation name.

func (*CloudEventsMutation) Processed

func (m *CloudEventsMutation) Processed() (r bool, exists bool)

Processed returns the value of the "processed" field in the mutation.

func (*CloudEventsMutation) RemovedEdges

func (m *CloudEventsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*CloudEventsMutation) RemovedIDs

func (m *CloudEventsMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*CloudEventsMutation) ResetCreated

func (m *CloudEventsMutation) ResetCreated()

ResetCreated resets all changes to the "created" field.

func (*CloudEventsMutation) ResetEdge

func (m *CloudEventsMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*CloudEventsMutation) ResetEvent

func (m *CloudEventsMutation) ResetEvent()

ResetEvent resets all changes to the "event" field.

func (*CloudEventsMutation) ResetField

func (m *CloudEventsMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*CloudEventsMutation) ResetFire

func (m *CloudEventsMutation) ResetFire()

ResetFire resets all changes to the "fire" field.

func (*CloudEventsMutation) ResetNamespace

func (m *CloudEventsMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" field.

func (*CloudEventsMutation) ResetProcessed

func (m *CloudEventsMutation) ResetProcessed()

ResetProcessed resets all changes to the "processed" field.

func (*CloudEventsMutation) SetCreated

func (m *CloudEventsMutation) SetCreated(t time.Time)

SetCreated sets the "created" field.

func (*CloudEventsMutation) SetEvent

func (m *CloudEventsMutation) SetEvent(e event.Event)

SetEvent sets the "event" field.

func (*CloudEventsMutation) SetField

func (m *CloudEventsMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*CloudEventsMutation) SetFire

func (m *CloudEventsMutation) SetFire(t time.Time)

SetFire sets the "fire" field.

func (*CloudEventsMutation) SetID

func (m *CloudEventsMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of CloudEvents entities.

func (*CloudEventsMutation) SetNamespace

func (m *CloudEventsMutation) SetNamespace(s string)

SetNamespace sets the "namespace" field.

func (*CloudEventsMutation) SetProcessed

func (m *CloudEventsMutation) SetProcessed(b bool)

SetProcessed sets the "processed" field.

func (CloudEventsMutation) Tx

func (m CloudEventsMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*CloudEventsMutation) Type

func (m *CloudEventsMutation) Type() string

Type returns the node type of this mutation (CloudEvents).

func (*CloudEventsMutation) Where

func (m *CloudEventsMutation) Where(ps ...predicate.CloudEvents)

Where appends a list predicates to the CloudEventsMutation builder.

type CloudEventsQuery

type CloudEventsQuery struct {
	// contains filtered or unexported fields
}

CloudEventsQuery is the builder for querying CloudEvents entities.

func (*CloudEventsQuery) All

func (ceq *CloudEventsQuery) All(ctx context.Context) ([]*CloudEvents, error)

All executes the query and returns a list of CloudEventsSlice.

func (*CloudEventsQuery) AllX

func (ceq *CloudEventsQuery) AllX(ctx context.Context) []*CloudEvents

AllX is like All, but panics if an error occurs.

func (*CloudEventsQuery) Clone

func (ceq *CloudEventsQuery) Clone() *CloudEventsQuery

Clone returns a duplicate of the CloudEventsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*CloudEventsQuery) Count

func (ceq *CloudEventsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*CloudEventsQuery) CountX

func (ceq *CloudEventsQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*CloudEventsQuery) Exist

func (ceq *CloudEventsQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*CloudEventsQuery) ExistX

func (ceq *CloudEventsQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*CloudEventsQuery) First

func (ceq *CloudEventsQuery) First(ctx context.Context) (*CloudEvents, error)

First returns the first CloudEvents entity from the query. Returns a *NotFoundError when no CloudEvents was found.

func (*CloudEventsQuery) FirstID

func (ceq *CloudEventsQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first CloudEvents ID from the query. Returns a *NotFoundError when no CloudEvents ID was found.

func (*CloudEventsQuery) FirstIDX

func (ceq *CloudEventsQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*CloudEventsQuery) FirstX

func (ceq *CloudEventsQuery) FirstX(ctx context.Context) *CloudEvents

FirstX is like First, but panics if an error occurs.

func (*CloudEventsQuery) GroupBy

func (ceq *CloudEventsQuery) GroupBy(field string, fields ...string) *CloudEventsGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Namespace string `json:"namespace,omitempty"`
	Count int `json:"count,omitempty"`
}

client.CloudEvents.Query().
	GroupBy(cloudevents.FieldNamespace).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*CloudEventsQuery) IDs

func (ceq *CloudEventsQuery) IDs(ctx context.Context) ([]string, error)

IDs executes the query and returns a list of CloudEvents IDs.

func (*CloudEventsQuery) IDsX

func (ceq *CloudEventsQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*CloudEventsQuery) Limit

func (ceq *CloudEventsQuery) Limit(limit int) *CloudEventsQuery

Limit adds a limit step to the query.

func (*CloudEventsQuery) Offset

func (ceq *CloudEventsQuery) Offset(offset int) *CloudEventsQuery

Offset adds an offset step to the query.

func (*CloudEventsQuery) Only

func (ceq *CloudEventsQuery) Only(ctx context.Context) (*CloudEvents, error)

Only returns a single CloudEvents entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one CloudEvents entity is not found. Returns a *NotFoundError when no CloudEvents entities are found.

func (*CloudEventsQuery) OnlyID

func (ceq *CloudEventsQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only CloudEvents ID in the query. Returns a *NotSingularError when exactly one CloudEvents ID is not found. Returns a *NotFoundError when no entities are found.

func (*CloudEventsQuery) OnlyIDX

func (ceq *CloudEventsQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*CloudEventsQuery) OnlyX

func (ceq *CloudEventsQuery) OnlyX(ctx context.Context) *CloudEvents

OnlyX is like Only, but panics if an error occurs.

func (*CloudEventsQuery) Order

func (ceq *CloudEventsQuery) Order(o ...OrderFunc) *CloudEventsQuery

Order adds an order step to the query.

func (*CloudEventsQuery) Select

func (ceq *CloudEventsQuery) Select(fields ...string) *CloudEventsSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Namespace string `json:"namespace,omitempty"`
}

client.CloudEvents.Query().
	Select(cloudevents.FieldNamespace).
	Scan(ctx, &v)

func (*CloudEventsQuery) Unique

func (ceq *CloudEventsQuery) Unique(unique bool) *CloudEventsQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*CloudEventsQuery) Where

Where adds a new predicate for the CloudEventsQuery builder.

type CloudEventsSelect

type CloudEventsSelect struct {
	*CloudEventsQuery
	// contains filtered or unexported fields
}

CloudEventsSelect is the builder for selecting fields of CloudEvents entities.

func (*CloudEventsSelect) Bool

func (ces *CloudEventsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) BoolX

func (ces *CloudEventsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*CloudEventsSelect) Bools

func (ces *CloudEventsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) BoolsX

func (ces *CloudEventsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*CloudEventsSelect) Float64

func (ces *CloudEventsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) Float64X

func (ces *CloudEventsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*CloudEventsSelect) Float64s

func (ces *CloudEventsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) Float64sX

func (ces *CloudEventsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*CloudEventsSelect) Int

func (ces *CloudEventsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) IntX

func (ces *CloudEventsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*CloudEventsSelect) Ints

func (ces *CloudEventsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) IntsX

func (ces *CloudEventsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*CloudEventsSelect) Scan

func (ces *CloudEventsSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*CloudEventsSelect) ScanX

func (ces *CloudEventsSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*CloudEventsSelect) String

func (ces *CloudEventsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) StringX

func (ces *CloudEventsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*CloudEventsSelect) Strings

func (ces *CloudEventsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*CloudEventsSelect) StringsX

func (ces *CloudEventsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type CloudEventsSlice

type CloudEventsSlice []*CloudEvents

CloudEventsSlice is a parsable slice of CloudEvents.

type CloudEventsUpdate

type CloudEventsUpdate struct {
	// contains filtered or unexported fields
}

CloudEventsUpdate is the builder for updating CloudEvents entities.

func (*CloudEventsUpdate) Exec

func (ceu *CloudEventsUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*CloudEventsUpdate) ExecX

func (ceu *CloudEventsUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CloudEventsUpdate) Mutation

func (ceu *CloudEventsUpdate) Mutation() *CloudEventsMutation

Mutation returns the CloudEventsMutation object of the builder.

func (*CloudEventsUpdate) Save

func (ceu *CloudEventsUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*CloudEventsUpdate) SaveX

func (ceu *CloudEventsUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*CloudEventsUpdate) SetEvent

func (ceu *CloudEventsUpdate) SetEvent(e event.Event) *CloudEventsUpdate

SetEvent sets the "event" field.

func (*CloudEventsUpdate) SetProcessed

func (ceu *CloudEventsUpdate) SetProcessed(b bool) *CloudEventsUpdate

SetProcessed sets the "processed" field.

func (*CloudEventsUpdate) Where

Where appends a list predicates to the CloudEventsUpdate builder.

type CloudEventsUpdateOne

type CloudEventsUpdateOne struct {
	// contains filtered or unexported fields
}

CloudEventsUpdateOne is the builder for updating a single CloudEvents entity.

func (*CloudEventsUpdateOne) Exec

func (ceuo *CloudEventsUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*CloudEventsUpdateOne) ExecX

func (ceuo *CloudEventsUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CloudEventsUpdateOne) Mutation

func (ceuo *CloudEventsUpdateOne) Mutation() *CloudEventsMutation

Mutation returns the CloudEventsMutation object of the builder.

func (*CloudEventsUpdateOne) Save

Save executes the query and returns the updated CloudEvents entity.

func (*CloudEventsUpdateOne) SaveX

func (ceuo *CloudEventsUpdateOne) SaveX(ctx context.Context) *CloudEvents

SaveX is like Save, but panics if an error occurs.

func (*CloudEventsUpdateOne) Select

func (ceuo *CloudEventsUpdateOne) Select(field string, fields ...string) *CloudEventsUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*CloudEventsUpdateOne) SetEvent

SetEvent sets the "event" field.

func (*CloudEventsUpdateOne) SetProcessed

func (ceuo *CloudEventsUpdateOne) SetProcessed(b bool) *CloudEventsUpdateOne

SetProcessed sets the "processed" field.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:

hook := func(next ent.Committer) ent.Committer {
	return ent.CommitFunc(func(context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Committer method.

type ConstraintError

type ConstraintError struct {
	// contains filtered or unexported fields
}

ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Hook

type Hook = ent.Hook

ent aliases to avoid import conflicts in user's code.

type MutateFunc

type MutateFunc = ent.MutateFunc

ent aliases to avoid import conflicts in user's code.

type Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

ent aliases to avoid import conflicts in user's code.

type Namespace

type Namespace struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// Created holds the value of the "created" field.
	Created time.Time `json:"created,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the NamespaceQuery when eager-loading is set.
	Edges NamespaceEdges `json:"edges"`
	// contains filtered or unexported fields
}

Namespace is the model entity for the Namespace schema.

func (*Namespace) QueryWorkflows

func (n *Namespace) QueryWorkflows() *WorkflowQuery

QueryWorkflows queries the "workflows" edge of the Namespace entity.

func (*Namespace) String

func (n *Namespace) String() string

String implements the fmt.Stringer.

func (*Namespace) Unwrap

func (n *Namespace) Unwrap() *Namespace

Unwrap unwraps the Namespace entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Namespace) Update

func (n *Namespace) Update() *NamespaceUpdateOne

Update returns a builder for updating this Namespace. Note that you need to call Namespace.Unwrap() before calling this method if this Namespace was returned from a transaction, and the transaction was committed or rolled back.

type NamespaceClient

type NamespaceClient struct {
	// contains filtered or unexported fields
}

NamespaceClient is a client for the Namespace schema.

func NewNamespaceClient

func NewNamespaceClient(c config) *NamespaceClient

NewNamespaceClient returns a client for the Namespace from the given config.

func (*NamespaceClient) Create

func (c *NamespaceClient) Create() *NamespaceCreate

Create returns a create builder for Namespace.

func (*NamespaceClient) CreateBulk

func (c *NamespaceClient) CreateBulk(builders ...*NamespaceCreate) *NamespaceCreateBulk

CreateBulk returns a builder for creating a bulk of Namespace entities.

func (*NamespaceClient) Delete

func (c *NamespaceClient) Delete() *NamespaceDelete

Delete returns a delete builder for Namespace.

func (*NamespaceClient) DeleteOne

func (c *NamespaceClient) DeleteOne(n *Namespace) *NamespaceDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*NamespaceClient) DeleteOneID

func (c *NamespaceClient) DeleteOneID(id string) *NamespaceDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*NamespaceClient) Get

func (c *NamespaceClient) Get(ctx context.Context, id string) (*Namespace, error)

Get returns a Namespace entity by its id.

func (*NamespaceClient) GetX

func (c *NamespaceClient) GetX(ctx context.Context, id string) *Namespace

GetX is like Get, but panics if an error occurs.

func (*NamespaceClient) Hooks

func (c *NamespaceClient) Hooks() []Hook

Hooks returns the client hooks.

func (*NamespaceClient) Query

func (c *NamespaceClient) Query() *NamespaceQuery

Query returns a query builder for Namespace.

func (*NamespaceClient) QueryWorkflows

func (c *NamespaceClient) QueryWorkflows(n *Namespace) *WorkflowQuery

QueryWorkflows queries the workflows edge of a Namespace.

func (*NamespaceClient) Update

func (c *NamespaceClient) Update() *NamespaceUpdate

Update returns an update builder for Namespace.

func (*NamespaceClient) UpdateOne

func (c *NamespaceClient) UpdateOne(n *Namespace) *NamespaceUpdateOne

UpdateOne returns an update builder for the given entity.

func (*NamespaceClient) UpdateOneID

func (c *NamespaceClient) UpdateOneID(id string) *NamespaceUpdateOne

UpdateOneID returns an update builder for the given id.

func (*NamespaceClient) Use

func (c *NamespaceClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `namespace.Hooks(f(g(h())))`.

type NamespaceCreate

type NamespaceCreate struct {
	// contains filtered or unexported fields
}

NamespaceCreate is the builder for creating a Namespace entity.

func (*NamespaceCreate) AddWorkflowIDs

func (nc *NamespaceCreate) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceCreate

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*NamespaceCreate) AddWorkflows

func (nc *NamespaceCreate) AddWorkflows(w ...*Workflow) *NamespaceCreate

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*NamespaceCreate) Exec

func (nc *NamespaceCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*NamespaceCreate) ExecX

func (nc *NamespaceCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NamespaceCreate) Mutation

func (nc *NamespaceCreate) Mutation() *NamespaceMutation

Mutation returns the NamespaceMutation object of the builder.

func (*NamespaceCreate) Save

func (nc *NamespaceCreate) Save(ctx context.Context) (*Namespace, error)

Save creates the Namespace in the database.

func (*NamespaceCreate) SaveX

func (nc *NamespaceCreate) SaveX(ctx context.Context) *Namespace

SaveX calls Save and panics if Save returns an error.

func (*NamespaceCreate) SetCreated

func (nc *NamespaceCreate) SetCreated(t time.Time) *NamespaceCreate

SetCreated sets the "created" field.

func (*NamespaceCreate) SetID

func (nc *NamespaceCreate) SetID(s string) *NamespaceCreate

SetID sets the "id" field.

func (*NamespaceCreate) SetNillableCreated

func (nc *NamespaceCreate) SetNillableCreated(t *time.Time) *NamespaceCreate

SetNillableCreated sets the "created" field if the given value is not nil.

type NamespaceCreateBulk

type NamespaceCreateBulk struct {
	// contains filtered or unexported fields
}

NamespaceCreateBulk is the builder for creating many Namespace entities in bulk.

func (*NamespaceCreateBulk) Exec

func (ncb *NamespaceCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*NamespaceCreateBulk) ExecX

func (ncb *NamespaceCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NamespaceCreateBulk) Save

func (ncb *NamespaceCreateBulk) Save(ctx context.Context) ([]*Namespace, error)

Save creates the Namespace entities in the database.

func (*NamespaceCreateBulk) SaveX

func (ncb *NamespaceCreateBulk) SaveX(ctx context.Context) []*Namespace

SaveX is like Save, but panics if an error occurs.

type NamespaceDelete

type NamespaceDelete struct {
	// contains filtered or unexported fields
}

NamespaceDelete is the builder for deleting a Namespace entity.

func (*NamespaceDelete) Exec

func (nd *NamespaceDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*NamespaceDelete) ExecX

func (nd *NamespaceDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*NamespaceDelete) Where

Where appends a list predicates to the NamespaceDelete builder.

type NamespaceDeleteOne

type NamespaceDeleteOne struct {
	// contains filtered or unexported fields
}

NamespaceDeleteOne is the builder for deleting a single Namespace entity.

func (*NamespaceDeleteOne) Exec

func (ndo *NamespaceDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*NamespaceDeleteOne) ExecX

func (ndo *NamespaceDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type NamespaceEdges

type NamespaceEdges struct {
	// Workflows holds the value of the workflows edge.
	Workflows []*Workflow `json:"workflows,omitempty"`
	// contains filtered or unexported fields
}

NamespaceEdges holds the relations/edges for other nodes in the graph.

func (NamespaceEdges) WorkflowsOrErr

func (e NamespaceEdges) WorkflowsOrErr() ([]*Workflow, error)

WorkflowsOrErr returns the Workflows value or an error if the edge was not loaded in eager-loading.

type NamespaceGroupBy

type NamespaceGroupBy struct {
	// contains filtered or unexported fields
}

NamespaceGroupBy is the group-by builder for Namespace entities.

func (*NamespaceGroupBy) Aggregate

func (ngb *NamespaceGroupBy) Aggregate(fns ...AggregateFunc) *NamespaceGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*NamespaceGroupBy) Bool

func (ngb *NamespaceGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) BoolX

func (ngb *NamespaceGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*NamespaceGroupBy) Bools

func (ngb *NamespaceGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) BoolsX

func (ngb *NamespaceGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*NamespaceGroupBy) Float64

func (ngb *NamespaceGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) Float64X

func (ngb *NamespaceGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*NamespaceGroupBy) Float64s

func (ngb *NamespaceGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) Float64sX

func (ngb *NamespaceGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*NamespaceGroupBy) Int

func (ngb *NamespaceGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) IntX

func (ngb *NamespaceGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*NamespaceGroupBy) Ints

func (ngb *NamespaceGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) IntsX

func (ngb *NamespaceGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*NamespaceGroupBy) Scan

func (ngb *NamespaceGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*NamespaceGroupBy) ScanX

func (ngb *NamespaceGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*NamespaceGroupBy) String

func (ngb *NamespaceGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) StringX

func (ngb *NamespaceGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*NamespaceGroupBy) Strings

func (ngb *NamespaceGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*NamespaceGroupBy) StringsX

func (ngb *NamespaceGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type NamespaceMutation

type NamespaceMutation struct {
	// contains filtered or unexported fields
}

NamespaceMutation represents an operation that mutates the Namespace nodes in the graph.

func (*NamespaceMutation) AddField

func (m *NamespaceMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*NamespaceMutation) AddWorkflowIDs

func (m *NamespaceMutation) AddWorkflowIDs(ids ...uuid.UUID)

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by ids.

func (*NamespaceMutation) AddedEdges

func (m *NamespaceMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*NamespaceMutation) AddedField

func (m *NamespaceMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*NamespaceMutation) AddedFields

func (m *NamespaceMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*NamespaceMutation) AddedIDs

func (m *NamespaceMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*NamespaceMutation) ClearEdge

func (m *NamespaceMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*NamespaceMutation) ClearField

func (m *NamespaceMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*NamespaceMutation) ClearWorkflows

func (m *NamespaceMutation) ClearWorkflows()

ClearWorkflows clears the "workflows" edge to the Workflow entity.

func (*NamespaceMutation) ClearedEdges

func (m *NamespaceMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*NamespaceMutation) ClearedFields

func (m *NamespaceMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (NamespaceMutation) Client

func (m NamespaceMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*NamespaceMutation) Created

func (m *NamespaceMutation) Created() (r time.Time, exists bool)

Created returns the value of the "created" field in the mutation.

func (*NamespaceMutation) EdgeCleared

func (m *NamespaceMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*NamespaceMutation) Field

func (m *NamespaceMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*NamespaceMutation) FieldCleared

func (m *NamespaceMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*NamespaceMutation) Fields

func (m *NamespaceMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*NamespaceMutation) ID

func (m *NamespaceMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*NamespaceMutation) OldCreated

func (m *NamespaceMutation) OldCreated(ctx context.Context) (v time.Time, err error)

OldCreated returns the old "created" field's value of the Namespace entity. If the Namespace object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NamespaceMutation) OldField

func (m *NamespaceMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*NamespaceMutation) Op

func (m *NamespaceMutation) Op() Op

Op returns the operation name.

func (*NamespaceMutation) RemoveWorkflowIDs

func (m *NamespaceMutation) RemoveWorkflowIDs(ids ...uuid.UUID)

RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.

func (*NamespaceMutation) RemovedEdges

func (m *NamespaceMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*NamespaceMutation) RemovedIDs

func (m *NamespaceMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*NamespaceMutation) RemovedWorkflowsIDs

func (m *NamespaceMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)

RemovedWorkflows returns the removed IDs of the "workflows" edge to the Workflow entity.

func (*NamespaceMutation) ResetCreated

func (m *NamespaceMutation) ResetCreated()

ResetCreated resets all changes to the "created" field.

func (*NamespaceMutation) ResetEdge

func (m *NamespaceMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*NamespaceMutation) ResetField

func (m *NamespaceMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*NamespaceMutation) ResetWorkflows

func (m *NamespaceMutation) ResetWorkflows()

ResetWorkflows resets all changes to the "workflows" edge.

func (*NamespaceMutation) SetCreated

func (m *NamespaceMutation) SetCreated(t time.Time)

SetCreated sets the "created" field.

func (*NamespaceMutation) SetField

func (m *NamespaceMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*NamespaceMutation) SetID

func (m *NamespaceMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Namespace entities.

func (NamespaceMutation) Tx

func (m NamespaceMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*NamespaceMutation) Type

func (m *NamespaceMutation) Type() string

Type returns the node type of this mutation (Namespace).

func (*NamespaceMutation) Where

func (m *NamespaceMutation) Where(ps ...predicate.Namespace)

Where appends a list predicates to the NamespaceMutation builder.

func (*NamespaceMutation) WorkflowsCleared

func (m *NamespaceMutation) WorkflowsCleared() bool

WorkflowsCleared reports if the "workflows" edge to the Workflow entity was cleared.

func (*NamespaceMutation) WorkflowsIDs

func (m *NamespaceMutation) WorkflowsIDs() (ids []uuid.UUID)

WorkflowsIDs returns the "workflows" edge IDs in the mutation.

type NamespaceQuery

type NamespaceQuery struct {
	// contains filtered or unexported fields
}

NamespaceQuery is the builder for querying Namespace entities.

func (*NamespaceQuery) All

func (nq *NamespaceQuery) All(ctx context.Context) ([]*Namespace, error)

All executes the query and returns a list of Namespaces.

func (*NamespaceQuery) AllX

func (nq *NamespaceQuery) AllX(ctx context.Context) []*Namespace

AllX is like All, but panics if an error occurs.

func (*NamespaceQuery) Clone

func (nq *NamespaceQuery) Clone() *NamespaceQuery

Clone returns a duplicate of the NamespaceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*NamespaceQuery) Count

func (nq *NamespaceQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*NamespaceQuery) CountX

func (nq *NamespaceQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*NamespaceQuery) Exist

func (nq *NamespaceQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*NamespaceQuery) ExistX

func (nq *NamespaceQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*NamespaceQuery) First

func (nq *NamespaceQuery) First(ctx context.Context) (*Namespace, error)

First returns the first Namespace entity from the query. Returns a *NotFoundError when no Namespace was found.

func (*NamespaceQuery) FirstID

func (nq *NamespaceQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first Namespace ID from the query. Returns a *NotFoundError when no Namespace ID was found.

func (*NamespaceQuery) FirstIDX

func (nq *NamespaceQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*NamespaceQuery) FirstX

func (nq *NamespaceQuery) FirstX(ctx context.Context) *Namespace

FirstX is like First, but panics if an error occurs.

func (*NamespaceQuery) GroupBy

func (nq *NamespaceQuery) GroupBy(field string, fields ...string) *NamespaceGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Created time.Time `json:"created,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Namespace.Query().
	GroupBy(namespace.FieldCreated).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*NamespaceQuery) IDs

func (nq *NamespaceQuery) IDs(ctx context.Context) ([]string, error)

IDs executes the query and returns a list of Namespace IDs.

func (*NamespaceQuery) IDsX

func (nq *NamespaceQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*NamespaceQuery) Limit

func (nq *NamespaceQuery) Limit(limit int) *NamespaceQuery

Limit adds a limit step to the query.

func (*NamespaceQuery) Offset

func (nq *NamespaceQuery) Offset(offset int) *NamespaceQuery

Offset adds an offset step to the query.

func (*NamespaceQuery) Only

func (nq *NamespaceQuery) Only(ctx context.Context) (*Namespace, error)

Only returns a single Namespace entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Namespace entity is not found. Returns a *NotFoundError when no Namespace entities are found.

func (*NamespaceQuery) OnlyID

func (nq *NamespaceQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only Namespace ID in the query. Returns a *NotSingularError when exactly one Namespace ID is not found. Returns a *NotFoundError when no entities are found.

func (*NamespaceQuery) OnlyIDX

func (nq *NamespaceQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*NamespaceQuery) OnlyX

func (nq *NamespaceQuery) OnlyX(ctx context.Context) *Namespace

OnlyX is like Only, but panics if an error occurs.

func (*NamespaceQuery) Order

func (nq *NamespaceQuery) Order(o ...OrderFunc) *NamespaceQuery

Order adds an order step to the query.

func (*NamespaceQuery) QueryWorkflows

func (nq *NamespaceQuery) QueryWorkflows() *WorkflowQuery

QueryWorkflows chains the current query on the "workflows" edge.

func (*NamespaceQuery) Select

func (nq *NamespaceQuery) Select(fields ...string) *NamespaceSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Created time.Time `json:"created,omitempty"`
}

client.Namespace.Query().
	Select(namespace.FieldCreated).
	Scan(ctx, &v)

func (*NamespaceQuery) Unique

func (nq *NamespaceQuery) Unique(unique bool) *NamespaceQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*NamespaceQuery) Where

Where adds a new predicate for the NamespaceQuery builder.

func (*NamespaceQuery) WithWorkflows

func (nq *NamespaceQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *NamespaceQuery

WithWorkflows tells the query-builder to eager-load the nodes that are connected to the "workflows" edge. The optional arguments are used to configure the query builder of the edge.

type NamespaceSelect

type NamespaceSelect struct {
	*NamespaceQuery
	// contains filtered or unexported fields
}

NamespaceSelect is the builder for selecting fields of Namespace entities.

func (*NamespaceSelect) Bool

func (ns *NamespaceSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) BoolX

func (ns *NamespaceSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*NamespaceSelect) Bools

func (ns *NamespaceSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) BoolsX

func (ns *NamespaceSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*NamespaceSelect) Float64

func (ns *NamespaceSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) Float64X

func (ns *NamespaceSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*NamespaceSelect) Float64s

func (ns *NamespaceSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) Float64sX

func (ns *NamespaceSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*NamespaceSelect) Int

func (ns *NamespaceSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) IntX

func (ns *NamespaceSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*NamespaceSelect) Ints

func (ns *NamespaceSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) IntsX

func (ns *NamespaceSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*NamespaceSelect) Scan

func (ns *NamespaceSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*NamespaceSelect) ScanX

func (ns *NamespaceSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*NamespaceSelect) String

func (ns *NamespaceSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) StringX

func (ns *NamespaceSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*NamespaceSelect) Strings

func (ns *NamespaceSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*NamespaceSelect) StringsX

func (ns *NamespaceSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type NamespaceUpdate

type NamespaceUpdate struct {
	// contains filtered or unexported fields
}

NamespaceUpdate is the builder for updating Namespace entities.

func (*NamespaceUpdate) AddWorkflowIDs

func (nu *NamespaceUpdate) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdate

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*NamespaceUpdate) AddWorkflows

func (nu *NamespaceUpdate) AddWorkflows(w ...*Workflow) *NamespaceUpdate

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*NamespaceUpdate) ClearWorkflows

func (nu *NamespaceUpdate) ClearWorkflows() *NamespaceUpdate

ClearWorkflows clears all "workflows" edges to the Workflow entity.

func (*NamespaceUpdate) Exec

func (nu *NamespaceUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*NamespaceUpdate) ExecX

func (nu *NamespaceUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NamespaceUpdate) Mutation

func (nu *NamespaceUpdate) Mutation() *NamespaceMutation

Mutation returns the NamespaceMutation object of the builder.

func (*NamespaceUpdate) RemoveWorkflowIDs

func (nu *NamespaceUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.

func (*NamespaceUpdate) RemoveWorkflows

func (nu *NamespaceUpdate) RemoveWorkflows(w ...*Workflow) *NamespaceUpdate

RemoveWorkflows removes "workflows" edges to Workflow entities.

func (*NamespaceUpdate) Save

func (nu *NamespaceUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*NamespaceUpdate) SaveX

func (nu *NamespaceUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*NamespaceUpdate) Where

Where appends a list predicates to the NamespaceUpdate builder.

type NamespaceUpdateOne

type NamespaceUpdateOne struct {
	// contains filtered or unexported fields
}

NamespaceUpdateOne is the builder for updating a single Namespace entity.

func (*NamespaceUpdateOne) AddWorkflowIDs

func (nuo *NamespaceUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*NamespaceUpdateOne) AddWorkflows

func (nuo *NamespaceUpdateOne) AddWorkflows(w ...*Workflow) *NamespaceUpdateOne

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*NamespaceUpdateOne) ClearWorkflows

func (nuo *NamespaceUpdateOne) ClearWorkflows() *NamespaceUpdateOne

ClearWorkflows clears all "workflows" edges to the Workflow entity.

func (*NamespaceUpdateOne) Exec

func (nuo *NamespaceUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*NamespaceUpdateOne) ExecX

func (nuo *NamespaceUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NamespaceUpdateOne) Mutation

func (nuo *NamespaceUpdateOne) Mutation() *NamespaceMutation

Mutation returns the NamespaceMutation object of the builder.

func (*NamespaceUpdateOne) RemoveWorkflowIDs

func (nuo *NamespaceUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.

func (*NamespaceUpdateOne) RemoveWorkflows

func (nuo *NamespaceUpdateOne) RemoveWorkflows(w ...*Workflow) *NamespaceUpdateOne

RemoveWorkflows removes "workflows" edges to Workflow entities.

func (*NamespaceUpdateOne) Save

func (nuo *NamespaceUpdateOne) Save(ctx context.Context) (*Namespace, error)

Save executes the query and returns the updated Namespace entity.

func (*NamespaceUpdateOne) SaveX

func (nuo *NamespaceUpdateOne) SaveX(ctx context.Context) *Namespace

SaveX is like Save, but panics if an error occurs.

func (*NamespaceUpdateOne) Select

func (nuo *NamespaceUpdateOne) Select(field string, fields ...string) *NamespaceUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

type Namespaces

type Namespaces []*Namespace

Namespaces is a parsable slice of Namespace.

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError returns when trying to fetch a specific entity and it was not found in the database.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error implements the error interface.

type NotLoadedError

type NotLoadedError struct {
	// contains filtered or unexported fields
}

NotLoadedError returns when trying to get a node that was not loaded by the query.

func (*NotLoadedError) Error

func (e *NotLoadedError) Error() string

Error implements the error interface.

type NotSingularError

type NotSingularError struct {
	// contains filtered or unexported fields
}

NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.

func (*NotSingularError) Error

func (e *NotSingularError) Error() string

Error implements the error interface.

type Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...interface{})) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector.

func Asc

func Asc(fields ...string) OrderFunc

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) OrderFunc

Desc applies the given fields in DESC order.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

type RollbackHook func(Rollbacker) Rollbacker

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollbacker method.

type Services

type Services struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Data holds the value of the "data" field.
	Data string `json:"data,omitempty"`
	// contains filtered or unexported fields
}

Services is the model entity for the Services schema.

func (*Services) String

func (s *Services) String() string

String implements the fmt.Stringer.

func (*Services) Unwrap

func (s *Services) Unwrap() *Services

Unwrap unwraps the Services entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Services) Update

func (s *Services) Update() *ServicesUpdateOne

Update returns a builder for updating this Services. Note that you need to call Services.Unwrap() before calling this method if this Services was returned from a transaction, and the transaction was committed or rolled back.

type ServicesClient

type ServicesClient struct {
	// contains filtered or unexported fields
}

ServicesClient is a client for the Services schema.

func NewServicesClient

func NewServicesClient(c config) *ServicesClient

NewServicesClient returns a client for the Services from the given config.

func (*ServicesClient) Create

func (c *ServicesClient) Create() *ServicesCreate

Create returns a create builder for Services.

func (*ServicesClient) CreateBulk

func (c *ServicesClient) CreateBulk(builders ...*ServicesCreate) *ServicesCreateBulk

CreateBulk returns a builder for creating a bulk of Services entities.

func (*ServicesClient) Delete

func (c *ServicesClient) Delete() *ServicesDelete

Delete returns a delete builder for Services.

func (*ServicesClient) DeleteOne

func (c *ServicesClient) DeleteOne(s *Services) *ServicesDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ServicesClient) DeleteOneID

func (c *ServicesClient) DeleteOneID(id int) *ServicesDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ServicesClient) Get

func (c *ServicesClient) Get(ctx context.Context, id int) (*Services, error)

Get returns a Services entity by its id.

func (*ServicesClient) GetX

func (c *ServicesClient) GetX(ctx context.Context, id int) *Services

GetX is like Get, but panics if an error occurs.

func (*ServicesClient) Hooks

func (c *ServicesClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ServicesClient) Query

func (c *ServicesClient) Query() *ServicesQuery

Query returns a query builder for Services.

func (*ServicesClient) Update

func (c *ServicesClient) Update() *ServicesUpdate

Update returns an update builder for Services.

func (*ServicesClient) UpdateOne

func (c *ServicesClient) UpdateOne(s *Services) *ServicesUpdateOne

UpdateOne returns an update builder for the given entity.

func (*ServicesClient) UpdateOneID

func (c *ServicesClient) UpdateOneID(id int) *ServicesUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ServicesClient) Use

func (c *ServicesClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `services.Hooks(f(g(h())))`.

type ServicesCreate

type ServicesCreate struct {
	// contains filtered or unexported fields
}

ServicesCreate is the builder for creating a Services entity.

func (*ServicesCreate) Exec

func (sc *ServicesCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ServicesCreate) ExecX

func (sc *ServicesCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ServicesCreate) Mutation

func (sc *ServicesCreate) Mutation() *ServicesMutation

Mutation returns the ServicesMutation object of the builder.

func (*ServicesCreate) Save

func (sc *ServicesCreate) Save(ctx context.Context) (*Services, error)

Save creates the Services in the database.

func (*ServicesCreate) SaveX

func (sc *ServicesCreate) SaveX(ctx context.Context) *Services

SaveX calls Save and panics if Save returns an error.

func (*ServicesCreate) SetData

func (sc *ServicesCreate) SetData(s string) *ServicesCreate

SetData sets the "data" field.

func (*ServicesCreate) SetName

func (sc *ServicesCreate) SetName(s string) *ServicesCreate

SetName sets the "name" field.

type ServicesCreateBulk

type ServicesCreateBulk struct {
	// contains filtered or unexported fields
}

ServicesCreateBulk is the builder for creating many Services entities in bulk.

func (*ServicesCreateBulk) Exec

func (scb *ServicesCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ServicesCreateBulk) ExecX

func (scb *ServicesCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ServicesCreateBulk) Save

func (scb *ServicesCreateBulk) Save(ctx context.Context) ([]*Services, error)

Save creates the Services entities in the database.

func (*ServicesCreateBulk) SaveX

func (scb *ServicesCreateBulk) SaveX(ctx context.Context) []*Services

SaveX is like Save, but panics if an error occurs.

type ServicesDelete

type ServicesDelete struct {
	// contains filtered or unexported fields
}

ServicesDelete is the builder for deleting a Services entity.

func (*ServicesDelete) Exec

func (sd *ServicesDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ServicesDelete) ExecX

func (sd *ServicesDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ServicesDelete) Where

func (sd *ServicesDelete) Where(ps ...predicate.Services) *ServicesDelete

Where appends a list predicates to the ServicesDelete builder.

type ServicesDeleteOne

type ServicesDeleteOne struct {
	// contains filtered or unexported fields
}

ServicesDeleteOne is the builder for deleting a single Services entity.

func (*ServicesDeleteOne) Exec

func (sdo *ServicesDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ServicesDeleteOne) ExecX

func (sdo *ServicesDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ServicesGroupBy

type ServicesGroupBy struct {
	// contains filtered or unexported fields
}

ServicesGroupBy is the group-by builder for Services entities.

func (*ServicesGroupBy) Aggregate

func (sgb *ServicesGroupBy) Aggregate(fns ...AggregateFunc) *ServicesGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ServicesGroupBy) Bool

func (sgb *ServicesGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) BoolX

func (sgb *ServicesGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ServicesGroupBy) Bools

func (sgb *ServicesGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) BoolsX

func (sgb *ServicesGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ServicesGroupBy) Float64

func (sgb *ServicesGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) Float64X

func (sgb *ServicesGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ServicesGroupBy) Float64s

func (sgb *ServicesGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) Float64sX

func (sgb *ServicesGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ServicesGroupBy) Int

func (sgb *ServicesGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) IntX

func (sgb *ServicesGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ServicesGroupBy) Ints

func (sgb *ServicesGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) IntsX

func (sgb *ServicesGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ServicesGroupBy) Scan

func (sgb *ServicesGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ServicesGroupBy) ScanX

func (sgb *ServicesGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ServicesGroupBy) String

func (sgb *ServicesGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) StringX

func (sgb *ServicesGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ServicesGroupBy) Strings

func (sgb *ServicesGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ServicesGroupBy) StringsX

func (sgb *ServicesGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ServicesMutation

type ServicesMutation struct {
	// contains filtered or unexported fields
}

ServicesMutation represents an operation that mutates the Services nodes in the graph.

func (*ServicesMutation) AddField

func (m *ServicesMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ServicesMutation) AddedEdges

func (m *ServicesMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ServicesMutation) AddedField

func (m *ServicesMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ServicesMutation) AddedFields

func (m *ServicesMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ServicesMutation) AddedIDs

func (m *ServicesMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ServicesMutation) ClearEdge

func (m *ServicesMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ServicesMutation) ClearField

func (m *ServicesMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ServicesMutation) ClearedEdges

func (m *ServicesMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ServicesMutation) ClearedFields

func (m *ServicesMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ServicesMutation) Client

func (m ServicesMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ServicesMutation) Data

func (m *ServicesMutation) Data() (r string, exists bool)

Data returns the value of the "data" field in the mutation.

func (*ServicesMutation) EdgeCleared

func (m *ServicesMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ServicesMutation) Field

func (m *ServicesMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ServicesMutation) FieldCleared

func (m *ServicesMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ServicesMutation) Fields

func (m *ServicesMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ServicesMutation) ID

func (m *ServicesMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ServicesMutation) Name

func (m *ServicesMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ServicesMutation) OldData

func (m *ServicesMutation) OldData(ctx context.Context) (v string, err error)

OldData returns the old "data" field's value of the Services entity. If the Services object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ServicesMutation) OldField

func (m *ServicesMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ServicesMutation) OldName

func (m *ServicesMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Services entity. If the Services object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ServicesMutation) Op

func (m *ServicesMutation) Op() Op

Op returns the operation name.

func (*ServicesMutation) RemovedEdges

func (m *ServicesMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ServicesMutation) RemovedIDs

func (m *ServicesMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ServicesMutation) ResetData

func (m *ServicesMutation) ResetData()

ResetData resets all changes to the "data" field.

func (*ServicesMutation) ResetEdge

func (m *ServicesMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ServicesMutation) ResetField

func (m *ServicesMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ServicesMutation) ResetName

func (m *ServicesMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ServicesMutation) SetData

func (m *ServicesMutation) SetData(s string)

SetData sets the "data" field.

func (*ServicesMutation) SetField

func (m *ServicesMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ServicesMutation) SetName

func (m *ServicesMutation) SetName(s string)

SetName sets the "name" field.

func (ServicesMutation) Tx

func (m ServicesMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ServicesMutation) Type

func (m *ServicesMutation) Type() string

Type returns the node type of this mutation (Services).

func (*ServicesMutation) Where

func (m *ServicesMutation) Where(ps ...predicate.Services)

Where appends a list predicates to the ServicesMutation builder.

type ServicesQuery

type ServicesQuery struct {
	// contains filtered or unexported fields
}

ServicesQuery is the builder for querying Services entities.

func (*ServicesQuery) All

func (sq *ServicesQuery) All(ctx context.Context) ([]*Services, error)

All executes the query and returns a list of ServicesSlice.

func (*ServicesQuery) AllX

func (sq *ServicesQuery) AllX(ctx context.Context) []*Services

AllX is like All, but panics if an error occurs.

func (*ServicesQuery) Clone

func (sq *ServicesQuery) Clone() *ServicesQuery

Clone returns a duplicate of the ServicesQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ServicesQuery) Count

func (sq *ServicesQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ServicesQuery) CountX

func (sq *ServicesQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ServicesQuery) Exist

func (sq *ServicesQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ServicesQuery) ExistX

func (sq *ServicesQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ServicesQuery) First

func (sq *ServicesQuery) First(ctx context.Context) (*Services, error)

First returns the first Services entity from the query. Returns a *NotFoundError when no Services was found.

func (*ServicesQuery) FirstID

func (sq *ServicesQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Services ID from the query. Returns a *NotFoundError when no Services ID was found.

func (*ServicesQuery) FirstIDX

func (sq *ServicesQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ServicesQuery) FirstX

func (sq *ServicesQuery) FirstX(ctx context.Context) *Services

FirstX is like First, but panics if an error occurs.

func (*ServicesQuery) GroupBy

func (sq *ServicesQuery) GroupBy(field string, fields ...string) *ServicesGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Services.Query().
	GroupBy(services.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ServicesQuery) IDs

func (sq *ServicesQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Services IDs.

func (*ServicesQuery) IDsX

func (sq *ServicesQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ServicesQuery) Limit

func (sq *ServicesQuery) Limit(limit int) *ServicesQuery

Limit adds a limit step to the query.

func (*ServicesQuery) Offset

func (sq *ServicesQuery) Offset(offset int) *ServicesQuery

Offset adds an offset step to the query.

func (*ServicesQuery) Only

func (sq *ServicesQuery) Only(ctx context.Context) (*Services, error)

Only returns a single Services entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Services entity is not found. Returns a *NotFoundError when no Services entities are found.

func (*ServicesQuery) OnlyID

func (sq *ServicesQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Services ID in the query. Returns a *NotSingularError when exactly one Services ID is not found. Returns a *NotFoundError when no entities are found.

func (*ServicesQuery) OnlyIDX

func (sq *ServicesQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ServicesQuery) OnlyX

func (sq *ServicesQuery) OnlyX(ctx context.Context) *Services

OnlyX is like Only, but panics if an error occurs.

func (*ServicesQuery) Order

func (sq *ServicesQuery) Order(o ...OrderFunc) *ServicesQuery

Order adds an order step to the query.

func (*ServicesQuery) Select

func (sq *ServicesQuery) Select(fields ...string) *ServicesSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Services.Query().
	Select(services.FieldName).
	Scan(ctx, &v)

func (*ServicesQuery) Unique

func (sq *ServicesQuery) Unique(unique bool) *ServicesQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ServicesQuery) Where

func (sq *ServicesQuery) Where(ps ...predicate.Services) *ServicesQuery

Where adds a new predicate for the ServicesQuery builder.

type ServicesSelect

type ServicesSelect struct {
	*ServicesQuery
	// contains filtered or unexported fields
}

ServicesSelect is the builder for selecting fields of Services entities.

func (*ServicesSelect) Bool

func (ss *ServicesSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) BoolX

func (ss *ServicesSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ServicesSelect) Bools

func (ss *ServicesSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) BoolsX

func (ss *ServicesSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ServicesSelect) Float64

func (ss *ServicesSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) Float64X

func (ss *ServicesSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ServicesSelect) Float64s

func (ss *ServicesSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) Float64sX

func (ss *ServicesSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ServicesSelect) Int

func (ss *ServicesSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) IntX

func (ss *ServicesSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ServicesSelect) Ints

func (ss *ServicesSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) IntsX

func (ss *ServicesSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ServicesSelect) Scan

func (ss *ServicesSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ServicesSelect) ScanX

func (ss *ServicesSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ServicesSelect) String

func (ss *ServicesSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) StringX

func (ss *ServicesSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ServicesSelect) Strings

func (ss *ServicesSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ServicesSelect) StringsX

func (ss *ServicesSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ServicesSlice

type ServicesSlice []*Services

ServicesSlice is a parsable slice of Services.

type ServicesUpdate

type ServicesUpdate struct {
	// contains filtered or unexported fields
}

ServicesUpdate is the builder for updating Services entities.

func (*ServicesUpdate) Exec

func (su *ServicesUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ServicesUpdate) ExecX

func (su *ServicesUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ServicesUpdate) Mutation

func (su *ServicesUpdate) Mutation() *ServicesMutation

Mutation returns the ServicesMutation object of the builder.

func (*ServicesUpdate) Save

func (su *ServicesUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ServicesUpdate) SaveX

func (su *ServicesUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ServicesUpdate) SetData

func (su *ServicesUpdate) SetData(s string) *ServicesUpdate

SetData sets the "data" field.

func (*ServicesUpdate) Where

func (su *ServicesUpdate) Where(ps ...predicate.Services) *ServicesUpdate

Where appends a list predicates to the ServicesUpdate builder.

type ServicesUpdateOne

type ServicesUpdateOne struct {
	// contains filtered or unexported fields
}

ServicesUpdateOne is the builder for updating a single Services entity.

func (*ServicesUpdateOne) Exec

func (suo *ServicesUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ServicesUpdateOne) ExecX

func (suo *ServicesUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ServicesUpdateOne) Mutation

func (suo *ServicesUpdateOne) Mutation() *ServicesMutation

Mutation returns the ServicesMutation object of the builder.

func (*ServicesUpdateOne) Save

func (suo *ServicesUpdateOne) Save(ctx context.Context) (*Services, error)

Save executes the query and returns the updated Services entity.

func (*ServicesUpdateOne) SaveX

func (suo *ServicesUpdateOne) SaveX(ctx context.Context) *Services

SaveX is like Save, but panics if an error occurs.

func (*ServicesUpdateOne) Select

func (suo *ServicesUpdateOne) Select(field string, fields ...string) *ServicesUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ServicesUpdateOne) SetData

func (suo *ServicesUpdateOne) SetData(s string) *ServicesUpdateOne

SetData sets the "data" field.

type Tx

type Tx struct {

	// CloudEvents is the client for interacting with the CloudEvents builders.
	CloudEvents *CloudEventsClient
	// Namespace is the client for interacting with the Namespace builders.
	Namespace *NamespaceClient
	// Services is the client for interacting with the Services builders.
	Services *ServicesClient
	// Workflow is the client for interacting with the Workflow builders.
	Workflow *WorkflowClient
	// WorkflowEvents is the client for interacting with the WorkflowEvents builders.
	WorkflowEvents *WorkflowEventsClient
	// WorkflowEventsWait is the client for interacting with the WorkflowEventsWait builders.
	WorkflowEventsWait *WorkflowEventsWaitClient
	// WorkflowInstance is the client for interacting with the WorkflowInstance builders.
	WorkflowInstance *WorkflowInstanceClient
	// contains filtered or unexported fields
}

Tx is a transactional client that is created by calling Client.Tx().

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

type Workflow

type Workflow struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Created holds the value of the "created" field.
	Created time.Time `json:"created,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// Active holds the value of the "active" field.
	Active bool `json:"active,omitempty"`
	// Revision holds the value of the "revision" field.
	Revision int `json:"revision,omitempty"`
	// Workflow holds the value of the "workflow" field.
	Workflow []byte `json:"workflow,omitempty"`
	// LogToEvents holds the value of the "logToEvents" field.
	LogToEvents string `json:"logToEvents,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowQuery when eager-loading is set.
	Edges WorkflowEdges `json:"edges"`
	// contains filtered or unexported fields
}

Workflow is the model entity for the Workflow schema.

func (*Workflow) QueryInstances

func (w *Workflow) QueryInstances() *WorkflowInstanceQuery

QueryInstances queries the "instances" edge of the Workflow entity.

func (*Workflow) QueryNamespace

func (w *Workflow) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the Workflow entity.

func (*Workflow) QueryWfevents

func (w *Workflow) QueryWfevents() *WorkflowEventsQuery

QueryWfevents queries the "wfevents" edge of the Workflow entity.

func (*Workflow) String

func (w *Workflow) String() string

String implements the fmt.Stringer.

func (*Workflow) Unwrap

func (w *Workflow) Unwrap() *Workflow

Unwrap unwraps the Workflow entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Workflow) Update

func (w *Workflow) Update() *WorkflowUpdateOne

Update returns a builder for updating this Workflow. Note that you need to call Workflow.Unwrap() before calling this method if this Workflow was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowClient

type WorkflowClient struct {
	// contains filtered or unexported fields
}

WorkflowClient is a client for the Workflow schema.

func NewWorkflowClient

func NewWorkflowClient(c config) *WorkflowClient

NewWorkflowClient returns a client for the Workflow from the given config.

func (*WorkflowClient) Create

func (c *WorkflowClient) Create() *WorkflowCreate

Create returns a create builder for Workflow.

func (*WorkflowClient) CreateBulk

func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk

CreateBulk returns a builder for creating a bulk of Workflow entities.

func (*WorkflowClient) Delete

func (c *WorkflowClient) Delete() *WorkflowDelete

Delete returns a delete builder for Workflow.

func (*WorkflowClient) DeleteOne

func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*WorkflowClient) DeleteOneID

func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*WorkflowClient) Get

func (c *WorkflowClient) Get(ctx context.Context, id uuid.UUID) (*Workflow, error)

Get returns a Workflow entity by its id.

func (*WorkflowClient) GetX

func (c *WorkflowClient) GetX(ctx context.Context, id uuid.UUID) *Workflow

GetX is like Get, but panics if an error occurs.

func (*WorkflowClient) Hooks

func (c *WorkflowClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowClient) Query

func (c *WorkflowClient) Query() *WorkflowQuery

Query returns a query builder for Workflow.

func (*WorkflowClient) QueryInstances

func (c *WorkflowClient) QueryInstances(w *Workflow) *WorkflowInstanceQuery

QueryInstances queries the instances edge of a Workflow.

func (*WorkflowClient) QueryNamespace

func (c *WorkflowClient) QueryNamespace(w *Workflow) *NamespaceQuery

QueryNamespace queries the namespace edge of a Workflow.

func (*WorkflowClient) QueryWfevents

func (c *WorkflowClient) QueryWfevents(w *Workflow) *WorkflowEventsQuery

QueryWfevents queries the wfevents edge of a Workflow.

func (*WorkflowClient) Update

func (c *WorkflowClient) Update() *WorkflowUpdate

Update returns an update builder for Workflow.

func (*WorkflowClient) UpdateOne

func (c *WorkflowClient) UpdateOne(w *Workflow) *WorkflowUpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowClient) UpdateOneID

func (c *WorkflowClient) UpdateOneID(id uuid.UUID) *WorkflowUpdateOne

UpdateOneID returns an update builder for the given id.

func (*WorkflowClient) Use

func (c *WorkflowClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflow.Hooks(f(g(h())))`.

type WorkflowCreate

type WorkflowCreate struct {
	// contains filtered or unexported fields
}

WorkflowCreate is the builder for creating a Workflow entity.

func (*WorkflowCreate) AddInstanceIDs

func (wc *WorkflowCreate) AddInstanceIDs(ids ...int) *WorkflowCreate

AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by IDs.

func (*WorkflowCreate) AddInstances

func (wc *WorkflowCreate) AddInstances(w ...*WorkflowInstance) *WorkflowCreate

AddInstances adds the "instances" edges to the WorkflowInstance entity.

func (*WorkflowCreate) AddWfeventIDs

func (wc *WorkflowCreate) AddWfeventIDs(ids ...int) *WorkflowCreate

AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by IDs.

func (*WorkflowCreate) AddWfevents

func (wc *WorkflowCreate) AddWfevents(w ...*WorkflowEvents) *WorkflowCreate

AddWfevents adds the "wfevents" edges to the WorkflowEvents entity.

func (*WorkflowCreate) Exec

func (wc *WorkflowCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowCreate) ExecX

func (wc *WorkflowCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowCreate) Mutation

func (wc *WorkflowCreate) Mutation() *WorkflowMutation

Mutation returns the WorkflowMutation object of the builder.

func (*WorkflowCreate) Save

func (wc *WorkflowCreate) Save(ctx context.Context) (*Workflow, error)

Save creates the Workflow in the database.

func (*WorkflowCreate) SaveX

func (wc *WorkflowCreate) SaveX(ctx context.Context) *Workflow

SaveX calls Save and panics if Save returns an error.

func (*WorkflowCreate) SetActive

func (wc *WorkflowCreate) SetActive(b bool) *WorkflowCreate

SetActive sets the "active" field.

func (*WorkflowCreate) SetCreated

func (wc *WorkflowCreate) SetCreated(t time.Time) *WorkflowCreate

SetCreated sets the "created" field.

func (*WorkflowCreate) SetDescription

func (wc *WorkflowCreate) SetDescription(s string) *WorkflowCreate

SetDescription sets the "description" field.

func (*WorkflowCreate) SetID

func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate

SetID sets the "id" field.

func (*WorkflowCreate) SetLogToEvents

func (wc *WorkflowCreate) SetLogToEvents(s string) *WorkflowCreate

SetLogToEvents sets the "logToEvents" field.

func (*WorkflowCreate) SetName

func (wc *WorkflowCreate) SetName(s string) *WorkflowCreate

SetName sets the "name" field.

func (*WorkflowCreate) SetNamespace

func (wc *WorkflowCreate) SetNamespace(n *Namespace) *WorkflowCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*WorkflowCreate) SetNamespaceID

func (wc *WorkflowCreate) SetNamespaceID(id string) *WorkflowCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*WorkflowCreate) SetNillableActive

func (wc *WorkflowCreate) SetNillableActive(b *bool) *WorkflowCreate

SetNillableActive sets the "active" field if the given value is not nil.

func (*WorkflowCreate) SetNillableCreated

func (wc *WorkflowCreate) SetNillableCreated(t *time.Time) *WorkflowCreate

SetNillableCreated sets the "created" field if the given value is not nil.

func (*WorkflowCreate) SetNillableDescription

func (wc *WorkflowCreate) SetNillableDescription(s *string) *WorkflowCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*WorkflowCreate) SetNillableLogToEvents

func (wc *WorkflowCreate) SetNillableLogToEvents(s *string) *WorkflowCreate

SetNillableLogToEvents sets the "logToEvents" field if the given value is not nil.

func (*WorkflowCreate) SetNillableRevision

func (wc *WorkflowCreate) SetNillableRevision(i *int) *WorkflowCreate

SetNillableRevision sets the "revision" field if the given value is not nil.

func (*WorkflowCreate) SetRevision

func (wc *WorkflowCreate) SetRevision(i int) *WorkflowCreate

SetRevision sets the "revision" field.

func (*WorkflowCreate) SetWorkflow

func (wc *WorkflowCreate) SetWorkflow(b []byte) *WorkflowCreate

SetWorkflow sets the "workflow" field.

type WorkflowCreateBulk

type WorkflowCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowCreateBulk is the builder for creating many Workflow entities in bulk.

func (*WorkflowCreateBulk) Exec

func (wcb *WorkflowCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowCreateBulk) ExecX

func (wcb *WorkflowCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowCreateBulk) Save

func (wcb *WorkflowCreateBulk) Save(ctx context.Context) ([]*Workflow, error)

Save creates the Workflow entities in the database.

func (*WorkflowCreateBulk) SaveX

func (wcb *WorkflowCreateBulk) SaveX(ctx context.Context) []*Workflow

SaveX is like Save, but panics if an error occurs.

type WorkflowDelete

type WorkflowDelete struct {
	// contains filtered or unexported fields
}

WorkflowDelete is the builder for deleting a Workflow entity.

func (*WorkflowDelete) Exec

func (wd *WorkflowDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowDelete) ExecX

func (wd *WorkflowDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowDelete) Where

func (wd *WorkflowDelete) Where(ps ...predicate.Workflow) *WorkflowDelete

Where appends a list predicates to the WorkflowDelete builder.

type WorkflowDeleteOne

type WorkflowDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowDeleteOne is the builder for deleting a single Workflow entity.

func (*WorkflowDeleteOne) Exec

func (wdo *WorkflowDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*WorkflowDeleteOne) ExecX

func (wdo *WorkflowDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type WorkflowEdges

type WorkflowEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*WorkflowInstance `json:"instances,omitempty"`
	// Wfevents holds the value of the wfevents edge.
	Wfevents []*WorkflowEvents `json:"wfevents,omitempty"`
	// contains filtered or unexported fields
}

WorkflowEdges holds the relations/edges for other nodes in the graph.

func (WorkflowEdges) InstancesOrErr

func (e WorkflowEdges) InstancesOrErr() ([]*WorkflowInstance, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) NamespaceOrErr

func (e WorkflowEdges) NamespaceOrErr() (*Namespace, error)

NamespaceOrErr returns the Namespace value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowEdges) WfeventsOrErr

func (e WorkflowEdges) WfeventsOrErr() ([]*WorkflowEvents, error)

WfeventsOrErr returns the Wfevents value or an error if the edge was not loaded in eager-loading.

type WorkflowEvents

type WorkflowEvents struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Events holds the value of the "events" field.
	Events []map[string]interface{} `json:"events,omitempty"`
	// Correlations holds the value of the "correlations" field.
	Correlations []string `json:"correlations,omitempty"`
	// Signature holds the value of the "signature" field.
	Signature []byte `json:"signature,omitempty"`
	// Count holds the value of the "count" field.
	Count int `json:"count,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowEventsQuery when eager-loading is set.
	Edges WorkflowEventsEdges `json:"edges"`
	// contains filtered or unexported fields
}

WorkflowEvents is the model entity for the WorkflowEvents schema.

func (*WorkflowEvents) QueryWfeventswait

func (we *WorkflowEvents) QueryWfeventswait() *WorkflowEventsWaitQuery

QueryWfeventswait queries the "wfeventswait" edge of the WorkflowEvents entity.

func (*WorkflowEvents) QueryWorkflow

func (we *WorkflowEvents) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the WorkflowEvents entity.

func (*WorkflowEvents) QueryWorkflowinstance

func (we *WorkflowEvents) QueryWorkflowinstance() *WorkflowInstanceQuery

QueryWorkflowinstance queries the "workflowinstance" edge of the WorkflowEvents entity.

func (*WorkflowEvents) String

func (we *WorkflowEvents) String() string

String implements the fmt.Stringer.

func (*WorkflowEvents) Unwrap

func (we *WorkflowEvents) Unwrap() *WorkflowEvents

Unwrap unwraps the WorkflowEvents entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*WorkflowEvents) Update

Update returns a builder for updating this WorkflowEvents. Note that you need to call WorkflowEvents.Unwrap() before calling this method if this WorkflowEvents was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowEventsClient

type WorkflowEventsClient struct {
	// contains filtered or unexported fields
}

WorkflowEventsClient is a client for the WorkflowEvents schema.

func NewWorkflowEventsClient

func NewWorkflowEventsClient(c config) *WorkflowEventsClient

NewWorkflowEventsClient returns a client for the WorkflowEvents from the given config.

func (*WorkflowEventsClient) Create

Create returns a create builder for WorkflowEvents.

func (*WorkflowEventsClient) CreateBulk

CreateBulk returns a builder for creating a bulk of WorkflowEvents entities.

func (*WorkflowEventsClient) Delete

Delete returns a delete builder for WorkflowEvents.

func (*WorkflowEventsClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*WorkflowEventsClient) DeleteOneID

func (c *WorkflowEventsClient) DeleteOneID(id int) *WorkflowEventsDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*WorkflowEventsClient) Get

Get returns a WorkflowEvents entity by its id.

func (*WorkflowEventsClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WorkflowEventsClient) Hooks

func (c *WorkflowEventsClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowEventsClient) Query

Query returns a query builder for WorkflowEvents.

func (*WorkflowEventsClient) QueryWfeventswait

func (c *WorkflowEventsClient) QueryWfeventswait(we *WorkflowEvents) *WorkflowEventsWaitQuery

QueryWfeventswait queries the wfeventswait edge of a WorkflowEvents.

func (*WorkflowEventsClient) QueryWorkflow

func (c *WorkflowEventsClient) QueryWorkflow(we *WorkflowEvents) *WorkflowQuery

QueryWorkflow queries the workflow edge of a WorkflowEvents.

func (*WorkflowEventsClient) QueryWorkflowinstance

func (c *WorkflowEventsClient) QueryWorkflowinstance(we *WorkflowEvents) *WorkflowInstanceQuery

QueryWorkflowinstance queries the workflowinstance edge of a WorkflowEvents.

func (*WorkflowEventsClient) Update

Update returns an update builder for WorkflowEvents.

func (*WorkflowEventsClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowEventsClient) UpdateOneID

func (c *WorkflowEventsClient) UpdateOneID(id int) *WorkflowEventsUpdateOne

UpdateOneID returns an update builder for the given id.

func (*WorkflowEventsClient) Use

func (c *WorkflowEventsClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowevents.Hooks(f(g(h())))`.

type WorkflowEventsCreate

type WorkflowEventsCreate struct {
	// contains filtered or unexported fields
}

WorkflowEventsCreate is the builder for creating a WorkflowEvents entity.

func (*WorkflowEventsCreate) AddWfeventswait

func (wec *WorkflowEventsCreate) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsCreate

AddWfeventswait adds the "wfeventswait" edges to the WorkflowEventsWait entity.

func (*WorkflowEventsCreate) AddWfeventswaitIDs

func (wec *WorkflowEventsCreate) AddWfeventswaitIDs(ids ...int) *WorkflowEventsCreate

AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.

func (*WorkflowEventsCreate) Exec

func (wec *WorkflowEventsCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowEventsCreate) ExecX

func (wec *WorkflowEventsCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsCreate) Mutation

Mutation returns the WorkflowEventsMutation object of the builder.

func (*WorkflowEventsCreate) Save

Save creates the WorkflowEvents in the database.

func (*WorkflowEventsCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*WorkflowEventsCreate) SetCorrelations

func (wec *WorkflowEventsCreate) SetCorrelations(s []string) *WorkflowEventsCreate

SetCorrelations sets the "correlations" field.

func (*WorkflowEventsCreate) SetCount

func (wec *WorkflowEventsCreate) SetCount(i int) *WorkflowEventsCreate

SetCount sets the "count" field.

func (*WorkflowEventsCreate) SetEvents

func (wec *WorkflowEventsCreate) SetEvents(m []map[string]interface{}) *WorkflowEventsCreate

SetEvents sets the "events" field.

func (*WorkflowEventsCreate) SetNillableWorkflowinstanceID

func (wec *WorkflowEventsCreate) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsCreate

SetNillableWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID if the given value is not nil.

func (*WorkflowEventsCreate) SetSignature

func (wec *WorkflowEventsCreate) SetSignature(b []byte) *WorkflowEventsCreate

SetSignature sets the "signature" field.

func (*WorkflowEventsCreate) SetWorkflow

func (wec *WorkflowEventsCreate) SetWorkflow(w *Workflow) *WorkflowEventsCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowEventsCreate) SetWorkflowID

func (wec *WorkflowEventsCreate) SetWorkflowID(id uuid.UUID) *WorkflowEventsCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*WorkflowEventsCreate) SetWorkflowinstance

func (wec *WorkflowEventsCreate) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsCreate

SetWorkflowinstance sets the "workflowinstance" edge to the WorkflowInstance entity.

func (*WorkflowEventsCreate) SetWorkflowinstanceID

func (wec *WorkflowEventsCreate) SetWorkflowinstanceID(id int) *WorkflowEventsCreate

SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID.

type WorkflowEventsCreateBulk

type WorkflowEventsCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowEventsCreateBulk is the builder for creating many WorkflowEvents entities in bulk.

func (*WorkflowEventsCreateBulk) Exec

Exec executes the query.

func (*WorkflowEventsCreateBulk) ExecX

func (wecb *WorkflowEventsCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsCreateBulk) Save

Save creates the WorkflowEvents entities in the database.

func (*WorkflowEventsCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type WorkflowEventsDelete

type WorkflowEventsDelete struct {
	// contains filtered or unexported fields
}

WorkflowEventsDelete is the builder for deleting a WorkflowEvents entity.

func (*WorkflowEventsDelete) Exec

func (wed *WorkflowEventsDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowEventsDelete) ExecX

func (wed *WorkflowEventsDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsDelete) Where

Where appends a list predicates to the WorkflowEventsDelete builder.

type WorkflowEventsDeleteOne

type WorkflowEventsDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowEventsDeleteOne is the builder for deleting a single WorkflowEvents entity.

func (*WorkflowEventsDeleteOne) Exec

func (wedo *WorkflowEventsDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*WorkflowEventsDeleteOne) ExecX

func (wedo *WorkflowEventsDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type WorkflowEventsEdges

type WorkflowEventsEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Wfeventswait holds the value of the wfeventswait edge.
	Wfeventswait []*WorkflowEventsWait `json:"wfeventswait,omitempty"`
	// Workflowinstance holds the value of the workflowinstance edge.
	Workflowinstance *WorkflowInstance `json:"workflowinstance,omitempty"`
	// contains filtered or unexported fields
}

WorkflowEventsEdges holds the relations/edges for other nodes in the graph.

func (WorkflowEventsEdges) WfeventswaitOrErr

func (e WorkflowEventsEdges) WfeventswaitOrErr() ([]*WorkflowEventsWait, error)

WfeventswaitOrErr returns the Wfeventswait value or an error if the edge was not loaded in eager-loading.

func (WorkflowEventsEdges) WorkflowOrErr

func (e WorkflowEventsEdges) WorkflowOrErr() (*Workflow, error)

WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowEventsEdges) WorkflowinstanceOrErr

func (e WorkflowEventsEdges) WorkflowinstanceOrErr() (*WorkflowInstance, error)

WorkflowinstanceOrErr returns the Workflowinstance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type WorkflowEventsGroupBy

type WorkflowEventsGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowEventsGroupBy is the group-by builder for WorkflowEvents entities.

func (*WorkflowEventsGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowEventsGroupBy) Bool

func (wegb *WorkflowEventsGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) BoolX

func (wegb *WorkflowEventsGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Bools

func (wegb *WorkflowEventsGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) BoolsX

func (wegb *WorkflowEventsGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Float64

func (wegb *WorkflowEventsGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) Float64X

func (wegb *WorkflowEventsGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Float64s

func (wegb *WorkflowEventsGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) Float64sX

func (wegb *WorkflowEventsGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Int

func (wegb *WorkflowEventsGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) IntX

func (wegb *WorkflowEventsGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Ints

func (wegb *WorkflowEventsGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) IntsX

func (wegb *WorkflowEventsGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Scan

func (wegb *WorkflowEventsGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*WorkflowEventsGroupBy) ScanX

func (wegb *WorkflowEventsGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowEventsGroupBy) String

func (wegb *WorkflowEventsGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) StringX

func (wegb *WorkflowEventsGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowEventsGroupBy) Strings

func (wegb *WorkflowEventsGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsGroupBy) StringsX

func (wegb *WorkflowEventsGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowEventsMutation

type WorkflowEventsMutation struct {
	// contains filtered or unexported fields
}

WorkflowEventsMutation represents an operation that mutates the WorkflowEvents nodes in the graph.

func (*WorkflowEventsMutation) AddCount

func (m *WorkflowEventsMutation) AddCount(i int)

AddCount adds i to the "count" field.

func (*WorkflowEventsMutation) AddField

func (m *WorkflowEventsMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowEventsMutation) AddWfeventswaitIDs

func (m *WorkflowEventsMutation) AddWfeventswaitIDs(ids ...int)

AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by ids.

func (*WorkflowEventsMutation) AddedCount

func (m *WorkflowEventsMutation) AddedCount() (r int, exists bool)

AddedCount returns the value that was added to the "count" field in this mutation.

func (*WorkflowEventsMutation) AddedEdges

func (m *WorkflowEventsMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowEventsMutation) AddedField

func (m *WorkflowEventsMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowEventsMutation) AddedFields

func (m *WorkflowEventsMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowEventsMutation) AddedIDs

func (m *WorkflowEventsMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowEventsMutation) ClearEdge

func (m *WorkflowEventsMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*WorkflowEventsMutation) ClearField

func (m *WorkflowEventsMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowEventsMutation) ClearSignature

func (m *WorkflowEventsMutation) ClearSignature()

ClearSignature clears the value of the "signature" field.

func (*WorkflowEventsMutation) ClearWfeventswait

func (m *WorkflowEventsMutation) ClearWfeventswait()

ClearWfeventswait clears the "wfeventswait" edge to the WorkflowEventsWait entity.

func (*WorkflowEventsMutation) ClearWorkflow

func (m *WorkflowEventsMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowEventsMutation) ClearWorkflowinstance

func (m *WorkflowEventsMutation) ClearWorkflowinstance()

ClearWorkflowinstance clears the "workflowinstance" edge to the WorkflowInstance entity.

func (*WorkflowEventsMutation) ClearedEdges

func (m *WorkflowEventsMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowEventsMutation) ClearedFields

func (m *WorkflowEventsMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowEventsMutation) Client

func (m WorkflowEventsMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*WorkflowEventsMutation) Correlations

func (m *WorkflowEventsMutation) Correlations() (r []string, exists bool)

Correlations returns the value of the "correlations" field in the mutation.

func (*WorkflowEventsMutation) Count

func (m *WorkflowEventsMutation) Count() (r int, exists bool)

Count returns the value of the "count" field in the mutation.

func (*WorkflowEventsMutation) EdgeCleared

func (m *WorkflowEventsMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowEventsMutation) Events

func (m *WorkflowEventsMutation) Events() (r []map[string]interface{}, exists bool)

Events returns the value of the "events" field in the mutation.

func (*WorkflowEventsMutation) Field

func (m *WorkflowEventsMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowEventsMutation) FieldCleared

func (m *WorkflowEventsMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowEventsMutation) Fields

func (m *WorkflowEventsMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*WorkflowEventsMutation) ID

func (m *WorkflowEventsMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*WorkflowEventsMutation) OldCorrelations

func (m *WorkflowEventsMutation) OldCorrelations(ctx context.Context) (v []string, err error)

OldCorrelations returns the old "correlations" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowEventsMutation) OldCount

func (m *WorkflowEventsMutation) OldCount(ctx context.Context) (v int, err error)

OldCount returns the old "count" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowEventsMutation) OldEvents

func (m *WorkflowEventsMutation) OldEvents(ctx context.Context) (v []map[string]interface{}, err error)

OldEvents returns the old "events" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowEventsMutation) OldField

func (m *WorkflowEventsMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*WorkflowEventsMutation) OldSignature

func (m *WorkflowEventsMutation) OldSignature(ctx context.Context) (v []byte, err error)

OldSignature returns the old "signature" field's value of the WorkflowEvents entity. If the WorkflowEvents object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowEventsMutation) Op

func (m *WorkflowEventsMutation) Op() Op

Op returns the operation name.

func (*WorkflowEventsMutation) RemoveWfeventswaitIDs

func (m *WorkflowEventsMutation) RemoveWfeventswaitIDs(ids ...int)

RemoveWfeventswaitIDs removes the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.

func (*WorkflowEventsMutation) RemovedEdges

func (m *WorkflowEventsMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowEventsMutation) RemovedIDs

func (m *WorkflowEventsMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*WorkflowEventsMutation) RemovedWfeventswaitIDs

func (m *WorkflowEventsMutation) RemovedWfeventswaitIDs() (ids []int)

RemovedWfeventswait returns the removed IDs of the "wfeventswait" edge to the WorkflowEventsWait entity.

func (*WorkflowEventsMutation) ResetCorrelations

func (m *WorkflowEventsMutation) ResetCorrelations()

ResetCorrelations resets all changes to the "correlations" field.

func (*WorkflowEventsMutation) ResetCount

func (m *WorkflowEventsMutation) ResetCount()

ResetCount resets all changes to the "count" field.

func (*WorkflowEventsMutation) ResetEdge

func (m *WorkflowEventsMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*WorkflowEventsMutation) ResetEvents

func (m *WorkflowEventsMutation) ResetEvents()

ResetEvents resets all changes to the "events" field.

func (*WorkflowEventsMutation) ResetField

func (m *WorkflowEventsMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowEventsMutation) ResetSignature

func (m *WorkflowEventsMutation) ResetSignature()

ResetSignature resets all changes to the "signature" field.

func (*WorkflowEventsMutation) ResetWfeventswait

func (m *WorkflowEventsMutation) ResetWfeventswait()

ResetWfeventswait resets all changes to the "wfeventswait" edge.

func (*WorkflowEventsMutation) ResetWorkflow

func (m *WorkflowEventsMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*WorkflowEventsMutation) ResetWorkflowinstance

func (m *WorkflowEventsMutation) ResetWorkflowinstance()

ResetWorkflowinstance resets all changes to the "workflowinstance" edge.

func (*WorkflowEventsMutation) SetCorrelations

func (m *WorkflowEventsMutation) SetCorrelations(s []string)

SetCorrelations sets the "correlations" field.

func (*WorkflowEventsMutation) SetCount

func (m *WorkflowEventsMutation) SetCount(i int)

SetCount sets the "count" field.

func (*WorkflowEventsMutation) SetEvents

func (m *WorkflowEventsMutation) SetEvents(value []map[string]interface{})

SetEvents sets the "events" field.

func (*WorkflowEventsMutation) SetField

func (m *WorkflowEventsMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowEventsMutation) SetSignature

func (m *WorkflowEventsMutation) SetSignature(b []byte)

SetSignature sets the "signature" field.

func (*WorkflowEventsMutation) SetWorkflowID

func (m *WorkflowEventsMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*WorkflowEventsMutation) SetWorkflowinstanceID

func (m *WorkflowEventsMutation) SetWorkflowinstanceID(id int)

SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by id.

func (*WorkflowEventsMutation) Signature

func (m *WorkflowEventsMutation) Signature() (r []byte, exists bool)

Signature returns the value of the "signature" field in the mutation.

func (*WorkflowEventsMutation) SignatureCleared

func (m *WorkflowEventsMutation) SignatureCleared() bool

SignatureCleared returns if the "signature" field was cleared in this mutation.

func (WorkflowEventsMutation) Tx

func (m WorkflowEventsMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowEventsMutation) Type

func (m *WorkflowEventsMutation) Type() string

Type returns the node type of this mutation (WorkflowEvents).

func (*WorkflowEventsMutation) WfeventswaitCleared

func (m *WorkflowEventsMutation) WfeventswaitCleared() bool

WfeventswaitCleared reports if the "wfeventswait" edge to the WorkflowEventsWait entity was cleared.

func (*WorkflowEventsMutation) WfeventswaitIDs

func (m *WorkflowEventsMutation) WfeventswaitIDs() (ids []int)

WfeventswaitIDs returns the "wfeventswait" edge IDs in the mutation.

func (*WorkflowEventsMutation) Where

Where appends a list predicates to the WorkflowEventsMutation builder.

func (*WorkflowEventsMutation) WorkflowCleared

func (m *WorkflowEventsMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*WorkflowEventsMutation) WorkflowID

func (m *WorkflowEventsMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*WorkflowEventsMutation) WorkflowIDs

func (m *WorkflowEventsMutation) WorkflowIDs() (ids []uuid.UUID)

WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.

func (*WorkflowEventsMutation) WorkflowinstanceCleared

func (m *WorkflowEventsMutation) WorkflowinstanceCleared() bool

WorkflowinstanceCleared reports if the "workflowinstance" edge to the WorkflowInstance entity was cleared.

func (*WorkflowEventsMutation) WorkflowinstanceID

func (m *WorkflowEventsMutation) WorkflowinstanceID() (id int, exists bool)

WorkflowinstanceID returns the "workflowinstance" edge ID in the mutation.

func (*WorkflowEventsMutation) WorkflowinstanceIDs

func (m *WorkflowEventsMutation) WorkflowinstanceIDs() (ids []int)

WorkflowinstanceIDs returns the "workflowinstance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowinstanceID instead. It exists only for internal usage by the builders.

type WorkflowEventsQuery

type WorkflowEventsQuery struct {
	// contains filtered or unexported fields
}

WorkflowEventsQuery is the builder for querying WorkflowEvents entities.

func (*WorkflowEventsQuery) All

All executes the query and returns a list of WorkflowEventsSlice.

func (*WorkflowEventsQuery) AllX

AllX is like All, but panics if an error occurs.

func (*WorkflowEventsQuery) Clone

Clone returns a duplicate of the WorkflowEventsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowEventsQuery) Count

func (weq *WorkflowEventsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowEventsQuery) CountX

func (weq *WorkflowEventsQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowEventsQuery) Exist

func (weq *WorkflowEventsQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowEventsQuery) ExistX

func (weq *WorkflowEventsQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowEventsQuery) First

First returns the first WorkflowEvents entity from the query. Returns a *NotFoundError when no WorkflowEvents was found.

func (*WorkflowEventsQuery) FirstID

func (weq *WorkflowEventsQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first WorkflowEvents ID from the query. Returns a *NotFoundError when no WorkflowEvents ID was found.

func (*WorkflowEventsQuery) FirstIDX

func (weq *WorkflowEventsQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowEventsQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*WorkflowEventsQuery) GroupBy

func (weq *WorkflowEventsQuery) GroupBy(field string, fields ...string) *WorkflowEventsGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Events []map[string]interface {} `json:"events,omitempty"`
	Count int `json:"count,omitempty"`
}

client.WorkflowEvents.Query().
	GroupBy(workflowevents.FieldEvents).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowEventsQuery) IDs

func (weq *WorkflowEventsQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of WorkflowEvents IDs.

func (*WorkflowEventsQuery) IDsX

func (weq *WorkflowEventsQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowEventsQuery) Limit

func (weq *WorkflowEventsQuery) Limit(limit int) *WorkflowEventsQuery

Limit adds a limit step to the query.

func (*WorkflowEventsQuery) Offset

func (weq *WorkflowEventsQuery) Offset(offset int) *WorkflowEventsQuery

Offset adds an offset step to the query.

func (*WorkflowEventsQuery) Only

Only returns a single WorkflowEvents entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one WorkflowEvents entity is not found. Returns a *NotFoundError when no WorkflowEvents entities are found.

func (*WorkflowEventsQuery) OnlyID

func (weq *WorkflowEventsQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only WorkflowEvents ID in the query. Returns a *NotSingularError when exactly one WorkflowEvents ID is not found. Returns a *NotFoundError when no entities are found.

func (*WorkflowEventsQuery) OnlyIDX

func (weq *WorkflowEventsQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowEventsQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowEventsQuery) Order

Order adds an order step to the query.

func (*WorkflowEventsQuery) QueryWfeventswait

func (weq *WorkflowEventsQuery) QueryWfeventswait() *WorkflowEventsWaitQuery

QueryWfeventswait chains the current query on the "wfeventswait" edge.

func (*WorkflowEventsQuery) QueryWorkflow

func (weq *WorkflowEventsQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*WorkflowEventsQuery) QueryWorkflowinstance

func (weq *WorkflowEventsQuery) QueryWorkflowinstance() *WorkflowInstanceQuery

QueryWorkflowinstance chains the current query on the "workflowinstance" edge.

func (*WorkflowEventsQuery) Select

func (weq *WorkflowEventsQuery) Select(fields ...string) *WorkflowEventsSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Events []map[string]interface {} `json:"events,omitempty"`
}

client.WorkflowEvents.Query().
	Select(workflowevents.FieldEvents).
	Scan(ctx, &v)

func (*WorkflowEventsQuery) Unique

func (weq *WorkflowEventsQuery) Unique(unique bool) *WorkflowEventsQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WorkflowEventsQuery) Where

Where adds a new predicate for the WorkflowEventsQuery builder.

func (*WorkflowEventsQuery) WithWfeventswait

func (weq *WorkflowEventsQuery) WithWfeventswait(opts ...func(*WorkflowEventsWaitQuery)) *WorkflowEventsQuery

WithWfeventswait tells the query-builder to eager-load the nodes that are connected to the "wfeventswait" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowEventsQuery) WithWorkflow

func (weq *WorkflowEventsQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowEventsQuery

WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowEventsQuery) WithWorkflowinstance

func (weq *WorkflowEventsQuery) WithWorkflowinstance(opts ...func(*WorkflowInstanceQuery)) *WorkflowEventsQuery

WithWorkflowinstance tells the query-builder to eager-load the nodes that are connected to the "workflowinstance" edge. The optional arguments are used to configure the query builder of the edge.

type WorkflowEventsSelect

type WorkflowEventsSelect struct {
	*WorkflowEventsQuery
	// contains filtered or unexported fields
}

WorkflowEventsSelect is the builder for selecting fields of WorkflowEvents entities.

func (*WorkflowEventsSelect) Bool

func (wes *WorkflowEventsSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) BoolX

func (wes *WorkflowEventsSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowEventsSelect) Bools

func (wes *WorkflowEventsSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) BoolsX

func (wes *WorkflowEventsSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowEventsSelect) Float64

func (wes *WorkflowEventsSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) Float64X

func (wes *WorkflowEventsSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowEventsSelect) Float64s

func (wes *WorkflowEventsSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) Float64sX

func (wes *WorkflowEventsSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowEventsSelect) Int

func (wes *WorkflowEventsSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) IntX

func (wes *WorkflowEventsSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowEventsSelect) Ints

func (wes *WorkflowEventsSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) IntsX

func (wes *WorkflowEventsSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowEventsSelect) Scan

func (wes *WorkflowEventsSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowEventsSelect) ScanX

func (wes *WorkflowEventsSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowEventsSelect) String

func (wes *WorkflowEventsSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) StringX

func (wes *WorkflowEventsSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowEventsSelect) Strings

func (wes *WorkflowEventsSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsSelect) StringsX

func (wes *WorkflowEventsSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowEventsSlice

type WorkflowEventsSlice []*WorkflowEvents

WorkflowEventsSlice is a parsable slice of WorkflowEvents.

type WorkflowEventsUpdate

type WorkflowEventsUpdate struct {
	// contains filtered or unexported fields
}

WorkflowEventsUpdate is the builder for updating WorkflowEvents entities.

func (*WorkflowEventsUpdate) AddCount

func (weu *WorkflowEventsUpdate) AddCount(i int) *WorkflowEventsUpdate

AddCount adds i to the "count" field.

func (*WorkflowEventsUpdate) AddWfeventswait

func (weu *WorkflowEventsUpdate) AddWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdate

AddWfeventswait adds the "wfeventswait" edges to the WorkflowEventsWait entity.

func (*WorkflowEventsUpdate) AddWfeventswaitIDs

func (weu *WorkflowEventsUpdate) AddWfeventswaitIDs(ids ...int) *WorkflowEventsUpdate

AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.

func (*WorkflowEventsUpdate) ClearSignature

func (weu *WorkflowEventsUpdate) ClearSignature() *WorkflowEventsUpdate

ClearSignature clears the value of the "signature" field.

func (*WorkflowEventsUpdate) ClearWfeventswait

func (weu *WorkflowEventsUpdate) ClearWfeventswait() *WorkflowEventsUpdate

ClearWfeventswait clears all "wfeventswait" edges to the WorkflowEventsWait entity.

func (*WorkflowEventsUpdate) ClearWorkflow

func (weu *WorkflowEventsUpdate) ClearWorkflow() *WorkflowEventsUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowEventsUpdate) ClearWorkflowinstance

func (weu *WorkflowEventsUpdate) ClearWorkflowinstance() *WorkflowEventsUpdate

ClearWorkflowinstance clears the "workflowinstance" edge to the WorkflowInstance entity.

func (*WorkflowEventsUpdate) Exec

func (weu *WorkflowEventsUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowEventsUpdate) ExecX

func (weu *WorkflowEventsUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsUpdate) Mutation

Mutation returns the WorkflowEventsMutation object of the builder.

func (*WorkflowEventsUpdate) RemoveWfeventswait

func (weu *WorkflowEventsUpdate) RemoveWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdate

RemoveWfeventswait removes "wfeventswait" edges to WorkflowEventsWait entities.

func (*WorkflowEventsUpdate) RemoveWfeventswaitIDs

func (weu *WorkflowEventsUpdate) RemoveWfeventswaitIDs(ids ...int) *WorkflowEventsUpdate

RemoveWfeventswaitIDs removes the "wfeventswait" edge to WorkflowEventsWait entities by IDs.

func (*WorkflowEventsUpdate) Save

func (weu *WorkflowEventsUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowEventsUpdate) SaveX

func (weu *WorkflowEventsUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WorkflowEventsUpdate) SetCorrelations

func (weu *WorkflowEventsUpdate) SetCorrelations(s []string) *WorkflowEventsUpdate

SetCorrelations sets the "correlations" field.

func (*WorkflowEventsUpdate) SetCount

func (weu *WorkflowEventsUpdate) SetCount(i int) *WorkflowEventsUpdate

SetCount sets the "count" field.

func (*WorkflowEventsUpdate) SetEvents

func (weu *WorkflowEventsUpdate) SetEvents(m []map[string]interface{}) *WorkflowEventsUpdate

SetEvents sets the "events" field.

func (*WorkflowEventsUpdate) SetNillableWorkflowinstanceID

func (weu *WorkflowEventsUpdate) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsUpdate

SetNillableWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID if the given value is not nil.

func (*WorkflowEventsUpdate) SetSignature

func (weu *WorkflowEventsUpdate) SetSignature(b []byte) *WorkflowEventsUpdate

SetSignature sets the "signature" field.

func (*WorkflowEventsUpdate) SetWorkflow

func (weu *WorkflowEventsUpdate) SetWorkflow(w *Workflow) *WorkflowEventsUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowEventsUpdate) SetWorkflowID

func (weu *WorkflowEventsUpdate) SetWorkflowID(id uuid.UUID) *WorkflowEventsUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*WorkflowEventsUpdate) SetWorkflowinstance

func (weu *WorkflowEventsUpdate) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsUpdate

SetWorkflowinstance sets the "workflowinstance" edge to the WorkflowInstance entity.

func (*WorkflowEventsUpdate) SetWorkflowinstanceID

func (weu *WorkflowEventsUpdate) SetWorkflowinstanceID(id int) *WorkflowEventsUpdate

SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID.

func (*WorkflowEventsUpdate) Where

Where appends a list predicates to the WorkflowEventsUpdate builder.

type WorkflowEventsUpdateOne

type WorkflowEventsUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowEventsUpdateOne is the builder for updating a single WorkflowEvents entity.

func (*WorkflowEventsUpdateOne) AddCount

AddCount adds i to the "count" field.

func (*WorkflowEventsUpdateOne) AddWfeventswait

AddWfeventswait adds the "wfeventswait" edges to the WorkflowEventsWait entity.

func (*WorkflowEventsUpdateOne) AddWfeventswaitIDs

func (weuo *WorkflowEventsUpdateOne) AddWfeventswaitIDs(ids ...int) *WorkflowEventsUpdateOne

AddWfeventswaitIDs adds the "wfeventswait" edge to the WorkflowEventsWait entity by IDs.

func (*WorkflowEventsUpdateOne) ClearSignature

func (weuo *WorkflowEventsUpdateOne) ClearSignature() *WorkflowEventsUpdateOne

ClearSignature clears the value of the "signature" field.

func (*WorkflowEventsUpdateOne) ClearWfeventswait

func (weuo *WorkflowEventsUpdateOne) ClearWfeventswait() *WorkflowEventsUpdateOne

ClearWfeventswait clears all "wfeventswait" edges to the WorkflowEventsWait entity.

func (*WorkflowEventsUpdateOne) ClearWorkflow

func (weuo *WorkflowEventsUpdateOne) ClearWorkflow() *WorkflowEventsUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowEventsUpdateOne) ClearWorkflowinstance

func (weuo *WorkflowEventsUpdateOne) ClearWorkflowinstance() *WorkflowEventsUpdateOne

ClearWorkflowinstance clears the "workflowinstance" edge to the WorkflowInstance entity.

func (*WorkflowEventsUpdateOne) Exec

func (weuo *WorkflowEventsUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*WorkflowEventsUpdateOne) ExecX

func (weuo *WorkflowEventsUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsUpdateOne) Mutation

Mutation returns the WorkflowEventsMutation object of the builder.

func (*WorkflowEventsUpdateOne) RemoveWfeventswait

func (weuo *WorkflowEventsUpdateOne) RemoveWfeventswait(w ...*WorkflowEventsWait) *WorkflowEventsUpdateOne

RemoveWfeventswait removes "wfeventswait" edges to WorkflowEventsWait entities.

func (*WorkflowEventsUpdateOne) RemoveWfeventswaitIDs

func (weuo *WorkflowEventsUpdateOne) RemoveWfeventswaitIDs(ids ...int) *WorkflowEventsUpdateOne

RemoveWfeventswaitIDs removes the "wfeventswait" edge to WorkflowEventsWait entities by IDs.

func (*WorkflowEventsUpdateOne) Save

Save executes the query and returns the updated WorkflowEvents entity.

func (*WorkflowEventsUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WorkflowEventsUpdateOne) Select

func (weuo *WorkflowEventsUpdateOne) Select(field string, fields ...string) *WorkflowEventsUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowEventsUpdateOne) SetCorrelations

func (weuo *WorkflowEventsUpdateOne) SetCorrelations(s []string) *WorkflowEventsUpdateOne

SetCorrelations sets the "correlations" field.

func (*WorkflowEventsUpdateOne) SetCount

SetCount sets the "count" field.

func (*WorkflowEventsUpdateOne) SetEvents

func (weuo *WorkflowEventsUpdateOne) SetEvents(m []map[string]interface{}) *WorkflowEventsUpdateOne

SetEvents sets the "events" field.

func (*WorkflowEventsUpdateOne) SetNillableWorkflowinstanceID

func (weuo *WorkflowEventsUpdateOne) SetNillableWorkflowinstanceID(id *int) *WorkflowEventsUpdateOne

SetNillableWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID if the given value is not nil.

func (*WorkflowEventsUpdateOne) SetSignature

func (weuo *WorkflowEventsUpdateOne) SetSignature(b []byte) *WorkflowEventsUpdateOne

SetSignature sets the "signature" field.

func (*WorkflowEventsUpdateOne) SetWorkflow

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowEventsUpdateOne) SetWorkflowID

func (weuo *WorkflowEventsUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowEventsUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*WorkflowEventsUpdateOne) SetWorkflowinstance

func (weuo *WorkflowEventsUpdateOne) SetWorkflowinstance(w *WorkflowInstance) *WorkflowEventsUpdateOne

SetWorkflowinstance sets the "workflowinstance" edge to the WorkflowInstance entity.

func (*WorkflowEventsUpdateOne) SetWorkflowinstanceID

func (weuo *WorkflowEventsUpdateOne) SetWorkflowinstanceID(id int) *WorkflowEventsUpdateOne

SetWorkflowinstanceID sets the "workflowinstance" edge to the WorkflowInstance entity by ID.

type WorkflowEventsWait

type WorkflowEventsWait struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Events holds the value of the "events" field.
	Events map[string]interface{} `json:"events,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowEventsWaitQuery when eager-loading is set.
	Edges WorkflowEventsWaitEdges `json:"edges"`
	// contains filtered or unexported fields
}

WorkflowEventsWait is the model entity for the WorkflowEventsWait schema.

func (*WorkflowEventsWait) QueryWorkflowevent

func (wew *WorkflowEventsWait) QueryWorkflowevent() *WorkflowEventsQuery

QueryWorkflowevent queries the "workflowevent" edge of the WorkflowEventsWait entity.

func (*WorkflowEventsWait) String

func (wew *WorkflowEventsWait) String() string

String implements the fmt.Stringer.

func (*WorkflowEventsWait) Unwrap

func (wew *WorkflowEventsWait) Unwrap() *WorkflowEventsWait

Unwrap unwraps the WorkflowEventsWait entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*WorkflowEventsWait) Update

Update returns a builder for updating this WorkflowEventsWait. Note that you need to call WorkflowEventsWait.Unwrap() before calling this method if this WorkflowEventsWait was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowEventsWaitClient

type WorkflowEventsWaitClient struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitClient is a client for the WorkflowEventsWait schema.

func NewWorkflowEventsWaitClient

func NewWorkflowEventsWaitClient(c config) *WorkflowEventsWaitClient

NewWorkflowEventsWaitClient returns a client for the WorkflowEventsWait from the given config.

func (*WorkflowEventsWaitClient) Create

Create returns a create builder for WorkflowEventsWait.

func (*WorkflowEventsWaitClient) CreateBulk

CreateBulk returns a builder for creating a bulk of WorkflowEventsWait entities.

func (*WorkflowEventsWaitClient) Delete

Delete returns a delete builder for WorkflowEventsWait.

func (*WorkflowEventsWaitClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*WorkflowEventsWaitClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*WorkflowEventsWaitClient) Get

Get returns a WorkflowEventsWait entity by its id.

func (*WorkflowEventsWaitClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WorkflowEventsWaitClient) Hooks

func (c *WorkflowEventsWaitClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowEventsWaitClient) Query

Query returns a query builder for WorkflowEventsWait.

func (*WorkflowEventsWaitClient) QueryWorkflowevent

QueryWorkflowevent queries the workflowevent edge of a WorkflowEventsWait.

func (*WorkflowEventsWaitClient) Update

Update returns an update builder for WorkflowEventsWait.

func (*WorkflowEventsWaitClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowEventsWaitClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*WorkflowEventsWaitClient) Use

func (c *WorkflowEventsWaitClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workfloweventswait.Hooks(f(g(h())))`.

type WorkflowEventsWaitCreate

type WorkflowEventsWaitCreate struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitCreate is the builder for creating a WorkflowEventsWait entity.

func (*WorkflowEventsWaitCreate) Exec

Exec executes the query.

func (*WorkflowEventsWaitCreate) ExecX

func (wewc *WorkflowEventsWaitCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsWaitCreate) Mutation

Mutation returns the WorkflowEventsWaitMutation object of the builder.

func (*WorkflowEventsWaitCreate) Save

Save creates the WorkflowEventsWait in the database.

func (*WorkflowEventsWaitCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*WorkflowEventsWaitCreate) SetEvents

func (wewc *WorkflowEventsWaitCreate) SetEvents(m map[string]interface{}) *WorkflowEventsWaitCreate

SetEvents sets the "events" field.

func (*WorkflowEventsWaitCreate) SetWorkflowevent

SetWorkflowevent sets the "workflowevent" edge to the WorkflowEvents entity.

func (*WorkflowEventsWaitCreate) SetWorkfloweventID

func (wewc *WorkflowEventsWaitCreate) SetWorkfloweventID(id int) *WorkflowEventsWaitCreate

SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by ID.

type WorkflowEventsWaitCreateBulk

type WorkflowEventsWaitCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitCreateBulk is the builder for creating many WorkflowEventsWait entities in bulk.

func (*WorkflowEventsWaitCreateBulk) Exec

Exec executes the query.

func (*WorkflowEventsWaitCreateBulk) ExecX

func (wewcb *WorkflowEventsWaitCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsWaitCreateBulk) Save

Save creates the WorkflowEventsWait entities in the database.

func (*WorkflowEventsWaitCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type WorkflowEventsWaitDelete

type WorkflowEventsWaitDelete struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitDelete is the builder for deleting a WorkflowEventsWait entity.

func (*WorkflowEventsWaitDelete) Exec

func (wewd *WorkflowEventsWaitDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowEventsWaitDelete) ExecX

func (wewd *WorkflowEventsWaitDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsWaitDelete) Where

Where appends a list predicates to the WorkflowEventsWaitDelete builder.

type WorkflowEventsWaitDeleteOne

type WorkflowEventsWaitDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitDeleteOne is the builder for deleting a single WorkflowEventsWait entity.

func (*WorkflowEventsWaitDeleteOne) Exec

Exec executes the deletion query.

func (*WorkflowEventsWaitDeleteOne) ExecX

func (wewdo *WorkflowEventsWaitDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type WorkflowEventsWaitEdges

type WorkflowEventsWaitEdges struct {
	// Workflowevent holds the value of the workflowevent edge.
	Workflowevent *WorkflowEvents `json:"workflowevent,omitempty"`
	// contains filtered or unexported fields
}

WorkflowEventsWaitEdges holds the relations/edges for other nodes in the graph.

func (WorkflowEventsWaitEdges) WorkfloweventOrErr

func (e WorkflowEventsWaitEdges) WorkfloweventOrErr() (*WorkflowEvents, error)

WorkfloweventOrErr returns the Workflowevent value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type WorkflowEventsWaitGroupBy

type WorkflowEventsWaitGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitGroupBy is the group-by builder for WorkflowEventsWait entities.

func (*WorkflowEventsWaitGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowEventsWaitGroupBy) Bool

func (wewgb *WorkflowEventsWaitGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) BoolX

func (wewgb *WorkflowEventsWaitGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Bools

func (wewgb *WorkflowEventsWaitGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) BoolsX

func (wewgb *WorkflowEventsWaitGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Float64

func (wewgb *WorkflowEventsWaitGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) Float64X

func (wewgb *WorkflowEventsWaitGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Float64s

func (wewgb *WorkflowEventsWaitGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) Float64sX

func (wewgb *WorkflowEventsWaitGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Int

func (wewgb *WorkflowEventsWaitGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) IntX

func (wewgb *WorkflowEventsWaitGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Ints

func (wewgb *WorkflowEventsWaitGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) IntsX

func (wewgb *WorkflowEventsWaitGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Scan

func (wewgb *WorkflowEventsWaitGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*WorkflowEventsWaitGroupBy) ScanX

func (wewgb *WorkflowEventsWaitGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) String

func (wewgb *WorkflowEventsWaitGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) StringX

func (wewgb *WorkflowEventsWaitGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowEventsWaitGroupBy) Strings

func (wewgb *WorkflowEventsWaitGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowEventsWaitGroupBy) StringsX

func (wewgb *WorkflowEventsWaitGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowEventsWaitMutation

type WorkflowEventsWaitMutation struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitMutation represents an operation that mutates the WorkflowEventsWait nodes in the graph.

func (*WorkflowEventsWaitMutation) AddField

func (m *WorkflowEventsWaitMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowEventsWaitMutation) AddedEdges

func (m *WorkflowEventsWaitMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowEventsWaitMutation) AddedField

func (m *WorkflowEventsWaitMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowEventsWaitMutation) AddedFields

func (m *WorkflowEventsWaitMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowEventsWaitMutation) AddedIDs

func (m *WorkflowEventsWaitMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowEventsWaitMutation) ClearEdge

func (m *WorkflowEventsWaitMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*WorkflowEventsWaitMutation) ClearField

func (m *WorkflowEventsWaitMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowEventsWaitMutation) ClearWorkflowevent

func (m *WorkflowEventsWaitMutation) ClearWorkflowevent()

ClearWorkflowevent clears the "workflowevent" edge to the WorkflowEvents entity.

func (*WorkflowEventsWaitMutation) ClearedEdges

func (m *WorkflowEventsWaitMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowEventsWaitMutation) ClearedFields

func (m *WorkflowEventsWaitMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowEventsWaitMutation) Client

func (m WorkflowEventsWaitMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*WorkflowEventsWaitMutation) EdgeCleared

func (m *WorkflowEventsWaitMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowEventsWaitMutation) Events

func (m *WorkflowEventsWaitMutation) Events() (r map[string]interface{}, exists bool)

Events returns the value of the "events" field in the mutation.

func (*WorkflowEventsWaitMutation) Field

func (m *WorkflowEventsWaitMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowEventsWaitMutation) FieldCleared

func (m *WorkflowEventsWaitMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowEventsWaitMutation) Fields

func (m *WorkflowEventsWaitMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*WorkflowEventsWaitMutation) ID

func (m *WorkflowEventsWaitMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*WorkflowEventsWaitMutation) OldEvents

func (m *WorkflowEventsWaitMutation) OldEvents(ctx context.Context) (v map[string]interface{}, err error)

OldEvents returns the old "events" field's value of the WorkflowEventsWait entity. If the WorkflowEventsWait object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowEventsWaitMutation) OldField

func (m *WorkflowEventsWaitMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*WorkflowEventsWaitMutation) Op

Op returns the operation name.

func (*WorkflowEventsWaitMutation) RemovedEdges

func (m *WorkflowEventsWaitMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowEventsWaitMutation) RemovedIDs

func (m *WorkflowEventsWaitMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*WorkflowEventsWaitMutation) ResetEdge

func (m *WorkflowEventsWaitMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*WorkflowEventsWaitMutation) ResetEvents

func (m *WorkflowEventsWaitMutation) ResetEvents()

ResetEvents resets all changes to the "events" field.

func (*WorkflowEventsWaitMutation) ResetField

func (m *WorkflowEventsWaitMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowEventsWaitMutation) ResetWorkflowevent

func (m *WorkflowEventsWaitMutation) ResetWorkflowevent()

ResetWorkflowevent resets all changes to the "workflowevent" edge.

func (*WorkflowEventsWaitMutation) SetEvents

func (m *WorkflowEventsWaitMutation) SetEvents(value map[string]interface{})

SetEvents sets the "events" field.

func (*WorkflowEventsWaitMutation) SetField

func (m *WorkflowEventsWaitMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowEventsWaitMutation) SetWorkfloweventID

func (m *WorkflowEventsWaitMutation) SetWorkfloweventID(id int)

SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by id.

func (WorkflowEventsWaitMutation) Tx

func (m WorkflowEventsWaitMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowEventsWaitMutation) Type

Type returns the node type of this mutation (WorkflowEventsWait).

func (*WorkflowEventsWaitMutation) Where

Where appends a list predicates to the WorkflowEventsWaitMutation builder.

func (*WorkflowEventsWaitMutation) WorkfloweventCleared

func (m *WorkflowEventsWaitMutation) WorkfloweventCleared() bool

WorkfloweventCleared reports if the "workflowevent" edge to the WorkflowEvents entity was cleared.

func (*WorkflowEventsWaitMutation) WorkfloweventID

func (m *WorkflowEventsWaitMutation) WorkfloweventID() (id int, exists bool)

WorkfloweventID returns the "workflowevent" edge ID in the mutation.

func (*WorkflowEventsWaitMutation) WorkfloweventIDs

func (m *WorkflowEventsWaitMutation) WorkfloweventIDs() (ids []int)

WorkfloweventIDs returns the "workflowevent" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkfloweventID instead. It exists only for internal usage by the builders.

type WorkflowEventsWaitQuery

type WorkflowEventsWaitQuery struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitQuery is the builder for querying WorkflowEventsWait entities.

func (*WorkflowEventsWaitQuery) All

All executes the query and returns a list of WorkflowEventsWaits.

func (*WorkflowEventsWaitQuery) AllX

AllX is like All, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) Clone

Clone returns a duplicate of the WorkflowEventsWaitQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowEventsWaitQuery) Count

func (wewq *WorkflowEventsWaitQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowEventsWaitQuery) CountX

func (wewq *WorkflowEventsWaitQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) Exist

func (wewq *WorkflowEventsWaitQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowEventsWaitQuery) ExistX

func (wewq *WorkflowEventsWaitQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) First

First returns the first WorkflowEventsWait entity from the query. Returns a *NotFoundError when no WorkflowEventsWait was found.

func (*WorkflowEventsWaitQuery) FirstID

func (wewq *WorkflowEventsWaitQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first WorkflowEventsWait ID from the query. Returns a *NotFoundError when no WorkflowEventsWait ID was found.

func (*WorkflowEventsWaitQuery) FirstIDX

func (wewq *WorkflowEventsWaitQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) GroupBy

func (wewq *WorkflowEventsWaitQuery) GroupBy(field string, fields ...string) *WorkflowEventsWaitGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Events map[string]interface {} `json:"events,omitempty"`
	Count int `json:"count,omitempty"`
}

client.WorkflowEventsWait.Query().
	GroupBy(workfloweventswait.FieldEvents).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowEventsWaitQuery) IDs

func (wewq *WorkflowEventsWaitQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of WorkflowEventsWait IDs.

func (*WorkflowEventsWaitQuery) IDsX

func (wewq *WorkflowEventsWaitQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) Limit

Limit adds a limit step to the query.

func (*WorkflowEventsWaitQuery) Offset

func (wewq *WorkflowEventsWaitQuery) Offset(offset int) *WorkflowEventsWaitQuery

Offset adds an offset step to the query.

func (*WorkflowEventsWaitQuery) Only

Only returns a single WorkflowEventsWait entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one WorkflowEventsWait entity is not found. Returns a *NotFoundError when no WorkflowEventsWait entities are found.

func (*WorkflowEventsWaitQuery) OnlyID

func (wewq *WorkflowEventsWaitQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only WorkflowEventsWait ID in the query. Returns a *NotSingularError when exactly one WorkflowEventsWait ID is not found. Returns a *NotFoundError when no entities are found.

func (*WorkflowEventsWaitQuery) OnlyIDX

func (wewq *WorkflowEventsWaitQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowEventsWaitQuery) Order

Order adds an order step to the query.

func (*WorkflowEventsWaitQuery) QueryWorkflowevent

func (wewq *WorkflowEventsWaitQuery) QueryWorkflowevent() *WorkflowEventsQuery

QueryWorkflowevent chains the current query on the "workflowevent" edge.

func (*WorkflowEventsWaitQuery) Select

func (wewq *WorkflowEventsWaitQuery) Select(fields ...string) *WorkflowEventsWaitSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Events map[string]interface {} `json:"events,omitempty"`
}

client.WorkflowEventsWait.Query().
	Select(workfloweventswait.FieldEvents).
	Scan(ctx, &v)

func (*WorkflowEventsWaitQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WorkflowEventsWaitQuery) Where

Where adds a new predicate for the WorkflowEventsWaitQuery builder.

func (*WorkflowEventsWaitQuery) WithWorkflowevent

func (wewq *WorkflowEventsWaitQuery) WithWorkflowevent(opts ...func(*WorkflowEventsQuery)) *WorkflowEventsWaitQuery

WithWorkflowevent tells the query-builder to eager-load the nodes that are connected to the "workflowevent" edge. The optional arguments are used to configure the query builder of the edge.

type WorkflowEventsWaitSelect

type WorkflowEventsWaitSelect struct {
	*WorkflowEventsWaitQuery
	// contains filtered or unexported fields
}

WorkflowEventsWaitSelect is the builder for selecting fields of WorkflowEventsWait entities.

func (*WorkflowEventsWaitSelect) Bool

func (wews *WorkflowEventsWaitSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) BoolX

func (wews *WorkflowEventsWaitSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Bools

func (wews *WorkflowEventsWaitSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) BoolsX

func (wews *WorkflowEventsWaitSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Float64

func (wews *WorkflowEventsWaitSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) Float64X

func (wews *WorkflowEventsWaitSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Float64s

func (wews *WorkflowEventsWaitSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) Float64sX

func (wews *WorkflowEventsWaitSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Int

func (wews *WorkflowEventsWaitSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) IntX

func (wews *WorkflowEventsWaitSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Ints

func (wews *WorkflowEventsWaitSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) IntsX

func (wews *WorkflowEventsWaitSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Scan

func (wews *WorkflowEventsWaitSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowEventsWaitSelect) ScanX

func (wews *WorkflowEventsWaitSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) String

func (wews *WorkflowEventsWaitSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) StringX

func (wews *WorkflowEventsWaitSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowEventsWaitSelect) Strings

func (wews *WorkflowEventsWaitSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowEventsWaitSelect) StringsX

func (wews *WorkflowEventsWaitSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowEventsWaitUpdate

type WorkflowEventsWaitUpdate struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitUpdate is the builder for updating WorkflowEventsWait entities.

func (*WorkflowEventsWaitUpdate) ClearWorkflowevent

func (wewu *WorkflowEventsWaitUpdate) ClearWorkflowevent() *WorkflowEventsWaitUpdate

ClearWorkflowevent clears the "workflowevent" edge to the WorkflowEvents entity.

func (*WorkflowEventsWaitUpdate) Exec

Exec executes the query.

func (*WorkflowEventsWaitUpdate) ExecX

func (wewu *WorkflowEventsWaitUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsWaitUpdate) Mutation

Mutation returns the WorkflowEventsWaitMutation object of the builder.

func (*WorkflowEventsWaitUpdate) Save

func (wewu *WorkflowEventsWaitUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowEventsWaitUpdate) SaveX

func (wewu *WorkflowEventsWaitUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WorkflowEventsWaitUpdate) SetEvents

func (wewu *WorkflowEventsWaitUpdate) SetEvents(m map[string]interface{}) *WorkflowEventsWaitUpdate

SetEvents sets the "events" field.

func (*WorkflowEventsWaitUpdate) SetWorkflowevent

SetWorkflowevent sets the "workflowevent" edge to the WorkflowEvents entity.

func (*WorkflowEventsWaitUpdate) SetWorkfloweventID

func (wewu *WorkflowEventsWaitUpdate) SetWorkfloweventID(id int) *WorkflowEventsWaitUpdate

SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by ID.

func (*WorkflowEventsWaitUpdate) Where

Where appends a list predicates to the WorkflowEventsWaitUpdate builder.

type WorkflowEventsWaitUpdateOne

type WorkflowEventsWaitUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowEventsWaitUpdateOne is the builder for updating a single WorkflowEventsWait entity.

func (*WorkflowEventsWaitUpdateOne) ClearWorkflowevent

func (wewuo *WorkflowEventsWaitUpdateOne) ClearWorkflowevent() *WorkflowEventsWaitUpdateOne

ClearWorkflowevent clears the "workflowevent" edge to the WorkflowEvents entity.

func (*WorkflowEventsWaitUpdateOne) Exec

Exec executes the query on the entity.

func (*WorkflowEventsWaitUpdateOne) ExecX

func (wewuo *WorkflowEventsWaitUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowEventsWaitUpdateOne) Mutation

Mutation returns the WorkflowEventsWaitMutation object of the builder.

func (*WorkflowEventsWaitUpdateOne) Save

Save executes the query and returns the updated WorkflowEventsWait entity.

func (*WorkflowEventsWaitUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WorkflowEventsWaitUpdateOne) Select

func (wewuo *WorkflowEventsWaitUpdateOne) Select(field string, fields ...string) *WorkflowEventsWaitUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowEventsWaitUpdateOne) SetEvents

func (wewuo *WorkflowEventsWaitUpdateOne) SetEvents(m map[string]interface{}) *WorkflowEventsWaitUpdateOne

SetEvents sets the "events" field.

func (*WorkflowEventsWaitUpdateOne) SetWorkflowevent

SetWorkflowevent sets the "workflowevent" edge to the WorkflowEvents entity.

func (*WorkflowEventsWaitUpdateOne) SetWorkfloweventID

func (wewuo *WorkflowEventsWaitUpdateOne) SetWorkfloweventID(id int) *WorkflowEventsWaitUpdateOne

SetWorkfloweventID sets the "workflowevent" edge to the WorkflowEvents entity by ID.

type WorkflowEventsWaits

type WorkflowEventsWaits []*WorkflowEventsWait

WorkflowEventsWaits is a parsable slice of WorkflowEventsWait.

type WorkflowGroupBy

type WorkflowGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowGroupBy is the group-by builder for Workflow entities.

func (*WorkflowGroupBy) Aggregate

func (wgb *WorkflowGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowGroupBy) Bool

func (wgb *WorkflowGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) BoolX

func (wgb *WorkflowGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowGroupBy) Bools

func (wgb *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) BoolsX

func (wgb *WorkflowGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowGroupBy) Float64

func (wgb *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) Float64X

func (wgb *WorkflowGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowGroupBy) Float64s

func (wgb *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) Float64sX

func (wgb *WorkflowGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowGroupBy) Int

func (wgb *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) IntX

func (wgb *WorkflowGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowGroupBy) Ints

func (wgb *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) IntsX

func (wgb *WorkflowGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowGroupBy) Scan

func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*WorkflowGroupBy) ScanX

func (wgb *WorkflowGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowGroupBy) String

func (wgb *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) StringX

func (wgb *WorkflowGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowGroupBy) Strings

func (wgb *WorkflowGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowGroupBy) StringsX

func (wgb *WorkflowGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowInstance

type WorkflowInstance struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// InstanceID holds the value of the "instanceID" field.
	InstanceID string `json:"instanceID,omitempty"`
	// InvokedBy holds the value of the "invokedBy" field.
	InvokedBy string `json:"invokedBy,omitempty"`
	// Status holds the value of the "status" field.
	Status string `json:"status,omitempty"`
	// Revision holds the value of the "revision" field.
	Revision int `json:"revision,omitempty"`
	// BeginTime holds the value of the "beginTime" field.
	BeginTime time.Time `json:"beginTime,omitempty"`
	// EndTime holds the value of the "endTime" field.
	EndTime time.Time `json:"endTime,omitempty"`
	// Flow holds the value of the "flow" field.
	Flow []string `json:"flow,omitempty"`
	// Input holds the value of the "input" field.
	Input string `json:"input,omitempty"`
	// Output holds the value of the "output" field.
	Output string `json:"output,omitempty"`
	// StateData holds the value of the "stateData" field.
	StateData string `json:"stateData,omitempty"`
	// Memory holds the value of the "memory" field.
	Memory string `json:"memory,omitempty"`
	// Deadline holds the value of the "deadline" field.
	Deadline time.Time `json:"deadline,omitempty"`
	// Attempts holds the value of the "attempts" field.
	Attempts int `json:"attempts,omitempty"`
	// ErrorCode holds the value of the "errorCode" field.
	ErrorCode string `json:"errorCode,omitempty"`
	// ErrorMessage holds the value of the "errorMessage" field.
	ErrorMessage string `json:"errorMessage,omitempty"`
	// StateBeginTime holds the value of the "stateBeginTime" field.
	StateBeginTime time.Time `json:"stateBeginTime,omitempty"`
	// Controller holds the value of the "controller" field.
	Controller string `json:"controller,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowInstanceQuery when eager-loading is set.
	Edges WorkflowInstanceEdges `json:"edges"`
	// contains filtered or unexported fields
}

WorkflowInstance is the model entity for the WorkflowInstance schema.

func (*WorkflowInstance) QueryInstance

func (wi *WorkflowInstance) QueryInstance() *WorkflowEventsQuery

QueryInstance queries the "instance" edge of the WorkflowInstance entity.

func (*WorkflowInstance) QueryWorkflow

func (wi *WorkflowInstance) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the WorkflowInstance entity.

func (*WorkflowInstance) String

func (wi *WorkflowInstance) String() string

String implements the fmt.Stringer.

func (*WorkflowInstance) Unwrap

func (wi *WorkflowInstance) Unwrap() *WorkflowInstance

Unwrap unwraps the WorkflowInstance entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*WorkflowInstance) Update

Update returns a builder for updating this WorkflowInstance. Note that you need to call WorkflowInstance.Unwrap() before calling this method if this WorkflowInstance was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowInstanceClient

type WorkflowInstanceClient struct {
	// contains filtered or unexported fields
}

WorkflowInstanceClient is a client for the WorkflowInstance schema.

func NewWorkflowInstanceClient

func NewWorkflowInstanceClient(c config) *WorkflowInstanceClient

NewWorkflowInstanceClient returns a client for the WorkflowInstance from the given config.

func (*WorkflowInstanceClient) Create

Create returns a create builder for WorkflowInstance.

func (*WorkflowInstanceClient) CreateBulk

CreateBulk returns a builder for creating a bulk of WorkflowInstance entities.

func (*WorkflowInstanceClient) Delete

Delete returns a delete builder for WorkflowInstance.

func (*WorkflowInstanceClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*WorkflowInstanceClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*WorkflowInstanceClient) Get

Get returns a WorkflowInstance entity by its id.

func (*WorkflowInstanceClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WorkflowInstanceClient) Hooks

func (c *WorkflowInstanceClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowInstanceClient) Query

Query returns a query builder for WorkflowInstance.

func (*WorkflowInstanceClient) QueryInstance

QueryInstance queries the instance edge of a WorkflowInstance.

func (*WorkflowInstanceClient) QueryWorkflow

func (c *WorkflowInstanceClient) QueryWorkflow(wi *WorkflowInstance) *WorkflowQuery

QueryWorkflow queries the workflow edge of a WorkflowInstance.

func (*WorkflowInstanceClient) Update

Update returns an update builder for WorkflowInstance.

func (*WorkflowInstanceClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowInstanceClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*WorkflowInstanceClient) Use

func (c *WorkflowInstanceClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowinstance.Hooks(f(g(h())))`.

type WorkflowInstanceCreate

type WorkflowInstanceCreate struct {
	// contains filtered or unexported fields
}

WorkflowInstanceCreate is the builder for creating a WorkflowInstance entity.

func (*WorkflowInstanceCreate) AddInstance

AddInstance adds the "instance" edges to the WorkflowEvents entity.

func (*WorkflowInstanceCreate) AddInstanceIDs

func (wic *WorkflowInstanceCreate) AddInstanceIDs(ids ...int) *WorkflowInstanceCreate

AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by IDs.

func (*WorkflowInstanceCreate) Exec

Exec executes the query.

func (*WorkflowInstanceCreate) ExecX

func (wic *WorkflowInstanceCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowInstanceCreate) Mutation

Mutation returns the WorkflowInstanceMutation object of the builder.

func (*WorkflowInstanceCreate) Save

Save creates the WorkflowInstance in the database.

func (*WorkflowInstanceCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*WorkflowInstanceCreate) SetAttempts

func (wic *WorkflowInstanceCreate) SetAttempts(i int) *WorkflowInstanceCreate

SetAttempts sets the "attempts" field.

func (*WorkflowInstanceCreate) SetBeginTime

SetBeginTime sets the "beginTime" field.

func (*WorkflowInstanceCreate) SetController

func (wic *WorkflowInstanceCreate) SetController(s string) *WorkflowInstanceCreate

SetController sets the "controller" field.

func (*WorkflowInstanceCreate) SetDeadline

SetDeadline sets the "deadline" field.

func (*WorkflowInstanceCreate) SetEndTime

SetEndTime sets the "endTime" field.

func (*WorkflowInstanceCreate) SetErrorCode

SetErrorCode sets the "errorCode" field.

func (*WorkflowInstanceCreate) SetErrorMessage

func (wic *WorkflowInstanceCreate) SetErrorMessage(s string) *WorkflowInstanceCreate

SetErrorMessage sets the "errorMessage" field.

func (*WorkflowInstanceCreate) SetFlow

SetFlow sets the "flow" field.

func (*WorkflowInstanceCreate) SetInput

SetInput sets the "input" field.

func (*WorkflowInstanceCreate) SetInstanceID

func (wic *WorkflowInstanceCreate) SetInstanceID(s string) *WorkflowInstanceCreate

SetInstanceID sets the "instanceID" field.

func (*WorkflowInstanceCreate) SetInvokedBy

SetInvokedBy sets the "invokedBy" field.

func (*WorkflowInstanceCreate) SetMemory

SetMemory sets the "memory" field.

func (*WorkflowInstanceCreate) SetNillableAttempts

func (wic *WorkflowInstanceCreate) SetNillableAttempts(i *int) *WorkflowInstanceCreate

SetNillableAttempts sets the "attempts" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableController

func (wic *WorkflowInstanceCreate) SetNillableController(s *string) *WorkflowInstanceCreate

SetNillableController sets the "controller" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableDeadline

func (wic *WorkflowInstanceCreate) SetNillableDeadline(t *time.Time) *WorkflowInstanceCreate

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableEndTime

func (wic *WorkflowInstanceCreate) SetNillableEndTime(t *time.Time) *WorkflowInstanceCreate

SetNillableEndTime sets the "endTime" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableErrorCode

func (wic *WorkflowInstanceCreate) SetNillableErrorCode(s *string) *WorkflowInstanceCreate

SetNillableErrorCode sets the "errorCode" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableErrorMessage

func (wic *WorkflowInstanceCreate) SetNillableErrorMessage(s *string) *WorkflowInstanceCreate

SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableMemory

func (wic *WorkflowInstanceCreate) SetNillableMemory(s *string) *WorkflowInstanceCreate

SetNillableMemory sets the "memory" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableOutput

func (wic *WorkflowInstanceCreate) SetNillableOutput(s *string) *WorkflowInstanceCreate

SetNillableOutput sets the "output" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableStateBeginTime

func (wic *WorkflowInstanceCreate) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceCreate

SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetNillableStateData

func (wic *WorkflowInstanceCreate) SetNillableStateData(s *string) *WorkflowInstanceCreate

SetNillableStateData sets the "stateData" field if the given value is not nil.

func (*WorkflowInstanceCreate) SetOutput

SetOutput sets the "output" field.

func (*WorkflowInstanceCreate) SetRevision

func (wic *WorkflowInstanceCreate) SetRevision(i int) *WorkflowInstanceCreate

SetRevision sets the "revision" field.

func (*WorkflowInstanceCreate) SetStateBeginTime

func (wic *WorkflowInstanceCreate) SetStateBeginTime(t time.Time) *WorkflowInstanceCreate

SetStateBeginTime sets the "stateBeginTime" field.

func (*WorkflowInstanceCreate) SetStateData

SetStateData sets the "stateData" field.

func (*WorkflowInstanceCreate) SetStatus

SetStatus sets the "status" field.

func (*WorkflowInstanceCreate) SetWorkflow

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowInstanceCreate) SetWorkflowID

func (wic *WorkflowInstanceCreate) SetWorkflowID(id uuid.UUID) *WorkflowInstanceCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type WorkflowInstanceCreateBulk

type WorkflowInstanceCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowInstanceCreateBulk is the builder for creating many WorkflowInstance entities in bulk.

func (*WorkflowInstanceCreateBulk) Exec

Exec executes the query.

func (*WorkflowInstanceCreateBulk) ExecX

func (wicb *WorkflowInstanceCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowInstanceCreateBulk) Save

Save creates the WorkflowInstance entities in the database.

func (*WorkflowInstanceCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type WorkflowInstanceDelete

type WorkflowInstanceDelete struct {
	// contains filtered or unexported fields
}

WorkflowInstanceDelete is the builder for deleting a WorkflowInstance entity.

func (*WorkflowInstanceDelete) Exec

func (wid *WorkflowInstanceDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowInstanceDelete) ExecX

func (wid *WorkflowInstanceDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowInstanceDelete) Where

Where appends a list predicates to the WorkflowInstanceDelete builder.

type WorkflowInstanceDeleteOne

type WorkflowInstanceDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowInstanceDeleteOne is the builder for deleting a single WorkflowInstance entity.

func (*WorkflowInstanceDeleteOne) Exec

Exec executes the deletion query.

func (*WorkflowInstanceDeleteOne) ExecX

func (wido *WorkflowInstanceDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type WorkflowInstanceEdges

type WorkflowInstanceEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Instance holds the value of the instance edge.
	Instance []*WorkflowEvents `json:"instance,omitempty"`
	// contains filtered or unexported fields
}

WorkflowInstanceEdges holds the relations/edges for other nodes in the graph.

func (WorkflowInstanceEdges) InstanceOrErr

func (e WorkflowInstanceEdges) InstanceOrErr() ([]*WorkflowEvents, error)

InstanceOrErr returns the Instance value or an error if the edge was not loaded in eager-loading.

func (WorkflowInstanceEdges) WorkflowOrErr

func (e WorkflowInstanceEdges) WorkflowOrErr() (*Workflow, error)

WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type WorkflowInstanceGroupBy

type WorkflowInstanceGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowInstanceGroupBy is the group-by builder for WorkflowInstance entities.

func (*WorkflowInstanceGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowInstanceGroupBy) Bool

func (wigb *WorkflowInstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) BoolX

func (wigb *WorkflowInstanceGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Bools

func (wigb *WorkflowInstanceGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) BoolsX

func (wigb *WorkflowInstanceGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Float64

func (wigb *WorkflowInstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) Float64X

func (wigb *WorkflowInstanceGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Float64s

func (wigb *WorkflowInstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) Float64sX

func (wigb *WorkflowInstanceGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Int

func (wigb *WorkflowInstanceGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) IntX

func (wigb *WorkflowInstanceGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Ints

func (wigb *WorkflowInstanceGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) IntsX

func (wigb *WorkflowInstanceGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Scan

func (wigb *WorkflowInstanceGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*WorkflowInstanceGroupBy) ScanX

func (wigb *WorkflowInstanceGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) String

func (wigb *WorkflowInstanceGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) StringX

func (wigb *WorkflowInstanceGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowInstanceGroupBy) Strings

func (wigb *WorkflowInstanceGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*WorkflowInstanceGroupBy) StringsX

func (wigb *WorkflowInstanceGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowInstanceMutation

type WorkflowInstanceMutation struct {
	// contains filtered or unexported fields
}

WorkflowInstanceMutation represents an operation that mutates the WorkflowInstance nodes in the graph.

func (*WorkflowInstanceMutation) AddAttempts

func (m *WorkflowInstanceMutation) AddAttempts(i int)

AddAttempts adds i to the "attempts" field.

func (*WorkflowInstanceMutation) AddField

func (m *WorkflowInstanceMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowInstanceMutation) AddInstanceIDs

func (m *WorkflowInstanceMutation) AddInstanceIDs(ids ...int)

AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by ids.

func (*WorkflowInstanceMutation) AddRevision

func (m *WorkflowInstanceMutation) AddRevision(i int)

AddRevision adds i to the "revision" field.

func (*WorkflowInstanceMutation) AddedAttempts

func (m *WorkflowInstanceMutation) AddedAttempts() (r int, exists bool)

AddedAttempts returns the value that was added to the "attempts" field in this mutation.

func (*WorkflowInstanceMutation) AddedEdges

func (m *WorkflowInstanceMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowInstanceMutation) AddedField

func (m *WorkflowInstanceMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowInstanceMutation) AddedFields

func (m *WorkflowInstanceMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowInstanceMutation) AddedIDs

func (m *WorkflowInstanceMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowInstanceMutation) AddedRevision

func (m *WorkflowInstanceMutation) AddedRevision() (r int, exists bool)

AddedRevision returns the value that was added to the "revision" field in this mutation.

func (*WorkflowInstanceMutation) Attempts

func (m *WorkflowInstanceMutation) Attempts() (r int, exists bool)

Attempts returns the value of the "attempts" field in the mutation.

func (*WorkflowInstanceMutation) AttemptsCleared

func (m *WorkflowInstanceMutation) AttemptsCleared() bool

AttemptsCleared returns if the "attempts" field was cleared in this mutation.

func (*WorkflowInstanceMutation) BeginTime

func (m *WorkflowInstanceMutation) BeginTime() (r time.Time, exists bool)

BeginTime returns the value of the "beginTime" field in the mutation.

func (*WorkflowInstanceMutation) ClearAttempts

func (m *WorkflowInstanceMutation) ClearAttempts()

ClearAttempts clears the value of the "attempts" field.

func (*WorkflowInstanceMutation) ClearController

func (m *WorkflowInstanceMutation) ClearController()

ClearController clears the value of the "controller" field.

func (*WorkflowInstanceMutation) ClearDeadline

func (m *WorkflowInstanceMutation) ClearDeadline()

ClearDeadline clears the value of the "deadline" field.

func (*WorkflowInstanceMutation) ClearEdge

func (m *WorkflowInstanceMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*WorkflowInstanceMutation) ClearEndTime

func (m *WorkflowInstanceMutation) ClearEndTime()

ClearEndTime clears the value of the "endTime" field.

func (*WorkflowInstanceMutation) ClearErrorCode

func (m *WorkflowInstanceMutation) ClearErrorCode()

ClearErrorCode clears the value of the "errorCode" field.

func (*WorkflowInstanceMutation) ClearErrorMessage

func (m *WorkflowInstanceMutation) ClearErrorMessage()

ClearErrorMessage clears the value of the "errorMessage" field.

func (*WorkflowInstanceMutation) ClearField

func (m *WorkflowInstanceMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowInstanceMutation) ClearFlow

func (m *WorkflowInstanceMutation) ClearFlow()

ClearFlow clears the value of the "flow" field.

func (*WorkflowInstanceMutation) ClearInstance

func (m *WorkflowInstanceMutation) ClearInstance()

ClearInstance clears the "instance" edge to the WorkflowEvents entity.

func (*WorkflowInstanceMutation) ClearMemory

func (m *WorkflowInstanceMutation) ClearMemory()

ClearMemory clears the value of the "memory" field.

func (*WorkflowInstanceMutation) ClearOutput

func (m *WorkflowInstanceMutation) ClearOutput()

ClearOutput clears the value of the "output" field.

func (*WorkflowInstanceMutation) ClearStateBeginTime

func (m *WorkflowInstanceMutation) ClearStateBeginTime()

ClearStateBeginTime clears the value of the "stateBeginTime" field.

func (*WorkflowInstanceMutation) ClearStateData

func (m *WorkflowInstanceMutation) ClearStateData()

ClearStateData clears the value of the "stateData" field.

func (*WorkflowInstanceMutation) ClearWorkflow

func (m *WorkflowInstanceMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowInstanceMutation) ClearedEdges

func (m *WorkflowInstanceMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowInstanceMutation) ClearedFields

func (m *WorkflowInstanceMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowInstanceMutation) Client

func (m WorkflowInstanceMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*WorkflowInstanceMutation) Controller

func (m *WorkflowInstanceMutation) Controller() (r string, exists bool)

Controller returns the value of the "controller" field in the mutation.

func (*WorkflowInstanceMutation) ControllerCleared

func (m *WorkflowInstanceMutation) ControllerCleared() bool

ControllerCleared returns if the "controller" field was cleared in this mutation.

func (*WorkflowInstanceMutation) Deadline

func (m *WorkflowInstanceMutation) Deadline() (r time.Time, exists bool)

Deadline returns the value of the "deadline" field in the mutation.

func (*WorkflowInstanceMutation) DeadlineCleared

func (m *WorkflowInstanceMutation) DeadlineCleared() bool

DeadlineCleared returns if the "deadline" field was cleared in this mutation.

func (*WorkflowInstanceMutation) EdgeCleared

func (m *WorkflowInstanceMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowInstanceMutation) EndTime

func (m *WorkflowInstanceMutation) EndTime() (r time.Time, exists bool)

EndTime returns the value of the "endTime" field in the mutation.

func (*WorkflowInstanceMutation) EndTimeCleared

func (m *WorkflowInstanceMutation) EndTimeCleared() bool

EndTimeCleared returns if the "endTime" field was cleared in this mutation.

func (*WorkflowInstanceMutation) ErrorCode

func (m *WorkflowInstanceMutation) ErrorCode() (r string, exists bool)

ErrorCode returns the value of the "errorCode" field in the mutation.

func (*WorkflowInstanceMutation) ErrorCodeCleared

func (m *WorkflowInstanceMutation) ErrorCodeCleared() bool

ErrorCodeCleared returns if the "errorCode" field was cleared in this mutation.

func (*WorkflowInstanceMutation) ErrorMessage

func (m *WorkflowInstanceMutation) ErrorMessage() (r string, exists bool)

ErrorMessage returns the value of the "errorMessage" field in the mutation.

func (*WorkflowInstanceMutation) ErrorMessageCleared

func (m *WorkflowInstanceMutation) ErrorMessageCleared() bool

ErrorMessageCleared returns if the "errorMessage" field was cleared in this mutation.

func (*WorkflowInstanceMutation) Field

func (m *WorkflowInstanceMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowInstanceMutation) FieldCleared

func (m *WorkflowInstanceMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowInstanceMutation) Fields

func (m *WorkflowInstanceMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*WorkflowInstanceMutation) Flow

func (m *WorkflowInstanceMutation) Flow() (r []string, exists bool)

Flow returns the value of the "flow" field in the mutation.

func (*WorkflowInstanceMutation) FlowCleared

func (m *WorkflowInstanceMutation) FlowCleared() bool

FlowCleared returns if the "flow" field was cleared in this mutation.

func (*WorkflowInstanceMutation) ID

func (m *WorkflowInstanceMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*WorkflowInstanceMutation) Input

func (m *WorkflowInstanceMutation) Input() (r string, exists bool)

Input returns the value of the "input" field in the mutation.

func (*WorkflowInstanceMutation) InstanceCleared

func (m *WorkflowInstanceMutation) InstanceCleared() bool

InstanceCleared reports if the "instance" edge to the WorkflowEvents entity was cleared.

func (*WorkflowInstanceMutation) InstanceID

func (m *WorkflowInstanceMutation) InstanceID() (r string, exists bool)

InstanceID returns the value of the "instanceID" field in the mutation.

func (*WorkflowInstanceMutation) InstanceIDs

func (m *WorkflowInstanceMutation) InstanceIDs() (ids []int)

InstanceIDs returns the "instance" edge IDs in the mutation.

func (*WorkflowInstanceMutation) InvokedBy

func (m *WorkflowInstanceMutation) InvokedBy() (r string, exists bool)

InvokedBy returns the value of the "invokedBy" field in the mutation.

func (*WorkflowInstanceMutation) Memory

func (m *WorkflowInstanceMutation) Memory() (r string, exists bool)

Memory returns the value of the "memory" field in the mutation.

func (*WorkflowInstanceMutation) MemoryCleared

func (m *WorkflowInstanceMutation) MemoryCleared() bool

MemoryCleared returns if the "memory" field was cleared in this mutation.

func (*WorkflowInstanceMutation) OldAttempts

func (m *WorkflowInstanceMutation) OldAttempts(ctx context.Context) (v int, err error)

OldAttempts returns the old "attempts" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldBeginTime

func (m *WorkflowInstanceMutation) OldBeginTime(ctx context.Context) (v time.Time, err error)

OldBeginTime returns the old "beginTime" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldController

func (m *WorkflowInstanceMutation) OldController(ctx context.Context) (v string, err error)

OldController returns the old "controller" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldDeadline

func (m *WorkflowInstanceMutation) OldDeadline(ctx context.Context) (v time.Time, err error)

OldDeadline returns the old "deadline" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldEndTime

func (m *WorkflowInstanceMutation) OldEndTime(ctx context.Context) (v time.Time, err error)

OldEndTime returns the old "endTime" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldErrorCode

func (m *WorkflowInstanceMutation) OldErrorCode(ctx context.Context) (v string, err error)

OldErrorCode returns the old "errorCode" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldErrorMessage

func (m *WorkflowInstanceMutation) OldErrorMessage(ctx context.Context) (v string, err error)

OldErrorMessage returns the old "errorMessage" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldField

func (m *WorkflowInstanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*WorkflowInstanceMutation) OldFlow

func (m *WorkflowInstanceMutation) OldFlow(ctx context.Context) (v []string, err error)

OldFlow returns the old "flow" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldInput

func (m *WorkflowInstanceMutation) OldInput(ctx context.Context) (v string, err error)

OldInput returns the old "input" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldInstanceID

func (m *WorkflowInstanceMutation) OldInstanceID(ctx context.Context) (v string, err error)

OldInstanceID returns the old "instanceID" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldInvokedBy

func (m *WorkflowInstanceMutation) OldInvokedBy(ctx context.Context) (v string, err error)

OldInvokedBy returns the old "invokedBy" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldMemory

func (m *WorkflowInstanceMutation) OldMemory(ctx context.Context) (v string, err error)

OldMemory returns the old "memory" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldOutput

func (m *WorkflowInstanceMutation) OldOutput(ctx context.Context) (v string, err error)

OldOutput returns the old "output" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldRevision

func (m *WorkflowInstanceMutation) OldRevision(ctx context.Context) (v int, err error)

OldRevision returns the old "revision" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldStateBeginTime

func (m *WorkflowInstanceMutation) OldStateBeginTime(ctx context.Context) (v time.Time, err error)

OldStateBeginTime returns the old "stateBeginTime" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldStateData

func (m *WorkflowInstanceMutation) OldStateData(ctx context.Context) (v string, err error)

OldStateData returns the old "stateData" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) OldStatus

func (m *WorkflowInstanceMutation) OldStatus(ctx context.Context) (v string, err error)

OldStatus returns the old "status" field's value of the WorkflowInstance entity. If the WorkflowInstance object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowInstanceMutation) Op

func (m *WorkflowInstanceMutation) Op() Op

Op returns the operation name.

func (*WorkflowInstanceMutation) Output

func (m *WorkflowInstanceMutation) Output() (r string, exists bool)

Output returns the value of the "output" field in the mutation.

func (*WorkflowInstanceMutation) OutputCleared

func (m *WorkflowInstanceMutation) OutputCleared() bool

OutputCleared returns if the "output" field was cleared in this mutation.

func (*WorkflowInstanceMutation) RemoveInstanceIDs

func (m *WorkflowInstanceMutation) RemoveInstanceIDs(ids ...int)

RemoveInstanceIDs removes the "instance" edge to the WorkflowEvents entity by IDs.

func (*WorkflowInstanceMutation) RemovedEdges

func (m *WorkflowInstanceMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowInstanceMutation) RemovedIDs

func (m *WorkflowInstanceMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*WorkflowInstanceMutation) RemovedInstanceIDs

func (m *WorkflowInstanceMutation) RemovedInstanceIDs() (ids []int)

RemovedInstance returns the removed IDs of the "instance" edge to the WorkflowEvents entity.

func (*WorkflowInstanceMutation) ResetAttempts

func (m *WorkflowInstanceMutation) ResetAttempts()

ResetAttempts resets all changes to the "attempts" field.

func (*WorkflowInstanceMutation) ResetBeginTime

func (m *WorkflowInstanceMutation) ResetBeginTime()

ResetBeginTime resets all changes to the "beginTime" field.

func (*WorkflowInstanceMutation) ResetController

func (m *WorkflowInstanceMutation) ResetController()

ResetController resets all changes to the "controller" field.

func (*WorkflowInstanceMutation) ResetDeadline

func (m *WorkflowInstanceMutation) ResetDeadline()

ResetDeadline resets all changes to the "deadline" field.

func (*WorkflowInstanceMutation) ResetEdge

func (m *WorkflowInstanceMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*WorkflowInstanceMutation) ResetEndTime

func (m *WorkflowInstanceMutation) ResetEndTime()

ResetEndTime resets all changes to the "endTime" field.

func (*WorkflowInstanceMutation) ResetErrorCode

func (m *WorkflowInstanceMutation) ResetErrorCode()

ResetErrorCode resets all changes to the "errorCode" field.

func (*WorkflowInstanceMutation) ResetErrorMessage

func (m *WorkflowInstanceMutation) ResetErrorMessage()

ResetErrorMessage resets all changes to the "errorMessage" field.

func (*WorkflowInstanceMutation) ResetField

func (m *WorkflowInstanceMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowInstanceMutation) ResetFlow

func (m *WorkflowInstanceMutation) ResetFlow()

ResetFlow resets all changes to the "flow" field.

func (*WorkflowInstanceMutation) ResetInput

func (m *WorkflowInstanceMutation) ResetInput()

ResetInput resets all changes to the "input" field.

func (*WorkflowInstanceMutation) ResetInstance

func (m *WorkflowInstanceMutation) ResetInstance()

ResetInstance resets all changes to the "instance" edge.

func (*WorkflowInstanceMutation) ResetInstanceID

func (m *WorkflowInstanceMutation) ResetInstanceID()

ResetInstanceID resets all changes to the "instanceID" field.

func (*WorkflowInstanceMutation) ResetInvokedBy

func (m *WorkflowInstanceMutation) ResetInvokedBy()

ResetInvokedBy resets all changes to the "invokedBy" field.

func (*WorkflowInstanceMutation) ResetMemory

func (m *WorkflowInstanceMutation) ResetMemory()

ResetMemory resets all changes to the "memory" field.

func (*WorkflowInstanceMutation) ResetOutput

func (m *WorkflowInstanceMutation) ResetOutput()

ResetOutput resets all changes to the "output" field.

func (*WorkflowInstanceMutation) ResetRevision

func (m *WorkflowInstanceMutation) ResetRevision()

ResetRevision resets all changes to the "revision" field.

func (*WorkflowInstanceMutation) ResetStateBeginTime

func (m *WorkflowInstanceMutation) ResetStateBeginTime()

ResetStateBeginTime resets all changes to the "stateBeginTime" field.

func (*WorkflowInstanceMutation) ResetStateData

func (m *WorkflowInstanceMutation) ResetStateData()

ResetStateData resets all changes to the "stateData" field.

func (*WorkflowInstanceMutation) ResetStatus

func (m *WorkflowInstanceMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*WorkflowInstanceMutation) ResetWorkflow

func (m *WorkflowInstanceMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*WorkflowInstanceMutation) Revision

func (m *WorkflowInstanceMutation) Revision() (r int, exists bool)

Revision returns the value of the "revision" field in the mutation.

func (*WorkflowInstanceMutation) SetAttempts

func (m *WorkflowInstanceMutation) SetAttempts(i int)

SetAttempts sets the "attempts" field.

func (*WorkflowInstanceMutation) SetBeginTime

func (m *WorkflowInstanceMutation) SetBeginTime(t time.Time)

SetBeginTime sets the "beginTime" field.

func (*WorkflowInstanceMutation) SetController

func (m *WorkflowInstanceMutation) SetController(s string)

SetController sets the "controller" field.

func (*WorkflowInstanceMutation) SetDeadline

func (m *WorkflowInstanceMutation) SetDeadline(t time.Time)

SetDeadline sets the "deadline" field.

func (*WorkflowInstanceMutation) SetEndTime

func (m *WorkflowInstanceMutation) SetEndTime(t time.Time)

SetEndTime sets the "endTime" field.

func (*WorkflowInstanceMutation) SetErrorCode

func (m *WorkflowInstanceMutation) SetErrorCode(s string)

SetErrorCode sets the "errorCode" field.

func (*WorkflowInstanceMutation) SetErrorMessage

func (m *WorkflowInstanceMutation) SetErrorMessage(s string)

SetErrorMessage sets the "errorMessage" field.

func (*WorkflowInstanceMutation) SetField

func (m *WorkflowInstanceMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowInstanceMutation) SetFlow

func (m *WorkflowInstanceMutation) SetFlow(s []string)

SetFlow sets the "flow" field.

func (*WorkflowInstanceMutation) SetInput

func (m *WorkflowInstanceMutation) SetInput(s string)

SetInput sets the "input" field.

func (*WorkflowInstanceMutation) SetInstanceID

func (m *WorkflowInstanceMutation) SetInstanceID(s string)

SetInstanceID sets the "instanceID" field.

func (*WorkflowInstanceMutation) SetInvokedBy

func (m *WorkflowInstanceMutation) SetInvokedBy(s string)

SetInvokedBy sets the "invokedBy" field.

func (*WorkflowInstanceMutation) SetMemory

func (m *WorkflowInstanceMutation) SetMemory(s string)

SetMemory sets the "memory" field.

func (*WorkflowInstanceMutation) SetOutput

func (m *WorkflowInstanceMutation) SetOutput(s string)

SetOutput sets the "output" field.

func (*WorkflowInstanceMutation) SetRevision

func (m *WorkflowInstanceMutation) SetRevision(i int)

SetRevision sets the "revision" field.

func (*WorkflowInstanceMutation) SetStateBeginTime

func (m *WorkflowInstanceMutation) SetStateBeginTime(t time.Time)

SetStateBeginTime sets the "stateBeginTime" field.

func (*WorkflowInstanceMutation) SetStateData

func (m *WorkflowInstanceMutation) SetStateData(s string)

SetStateData sets the "stateData" field.

func (*WorkflowInstanceMutation) SetStatus

func (m *WorkflowInstanceMutation) SetStatus(s string)

SetStatus sets the "status" field.

func (*WorkflowInstanceMutation) SetWorkflowID

func (m *WorkflowInstanceMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*WorkflowInstanceMutation) StateBeginTime

func (m *WorkflowInstanceMutation) StateBeginTime() (r time.Time, exists bool)

StateBeginTime returns the value of the "stateBeginTime" field in the mutation.

func (*WorkflowInstanceMutation) StateBeginTimeCleared

func (m *WorkflowInstanceMutation) StateBeginTimeCleared() bool

StateBeginTimeCleared returns if the "stateBeginTime" field was cleared in this mutation.

func (*WorkflowInstanceMutation) StateData

func (m *WorkflowInstanceMutation) StateData() (r string, exists bool)

StateData returns the value of the "stateData" field in the mutation.

func (*WorkflowInstanceMutation) StateDataCleared

func (m *WorkflowInstanceMutation) StateDataCleared() bool

StateDataCleared returns if the "stateData" field was cleared in this mutation.

func (*WorkflowInstanceMutation) Status

func (m *WorkflowInstanceMutation) Status() (r string, exists bool)

Status returns the value of the "status" field in the mutation.

func (WorkflowInstanceMutation) Tx

func (m WorkflowInstanceMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowInstanceMutation) Type

func (m *WorkflowInstanceMutation) Type() string

Type returns the node type of this mutation (WorkflowInstance).

func (*WorkflowInstanceMutation) Where

Where appends a list predicates to the WorkflowInstanceMutation builder.

func (*WorkflowInstanceMutation) WorkflowCleared

func (m *WorkflowInstanceMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*WorkflowInstanceMutation) WorkflowID

func (m *WorkflowInstanceMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*WorkflowInstanceMutation) WorkflowIDs

func (m *WorkflowInstanceMutation) WorkflowIDs() (ids []uuid.UUID)

WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.

type WorkflowInstanceQuery

type WorkflowInstanceQuery struct {
	// contains filtered or unexported fields
}

WorkflowInstanceQuery is the builder for querying WorkflowInstance entities.

func (*WorkflowInstanceQuery) All

All executes the query and returns a list of WorkflowInstances.

func (*WorkflowInstanceQuery) AllX

AllX is like All, but panics if an error occurs.

func (*WorkflowInstanceQuery) Clone

Clone returns a duplicate of the WorkflowInstanceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowInstanceQuery) Count

func (wiq *WorkflowInstanceQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowInstanceQuery) CountX

func (wiq *WorkflowInstanceQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowInstanceQuery) Exist

func (wiq *WorkflowInstanceQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowInstanceQuery) ExistX

func (wiq *WorkflowInstanceQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowInstanceQuery) First

First returns the first WorkflowInstance entity from the query. Returns a *NotFoundError when no WorkflowInstance was found.

func (*WorkflowInstanceQuery) FirstID

func (wiq *WorkflowInstanceQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first WorkflowInstance ID from the query. Returns a *NotFoundError when no WorkflowInstance ID was found.

func (*WorkflowInstanceQuery) FirstIDX

func (wiq *WorkflowInstanceQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowInstanceQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*WorkflowInstanceQuery) GroupBy

func (wiq *WorkflowInstanceQuery) GroupBy(field string, fields ...string) *WorkflowInstanceGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	InstanceID string `json:"instanceID,omitempty"`
	Count int `json:"count,omitempty"`
}

client.WorkflowInstance.Query().
	GroupBy(workflowinstance.FieldInstanceID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowInstanceQuery) IDs

func (wiq *WorkflowInstanceQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of WorkflowInstance IDs.

func (*WorkflowInstanceQuery) IDsX

func (wiq *WorkflowInstanceQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowInstanceQuery) Limit

func (wiq *WorkflowInstanceQuery) Limit(limit int) *WorkflowInstanceQuery

Limit adds a limit step to the query.

func (*WorkflowInstanceQuery) Offset

func (wiq *WorkflowInstanceQuery) Offset(offset int) *WorkflowInstanceQuery

Offset adds an offset step to the query.

func (*WorkflowInstanceQuery) Only

Only returns a single WorkflowInstance entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one WorkflowInstance entity is not found. Returns a *NotFoundError when no WorkflowInstance entities are found.

func (*WorkflowInstanceQuery) OnlyID

func (wiq *WorkflowInstanceQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only WorkflowInstance ID in the query. Returns a *NotSingularError when exactly one WorkflowInstance ID is not found. Returns a *NotFoundError when no entities are found.

func (*WorkflowInstanceQuery) OnlyIDX

func (wiq *WorkflowInstanceQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowInstanceQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowInstanceQuery) Order

Order adds an order step to the query.

func (*WorkflowInstanceQuery) QueryInstance

func (wiq *WorkflowInstanceQuery) QueryInstance() *WorkflowEventsQuery

QueryInstance chains the current query on the "instance" edge.

func (*WorkflowInstanceQuery) QueryWorkflow

func (wiq *WorkflowInstanceQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*WorkflowInstanceQuery) Select

func (wiq *WorkflowInstanceQuery) Select(fields ...string) *WorkflowInstanceSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	InstanceID string `json:"instanceID,omitempty"`
}

client.WorkflowInstance.Query().
	Select(workflowinstance.FieldInstanceID).
	Scan(ctx, &v)

func (*WorkflowInstanceQuery) Unique

func (wiq *WorkflowInstanceQuery) Unique(unique bool) *WorkflowInstanceQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WorkflowInstanceQuery) Where

Where adds a new predicate for the WorkflowInstanceQuery builder.

func (*WorkflowInstanceQuery) WithInstance

func (wiq *WorkflowInstanceQuery) WithInstance(opts ...func(*WorkflowEventsQuery)) *WorkflowInstanceQuery

WithInstance tells the query-builder to eager-load the nodes that are connected to the "instance" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowInstanceQuery) WithWorkflow

func (wiq *WorkflowInstanceQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowInstanceQuery

WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.

type WorkflowInstanceSelect

type WorkflowInstanceSelect struct {
	*WorkflowInstanceQuery
	// contains filtered or unexported fields
}

WorkflowInstanceSelect is the builder for selecting fields of WorkflowInstance entities.

func (*WorkflowInstanceSelect) Bool

func (wis *WorkflowInstanceSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) BoolX

func (wis *WorkflowInstanceSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowInstanceSelect) Bools

func (wis *WorkflowInstanceSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) BoolsX

func (wis *WorkflowInstanceSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowInstanceSelect) Float64

func (wis *WorkflowInstanceSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) Float64X

func (wis *WorkflowInstanceSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowInstanceSelect) Float64s

func (wis *WorkflowInstanceSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) Float64sX

func (wis *WorkflowInstanceSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowInstanceSelect) Int

func (wis *WorkflowInstanceSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) IntX

func (wis *WorkflowInstanceSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowInstanceSelect) Ints

func (wis *WorkflowInstanceSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) IntsX

func (wis *WorkflowInstanceSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowInstanceSelect) Scan

func (wis *WorkflowInstanceSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowInstanceSelect) ScanX

func (wis *WorkflowInstanceSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowInstanceSelect) String

func (wis *WorkflowInstanceSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) StringX

func (wis *WorkflowInstanceSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowInstanceSelect) Strings

func (wis *WorkflowInstanceSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowInstanceSelect) StringsX

func (wis *WorkflowInstanceSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowInstanceUpdate

type WorkflowInstanceUpdate struct {
	// contains filtered or unexported fields
}

WorkflowInstanceUpdate is the builder for updating WorkflowInstance entities.

func (*WorkflowInstanceUpdate) AddAttempts

func (wiu *WorkflowInstanceUpdate) AddAttempts(i int) *WorkflowInstanceUpdate

AddAttempts adds i to the "attempts" field.

func (*WorkflowInstanceUpdate) AddInstance

AddInstance adds the "instance" edges to the WorkflowEvents entity.

func (*WorkflowInstanceUpdate) AddInstanceIDs

func (wiu *WorkflowInstanceUpdate) AddInstanceIDs(ids ...int) *WorkflowInstanceUpdate

AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by IDs.

func (*WorkflowInstanceUpdate) AddRevision

func (wiu *WorkflowInstanceUpdate) AddRevision(i int) *WorkflowInstanceUpdate

AddRevision adds i to the "revision" field.

func (*WorkflowInstanceUpdate) ClearAttempts

func (wiu *WorkflowInstanceUpdate) ClearAttempts() *WorkflowInstanceUpdate

ClearAttempts clears the value of the "attempts" field.

func (*WorkflowInstanceUpdate) ClearController

func (wiu *WorkflowInstanceUpdate) ClearController() *WorkflowInstanceUpdate

ClearController clears the value of the "controller" field.

func (*WorkflowInstanceUpdate) ClearDeadline

func (wiu *WorkflowInstanceUpdate) ClearDeadline() *WorkflowInstanceUpdate

ClearDeadline clears the value of the "deadline" field.

func (*WorkflowInstanceUpdate) ClearEndTime

func (wiu *WorkflowInstanceUpdate) ClearEndTime() *WorkflowInstanceUpdate

ClearEndTime clears the value of the "endTime" field.

func (*WorkflowInstanceUpdate) ClearErrorCode

func (wiu *WorkflowInstanceUpdate) ClearErrorCode() *WorkflowInstanceUpdate

ClearErrorCode clears the value of the "errorCode" field.

func (*WorkflowInstanceUpdate) ClearErrorMessage

func (wiu *WorkflowInstanceUpdate) ClearErrorMessage() *WorkflowInstanceUpdate

ClearErrorMessage clears the value of the "errorMessage" field.

func (*WorkflowInstanceUpdate) ClearFlow

ClearFlow clears the value of the "flow" field.

func (*WorkflowInstanceUpdate) ClearInstance

func (wiu *WorkflowInstanceUpdate) ClearInstance() *WorkflowInstanceUpdate

ClearInstance clears all "instance" edges to the WorkflowEvents entity.

func (*WorkflowInstanceUpdate) ClearMemory

func (wiu *WorkflowInstanceUpdate) ClearMemory() *WorkflowInstanceUpdate

ClearMemory clears the value of the "memory" field.

func (*WorkflowInstanceUpdate) ClearOutput

func (wiu *WorkflowInstanceUpdate) ClearOutput() *WorkflowInstanceUpdate

ClearOutput clears the value of the "output" field.

func (*WorkflowInstanceUpdate) ClearStateBeginTime

func (wiu *WorkflowInstanceUpdate) ClearStateBeginTime() *WorkflowInstanceUpdate

ClearStateBeginTime clears the value of the "stateBeginTime" field.

func (*WorkflowInstanceUpdate) ClearStateData

func (wiu *WorkflowInstanceUpdate) ClearStateData() *WorkflowInstanceUpdate

ClearStateData clears the value of the "stateData" field.

func (*WorkflowInstanceUpdate) ClearWorkflow

func (wiu *WorkflowInstanceUpdate) ClearWorkflow() *WorkflowInstanceUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowInstanceUpdate) Exec

Exec executes the query.

func (*WorkflowInstanceUpdate) ExecX

func (wiu *WorkflowInstanceUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowInstanceUpdate) Mutation

Mutation returns the WorkflowInstanceMutation object of the builder.

func (*WorkflowInstanceUpdate) RemoveInstance

func (wiu *WorkflowInstanceUpdate) RemoveInstance(w ...*WorkflowEvents) *WorkflowInstanceUpdate

RemoveInstance removes "instance" edges to WorkflowEvents entities.

func (*WorkflowInstanceUpdate) RemoveInstanceIDs

func (wiu *WorkflowInstanceUpdate) RemoveInstanceIDs(ids ...int) *WorkflowInstanceUpdate

RemoveInstanceIDs removes the "instance" edge to WorkflowEvents entities by IDs.

func (*WorkflowInstanceUpdate) Save

func (wiu *WorkflowInstanceUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowInstanceUpdate) SaveX

func (wiu *WorkflowInstanceUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WorkflowInstanceUpdate) SetAttempts

func (wiu *WorkflowInstanceUpdate) SetAttempts(i int) *WorkflowInstanceUpdate

SetAttempts sets the "attempts" field.

func (*WorkflowInstanceUpdate) SetBeginTime

SetBeginTime sets the "beginTime" field.

func (*WorkflowInstanceUpdate) SetController

func (wiu *WorkflowInstanceUpdate) SetController(s string) *WorkflowInstanceUpdate

SetController sets the "controller" field.

func (*WorkflowInstanceUpdate) SetDeadline

SetDeadline sets the "deadline" field.

func (*WorkflowInstanceUpdate) SetEndTime

SetEndTime sets the "endTime" field.

func (*WorkflowInstanceUpdate) SetErrorCode

SetErrorCode sets the "errorCode" field.

func (*WorkflowInstanceUpdate) SetErrorMessage

func (wiu *WorkflowInstanceUpdate) SetErrorMessage(s string) *WorkflowInstanceUpdate

SetErrorMessage sets the "errorMessage" field.

func (*WorkflowInstanceUpdate) SetFlow

SetFlow sets the "flow" field.

func (*WorkflowInstanceUpdate) SetInput

SetInput sets the "input" field.

func (*WorkflowInstanceUpdate) SetInstanceID

func (wiu *WorkflowInstanceUpdate) SetInstanceID(s string) *WorkflowInstanceUpdate

SetInstanceID sets the "instanceID" field.

func (*WorkflowInstanceUpdate) SetInvokedBy

SetInvokedBy sets the "invokedBy" field.

func (*WorkflowInstanceUpdate) SetMemory

SetMemory sets the "memory" field.

func (*WorkflowInstanceUpdate) SetNillableAttempts

func (wiu *WorkflowInstanceUpdate) SetNillableAttempts(i *int) *WorkflowInstanceUpdate

SetNillableAttempts sets the "attempts" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableController

func (wiu *WorkflowInstanceUpdate) SetNillableController(s *string) *WorkflowInstanceUpdate

SetNillableController sets the "controller" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableDeadline

func (wiu *WorkflowInstanceUpdate) SetNillableDeadline(t *time.Time) *WorkflowInstanceUpdate

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableEndTime

func (wiu *WorkflowInstanceUpdate) SetNillableEndTime(t *time.Time) *WorkflowInstanceUpdate

SetNillableEndTime sets the "endTime" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableErrorCode

func (wiu *WorkflowInstanceUpdate) SetNillableErrorCode(s *string) *WorkflowInstanceUpdate

SetNillableErrorCode sets the "errorCode" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableErrorMessage

func (wiu *WorkflowInstanceUpdate) SetNillableErrorMessage(s *string) *WorkflowInstanceUpdate

SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableMemory

func (wiu *WorkflowInstanceUpdate) SetNillableMemory(s *string) *WorkflowInstanceUpdate

SetNillableMemory sets the "memory" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableOutput

func (wiu *WorkflowInstanceUpdate) SetNillableOutput(s *string) *WorkflowInstanceUpdate

SetNillableOutput sets the "output" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableStateBeginTime

func (wiu *WorkflowInstanceUpdate) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceUpdate

SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetNillableStateData

func (wiu *WorkflowInstanceUpdate) SetNillableStateData(s *string) *WorkflowInstanceUpdate

SetNillableStateData sets the "stateData" field if the given value is not nil.

func (*WorkflowInstanceUpdate) SetOutput

SetOutput sets the "output" field.

func (*WorkflowInstanceUpdate) SetRevision

func (wiu *WorkflowInstanceUpdate) SetRevision(i int) *WorkflowInstanceUpdate

SetRevision sets the "revision" field.

func (*WorkflowInstanceUpdate) SetStateBeginTime

func (wiu *WorkflowInstanceUpdate) SetStateBeginTime(t time.Time) *WorkflowInstanceUpdate

SetStateBeginTime sets the "stateBeginTime" field.

func (*WorkflowInstanceUpdate) SetStateData

SetStateData sets the "stateData" field.

func (*WorkflowInstanceUpdate) SetStatus

SetStatus sets the "status" field.

func (*WorkflowInstanceUpdate) SetWorkflow

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowInstanceUpdate) SetWorkflowID

func (wiu *WorkflowInstanceUpdate) SetWorkflowID(id uuid.UUID) *WorkflowInstanceUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*WorkflowInstanceUpdate) Where

Where appends a list predicates to the WorkflowInstanceUpdate builder.

type WorkflowInstanceUpdateOne

type WorkflowInstanceUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowInstanceUpdateOne is the builder for updating a single WorkflowInstance entity.

func (*WorkflowInstanceUpdateOne) AddAttempts

AddAttempts adds i to the "attempts" field.

func (*WorkflowInstanceUpdateOne) AddInstance

AddInstance adds the "instance" edges to the WorkflowEvents entity.

func (*WorkflowInstanceUpdateOne) AddInstanceIDs

func (wiuo *WorkflowInstanceUpdateOne) AddInstanceIDs(ids ...int) *WorkflowInstanceUpdateOne

AddInstanceIDs adds the "instance" edge to the WorkflowEvents entity by IDs.

func (*WorkflowInstanceUpdateOne) AddRevision

AddRevision adds i to the "revision" field.

func (*WorkflowInstanceUpdateOne) ClearAttempts

ClearAttempts clears the value of the "attempts" field.

func (*WorkflowInstanceUpdateOne) ClearController

func (wiuo *WorkflowInstanceUpdateOne) ClearController() *WorkflowInstanceUpdateOne

ClearController clears the value of the "controller" field.

func (*WorkflowInstanceUpdateOne) ClearDeadline

ClearDeadline clears the value of the "deadline" field.

func (*WorkflowInstanceUpdateOne) ClearEndTime

ClearEndTime clears the value of the "endTime" field.

func (*WorkflowInstanceUpdateOne) ClearErrorCode

func (wiuo *WorkflowInstanceUpdateOne) ClearErrorCode() *WorkflowInstanceUpdateOne

ClearErrorCode clears the value of the "errorCode" field.

func (*WorkflowInstanceUpdateOne) ClearErrorMessage

func (wiuo *WorkflowInstanceUpdateOne) ClearErrorMessage() *WorkflowInstanceUpdateOne

ClearErrorMessage clears the value of the "errorMessage" field.

func (*WorkflowInstanceUpdateOne) ClearFlow

ClearFlow clears the value of the "flow" field.

func (*WorkflowInstanceUpdateOne) ClearInstance

ClearInstance clears all "instance" edges to the WorkflowEvents entity.

func (*WorkflowInstanceUpdateOne) ClearMemory

ClearMemory clears the value of the "memory" field.

func (*WorkflowInstanceUpdateOne) ClearOutput

ClearOutput clears the value of the "output" field.

func (*WorkflowInstanceUpdateOne) ClearStateBeginTime

func (wiuo *WorkflowInstanceUpdateOne) ClearStateBeginTime() *WorkflowInstanceUpdateOne

ClearStateBeginTime clears the value of the "stateBeginTime" field.

func (*WorkflowInstanceUpdateOne) ClearStateData

func (wiuo *WorkflowInstanceUpdateOne) ClearStateData() *WorkflowInstanceUpdateOne

ClearStateData clears the value of the "stateData" field.

func (*WorkflowInstanceUpdateOne) ClearWorkflow

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowInstanceUpdateOne) Exec

Exec executes the query on the entity.

func (*WorkflowInstanceUpdateOne) ExecX

func (wiuo *WorkflowInstanceUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowInstanceUpdateOne) Mutation

Mutation returns the WorkflowInstanceMutation object of the builder.

func (*WorkflowInstanceUpdateOne) RemoveInstance

RemoveInstance removes "instance" edges to WorkflowEvents entities.

func (*WorkflowInstanceUpdateOne) RemoveInstanceIDs

func (wiuo *WorkflowInstanceUpdateOne) RemoveInstanceIDs(ids ...int) *WorkflowInstanceUpdateOne

RemoveInstanceIDs removes the "instance" edge to WorkflowEvents entities by IDs.

func (*WorkflowInstanceUpdateOne) Save

Save executes the query and returns the updated WorkflowInstance entity.

func (*WorkflowInstanceUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WorkflowInstanceUpdateOne) Select

func (wiuo *WorkflowInstanceUpdateOne) Select(field string, fields ...string) *WorkflowInstanceUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowInstanceUpdateOne) SetAttempts

SetAttempts sets the "attempts" field.

func (*WorkflowInstanceUpdateOne) SetBeginTime

SetBeginTime sets the "beginTime" field.

func (*WorkflowInstanceUpdateOne) SetController

SetController sets the "controller" field.

func (*WorkflowInstanceUpdateOne) SetDeadline

SetDeadline sets the "deadline" field.

func (*WorkflowInstanceUpdateOne) SetEndTime

SetEndTime sets the "endTime" field.

func (*WorkflowInstanceUpdateOne) SetErrorCode

SetErrorCode sets the "errorCode" field.

func (*WorkflowInstanceUpdateOne) SetErrorMessage

SetErrorMessage sets the "errorMessage" field.

func (*WorkflowInstanceUpdateOne) SetFlow

SetFlow sets the "flow" field.

func (*WorkflowInstanceUpdateOne) SetInput

SetInput sets the "input" field.

func (*WorkflowInstanceUpdateOne) SetInstanceID

SetInstanceID sets the "instanceID" field.

func (*WorkflowInstanceUpdateOne) SetInvokedBy

SetInvokedBy sets the "invokedBy" field.

func (*WorkflowInstanceUpdateOne) SetMemory

SetMemory sets the "memory" field.

func (*WorkflowInstanceUpdateOne) SetNillableAttempts

func (wiuo *WorkflowInstanceUpdateOne) SetNillableAttempts(i *int) *WorkflowInstanceUpdateOne

SetNillableAttempts sets the "attempts" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableController

func (wiuo *WorkflowInstanceUpdateOne) SetNillableController(s *string) *WorkflowInstanceUpdateOne

SetNillableController sets the "controller" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableDeadline

func (wiuo *WorkflowInstanceUpdateOne) SetNillableDeadline(t *time.Time) *WorkflowInstanceUpdateOne

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableEndTime

func (wiuo *WorkflowInstanceUpdateOne) SetNillableEndTime(t *time.Time) *WorkflowInstanceUpdateOne

SetNillableEndTime sets the "endTime" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableErrorCode

func (wiuo *WorkflowInstanceUpdateOne) SetNillableErrorCode(s *string) *WorkflowInstanceUpdateOne

SetNillableErrorCode sets the "errorCode" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableErrorMessage

func (wiuo *WorkflowInstanceUpdateOne) SetNillableErrorMessage(s *string) *WorkflowInstanceUpdateOne

SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableMemory

func (wiuo *WorkflowInstanceUpdateOne) SetNillableMemory(s *string) *WorkflowInstanceUpdateOne

SetNillableMemory sets the "memory" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableOutput

func (wiuo *WorkflowInstanceUpdateOne) SetNillableOutput(s *string) *WorkflowInstanceUpdateOne

SetNillableOutput sets the "output" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableStateBeginTime

func (wiuo *WorkflowInstanceUpdateOne) SetNillableStateBeginTime(t *time.Time) *WorkflowInstanceUpdateOne

SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetNillableStateData

func (wiuo *WorkflowInstanceUpdateOne) SetNillableStateData(s *string) *WorkflowInstanceUpdateOne

SetNillableStateData sets the "stateData" field if the given value is not nil.

func (*WorkflowInstanceUpdateOne) SetOutput

SetOutput sets the "output" field.

func (*WorkflowInstanceUpdateOne) SetRevision

SetRevision sets the "revision" field.

func (*WorkflowInstanceUpdateOne) SetStateBeginTime

func (wiuo *WorkflowInstanceUpdateOne) SetStateBeginTime(t time.Time) *WorkflowInstanceUpdateOne

SetStateBeginTime sets the "stateBeginTime" field.

func (*WorkflowInstanceUpdateOne) SetStateData

SetStateData sets the "stateData" field.

func (*WorkflowInstanceUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*WorkflowInstanceUpdateOne) SetWorkflow

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowInstanceUpdateOne) SetWorkflowID

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type WorkflowInstances

type WorkflowInstances []*WorkflowInstance

WorkflowInstances is a parsable slice of WorkflowInstance.

type WorkflowMutation

type WorkflowMutation struct {
	// contains filtered or unexported fields
}

WorkflowMutation represents an operation that mutates the Workflow nodes in the graph.

func (*WorkflowMutation) Active

func (m *WorkflowMutation) Active() (r bool, exists bool)

Active returns the value of the "active" field in the mutation.

func (*WorkflowMutation) AddField

func (m *WorkflowMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowMutation) AddInstanceIDs

func (m *WorkflowMutation) AddInstanceIDs(ids ...int)

AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by ids.

func (*WorkflowMutation) AddRevision

func (m *WorkflowMutation) AddRevision(i int)

AddRevision adds i to the "revision" field.

func (*WorkflowMutation) AddWfeventIDs

func (m *WorkflowMutation) AddWfeventIDs(ids ...int)

AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by ids.

func (*WorkflowMutation) AddedEdges

func (m *WorkflowMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowMutation) AddedField

func (m *WorkflowMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowMutation) AddedFields

func (m *WorkflowMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowMutation) AddedIDs

func (m *WorkflowMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowMutation) AddedRevision

func (m *WorkflowMutation) AddedRevision() (r int, exists bool)

AddedRevision returns the value that was added to the "revision" field in this mutation.

func (*WorkflowMutation) ClearDescription

func (m *WorkflowMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*WorkflowMutation) ClearEdge

func (m *WorkflowMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*WorkflowMutation) ClearField

func (m *WorkflowMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowMutation) ClearInstances

func (m *WorkflowMutation) ClearInstances()

ClearInstances clears the "instances" edge to the WorkflowInstance entity.

func (*WorkflowMutation) ClearLogToEvents

func (m *WorkflowMutation) ClearLogToEvents()

ClearLogToEvents clears the value of the "logToEvents" field.

func (*WorkflowMutation) ClearNamespace

func (m *WorkflowMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*WorkflowMutation) ClearWfevents

func (m *WorkflowMutation) ClearWfevents()

ClearWfevents clears the "wfevents" edge to the WorkflowEvents entity.

func (*WorkflowMutation) ClearedEdges

func (m *WorkflowMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowMutation) ClearedFields

func (m *WorkflowMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowMutation) Client

func (m WorkflowMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*WorkflowMutation) Created

func (m *WorkflowMutation) Created() (r time.Time, exists bool)

Created returns the value of the "created" field in the mutation.

func (*WorkflowMutation) Description

func (m *WorkflowMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*WorkflowMutation) DescriptionCleared

func (m *WorkflowMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*WorkflowMutation) EdgeCleared

func (m *WorkflowMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowMutation) Field

func (m *WorkflowMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowMutation) FieldCleared

func (m *WorkflowMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowMutation) Fields

func (m *WorkflowMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*WorkflowMutation) ID

func (m *WorkflowMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*WorkflowMutation) InstancesCleared

func (m *WorkflowMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the WorkflowInstance entity was cleared.

func (*WorkflowMutation) InstancesIDs

func (m *WorkflowMutation) InstancesIDs() (ids []int)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*WorkflowMutation) LogToEvents

func (m *WorkflowMutation) LogToEvents() (r string, exists bool)

LogToEvents returns the value of the "logToEvents" field in the mutation.

func (*WorkflowMutation) LogToEventsCleared

func (m *WorkflowMutation) LogToEventsCleared() bool

LogToEventsCleared returns if the "logToEvents" field was cleared in this mutation.

func (*WorkflowMutation) Name

func (m *WorkflowMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*WorkflowMutation) NamespaceCleared

func (m *WorkflowMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*WorkflowMutation) NamespaceID

func (m *WorkflowMutation) NamespaceID() (id string, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*WorkflowMutation) NamespaceIDs

func (m *WorkflowMutation) NamespaceIDs() (ids []string)

NamespaceIDs returns the "namespace" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NamespaceID instead. It exists only for internal usage by the builders.

func (*WorkflowMutation) OldActive

func (m *WorkflowMutation) OldActive(ctx context.Context) (v bool, err error)

OldActive returns the old "active" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldCreated

func (m *WorkflowMutation) OldCreated(ctx context.Context) (v time.Time, err error)

OldCreated returns the old "created" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldDescription

func (m *WorkflowMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldField

func (m *WorkflowMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*WorkflowMutation) OldLogToEvents

func (m *WorkflowMutation) OldLogToEvents(ctx context.Context) (v string, err error)

OldLogToEvents returns the old "logToEvents" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldName

func (m *WorkflowMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldRevision

func (m *WorkflowMutation) OldRevision(ctx context.Context) (v int, err error)

OldRevision returns the old "revision" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldWorkflow

func (m *WorkflowMutation) OldWorkflow(ctx context.Context) (v []byte, err error)

OldWorkflow returns the old "workflow" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) Op

func (m *WorkflowMutation) Op() Op

Op returns the operation name.

func (*WorkflowMutation) RemoveInstanceIDs

func (m *WorkflowMutation) RemoveInstanceIDs(ids ...int)

RemoveInstanceIDs removes the "instances" edge to the WorkflowInstance entity by IDs.

func (*WorkflowMutation) RemoveWfeventIDs

func (m *WorkflowMutation) RemoveWfeventIDs(ids ...int)

RemoveWfeventIDs removes the "wfevents" edge to the WorkflowEvents entity by IDs.

func (*WorkflowMutation) RemovedEdges

func (m *WorkflowMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowMutation) RemovedIDs

func (m *WorkflowMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*WorkflowMutation) RemovedInstancesIDs

func (m *WorkflowMutation) RemovedInstancesIDs() (ids []int)

RemovedInstances returns the removed IDs of the "instances" edge to the WorkflowInstance entity.

func (*WorkflowMutation) RemovedWfeventsIDs

func (m *WorkflowMutation) RemovedWfeventsIDs() (ids []int)

RemovedWfevents returns the removed IDs of the "wfevents" edge to the WorkflowEvents entity.

func (*WorkflowMutation) ResetActive

func (m *WorkflowMutation) ResetActive()

ResetActive resets all changes to the "active" field.

func (*WorkflowMutation) ResetCreated

func (m *WorkflowMutation) ResetCreated()

ResetCreated resets all changes to the "created" field.

func (*WorkflowMutation) ResetDescription

func (m *WorkflowMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*WorkflowMutation) ResetEdge

func (m *WorkflowMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*WorkflowMutation) ResetField

func (m *WorkflowMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowMutation) ResetInstances

func (m *WorkflowMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*WorkflowMutation) ResetLogToEvents

func (m *WorkflowMutation) ResetLogToEvents()

ResetLogToEvents resets all changes to the "logToEvents" field.

func (*WorkflowMutation) ResetName

func (m *WorkflowMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*WorkflowMutation) ResetNamespace

func (m *WorkflowMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*WorkflowMutation) ResetRevision

func (m *WorkflowMutation) ResetRevision()

ResetRevision resets all changes to the "revision" field.

func (*WorkflowMutation) ResetWfevents

func (m *WorkflowMutation) ResetWfevents()

ResetWfevents resets all changes to the "wfevents" edge.

func (*WorkflowMutation) ResetWorkflow

func (m *WorkflowMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" field.

func (*WorkflowMutation) Revision

func (m *WorkflowMutation) Revision() (r int, exists bool)

Revision returns the value of the "revision" field in the mutation.

func (*WorkflowMutation) SetActive

func (m *WorkflowMutation) SetActive(b bool)

SetActive sets the "active" field.

func (*WorkflowMutation) SetCreated

func (m *WorkflowMutation) SetCreated(t time.Time)

SetCreated sets the "created" field.

func (*WorkflowMutation) SetDescription

func (m *WorkflowMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*WorkflowMutation) SetField

func (m *WorkflowMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowMutation) SetID

func (m *WorkflowMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Workflow entities.

func (*WorkflowMutation) SetLogToEvents

func (m *WorkflowMutation) SetLogToEvents(s string)

SetLogToEvents sets the "logToEvents" field.

func (*WorkflowMutation) SetName

func (m *WorkflowMutation) SetName(s string)

SetName sets the "name" field.

func (*WorkflowMutation) SetNamespaceID

func (m *WorkflowMutation) SetNamespaceID(id string)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*WorkflowMutation) SetRevision

func (m *WorkflowMutation) SetRevision(i int)

SetRevision sets the "revision" field.

func (*WorkflowMutation) SetWorkflow

func (m *WorkflowMutation) SetWorkflow(b []byte)

SetWorkflow sets the "workflow" field.

func (WorkflowMutation) Tx

func (m WorkflowMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowMutation) Type

func (m *WorkflowMutation) Type() string

Type returns the node type of this mutation (Workflow).

func (*WorkflowMutation) WfeventsCleared

func (m *WorkflowMutation) WfeventsCleared() bool

WfeventsCleared reports if the "wfevents" edge to the WorkflowEvents entity was cleared.

func (*WorkflowMutation) WfeventsIDs

func (m *WorkflowMutation) WfeventsIDs() (ids []int)

WfeventsIDs returns the "wfevents" edge IDs in the mutation.

func (*WorkflowMutation) Where

func (m *WorkflowMutation) Where(ps ...predicate.Workflow)

Where appends a list predicates to the WorkflowMutation builder.

func (*WorkflowMutation) Workflow

func (m *WorkflowMutation) Workflow() (r []byte, exists bool)

Workflow returns the value of the "workflow" field in the mutation.

type WorkflowQuery

type WorkflowQuery struct {
	// contains filtered or unexported fields
}

WorkflowQuery is the builder for querying Workflow entities.

func (*WorkflowQuery) All

func (wq *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error)

All executes the query and returns a list of Workflows.

func (*WorkflowQuery) AllX

func (wq *WorkflowQuery) AllX(ctx context.Context) []*Workflow

AllX is like All, but panics if an error occurs.

func (*WorkflowQuery) Clone

func (wq *WorkflowQuery) Clone() *WorkflowQuery

Clone returns a duplicate of the WorkflowQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowQuery) Count

func (wq *WorkflowQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowQuery) CountX

func (wq *WorkflowQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowQuery) Exist

func (wq *WorkflowQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowQuery) ExistX

func (wq *WorkflowQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowQuery) First

func (wq *WorkflowQuery) First(ctx context.Context) (*Workflow, error)

First returns the first Workflow entity from the query. Returns a *NotFoundError when no Workflow was found.

func (*WorkflowQuery) FirstID

func (wq *WorkflowQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first Workflow ID from the query. Returns a *NotFoundError when no Workflow ID was found.

func (*WorkflowQuery) FirstIDX

func (wq *WorkflowQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowQuery) FirstX

func (wq *WorkflowQuery) FirstX(ctx context.Context) *Workflow

FirstX is like First, but panics if an error occurs.

func (*WorkflowQuery) GroupBy

func (wq *WorkflowQuery) GroupBy(field string, fields ...string) *WorkflowGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Workflow.Query().
	GroupBy(workflow.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowQuery) IDs

func (wq *WorkflowQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of Workflow IDs.

func (*WorkflowQuery) IDsX

func (wq *WorkflowQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowQuery) Limit

func (wq *WorkflowQuery) Limit(limit int) *WorkflowQuery

Limit adds a limit step to the query.

func (*WorkflowQuery) Offset

func (wq *WorkflowQuery) Offset(offset int) *WorkflowQuery

Offset adds an offset step to the query.

func (*WorkflowQuery) Only

func (wq *WorkflowQuery) Only(ctx context.Context) (*Workflow, error)

Only returns a single Workflow entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Workflow entity is not found. Returns a *NotFoundError when no Workflow entities are found.

func (*WorkflowQuery) OnlyID

func (wq *WorkflowQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Workflow ID in the query. Returns a *NotSingularError when exactly one Workflow ID is not found. Returns a *NotFoundError when no entities are found.

func (*WorkflowQuery) OnlyIDX

func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowQuery) OnlyX

func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowQuery) Order

func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery

Order adds an order step to the query.

func (*WorkflowQuery) QueryInstances

func (wq *WorkflowQuery) QueryInstances() *WorkflowInstanceQuery

QueryInstances chains the current query on the "instances" edge.

func (*WorkflowQuery) QueryNamespace

func (wq *WorkflowQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*WorkflowQuery) QueryWfevents

func (wq *WorkflowQuery) QueryWfevents() *WorkflowEventsQuery

QueryWfevents chains the current query on the "wfevents" edge.

func (*WorkflowQuery) Select

func (wq *WorkflowQuery) Select(fields ...string) *WorkflowSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Workflow.Query().
	Select(workflow.FieldName).
	Scan(ctx, &v)

func (*WorkflowQuery) Unique

func (wq *WorkflowQuery) Unique(unique bool) *WorkflowQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WorkflowQuery) Where

func (wq *WorkflowQuery) Where(ps ...predicate.Workflow) *WorkflowQuery

Where adds a new predicate for the WorkflowQuery builder.

func (*WorkflowQuery) WithInstances

func (wq *WorkflowQuery) WithInstances(opts ...func(*WorkflowInstanceQuery)) *WorkflowQuery

WithInstances tells the query-builder to eager-load the nodes that are connected to the "instances" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithNamespace

func (wq *WorkflowQuery) WithNamespace(opts ...func(*NamespaceQuery)) *WorkflowQuery

WithNamespace tells the query-builder to eager-load the nodes that are connected to the "namespace" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithWfevents

func (wq *WorkflowQuery) WithWfevents(opts ...func(*WorkflowEventsQuery)) *WorkflowQuery

WithWfevents tells the query-builder to eager-load the nodes that are connected to the "wfevents" edge. The optional arguments are used to configure the query builder of the edge.

type WorkflowSelect

type WorkflowSelect struct {
	*WorkflowQuery
	// contains filtered or unexported fields
}

WorkflowSelect is the builder for selecting fields of Workflow entities.

func (*WorkflowSelect) Bool

func (ws *WorkflowSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) BoolX

func (ws *WorkflowSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowSelect) Bools

func (ws *WorkflowSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) BoolsX

func (ws *WorkflowSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowSelect) Float64

func (ws *WorkflowSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) Float64X

func (ws *WorkflowSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowSelect) Float64s

func (ws *WorkflowSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) Float64sX

func (ws *WorkflowSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowSelect) Int

func (ws *WorkflowSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) IntX

func (ws *WorkflowSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowSelect) Ints

func (ws *WorkflowSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) IntsX

func (ws *WorkflowSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowSelect) Scan

func (ws *WorkflowSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowSelect) ScanX

func (ws *WorkflowSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowSelect) String

func (ws *WorkflowSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) StringX

func (ws *WorkflowSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowSelect) Strings

func (ws *WorkflowSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) StringsX

func (ws *WorkflowSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowUpdate

type WorkflowUpdate struct {
	// contains filtered or unexported fields
}

WorkflowUpdate is the builder for updating Workflow entities.

func (*WorkflowUpdate) AddInstanceIDs

func (wu *WorkflowUpdate) AddInstanceIDs(ids ...int) *WorkflowUpdate

AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by IDs.

func (*WorkflowUpdate) AddInstances

func (wu *WorkflowUpdate) AddInstances(w ...*WorkflowInstance) *WorkflowUpdate

AddInstances adds the "instances" edges to the WorkflowInstance entity.

func (*WorkflowUpdate) AddRevision

func (wu *WorkflowUpdate) AddRevision(i int) *WorkflowUpdate

AddRevision adds i to the "revision" field.

func (*WorkflowUpdate) AddWfeventIDs

func (wu *WorkflowUpdate) AddWfeventIDs(ids ...int) *WorkflowUpdate

AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by IDs.

func (*WorkflowUpdate) AddWfevents

func (wu *WorkflowUpdate) AddWfevents(w ...*WorkflowEvents) *WorkflowUpdate

AddWfevents adds the "wfevents" edges to the WorkflowEvents entity.

func (*WorkflowUpdate) ClearDescription

func (wu *WorkflowUpdate) ClearDescription() *WorkflowUpdate

ClearDescription clears the value of the "description" field.

func (*WorkflowUpdate) ClearInstances

func (wu *WorkflowUpdate) ClearInstances() *WorkflowUpdate

ClearInstances clears all "instances" edges to the WorkflowInstance entity.

func (*WorkflowUpdate) ClearLogToEvents

func (wu *WorkflowUpdate) ClearLogToEvents() *WorkflowUpdate

ClearLogToEvents clears the value of the "logToEvents" field.

func (*WorkflowUpdate) ClearNamespace

func (wu *WorkflowUpdate) ClearNamespace() *WorkflowUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*WorkflowUpdate) ClearWfevents

func (wu *WorkflowUpdate) ClearWfevents() *WorkflowUpdate

ClearWfevents clears all "wfevents" edges to the WorkflowEvents entity.

func (*WorkflowUpdate) Exec

func (wu *WorkflowUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowUpdate) ExecX

func (wu *WorkflowUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowUpdate) Mutation

func (wu *WorkflowUpdate) Mutation() *WorkflowMutation

Mutation returns the WorkflowMutation object of the builder.

func (*WorkflowUpdate) RemoveInstanceIDs

func (wu *WorkflowUpdate) RemoveInstanceIDs(ids ...int) *WorkflowUpdate

RemoveInstanceIDs removes the "instances" edge to WorkflowInstance entities by IDs.

func (*WorkflowUpdate) RemoveInstances

func (wu *WorkflowUpdate) RemoveInstances(w ...*WorkflowInstance) *WorkflowUpdate

RemoveInstances removes "instances" edges to WorkflowInstance entities.

func (*WorkflowUpdate) RemoveWfeventIDs

func (wu *WorkflowUpdate) RemoveWfeventIDs(ids ...int) *WorkflowUpdate

RemoveWfeventIDs removes the "wfevents" edge to WorkflowEvents entities by IDs.

func (*WorkflowUpdate) RemoveWfevents

func (wu *WorkflowUpdate) RemoveWfevents(w ...*WorkflowEvents) *WorkflowUpdate

RemoveWfevents removes "wfevents" edges to WorkflowEvents entities.

func (*WorkflowUpdate) Save

func (wu *WorkflowUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowUpdate) SaveX

func (wu *WorkflowUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WorkflowUpdate) SetActive

func (wu *WorkflowUpdate) SetActive(b bool) *WorkflowUpdate

SetActive sets the "active" field.

func (*WorkflowUpdate) SetDescription

func (wu *WorkflowUpdate) SetDescription(s string) *WorkflowUpdate

SetDescription sets the "description" field.

func (*WorkflowUpdate) SetLogToEvents

func (wu *WorkflowUpdate) SetLogToEvents(s string) *WorkflowUpdate

SetLogToEvents sets the "logToEvents" field.

func (*WorkflowUpdate) SetName

func (wu *WorkflowUpdate) SetName(s string) *WorkflowUpdate

SetName sets the "name" field.

func (*WorkflowUpdate) SetNamespace

func (wu *WorkflowUpdate) SetNamespace(n *Namespace) *WorkflowUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*WorkflowUpdate) SetNamespaceID

func (wu *WorkflowUpdate) SetNamespaceID(id string) *WorkflowUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*WorkflowUpdate) SetNillableActive

func (wu *WorkflowUpdate) SetNillableActive(b *bool) *WorkflowUpdate

SetNillableActive sets the "active" field if the given value is not nil.

func (*WorkflowUpdate) SetNillableDescription

func (wu *WorkflowUpdate) SetNillableDescription(s *string) *WorkflowUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*WorkflowUpdate) SetNillableLogToEvents

func (wu *WorkflowUpdate) SetNillableLogToEvents(s *string) *WorkflowUpdate

SetNillableLogToEvents sets the "logToEvents" field if the given value is not nil.

func (*WorkflowUpdate) SetNillableRevision

func (wu *WorkflowUpdate) SetNillableRevision(i *int) *WorkflowUpdate

SetNillableRevision sets the "revision" field if the given value is not nil.

func (*WorkflowUpdate) SetRevision

func (wu *WorkflowUpdate) SetRevision(i int) *WorkflowUpdate

SetRevision sets the "revision" field.

func (*WorkflowUpdate) SetWorkflow

func (wu *WorkflowUpdate) SetWorkflow(b []byte) *WorkflowUpdate

SetWorkflow sets the "workflow" field.

func (*WorkflowUpdate) Where

func (wu *WorkflowUpdate) Where(ps ...predicate.Workflow) *WorkflowUpdate

Where appends a list predicates to the WorkflowUpdate builder.

type WorkflowUpdateOne

type WorkflowUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowUpdateOne is the builder for updating a single Workflow entity.

func (*WorkflowUpdateOne) AddInstanceIDs

func (wuo *WorkflowUpdateOne) AddInstanceIDs(ids ...int) *WorkflowUpdateOne

AddInstanceIDs adds the "instances" edge to the WorkflowInstance entity by IDs.

func (*WorkflowUpdateOne) AddInstances

func (wuo *WorkflowUpdateOne) AddInstances(w ...*WorkflowInstance) *WorkflowUpdateOne

AddInstances adds the "instances" edges to the WorkflowInstance entity.

func (*WorkflowUpdateOne) AddRevision

func (wuo *WorkflowUpdateOne) AddRevision(i int) *WorkflowUpdateOne

AddRevision adds i to the "revision" field.

func (*WorkflowUpdateOne) AddWfeventIDs

func (wuo *WorkflowUpdateOne) AddWfeventIDs(ids ...int) *WorkflowUpdateOne

AddWfeventIDs adds the "wfevents" edge to the WorkflowEvents entity by IDs.

func (*WorkflowUpdateOne) AddWfevents

func (wuo *WorkflowUpdateOne) AddWfevents(w ...*WorkflowEvents) *WorkflowUpdateOne

AddWfevents adds the "wfevents" edges to the WorkflowEvents entity.

func (*WorkflowUpdateOne) ClearDescription

func (wuo *WorkflowUpdateOne) ClearDescription() *WorkflowUpdateOne

ClearDescription clears the value of the "description" field.

func (*WorkflowUpdateOne) ClearInstances

func (wuo *WorkflowUpdateOne) ClearInstances() *WorkflowUpdateOne

ClearInstances clears all "instances" edges to the WorkflowInstance entity.

func (*WorkflowUpdateOne) ClearLogToEvents

func (wuo *WorkflowUpdateOne) ClearLogToEvents() *WorkflowUpdateOne

ClearLogToEvents clears the value of the "logToEvents" field.

func (*WorkflowUpdateOne) ClearNamespace

func (wuo *WorkflowUpdateOne) ClearNamespace() *WorkflowUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*WorkflowUpdateOne) ClearWfevents

func (wuo *WorkflowUpdateOne) ClearWfevents() *WorkflowUpdateOne

ClearWfevents clears all "wfevents" edges to the WorkflowEvents entity.

func (*WorkflowUpdateOne) Exec

func (wuo *WorkflowUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*WorkflowUpdateOne) ExecX

func (wuo *WorkflowUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowUpdateOne) Mutation

func (wuo *WorkflowUpdateOne) Mutation() *WorkflowMutation

Mutation returns the WorkflowMutation object of the builder.

func (*WorkflowUpdateOne) RemoveInstanceIDs

func (wuo *WorkflowUpdateOne) RemoveInstanceIDs(ids ...int) *WorkflowUpdateOne

RemoveInstanceIDs removes the "instances" edge to WorkflowInstance entities by IDs.

func (*WorkflowUpdateOne) RemoveInstances

func (wuo *WorkflowUpdateOne) RemoveInstances(w ...*WorkflowInstance) *WorkflowUpdateOne

RemoveInstances removes "instances" edges to WorkflowInstance entities.

func (*WorkflowUpdateOne) RemoveWfeventIDs

func (wuo *WorkflowUpdateOne) RemoveWfeventIDs(ids ...int) *WorkflowUpdateOne

RemoveWfeventIDs removes the "wfevents" edge to WorkflowEvents entities by IDs.

func (*WorkflowUpdateOne) RemoveWfevents

func (wuo *WorkflowUpdateOne) RemoveWfevents(w ...*WorkflowEvents) *WorkflowUpdateOne

RemoveWfevents removes "wfevents" edges to WorkflowEvents entities.

func (*WorkflowUpdateOne) Save

func (wuo *WorkflowUpdateOne) Save(ctx context.Context) (*Workflow, error)

Save executes the query and returns the updated Workflow entity.

func (*WorkflowUpdateOne) SaveX

func (wuo *WorkflowUpdateOne) SaveX(ctx context.Context) *Workflow

SaveX is like Save, but panics if an error occurs.

func (*WorkflowUpdateOne) Select

func (wuo *WorkflowUpdateOne) Select(field string, fields ...string) *WorkflowUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowUpdateOne) SetActive

func (wuo *WorkflowUpdateOne) SetActive(b bool) *WorkflowUpdateOne

SetActive sets the "active" field.

func (*WorkflowUpdateOne) SetDescription

func (wuo *WorkflowUpdateOne) SetDescription(s string) *WorkflowUpdateOne

SetDescription sets the "description" field.

func (*WorkflowUpdateOne) SetLogToEvents

func (wuo *WorkflowUpdateOne) SetLogToEvents(s string) *WorkflowUpdateOne

SetLogToEvents sets the "logToEvents" field.

func (*WorkflowUpdateOne) SetName

func (wuo *WorkflowUpdateOne) SetName(s string) *WorkflowUpdateOne

SetName sets the "name" field.

func (*WorkflowUpdateOne) SetNamespace

func (wuo *WorkflowUpdateOne) SetNamespace(n *Namespace) *WorkflowUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*WorkflowUpdateOne) SetNamespaceID

func (wuo *WorkflowUpdateOne) SetNamespaceID(id string) *WorkflowUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*WorkflowUpdateOne) SetNillableActive

func (wuo *WorkflowUpdateOne) SetNillableActive(b *bool) *WorkflowUpdateOne

SetNillableActive sets the "active" field if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableDescription

func (wuo *WorkflowUpdateOne) SetNillableDescription(s *string) *WorkflowUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableLogToEvents

func (wuo *WorkflowUpdateOne) SetNillableLogToEvents(s *string) *WorkflowUpdateOne

SetNillableLogToEvents sets the "logToEvents" field if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableRevision

func (wuo *WorkflowUpdateOne) SetNillableRevision(i *int) *WorkflowUpdateOne

SetNillableRevision sets the "revision" field if the given value is not nil.

func (*WorkflowUpdateOne) SetRevision

func (wuo *WorkflowUpdateOne) SetRevision(i int) *WorkflowUpdateOne

SetRevision sets the "revision" field.

func (*WorkflowUpdateOne) SetWorkflow

func (wuo *WorkflowUpdateOne) SetWorkflow(b []byte) *WorkflowUpdateOne

SetWorkflow sets the "workflow" field.

type Workflows

type Workflows []*Workflow

Workflows is a parsable slice of Workflow.

Jump to

Keyboard shortcuts

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