ent

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 38 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"
	TypeEvents          = "Events"
	TypeEventsWait      = "EventsWait"
	TypeInode           = "Inode"
	TypeInstance        = "Instance"
	TypeInstanceRuntime = "InstanceRuntime"
	TypeLogMsg          = "LogMsg"
	TypeMirror          = "Mirror"
	TypeMirrorActivity  = "MirrorActivity"
	TypeNamespace       = "Namespace"
	TypeRef             = "Ref"
	TypeRevision        = "Revision"
	TypeRoute           = "Route"
	TypeVarData         = "VarData"
	TypeVarRef          = "VarRef"
	TypeWorkflow        = "Workflow"
)

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.

func OpenTxFromContext

func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)

OpenTxFromContext open transactions from client stored in context.

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
	// Events is the client for interacting with the Events builders.
	Events *EventsClient
	// EventsWait is the client for interacting with the EventsWait builders.
	EventsWait *EventsWaitClient
	// Inode is the client for interacting with the Inode builders.
	Inode *InodeClient
	// Instance is the client for interacting with the Instance builders.
	Instance *InstanceClient
	// InstanceRuntime is the client for interacting with the InstanceRuntime builders.
	InstanceRuntime *InstanceRuntimeClient
	// LogMsg is the client for interacting with the LogMsg builders.
	LogMsg *LogMsgClient
	// Mirror is the client for interacting with the Mirror builders.
	Mirror *MirrorClient
	// MirrorActivity is the client for interacting with the MirrorActivity builders.
	MirrorActivity *MirrorActivityClient
	// Namespace is the client for interacting with the Namespace builders.
	Namespace *NamespaceClient
	// Ref is the client for interacting with the Ref builders.
	Ref *RefClient
	// Revision is the client for interacting with the Revision builders.
	Revision *RevisionClient
	// Route is the client for interacting with the Route builders.
	Route *RouteClient
	// VarData is the client for interacting with the VarData builders.
	VarData *VarDataClient
	// VarRef is the client for interacting with the VarRef builders.
	VarRef *VarRefClient
	// Workflow is the client for interacting with the Workflow builders.
	Workflow *WorkflowClient
	// 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) OpenTx

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

OpenTx opens a transaction and returns a transactional context along with the created transaction.

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 uuid.UUID `json:"id"`
	// EventId holds the value of the "eventId" field.
	EventId string `json:"eventId,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"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the CloudEventsQuery when eager-loading is set.
	Edges CloudEventsEdges `json:"edges"`
	// contains filtered or unexported fields
}

CloudEvents is the model entity for the CloudEvents schema.

func (*CloudEvents) Namespace

func (ce *CloudEvents) Namespace(ctx context.Context) (*Namespace, error)

func (*CloudEvents) QueryNamespace

func (ce *CloudEvents) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the CloudEvents entity.

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 builder for creating a CloudEvents entity.

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 builder for deleting the given entity.

func (*CloudEventsClient) DeleteOneID

func (c *CloudEventsClient) DeleteOneID(id uuid.UUID) *CloudEventsDeleteOne

DeleteOne returns a builder for deleting the given entity by its 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) QueryNamespace

func (c *CloudEventsClient) QueryNamespace(ce *CloudEvents) *NamespaceQuery

QueryNamespace queries the namespace edge of a 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 uuid.UUID) *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) SetEventId

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

SetEventId sets the "eventId" 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(n *Namespace) *CloudEventsCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*CloudEventsCreate) SetNamespaceID

func (cec *CloudEventsCreate) SetNamespaceID(id uuid.UUID) *CloudEventsCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

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) SetNillableID added in v0.6.1

func (cec *CloudEventsCreate) SetNillableID(u *uuid.UUID) *CloudEventsCreate

SetNillableID sets the "id" 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 CloudEventsEdges

type CloudEventsEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

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

func (CloudEventsEdges) NamespaceOrErr

func (e CloudEventsEdges) 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.

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 (s *CloudEventsGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*CloudEventsGroupBy) BoolX

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

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

func (*CloudEventsGroupBy) Bools

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

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

func (*CloudEventsGroupBy) BoolsX

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

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

func (*CloudEventsGroupBy) Float64

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

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

func (*CloudEventsGroupBy) Float64X

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

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

func (*CloudEventsGroupBy) Float64s

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

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

func (*CloudEventsGroupBy) Float64sX

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

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

func (*CloudEventsGroupBy) Int

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

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

func (*CloudEventsGroupBy) IntX

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

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

func (*CloudEventsGroupBy) Ints

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

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

func (*CloudEventsGroupBy) IntsX

func (s *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 (s *CloudEventsGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*CloudEventsGroupBy) String

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

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

func (*CloudEventsGroupBy) StringX

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

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

func (*CloudEventsGroupBy) Strings

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

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

func (*CloudEventsGroupBy) StringsX

func (s *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) ClearNamespace

func (m *CloudEventsMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

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) EventId

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

EventId returns the value of the "eventId" 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 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 (*CloudEventsMutation) IDs added in v0.6.1

func (m *CloudEventsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*CloudEventsMutation) NamespaceCleared

func (m *CloudEventsMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*CloudEventsMutation) NamespaceID

func (m *CloudEventsMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*CloudEventsMutation) NamespaceIDs

func (m *CloudEventsMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*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) OldEventId

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

OldEventId returns the old "eventId" 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) 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) ResetEventId

func (m *CloudEventsMutation) ResetEventId()

ResetEventId resets all changes to the "eventId" 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" edge.

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) SetEventId

func (m *CloudEventsMutation) SetEventId(s string)

SetEventId sets the "eventId" 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 uuid.UUID)

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

func (*CloudEventsMutation) SetNamespaceID

func (m *CloudEventsMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

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) CollectFields

func (ce *CloudEventsQuery) CollectFields(ctx context.Context, satisfies ...string) *CloudEventsQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

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 uuid.UUID, 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) uuid.UUID

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 {
	EventId string `json:"eventId,omitempty"`
	Count int `json:"count,omitempty"`
}

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

func (*CloudEventsQuery) IDs

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

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

func (*CloudEventsQuery) IDsX

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

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 more than one CloudEvents entity is found. Returns a *NotFoundError when no CloudEvents entities are found.

func (*CloudEventsQuery) OnlyID

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

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

func (*CloudEventsQuery) OnlyIDX

func (ceq *CloudEventsQuery) OnlyIDX(ctx context.Context) uuid.UUID

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) QueryNamespace

func (ceq *CloudEventsQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

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 {
	EventId string `json:"eventId,omitempty"`
}

client.CloudEvents.Query().
	Select(cloudevents.FieldEventId).
	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.

func (*CloudEventsQuery) WithNamespace

func (ceq *CloudEventsQuery) WithNamespace(opts ...func(*NamespaceQuery)) *CloudEventsQuery

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.

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 (s *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 (s *CloudEventsSelect) BoolX(ctx context.Context) bool

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

func (*CloudEventsSelect) Bools

func (s *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 (s *CloudEventsSelect) BoolsX(ctx context.Context) []bool

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

func (*CloudEventsSelect) Float64

func (s *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 (s *CloudEventsSelect) Float64X(ctx context.Context) float64

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

func (*CloudEventsSelect) Float64s

func (s *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 (s *CloudEventsSelect) Float64sX(ctx context.Context) []float64

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

func (*CloudEventsSelect) Int

func (s *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 (s *CloudEventsSelect) IntX(ctx context.Context) int

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

func (*CloudEventsSelect) Ints

func (s *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 (s *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 (s *CloudEventsSelect) ScanX(ctx context.Context, v interface{})

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

func (*CloudEventsSelect) String

func (s *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 (s *CloudEventsSelect) StringX(ctx context.Context) string

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

func (*CloudEventsSelect) Strings

func (s *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 (s *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) ClearNamespace

func (ceu *CloudEventsUpdate) ClearNamespace() *CloudEventsUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

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) SetNamespace

func (ceu *CloudEventsUpdate) SetNamespace(n *Namespace) *CloudEventsUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*CloudEventsUpdate) SetNamespaceID

func (ceu *CloudEventsUpdate) SetNamespaceID(id uuid.UUID) *CloudEventsUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

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) ClearNamespace

func (ceuo *CloudEventsUpdateOne) ClearNamespace() *CloudEventsUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace 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) SetNamespace

func (ceuo *CloudEventsUpdateOne) SetNamespace(n *Namespace) *CloudEventsUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*CloudEventsUpdateOne) SetNamespaceID

func (ceuo *CloudEventsUpdateOne) SetNamespaceID(id uuid.UUID) *CloudEventsUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

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(ctx 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 Commit 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 Events

type Events struct {

	// ID of the ent.
	ID uuid.UUID `json:"id"`
	// 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"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the EventsQuery when eager-loading is set.
	Edges EventsEdges `json:"edges"`
	// contains filtered or unexported fields
}

Events is the model entity for the Events schema.

func (*Events) Instance

func (e *Events) Instance(ctx context.Context) (*Instance, error)

func (*Events) Namespace added in v0.6.0

func (e *Events) Namespace(ctx context.Context) (*Namespace, error)

func (*Events) QueryInstance

func (e *Events) QueryInstance() *InstanceQuery

QueryInstance queries the "instance" edge of the Events entity.

func (*Events) QueryNamespace added in v0.6.0

func (e *Events) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the Events entity.

func (*Events) QueryWfeventswait

func (e *Events) QueryWfeventswait() *EventsWaitQuery

QueryWfeventswait queries the "wfeventswait" edge of the Events entity.

func (*Events) QueryWorkflow

func (e *Events) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the Events entity.

func (*Events) String

func (e *Events) String() string

String implements the fmt.Stringer.

func (*Events) Unwrap

func (e *Events) Unwrap() *Events

Unwrap unwraps the Events 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 (*Events) Update

func (e *Events) Update() *EventsUpdateOne

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

func (*Events) Wfeventswait

func (e *Events) Wfeventswait(ctx context.Context) ([]*EventsWait, error)

func (*Events) Workflow

func (e *Events) Workflow(ctx context.Context) (*Workflow, error)

type EventsClient

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

EventsClient is a client for the Events schema.

func NewEventsClient

func NewEventsClient(c config) *EventsClient

NewEventsClient returns a client for the Events from the given config.

func (*EventsClient) Create

func (c *EventsClient) Create() *EventsCreate

Create returns a builder for creating a Events entity.

func (*EventsClient) CreateBulk

func (c *EventsClient) CreateBulk(builders ...*EventsCreate) *EventsCreateBulk

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

func (*EventsClient) Delete

func (c *EventsClient) Delete() *EventsDelete

Delete returns a delete builder for Events.

func (*EventsClient) DeleteOne

func (c *EventsClient) DeleteOne(e *Events) *EventsDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*EventsClient) DeleteOneID

func (c *EventsClient) DeleteOneID(id uuid.UUID) *EventsDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*EventsClient) Get

func (c *EventsClient) Get(ctx context.Context, id uuid.UUID) (*Events, error)

Get returns a Events entity by its id.

func (*EventsClient) GetX

func (c *EventsClient) GetX(ctx context.Context, id uuid.UUID) *Events

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

func (*EventsClient) Hooks

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

Hooks returns the client hooks.

func (*EventsClient) Query

func (c *EventsClient) Query() *EventsQuery

Query returns a query builder for Events.

func (*EventsClient) QueryInstance

func (c *EventsClient) QueryInstance(e *Events) *InstanceQuery

QueryInstance queries the instance edge of a Events.

func (*EventsClient) QueryNamespace added in v0.6.0

func (c *EventsClient) QueryNamespace(e *Events) *NamespaceQuery

QueryNamespace queries the namespace edge of a Events.

func (*EventsClient) QueryWfeventswait

func (c *EventsClient) QueryWfeventswait(e *Events) *EventsWaitQuery

QueryWfeventswait queries the wfeventswait edge of a Events.

func (*EventsClient) QueryWorkflow

func (c *EventsClient) QueryWorkflow(e *Events) *WorkflowQuery

QueryWorkflow queries the workflow edge of a Events.

func (*EventsClient) Update

func (c *EventsClient) Update() *EventsUpdate

Update returns an update builder for Events.

func (*EventsClient) UpdateOne

func (c *EventsClient) UpdateOne(e *Events) *EventsUpdateOne

UpdateOne returns an update builder for the given entity.

func (*EventsClient) UpdateOneID

func (c *EventsClient) UpdateOneID(id uuid.UUID) *EventsUpdateOne

UpdateOneID returns an update builder for the given id.

func (*EventsClient) Use

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

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

type EventsCreate

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

EventsCreate is the builder for creating a Events entity.

func (*EventsCreate) AddWfeventswait

func (ec *EventsCreate) AddWfeventswait(e ...*EventsWait) *EventsCreate

AddWfeventswait adds the "wfeventswait" edges to the EventsWait entity.

func (*EventsCreate) AddWfeventswaitIDs

func (ec *EventsCreate) AddWfeventswaitIDs(ids ...uuid.UUID) *EventsCreate

AddWfeventswaitIDs adds the "wfeventswait" edge to the EventsWait entity by IDs.

func (*EventsCreate) Exec

func (ec *EventsCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*EventsCreate) ExecX

func (ec *EventsCreate) ExecX(ctx context.Context)

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

func (*EventsCreate) Mutation

func (ec *EventsCreate) Mutation() *EventsMutation

Mutation returns the EventsMutation object of the builder.

func (*EventsCreate) Save

func (ec *EventsCreate) Save(ctx context.Context) (*Events, error)

Save creates the Events in the database.

func (*EventsCreate) SaveX

func (ec *EventsCreate) SaveX(ctx context.Context) *Events

SaveX calls Save and panics if Save returns an error.

func (*EventsCreate) SetCorrelations

func (ec *EventsCreate) SetCorrelations(s []string) *EventsCreate

SetCorrelations sets the "correlations" field.

func (*EventsCreate) SetCount

func (ec *EventsCreate) SetCount(i int) *EventsCreate

SetCount sets the "count" field.

func (*EventsCreate) SetCreatedAt added in v0.6.0

func (ec *EventsCreate) SetCreatedAt(t time.Time) *EventsCreate

SetCreatedAt sets the "created_at" field.

func (*EventsCreate) SetEvents

func (ec *EventsCreate) SetEvents(m []map[string]interface{}) *EventsCreate

SetEvents sets the "events" field.

func (*EventsCreate) SetID

func (ec *EventsCreate) SetID(u uuid.UUID) *EventsCreate

SetID sets the "id" field.

func (*EventsCreate) SetInstance

func (ec *EventsCreate) SetInstance(i *Instance) *EventsCreate

SetInstance sets the "instance" edge to the Instance entity.

func (*EventsCreate) SetInstanceID

func (ec *EventsCreate) SetInstanceID(id uuid.UUID) *EventsCreate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*EventsCreate) SetNamespace added in v0.6.0

func (ec *EventsCreate) SetNamespace(n *Namespace) *EventsCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*EventsCreate) SetNamespaceID added in v0.6.0

func (ec *EventsCreate) SetNamespaceID(id uuid.UUID) *EventsCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*EventsCreate) SetNillableCreatedAt added in v0.6.0

func (ec *EventsCreate) SetNillableCreatedAt(t *time.Time) *EventsCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*EventsCreate) SetNillableID added in v0.6.1

func (ec *EventsCreate) SetNillableID(u *uuid.UUID) *EventsCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*EventsCreate) SetNillableInstanceID

func (ec *EventsCreate) SetNillableInstanceID(id *uuid.UUID) *EventsCreate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*EventsCreate) SetNillableUpdatedAt added in v0.6.0

func (ec *EventsCreate) SetNillableUpdatedAt(t *time.Time) *EventsCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*EventsCreate) SetSignature

func (ec *EventsCreate) SetSignature(b []byte) *EventsCreate

SetSignature sets the "signature" field.

func (*EventsCreate) SetUpdatedAt added in v0.6.0

func (ec *EventsCreate) SetUpdatedAt(t time.Time) *EventsCreate

SetUpdatedAt sets the "updated_at" field.

func (*EventsCreate) SetWorkflow

func (ec *EventsCreate) SetWorkflow(w *Workflow) *EventsCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*EventsCreate) SetWorkflowID

func (ec *EventsCreate) SetWorkflowID(id uuid.UUID) *EventsCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type EventsCreateBulk

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

EventsCreateBulk is the builder for creating many Events entities in bulk.

func (*EventsCreateBulk) Exec

func (ecb *EventsCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*EventsCreateBulk) ExecX

func (ecb *EventsCreateBulk) ExecX(ctx context.Context)

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

func (*EventsCreateBulk) Save

func (ecb *EventsCreateBulk) Save(ctx context.Context) ([]*Events, error)

Save creates the Events entities in the database.

func (*EventsCreateBulk) SaveX

func (ecb *EventsCreateBulk) SaveX(ctx context.Context) []*Events

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

type EventsDelete

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

EventsDelete is the builder for deleting a Events entity.

func (*EventsDelete) Exec

func (ed *EventsDelete) Exec(ctx context.Context) (int, error)

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

func (*EventsDelete) ExecX

func (ed *EventsDelete) ExecX(ctx context.Context) int

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

func (*EventsDelete) Where

func (ed *EventsDelete) Where(ps ...predicate.Events) *EventsDelete

Where appends a list predicates to the EventsDelete builder.

type EventsDeleteOne

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

EventsDeleteOne is the builder for deleting a single Events entity.

func (*EventsDeleteOne) Exec

func (edo *EventsDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*EventsDeleteOne) ExecX

func (edo *EventsDeleteOne) ExecX(ctx context.Context)

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

type EventsEdges

type EventsEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Wfeventswait holds the value of the wfeventswait edge.
	Wfeventswait []*EventsWait `json:"wfeventswait,omitempty"`
	// Instance holds the value of the instance edge.
	Instance *Instance `json:"instance,omitempty"`
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

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

func (EventsEdges) InstanceOrErr

func (e EventsEdges) InstanceOrErr() (*Instance, error)

InstanceOrErr returns the Instance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (EventsEdges) NamespaceOrErr added in v0.6.0

func (e EventsEdges) 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 (EventsEdges) WfeventswaitOrErr

func (e EventsEdges) WfeventswaitOrErr() ([]*EventsWait, error)

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

func (EventsEdges) WorkflowOrErr

func (e EventsEdges) 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 EventsGroupBy

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

EventsGroupBy is the group-by builder for Events entities.

func (*EventsGroupBy) Aggregate

func (egb *EventsGroupBy) Aggregate(fns ...AggregateFunc) *EventsGroupBy

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

func (*EventsGroupBy) Bool

func (s *EventsGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*EventsGroupBy) BoolX

func (s *EventsGroupBy) BoolX(ctx context.Context) bool

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

func (*EventsGroupBy) Bools

func (s *EventsGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*EventsGroupBy) BoolsX

func (s *EventsGroupBy) BoolsX(ctx context.Context) []bool

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

func (*EventsGroupBy) Float64

func (s *EventsGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*EventsGroupBy) Float64X

func (s *EventsGroupBy) Float64X(ctx context.Context) float64

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

func (*EventsGroupBy) Float64s

func (s *EventsGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*EventsGroupBy) Float64sX

func (s *EventsGroupBy) Float64sX(ctx context.Context) []float64

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

func (*EventsGroupBy) Int

func (s *EventsGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*EventsGroupBy) IntX

func (s *EventsGroupBy) IntX(ctx context.Context) int

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

func (*EventsGroupBy) Ints

func (s *EventsGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*EventsGroupBy) IntsX

func (s *EventsGroupBy) IntsX(ctx context.Context) []int

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

func (*EventsGroupBy) Scan

func (egb *EventsGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*EventsGroupBy) ScanX

func (s *EventsGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*EventsGroupBy) String

func (s *EventsGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*EventsGroupBy) StringX

func (s *EventsGroupBy) StringX(ctx context.Context) string

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

func (*EventsGroupBy) Strings

func (s *EventsGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*EventsGroupBy) StringsX

func (s *EventsGroupBy) StringsX(ctx context.Context) []string

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

type EventsMutation

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

EventsMutation represents an operation that mutates the Events nodes in the graph.

func (*EventsMutation) AddCount

func (m *EventsMutation) AddCount(i int)

AddCount adds i to the "count" field.

func (*EventsMutation) AddField

func (m *EventsMutation) 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 (*EventsMutation) AddWfeventswaitIDs

func (m *EventsMutation) AddWfeventswaitIDs(ids ...uuid.UUID)

AddWfeventswaitIDs adds the "wfeventswait" edge to the EventsWait entity by ids.

func (*EventsMutation) AddedCount

func (m *EventsMutation) AddedCount() (r int, exists bool)

AddedCount returns the value that was added to the "count" field in this mutation.

func (*EventsMutation) AddedEdges

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

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

func (*EventsMutation) AddedField

func (m *EventsMutation) 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 (*EventsMutation) AddedFields

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

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

func (*EventsMutation) AddedIDs

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

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

func (*EventsMutation) ClearEdge

func (m *EventsMutation) 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 (*EventsMutation) ClearField

func (m *EventsMutation) 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 (*EventsMutation) ClearInstance

func (m *EventsMutation) ClearInstance()

ClearInstance clears the "instance" edge to the Instance entity.

func (*EventsMutation) ClearNamespace added in v0.6.0

func (m *EventsMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*EventsMutation) ClearSignature

func (m *EventsMutation) ClearSignature()

ClearSignature clears the value of the "signature" field.

func (*EventsMutation) ClearWfeventswait

func (m *EventsMutation) ClearWfeventswait()

ClearWfeventswait clears the "wfeventswait" edge to the EventsWait entity.

func (*EventsMutation) ClearWorkflow

func (m *EventsMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*EventsMutation) ClearedEdges

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

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

func (*EventsMutation) ClearedFields

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

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

func (EventsMutation) Client

func (m EventsMutation) 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 (*EventsMutation) Correlations

func (m *EventsMutation) Correlations() (r []string, exists bool)

Correlations returns the value of the "correlations" field in the mutation.

func (*EventsMutation) Count

func (m *EventsMutation) Count() (r int, exists bool)

Count returns the value of the "count" field in the mutation.

func (*EventsMutation) CreatedAt added in v0.6.0

func (m *EventsMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*EventsMutation) EdgeCleared

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

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

func (*EventsMutation) Events

func (m *EventsMutation) Events() (r []map[string]interface{}, exists bool)

Events returns the value of the "events" field in the mutation.

func (*EventsMutation) Field

func (m *EventsMutation) 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 (*EventsMutation) FieldCleared

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

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

func (*EventsMutation) Fields

func (m *EventsMutation) 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 (*EventsMutation) ID

func (m *EventsMutation) 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 (*EventsMutation) IDs added in v0.6.1

func (m *EventsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*EventsMutation) InstanceCleared

func (m *EventsMutation) InstanceCleared() bool

InstanceCleared reports if the "instance" edge to the Instance entity was cleared.

func (*EventsMutation) InstanceID

func (m *EventsMutation) InstanceID() (id uuid.UUID, exists bool)

InstanceID returns the "instance" edge ID in the mutation.

func (*EventsMutation) InstanceIDs

func (m *EventsMutation) InstanceIDs() (ids []uuid.UUID)

InstanceIDs returns the "instance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use InstanceID instead. It exists only for internal usage by the builders.

func (*EventsMutation) NamespaceCleared added in v0.6.0

func (m *EventsMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*EventsMutation) NamespaceID added in v0.6.0

func (m *EventsMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*EventsMutation) NamespaceIDs added in v0.6.0

func (m *EventsMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*EventsMutation) OldCorrelations

func (m *EventsMutation) OldCorrelations(ctx context.Context) (v []string, err error)

OldCorrelations returns the old "correlations" field's value of the Events entity. If the Events 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 (*EventsMutation) OldCount

func (m *EventsMutation) OldCount(ctx context.Context) (v int, err error)

OldCount returns the old "count" field's value of the Events entity. If the Events 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 (*EventsMutation) OldCreatedAt added in v0.6.0

func (m *EventsMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Events entity. If the Events 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 (*EventsMutation) OldEvents

func (m *EventsMutation) OldEvents(ctx context.Context) (v []map[string]interface{}, err error)

OldEvents returns the old "events" field's value of the Events entity. If the Events 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 (*EventsMutation) OldField

func (m *EventsMutation) 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 (*EventsMutation) OldSignature

func (m *EventsMutation) OldSignature(ctx context.Context) (v []byte, err error)

OldSignature returns the old "signature" field's value of the Events entity. If the Events 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 (*EventsMutation) OldUpdatedAt added in v0.6.0

func (m *EventsMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Events entity. If the Events 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 (*EventsMutation) Op

func (m *EventsMutation) Op() Op

Op returns the operation name.

func (*EventsMutation) RemoveWfeventswaitIDs

func (m *EventsMutation) RemoveWfeventswaitIDs(ids ...uuid.UUID)

RemoveWfeventswaitIDs removes the "wfeventswait" edge to the EventsWait entity by IDs.

func (*EventsMutation) RemovedEdges

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

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

func (*EventsMutation) RemovedIDs

func (m *EventsMutation) 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 (*EventsMutation) RemovedWfeventswaitIDs

func (m *EventsMutation) RemovedWfeventswaitIDs() (ids []uuid.UUID)

RemovedWfeventswait returns the removed IDs of the "wfeventswait" edge to the EventsWait entity.

func (*EventsMutation) ResetCorrelations

func (m *EventsMutation) ResetCorrelations()

ResetCorrelations resets all changes to the "correlations" field.

func (*EventsMutation) ResetCount

func (m *EventsMutation) ResetCount()

ResetCount resets all changes to the "count" field.

func (*EventsMutation) ResetCreatedAt added in v0.6.0

func (m *EventsMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*EventsMutation) ResetEdge

func (m *EventsMutation) 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 (*EventsMutation) ResetEvents

func (m *EventsMutation) ResetEvents()

ResetEvents resets all changes to the "events" field.

func (*EventsMutation) ResetField

func (m *EventsMutation) 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 (*EventsMutation) ResetInstance

func (m *EventsMutation) ResetInstance()

ResetInstance resets all changes to the "instance" edge.

func (*EventsMutation) ResetNamespace added in v0.6.0

func (m *EventsMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*EventsMutation) ResetSignature

func (m *EventsMutation) ResetSignature()

ResetSignature resets all changes to the "signature" field.

func (*EventsMutation) ResetUpdatedAt added in v0.6.0

func (m *EventsMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*EventsMutation) ResetWfeventswait

func (m *EventsMutation) ResetWfeventswait()

ResetWfeventswait resets all changes to the "wfeventswait" edge.

func (*EventsMutation) ResetWorkflow

func (m *EventsMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*EventsMutation) SetCorrelations

func (m *EventsMutation) SetCorrelations(s []string)

SetCorrelations sets the "correlations" field.

func (*EventsMutation) SetCount

func (m *EventsMutation) SetCount(i int)

SetCount sets the "count" field.

func (*EventsMutation) SetCreatedAt added in v0.6.0

func (m *EventsMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*EventsMutation) SetEvents

func (m *EventsMutation) SetEvents(value []map[string]interface{})

SetEvents sets the "events" field.

func (*EventsMutation) SetField

func (m *EventsMutation) 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 (*EventsMutation) SetID

func (m *EventsMutation) SetID(id uuid.UUID)

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

func (*EventsMutation) SetInstanceID

func (m *EventsMutation) SetInstanceID(id uuid.UUID)

SetInstanceID sets the "instance" edge to the Instance entity by id.

func (*EventsMutation) SetNamespaceID added in v0.6.0

func (m *EventsMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*EventsMutation) SetSignature

func (m *EventsMutation) SetSignature(b []byte)

SetSignature sets the "signature" field.

func (*EventsMutation) SetUpdatedAt added in v0.6.0

func (m *EventsMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*EventsMutation) SetWorkflowID

func (m *EventsMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*EventsMutation) Signature

func (m *EventsMutation) Signature() (r []byte, exists bool)

Signature returns the value of the "signature" field in the mutation.

func (*EventsMutation) SignatureCleared

func (m *EventsMutation) SignatureCleared() bool

SignatureCleared returns if the "signature" field was cleared in this mutation.

func (EventsMutation) Tx

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

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

func (*EventsMutation) Type

func (m *EventsMutation) Type() string

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

func (*EventsMutation) UpdatedAt added in v0.6.0

func (m *EventsMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*EventsMutation) WfeventswaitCleared

func (m *EventsMutation) WfeventswaitCleared() bool

WfeventswaitCleared reports if the "wfeventswait" edge to the EventsWait entity was cleared.

func (*EventsMutation) WfeventswaitIDs

func (m *EventsMutation) WfeventswaitIDs() (ids []uuid.UUID)

WfeventswaitIDs returns the "wfeventswait" edge IDs in the mutation.

func (*EventsMutation) Where

func (m *EventsMutation) Where(ps ...predicate.Events)

Where appends a list predicates to the EventsMutation builder.

func (*EventsMutation) WorkflowCleared

func (m *EventsMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*EventsMutation) WorkflowID

func (m *EventsMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*EventsMutation) WorkflowIDs

func (m *EventsMutation) 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 EventsQuery

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

EventsQuery is the builder for querying Events entities.

func (*EventsQuery) All

func (eq *EventsQuery) All(ctx context.Context) ([]*Events, error)

All executes the query and returns a list of EventsSlice.

func (*EventsQuery) AllX

func (eq *EventsQuery) AllX(ctx context.Context) []*Events

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

func (*EventsQuery) Clone

func (eq *EventsQuery) Clone() *EventsQuery

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

func (*EventsQuery) CollectFields

func (e *EventsQuery) CollectFields(ctx context.Context, satisfies ...string) *EventsQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*EventsQuery) Count

func (eq *EventsQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*EventsQuery) CountX

func (eq *EventsQuery) CountX(ctx context.Context) int

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

func (*EventsQuery) Exist

func (eq *EventsQuery) Exist(ctx context.Context) (bool, error)

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

func (*EventsQuery) ExistX

func (eq *EventsQuery) ExistX(ctx context.Context) bool

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

func (*EventsQuery) First

func (eq *EventsQuery) First(ctx context.Context) (*Events, error)

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

func (*EventsQuery) FirstID

func (eq *EventsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*EventsQuery) FirstIDX

func (eq *EventsQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*EventsQuery) FirstX

func (eq *EventsQuery) FirstX(ctx context.Context) *Events

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

func (*EventsQuery) GroupBy

func (eq *EventsQuery) GroupBy(field string, fields ...string) *EventsGroupBy

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.Events.Query().
	GroupBy(events.FieldEvents).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*EventsQuery) IDs

func (eq *EventsQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*EventsQuery) IDsX

func (eq *EventsQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*EventsQuery) Limit

func (eq *EventsQuery) Limit(limit int) *EventsQuery

Limit adds a limit step to the query.

func (*EventsQuery) Offset

func (eq *EventsQuery) Offset(offset int) *EventsQuery

Offset adds an offset step to the query.

func (*EventsQuery) Only

func (eq *EventsQuery) Only(ctx context.Context) (*Events, error)

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

func (*EventsQuery) OnlyID

func (eq *EventsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*EventsQuery) OnlyIDX

func (eq *EventsQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*EventsQuery) OnlyX

func (eq *EventsQuery) OnlyX(ctx context.Context) *Events

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

func (*EventsQuery) Order

func (eq *EventsQuery) Order(o ...OrderFunc) *EventsQuery

Order adds an order step to the query.

func (*EventsQuery) QueryInstance

func (eq *EventsQuery) QueryInstance() *InstanceQuery

QueryInstance chains the current query on the "instance" edge.

func (*EventsQuery) QueryNamespace added in v0.6.0

func (eq *EventsQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*EventsQuery) QueryWfeventswait

func (eq *EventsQuery) QueryWfeventswait() *EventsWaitQuery

QueryWfeventswait chains the current query on the "wfeventswait" edge.

func (*EventsQuery) QueryWorkflow

func (eq *EventsQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*EventsQuery) Select

func (eq *EventsQuery) Select(fields ...string) *EventsSelect

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.Events.Query().
	Select(events.FieldEvents).
	Scan(ctx, &v)

func (*EventsQuery) Unique

func (eq *EventsQuery) Unique(unique bool) *EventsQuery

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 (*EventsQuery) Where

func (eq *EventsQuery) Where(ps ...predicate.Events) *EventsQuery

Where adds a new predicate for the EventsQuery builder.

func (*EventsQuery) WithInstance

func (eq *EventsQuery) WithInstance(opts ...func(*InstanceQuery)) *EventsQuery

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 (*EventsQuery) WithNamespace added in v0.6.0

func (eq *EventsQuery) WithNamespace(opts ...func(*NamespaceQuery)) *EventsQuery

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 (*EventsQuery) WithWfeventswait

func (eq *EventsQuery) WithWfeventswait(opts ...func(*EventsWaitQuery)) *EventsQuery

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 (*EventsQuery) WithWorkflow

func (eq *EventsQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *EventsQuery

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 EventsSelect

type EventsSelect struct {
	*EventsQuery
	// contains filtered or unexported fields
}

EventsSelect is the builder for selecting fields of Events entities.

func (*EventsSelect) Bool

func (s *EventsSelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*EventsSelect) BoolX

func (s *EventsSelect) BoolX(ctx context.Context) bool

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

func (*EventsSelect) Bools

func (s *EventsSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*EventsSelect) BoolsX

func (s *EventsSelect) BoolsX(ctx context.Context) []bool

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

func (*EventsSelect) Float64

func (s *EventsSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*EventsSelect) Float64X

func (s *EventsSelect) Float64X(ctx context.Context) float64

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

func (*EventsSelect) Float64s

func (s *EventsSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*EventsSelect) Float64sX

func (s *EventsSelect) Float64sX(ctx context.Context) []float64

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

func (*EventsSelect) Int

func (s *EventsSelect) Int(ctx context.Context) (_ int, err error)

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

func (*EventsSelect) IntX

func (s *EventsSelect) IntX(ctx context.Context) int

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

func (*EventsSelect) Ints

func (s *EventsSelect) Ints(ctx context.Context) ([]int, error)

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

func (*EventsSelect) IntsX

func (s *EventsSelect) IntsX(ctx context.Context) []int

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

func (*EventsSelect) Scan

func (es *EventsSelect) Scan(ctx context.Context, v interface{}) error

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

func (*EventsSelect) ScanX

func (s *EventsSelect) ScanX(ctx context.Context, v interface{})

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

func (*EventsSelect) String

func (s *EventsSelect) String(ctx context.Context) (_ string, err error)

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

func (*EventsSelect) StringX

func (s *EventsSelect) StringX(ctx context.Context) string

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

func (*EventsSelect) Strings

func (s *EventsSelect) Strings(ctx context.Context) ([]string, error)

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

func (*EventsSelect) StringsX

func (s *EventsSelect) StringsX(ctx context.Context) []string

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

type EventsSlice

type EventsSlice []*Events

EventsSlice is a parsable slice of Events.

type EventsUpdate

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

EventsUpdate is the builder for updating Events entities.

func (*EventsUpdate) AddCount

func (eu *EventsUpdate) AddCount(i int) *EventsUpdate

AddCount adds i to the "count" field.

func (*EventsUpdate) AddWfeventswait

func (eu *EventsUpdate) AddWfeventswait(e ...*EventsWait) *EventsUpdate

AddWfeventswait adds the "wfeventswait" edges to the EventsWait entity.

func (*EventsUpdate) AddWfeventswaitIDs

func (eu *EventsUpdate) AddWfeventswaitIDs(ids ...uuid.UUID) *EventsUpdate

AddWfeventswaitIDs adds the "wfeventswait" edge to the EventsWait entity by IDs.

func (*EventsUpdate) ClearInstance

func (eu *EventsUpdate) ClearInstance() *EventsUpdate

ClearInstance clears the "instance" edge to the Instance entity.

func (*EventsUpdate) ClearNamespace added in v0.6.0

func (eu *EventsUpdate) ClearNamespace() *EventsUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*EventsUpdate) ClearSignature

func (eu *EventsUpdate) ClearSignature() *EventsUpdate

ClearSignature clears the value of the "signature" field.

func (*EventsUpdate) ClearWfeventswait

func (eu *EventsUpdate) ClearWfeventswait() *EventsUpdate

ClearWfeventswait clears all "wfeventswait" edges to the EventsWait entity.

func (*EventsUpdate) ClearWorkflow

func (eu *EventsUpdate) ClearWorkflow() *EventsUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*EventsUpdate) Exec

func (eu *EventsUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*EventsUpdate) ExecX

func (eu *EventsUpdate) ExecX(ctx context.Context)

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

func (*EventsUpdate) Mutation

func (eu *EventsUpdate) Mutation() *EventsMutation

Mutation returns the EventsMutation object of the builder.

func (*EventsUpdate) RemoveWfeventswait

func (eu *EventsUpdate) RemoveWfeventswait(e ...*EventsWait) *EventsUpdate

RemoveWfeventswait removes "wfeventswait" edges to EventsWait entities.

func (*EventsUpdate) RemoveWfeventswaitIDs

func (eu *EventsUpdate) RemoveWfeventswaitIDs(ids ...uuid.UUID) *EventsUpdate

RemoveWfeventswaitIDs removes the "wfeventswait" edge to EventsWait entities by IDs.

func (*EventsUpdate) Save

func (eu *EventsUpdate) Save(ctx context.Context) (int, error)

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

func (*EventsUpdate) SaveX

func (eu *EventsUpdate) SaveX(ctx context.Context) int

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

func (*EventsUpdate) SetCorrelations

func (eu *EventsUpdate) SetCorrelations(s []string) *EventsUpdate

SetCorrelations sets the "correlations" field.

func (*EventsUpdate) SetCount

func (eu *EventsUpdate) SetCount(i int) *EventsUpdate

SetCount sets the "count" field.

func (*EventsUpdate) SetEvents

func (eu *EventsUpdate) SetEvents(m []map[string]interface{}) *EventsUpdate

SetEvents sets the "events" field.

func (*EventsUpdate) SetInstance

func (eu *EventsUpdate) SetInstance(i *Instance) *EventsUpdate

SetInstance sets the "instance" edge to the Instance entity.

func (*EventsUpdate) SetInstanceID

func (eu *EventsUpdate) SetInstanceID(id uuid.UUID) *EventsUpdate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*EventsUpdate) SetNamespace added in v0.6.0

func (eu *EventsUpdate) SetNamespace(n *Namespace) *EventsUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*EventsUpdate) SetNamespaceID added in v0.6.0

func (eu *EventsUpdate) SetNamespaceID(id uuid.UUID) *EventsUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*EventsUpdate) SetNillableInstanceID

func (eu *EventsUpdate) SetNillableInstanceID(id *uuid.UUID) *EventsUpdate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*EventsUpdate) SetSignature

func (eu *EventsUpdate) SetSignature(b []byte) *EventsUpdate

SetSignature sets the "signature" field.

func (*EventsUpdate) SetUpdatedAt added in v0.6.0

func (eu *EventsUpdate) SetUpdatedAt(t time.Time) *EventsUpdate

SetUpdatedAt sets the "updated_at" field.

func (*EventsUpdate) SetWorkflow

func (eu *EventsUpdate) SetWorkflow(w *Workflow) *EventsUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*EventsUpdate) SetWorkflowID

func (eu *EventsUpdate) SetWorkflowID(id uuid.UUID) *EventsUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*EventsUpdate) Where

func (eu *EventsUpdate) Where(ps ...predicate.Events) *EventsUpdate

Where appends a list predicates to the EventsUpdate builder.

type EventsUpdateOne

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

EventsUpdateOne is the builder for updating a single Events entity.

func (*EventsUpdateOne) AddCount

func (euo *EventsUpdateOne) AddCount(i int) *EventsUpdateOne

AddCount adds i to the "count" field.

func (*EventsUpdateOne) AddWfeventswait

func (euo *EventsUpdateOne) AddWfeventswait(e ...*EventsWait) *EventsUpdateOne

AddWfeventswait adds the "wfeventswait" edges to the EventsWait entity.

func (*EventsUpdateOne) AddWfeventswaitIDs

func (euo *EventsUpdateOne) AddWfeventswaitIDs(ids ...uuid.UUID) *EventsUpdateOne

AddWfeventswaitIDs adds the "wfeventswait" edge to the EventsWait entity by IDs.

func (*EventsUpdateOne) ClearInstance

func (euo *EventsUpdateOne) ClearInstance() *EventsUpdateOne

ClearInstance clears the "instance" edge to the Instance entity.

func (*EventsUpdateOne) ClearNamespace added in v0.6.0

func (euo *EventsUpdateOne) ClearNamespace() *EventsUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*EventsUpdateOne) ClearSignature

func (euo *EventsUpdateOne) ClearSignature() *EventsUpdateOne

ClearSignature clears the value of the "signature" field.

func (*EventsUpdateOne) ClearWfeventswait

func (euo *EventsUpdateOne) ClearWfeventswait() *EventsUpdateOne

ClearWfeventswait clears all "wfeventswait" edges to the EventsWait entity.

func (*EventsUpdateOne) ClearWorkflow

func (euo *EventsUpdateOne) ClearWorkflow() *EventsUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*EventsUpdateOne) Exec

func (euo *EventsUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*EventsUpdateOne) ExecX

func (euo *EventsUpdateOne) ExecX(ctx context.Context)

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

func (*EventsUpdateOne) Mutation

func (euo *EventsUpdateOne) Mutation() *EventsMutation

Mutation returns the EventsMutation object of the builder.

func (*EventsUpdateOne) RemoveWfeventswait

func (euo *EventsUpdateOne) RemoveWfeventswait(e ...*EventsWait) *EventsUpdateOne

RemoveWfeventswait removes "wfeventswait" edges to EventsWait entities.

func (*EventsUpdateOne) RemoveWfeventswaitIDs

func (euo *EventsUpdateOne) RemoveWfeventswaitIDs(ids ...uuid.UUID) *EventsUpdateOne

RemoveWfeventswaitIDs removes the "wfeventswait" edge to EventsWait entities by IDs.

func (*EventsUpdateOne) Save

func (euo *EventsUpdateOne) Save(ctx context.Context) (*Events, error)

Save executes the query and returns the updated Events entity.

func (*EventsUpdateOne) SaveX

func (euo *EventsUpdateOne) SaveX(ctx context.Context) *Events

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

func (*EventsUpdateOne) Select

func (euo *EventsUpdateOne) Select(field string, fields ...string) *EventsUpdateOne

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

func (*EventsUpdateOne) SetCorrelations

func (euo *EventsUpdateOne) SetCorrelations(s []string) *EventsUpdateOne

SetCorrelations sets the "correlations" field.

func (*EventsUpdateOne) SetCount

func (euo *EventsUpdateOne) SetCount(i int) *EventsUpdateOne

SetCount sets the "count" field.

func (*EventsUpdateOne) SetEvents

func (euo *EventsUpdateOne) SetEvents(m []map[string]interface{}) *EventsUpdateOne

SetEvents sets the "events" field.

func (*EventsUpdateOne) SetInstance

func (euo *EventsUpdateOne) SetInstance(i *Instance) *EventsUpdateOne

SetInstance sets the "instance" edge to the Instance entity.

func (*EventsUpdateOne) SetInstanceID

func (euo *EventsUpdateOne) SetInstanceID(id uuid.UUID) *EventsUpdateOne

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*EventsUpdateOne) SetNamespace added in v0.6.0

func (euo *EventsUpdateOne) SetNamespace(n *Namespace) *EventsUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*EventsUpdateOne) SetNamespaceID added in v0.6.0

func (euo *EventsUpdateOne) SetNamespaceID(id uuid.UUID) *EventsUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*EventsUpdateOne) SetNillableInstanceID

func (euo *EventsUpdateOne) SetNillableInstanceID(id *uuid.UUID) *EventsUpdateOne

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*EventsUpdateOne) SetSignature

func (euo *EventsUpdateOne) SetSignature(b []byte) *EventsUpdateOne

SetSignature sets the "signature" field.

func (*EventsUpdateOne) SetUpdatedAt added in v0.6.0

func (euo *EventsUpdateOne) SetUpdatedAt(t time.Time) *EventsUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*EventsUpdateOne) SetWorkflow

func (euo *EventsUpdateOne) SetWorkflow(w *Workflow) *EventsUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*EventsUpdateOne) SetWorkflowID

func (euo *EventsUpdateOne) SetWorkflowID(id uuid.UUID) *EventsUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type EventsWait

type EventsWait struct {

	// ID of the ent.
	ID uuid.UUID `json:"id"`
	// 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 EventsWaitQuery when eager-loading is set.
	Edges EventsWaitEdges `json:"edges"`
	// contains filtered or unexported fields
}

EventsWait is the model entity for the EventsWait schema.

func (*EventsWait) QueryWorkflowevent

func (ew *EventsWait) QueryWorkflowevent() *EventsQuery

QueryWorkflowevent queries the "workflowevent" edge of the EventsWait entity.

func (*EventsWait) String

func (ew *EventsWait) String() string

String implements the fmt.Stringer.

func (*EventsWait) Unwrap

func (ew *EventsWait) Unwrap() *EventsWait

Unwrap unwraps the EventsWait 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 (*EventsWait) Update

func (ew *EventsWait) Update() *EventsWaitUpdateOne

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

func (*EventsWait) Workflowevent

func (ew *EventsWait) Workflowevent(ctx context.Context) (*Events, error)

type EventsWaitClient

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

EventsWaitClient is a client for the EventsWait schema.

func NewEventsWaitClient

func NewEventsWaitClient(c config) *EventsWaitClient

NewEventsWaitClient returns a client for the EventsWait from the given config.

func (*EventsWaitClient) Create

func (c *EventsWaitClient) Create() *EventsWaitCreate

Create returns a builder for creating a EventsWait entity.

func (*EventsWaitClient) CreateBulk

func (c *EventsWaitClient) CreateBulk(builders ...*EventsWaitCreate) *EventsWaitCreateBulk

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

func (*EventsWaitClient) Delete

func (c *EventsWaitClient) Delete() *EventsWaitDelete

Delete returns a delete builder for EventsWait.

func (*EventsWaitClient) DeleteOne

func (c *EventsWaitClient) DeleteOne(ew *EventsWait) *EventsWaitDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*EventsWaitClient) DeleteOneID

func (c *EventsWaitClient) DeleteOneID(id uuid.UUID) *EventsWaitDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*EventsWaitClient) Get

Get returns a EventsWait entity by its id.

func (*EventsWaitClient) GetX

func (c *EventsWaitClient) GetX(ctx context.Context, id uuid.UUID) *EventsWait

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

func (*EventsWaitClient) Hooks

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

Hooks returns the client hooks.

func (*EventsWaitClient) Query

func (c *EventsWaitClient) Query() *EventsWaitQuery

Query returns a query builder for EventsWait.

func (*EventsWaitClient) QueryWorkflowevent

func (c *EventsWaitClient) QueryWorkflowevent(ew *EventsWait) *EventsQuery

QueryWorkflowevent queries the workflowevent edge of a EventsWait.

func (*EventsWaitClient) Update

func (c *EventsWaitClient) Update() *EventsWaitUpdate

Update returns an update builder for EventsWait.

func (*EventsWaitClient) UpdateOne

func (c *EventsWaitClient) UpdateOne(ew *EventsWait) *EventsWaitUpdateOne

UpdateOne returns an update builder for the given entity.

func (*EventsWaitClient) UpdateOneID

func (c *EventsWaitClient) UpdateOneID(id uuid.UUID) *EventsWaitUpdateOne

UpdateOneID returns an update builder for the given id.

func (*EventsWaitClient) Use

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

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

type EventsWaitCreate

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

EventsWaitCreate is the builder for creating a EventsWait entity.

func (*EventsWaitCreate) Exec

func (ewc *EventsWaitCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*EventsWaitCreate) ExecX

func (ewc *EventsWaitCreate) ExecX(ctx context.Context)

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

func (*EventsWaitCreate) Mutation

func (ewc *EventsWaitCreate) Mutation() *EventsWaitMutation

Mutation returns the EventsWaitMutation object of the builder.

func (*EventsWaitCreate) Save

func (ewc *EventsWaitCreate) Save(ctx context.Context) (*EventsWait, error)

Save creates the EventsWait in the database.

func (*EventsWaitCreate) SaveX

func (ewc *EventsWaitCreate) SaveX(ctx context.Context) *EventsWait

SaveX calls Save and panics if Save returns an error.

func (*EventsWaitCreate) SetEvents

func (ewc *EventsWaitCreate) SetEvents(m map[string]interface{}) *EventsWaitCreate

SetEvents sets the "events" field.

func (*EventsWaitCreate) SetID

func (ewc *EventsWaitCreate) SetID(u uuid.UUID) *EventsWaitCreate

SetID sets the "id" field.

func (*EventsWaitCreate) SetNillableID added in v0.6.1

func (ewc *EventsWaitCreate) SetNillableID(u *uuid.UUID) *EventsWaitCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*EventsWaitCreate) SetWorkflowevent

func (ewc *EventsWaitCreate) SetWorkflowevent(e *Events) *EventsWaitCreate

SetWorkflowevent sets the "workflowevent" edge to the Events entity.

func (*EventsWaitCreate) SetWorkfloweventID

func (ewc *EventsWaitCreate) SetWorkfloweventID(id uuid.UUID) *EventsWaitCreate

SetWorkfloweventID sets the "workflowevent" edge to the Events entity by ID.

type EventsWaitCreateBulk

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

EventsWaitCreateBulk is the builder for creating many EventsWait entities in bulk.

func (*EventsWaitCreateBulk) Exec

func (ewcb *EventsWaitCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*EventsWaitCreateBulk) ExecX

func (ewcb *EventsWaitCreateBulk) ExecX(ctx context.Context)

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

func (*EventsWaitCreateBulk) Save

func (ewcb *EventsWaitCreateBulk) Save(ctx context.Context) ([]*EventsWait, error)

Save creates the EventsWait entities in the database.

func (*EventsWaitCreateBulk) SaveX

func (ewcb *EventsWaitCreateBulk) SaveX(ctx context.Context) []*EventsWait

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

type EventsWaitDelete

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

EventsWaitDelete is the builder for deleting a EventsWait entity.

func (*EventsWaitDelete) Exec

func (ewd *EventsWaitDelete) Exec(ctx context.Context) (int, error)

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

func (*EventsWaitDelete) ExecX

func (ewd *EventsWaitDelete) ExecX(ctx context.Context) int

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

func (*EventsWaitDelete) Where

Where appends a list predicates to the EventsWaitDelete builder.

type EventsWaitDeleteOne

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

EventsWaitDeleteOne is the builder for deleting a single EventsWait entity.

func (*EventsWaitDeleteOne) Exec

func (ewdo *EventsWaitDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*EventsWaitDeleteOne) ExecX

func (ewdo *EventsWaitDeleteOne) ExecX(ctx context.Context)

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

type EventsWaitEdges

type EventsWaitEdges struct {
	// Workflowevent holds the value of the workflowevent edge.
	Workflowevent *Events `json:"workflowevent,omitempty"`
	// contains filtered or unexported fields
}

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

func (EventsWaitEdges) WorkfloweventOrErr

func (e EventsWaitEdges) WorkfloweventOrErr() (*Events, 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 EventsWaitGroupBy

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

EventsWaitGroupBy is the group-by builder for EventsWait entities.

func (*EventsWaitGroupBy) Aggregate

func (ewgb *EventsWaitGroupBy) Aggregate(fns ...AggregateFunc) *EventsWaitGroupBy

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

func (*EventsWaitGroupBy) Bool

func (s *EventsWaitGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*EventsWaitGroupBy) BoolX

func (s *EventsWaitGroupBy) BoolX(ctx context.Context) bool

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

func (*EventsWaitGroupBy) Bools

func (s *EventsWaitGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*EventsWaitGroupBy) BoolsX

func (s *EventsWaitGroupBy) BoolsX(ctx context.Context) []bool

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

func (*EventsWaitGroupBy) Float64

func (s *EventsWaitGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*EventsWaitGroupBy) Float64X

func (s *EventsWaitGroupBy) Float64X(ctx context.Context) float64

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

func (*EventsWaitGroupBy) Float64s

func (s *EventsWaitGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*EventsWaitGroupBy) Float64sX

func (s *EventsWaitGroupBy) Float64sX(ctx context.Context) []float64

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

func (*EventsWaitGroupBy) Int

func (s *EventsWaitGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*EventsWaitGroupBy) IntX

func (s *EventsWaitGroupBy) IntX(ctx context.Context) int

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

func (*EventsWaitGroupBy) Ints

func (s *EventsWaitGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*EventsWaitGroupBy) IntsX

func (s *EventsWaitGroupBy) IntsX(ctx context.Context) []int

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

func (*EventsWaitGroupBy) Scan

func (ewgb *EventsWaitGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*EventsWaitGroupBy) ScanX

func (s *EventsWaitGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*EventsWaitGroupBy) String

func (s *EventsWaitGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*EventsWaitGroupBy) StringX

func (s *EventsWaitGroupBy) StringX(ctx context.Context) string

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

func (*EventsWaitGroupBy) Strings

func (s *EventsWaitGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*EventsWaitGroupBy) StringsX

func (s *EventsWaitGroupBy) StringsX(ctx context.Context) []string

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

type EventsWaitMutation

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

EventsWaitMutation represents an operation that mutates the EventsWait nodes in the graph.

func (*EventsWaitMutation) AddField

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) AddedEdges

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

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

func (*EventsWaitMutation) AddedField

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) AddedFields

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

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

func (*EventsWaitMutation) AddedIDs

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

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

func (*EventsWaitMutation) ClearEdge

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) ClearField

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) ClearWorkflowevent

func (m *EventsWaitMutation) ClearWorkflowevent()

ClearWorkflowevent clears the "workflowevent" edge to the Events entity.

func (*EventsWaitMutation) ClearedEdges

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

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

func (*EventsWaitMutation) ClearedFields

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

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

func (EventsWaitMutation) Client

func (m EventsWaitMutation) 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 (*EventsWaitMutation) EdgeCleared

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

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

func (*EventsWaitMutation) Events

func (m *EventsWaitMutation) Events() (r map[string]interface{}, exists bool)

Events returns the value of the "events" field in the mutation.

func (*EventsWaitMutation) Field

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) FieldCleared

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

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

func (*EventsWaitMutation) Fields

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) ID

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) IDs added in v0.6.1

func (m *EventsWaitMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*EventsWaitMutation) OldEvents

func (m *EventsWaitMutation) OldEvents(ctx context.Context) (v map[string]interface{}, err error)

OldEvents returns the old "events" field's value of the EventsWait entity. If the EventsWait 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 (*EventsWaitMutation) OldField

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) Op

func (m *EventsWaitMutation) Op() Op

Op returns the operation name.

func (*EventsWaitMutation) RemovedEdges

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

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

func (*EventsWaitMutation) RemovedIDs

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) ResetEdge

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) ResetEvents

func (m *EventsWaitMutation) ResetEvents()

ResetEvents resets all changes to the "events" field.

func (*EventsWaitMutation) ResetField

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) ResetWorkflowevent

func (m *EventsWaitMutation) ResetWorkflowevent()

ResetWorkflowevent resets all changes to the "workflowevent" edge.

func (*EventsWaitMutation) SetEvents

func (m *EventsWaitMutation) SetEvents(value map[string]interface{})

SetEvents sets the "events" field.

func (*EventsWaitMutation) SetField

func (m *EventsWaitMutation) 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 (*EventsWaitMutation) SetID

func (m *EventsWaitMutation) SetID(id uuid.UUID)

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

func (*EventsWaitMutation) SetWorkfloweventID

func (m *EventsWaitMutation) SetWorkfloweventID(id uuid.UUID)

SetWorkfloweventID sets the "workflowevent" edge to the Events entity by id.

func (EventsWaitMutation) Tx

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

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

func (*EventsWaitMutation) Type

func (m *EventsWaitMutation) Type() string

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

func (*EventsWaitMutation) Where

func (m *EventsWaitMutation) Where(ps ...predicate.EventsWait)

Where appends a list predicates to the EventsWaitMutation builder.

func (*EventsWaitMutation) WorkfloweventCleared

func (m *EventsWaitMutation) WorkfloweventCleared() bool

WorkfloweventCleared reports if the "workflowevent" edge to the Events entity was cleared.

func (*EventsWaitMutation) WorkfloweventID

func (m *EventsWaitMutation) WorkfloweventID() (id uuid.UUID, exists bool)

WorkfloweventID returns the "workflowevent" edge ID in the mutation.

func (*EventsWaitMutation) WorkfloweventIDs

func (m *EventsWaitMutation) WorkfloweventIDs() (ids []uuid.UUID)

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 EventsWaitQuery

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

EventsWaitQuery is the builder for querying EventsWait entities.

func (*EventsWaitQuery) All

func (ewq *EventsWaitQuery) All(ctx context.Context) ([]*EventsWait, error)

All executes the query and returns a list of EventsWaits.

func (*EventsWaitQuery) AllX

func (ewq *EventsWaitQuery) AllX(ctx context.Context) []*EventsWait

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

func (*EventsWaitQuery) Clone

func (ewq *EventsWaitQuery) Clone() *EventsWaitQuery

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

func (*EventsWaitQuery) CollectFields

func (ew *EventsWaitQuery) CollectFields(ctx context.Context, satisfies ...string) *EventsWaitQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*EventsWaitQuery) Count

func (ewq *EventsWaitQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*EventsWaitQuery) CountX

func (ewq *EventsWaitQuery) CountX(ctx context.Context) int

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

func (*EventsWaitQuery) Exist

func (ewq *EventsWaitQuery) Exist(ctx context.Context) (bool, error)

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

func (*EventsWaitQuery) ExistX

func (ewq *EventsWaitQuery) ExistX(ctx context.Context) bool

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

func (*EventsWaitQuery) First

func (ewq *EventsWaitQuery) First(ctx context.Context) (*EventsWait, error)

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

func (*EventsWaitQuery) FirstID

func (ewq *EventsWaitQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*EventsWaitQuery) FirstIDX

func (ewq *EventsWaitQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*EventsWaitQuery) FirstX

func (ewq *EventsWaitQuery) FirstX(ctx context.Context) *EventsWait

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

func (*EventsWaitQuery) GroupBy

func (ewq *EventsWaitQuery) GroupBy(field string, fields ...string) *EventsWaitGroupBy

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.EventsWait.Query().
	GroupBy(eventswait.FieldEvents).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*EventsWaitQuery) IDs

func (ewq *EventsWaitQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*EventsWaitQuery) IDsX

func (ewq *EventsWaitQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*EventsWaitQuery) Limit

func (ewq *EventsWaitQuery) Limit(limit int) *EventsWaitQuery

Limit adds a limit step to the query.

func (*EventsWaitQuery) Offset

func (ewq *EventsWaitQuery) Offset(offset int) *EventsWaitQuery

Offset adds an offset step to the query.

func (*EventsWaitQuery) Only

func (ewq *EventsWaitQuery) Only(ctx context.Context) (*EventsWait, error)

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

func (*EventsWaitQuery) OnlyID

func (ewq *EventsWaitQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*EventsWaitQuery) OnlyIDX

func (ewq *EventsWaitQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*EventsWaitQuery) OnlyX

func (ewq *EventsWaitQuery) OnlyX(ctx context.Context) *EventsWait

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

func (*EventsWaitQuery) Order

func (ewq *EventsWaitQuery) Order(o ...OrderFunc) *EventsWaitQuery

Order adds an order step to the query.

func (*EventsWaitQuery) QueryWorkflowevent

func (ewq *EventsWaitQuery) QueryWorkflowevent() *EventsQuery

QueryWorkflowevent chains the current query on the "workflowevent" edge.

func (*EventsWaitQuery) Select

func (ewq *EventsWaitQuery) Select(fields ...string) *EventsWaitSelect

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.EventsWait.Query().
	Select(eventswait.FieldEvents).
	Scan(ctx, &v)

func (*EventsWaitQuery) Unique

func (ewq *EventsWaitQuery) Unique(unique bool) *EventsWaitQuery

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 (*EventsWaitQuery) Where

Where adds a new predicate for the EventsWaitQuery builder.

func (*EventsWaitQuery) WithWorkflowevent

func (ewq *EventsWaitQuery) WithWorkflowevent(opts ...func(*EventsQuery)) *EventsWaitQuery

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 EventsWaitSelect

type EventsWaitSelect struct {
	*EventsWaitQuery
	// contains filtered or unexported fields
}

EventsWaitSelect is the builder for selecting fields of EventsWait entities.

func (*EventsWaitSelect) Bool

func (s *EventsWaitSelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*EventsWaitSelect) BoolX

func (s *EventsWaitSelect) BoolX(ctx context.Context) bool

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

func (*EventsWaitSelect) Bools

func (s *EventsWaitSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*EventsWaitSelect) BoolsX

func (s *EventsWaitSelect) BoolsX(ctx context.Context) []bool

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

func (*EventsWaitSelect) Float64

func (s *EventsWaitSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*EventsWaitSelect) Float64X

func (s *EventsWaitSelect) Float64X(ctx context.Context) float64

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

func (*EventsWaitSelect) Float64s

func (s *EventsWaitSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*EventsWaitSelect) Float64sX

func (s *EventsWaitSelect) Float64sX(ctx context.Context) []float64

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

func (*EventsWaitSelect) Int

func (s *EventsWaitSelect) Int(ctx context.Context) (_ int, err error)

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

func (*EventsWaitSelect) IntX

func (s *EventsWaitSelect) IntX(ctx context.Context) int

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

func (*EventsWaitSelect) Ints

func (s *EventsWaitSelect) Ints(ctx context.Context) ([]int, error)

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

func (*EventsWaitSelect) IntsX

func (s *EventsWaitSelect) IntsX(ctx context.Context) []int

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

func (*EventsWaitSelect) Scan

func (ews *EventsWaitSelect) Scan(ctx context.Context, v interface{}) error

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

func (*EventsWaitSelect) ScanX

func (s *EventsWaitSelect) ScanX(ctx context.Context, v interface{})

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

func (*EventsWaitSelect) String

func (s *EventsWaitSelect) String(ctx context.Context) (_ string, err error)

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

func (*EventsWaitSelect) StringX

func (s *EventsWaitSelect) StringX(ctx context.Context) string

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

func (*EventsWaitSelect) Strings

func (s *EventsWaitSelect) Strings(ctx context.Context) ([]string, error)

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

func (*EventsWaitSelect) StringsX

func (s *EventsWaitSelect) StringsX(ctx context.Context) []string

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

type EventsWaitUpdate

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

EventsWaitUpdate is the builder for updating EventsWait entities.

func (*EventsWaitUpdate) ClearWorkflowevent

func (ewu *EventsWaitUpdate) ClearWorkflowevent() *EventsWaitUpdate

ClearWorkflowevent clears the "workflowevent" edge to the Events entity.

func (*EventsWaitUpdate) Exec

func (ewu *EventsWaitUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*EventsWaitUpdate) ExecX

func (ewu *EventsWaitUpdate) ExecX(ctx context.Context)

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

func (*EventsWaitUpdate) Mutation

func (ewu *EventsWaitUpdate) Mutation() *EventsWaitMutation

Mutation returns the EventsWaitMutation object of the builder.

func (*EventsWaitUpdate) Save

func (ewu *EventsWaitUpdate) Save(ctx context.Context) (int, error)

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

func (*EventsWaitUpdate) SaveX

func (ewu *EventsWaitUpdate) SaveX(ctx context.Context) int

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

func (*EventsWaitUpdate) SetEvents

func (ewu *EventsWaitUpdate) SetEvents(m map[string]interface{}) *EventsWaitUpdate

SetEvents sets the "events" field.

func (*EventsWaitUpdate) SetWorkflowevent

func (ewu *EventsWaitUpdate) SetWorkflowevent(e *Events) *EventsWaitUpdate

SetWorkflowevent sets the "workflowevent" edge to the Events entity.

func (*EventsWaitUpdate) SetWorkfloweventID

func (ewu *EventsWaitUpdate) SetWorkfloweventID(id uuid.UUID) *EventsWaitUpdate

SetWorkfloweventID sets the "workflowevent" edge to the Events entity by ID.

func (*EventsWaitUpdate) Where

Where appends a list predicates to the EventsWaitUpdate builder.

type EventsWaitUpdateOne

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

EventsWaitUpdateOne is the builder for updating a single EventsWait entity.

func (*EventsWaitUpdateOne) ClearWorkflowevent

func (ewuo *EventsWaitUpdateOne) ClearWorkflowevent() *EventsWaitUpdateOne

ClearWorkflowevent clears the "workflowevent" edge to the Events entity.

func (*EventsWaitUpdateOne) Exec

func (ewuo *EventsWaitUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*EventsWaitUpdateOne) ExecX

func (ewuo *EventsWaitUpdateOne) ExecX(ctx context.Context)

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

func (*EventsWaitUpdateOne) Mutation

func (ewuo *EventsWaitUpdateOne) Mutation() *EventsWaitMutation

Mutation returns the EventsWaitMutation object of the builder.

func (*EventsWaitUpdateOne) Save

func (ewuo *EventsWaitUpdateOne) Save(ctx context.Context) (*EventsWait, error)

Save executes the query and returns the updated EventsWait entity.

func (*EventsWaitUpdateOne) SaveX

func (ewuo *EventsWaitUpdateOne) SaveX(ctx context.Context) *EventsWait

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

func (*EventsWaitUpdateOne) Select

func (ewuo *EventsWaitUpdateOne) Select(field string, fields ...string) *EventsWaitUpdateOne

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

func (*EventsWaitUpdateOne) SetEvents

func (ewuo *EventsWaitUpdateOne) SetEvents(m map[string]interface{}) *EventsWaitUpdateOne

SetEvents sets the "events" field.

func (*EventsWaitUpdateOne) SetWorkflowevent

func (ewuo *EventsWaitUpdateOne) SetWorkflowevent(e *Events) *EventsWaitUpdateOne

SetWorkflowevent sets the "workflowevent" edge to the Events entity.

func (*EventsWaitUpdateOne) SetWorkfloweventID

func (ewuo *EventsWaitUpdateOne) SetWorkfloweventID(id uuid.UUID) *EventsWaitUpdateOne

SetWorkfloweventID sets the "workflowevent" edge to the Events entity by ID.

type EventsWaits

type EventsWaits []*EventsWait

EventsWaits is a parsable slice of EventsWait.

type Hook

type Hook = ent.Hook

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

type Inode

type Inode struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Type holds the value of the "type" field.
	Type string `json:"type,omitempty"`
	// Attributes holds the value of the "attributes" field.
	Attributes []string `json:"attributes,omitempty"`
	// ExtendedType holds the value of the "extended_type" field.
	ExtendedType string `json:"expandedType,omitempty"`
	// ReadOnly holds the value of the "readOnly" field.
	ReadOnly bool `json:"readOnly,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the InodeQuery when eager-loading is set.
	Edges InodeEdges `json:"edges"`
	// contains filtered or unexported fields
}

Inode is the model entity for the Inode schema.

func (*Inode) Children

func (i *Inode) Children(ctx context.Context) ([]*Inode, error)

func (*Inode) Mirror added in v0.6.6

func (i *Inode) Mirror(ctx context.Context) (*Mirror, error)

func (*Inode) Namespace

func (i *Inode) Namespace(ctx context.Context) (*Namespace, error)

func (*Inode) Parent

func (i *Inode) Parent(ctx context.Context) (*Inode, error)

func (*Inode) QueryChildren

func (i *Inode) QueryChildren() *InodeQuery

QueryChildren queries the "children" edge of the Inode entity.

func (*Inode) QueryMirror added in v0.6.6

func (i *Inode) QueryMirror() *MirrorQuery

QueryMirror queries the "mirror" edge of the Inode entity.

func (*Inode) QueryNamespace

func (i *Inode) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the Inode entity.

func (*Inode) QueryParent

func (i *Inode) QueryParent() *InodeQuery

QueryParent queries the "parent" edge of the Inode entity.

func (*Inode) QueryWorkflow

func (i *Inode) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the Inode entity.

func (*Inode) String

func (i *Inode) String() string

String implements the fmt.Stringer.

func (*Inode) Unwrap

func (i *Inode) Unwrap() *Inode

Unwrap unwraps the Inode 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 (*Inode) Update

func (i *Inode) Update() *InodeUpdateOne

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

func (*Inode) Workflow

func (i *Inode) Workflow(ctx context.Context) (*Workflow, error)

type InodeClient

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

InodeClient is a client for the Inode schema.

func NewInodeClient

func NewInodeClient(c config) *InodeClient

NewInodeClient returns a client for the Inode from the given config.

func (*InodeClient) Create

func (c *InodeClient) Create() *InodeCreate

Create returns a builder for creating a Inode entity.

func (*InodeClient) CreateBulk

func (c *InodeClient) CreateBulk(builders ...*InodeCreate) *InodeCreateBulk

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

func (*InodeClient) Delete

func (c *InodeClient) Delete() *InodeDelete

Delete returns a delete builder for Inode.

func (*InodeClient) DeleteOne

func (c *InodeClient) DeleteOne(i *Inode) *InodeDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*InodeClient) DeleteOneID

func (c *InodeClient) DeleteOneID(id uuid.UUID) *InodeDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*InodeClient) Get

func (c *InodeClient) Get(ctx context.Context, id uuid.UUID) (*Inode, error)

Get returns a Inode entity by its id.

func (*InodeClient) GetX

func (c *InodeClient) GetX(ctx context.Context, id uuid.UUID) *Inode

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

func (*InodeClient) Hooks

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

Hooks returns the client hooks.

func (*InodeClient) Query

func (c *InodeClient) Query() *InodeQuery

Query returns a query builder for Inode.

func (*InodeClient) QueryChildren

func (c *InodeClient) QueryChildren(i *Inode) *InodeQuery

QueryChildren queries the children edge of a Inode.

func (*InodeClient) QueryMirror added in v0.6.6

func (c *InodeClient) QueryMirror(i *Inode) *MirrorQuery

QueryMirror queries the mirror edge of a Inode.

func (*InodeClient) QueryNamespace

func (c *InodeClient) QueryNamespace(i *Inode) *NamespaceQuery

QueryNamespace queries the namespace edge of a Inode.

func (*InodeClient) QueryParent

func (c *InodeClient) QueryParent(i *Inode) *InodeQuery

QueryParent queries the parent edge of a Inode.

func (*InodeClient) QueryWorkflow

func (c *InodeClient) QueryWorkflow(i *Inode) *WorkflowQuery

QueryWorkflow queries the workflow edge of a Inode.

func (*InodeClient) Update

func (c *InodeClient) Update() *InodeUpdate

Update returns an update builder for Inode.

func (*InodeClient) UpdateOne

func (c *InodeClient) UpdateOne(i *Inode) *InodeUpdateOne

UpdateOne returns an update builder for the given entity.

func (*InodeClient) UpdateOneID

func (c *InodeClient) UpdateOneID(id uuid.UUID) *InodeUpdateOne

UpdateOneID returns an update builder for the given id.

func (*InodeClient) Use

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

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

type InodeCreate

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

InodeCreate is the builder for creating a Inode entity.

func (*InodeCreate) AddChildIDs

func (ic *InodeCreate) AddChildIDs(ids ...uuid.UUID) *InodeCreate

AddChildIDs adds the "children" edge to the Inode entity by IDs.

func (*InodeCreate) AddChildren

func (ic *InodeCreate) AddChildren(i ...*Inode) *InodeCreate

AddChildren adds the "children" edges to the Inode entity.

func (*InodeCreate) Exec

func (ic *InodeCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*InodeCreate) ExecX

func (ic *InodeCreate) ExecX(ctx context.Context)

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

func (*InodeCreate) Mutation

func (ic *InodeCreate) Mutation() *InodeMutation

Mutation returns the InodeMutation object of the builder.

func (*InodeCreate) Save

func (ic *InodeCreate) Save(ctx context.Context) (*Inode, error)

Save creates the Inode in the database.

func (*InodeCreate) SaveX

func (ic *InodeCreate) SaveX(ctx context.Context) *Inode

SaveX calls Save and panics if Save returns an error.

func (*InodeCreate) SetAttributes

func (ic *InodeCreate) SetAttributes(s []string) *InodeCreate

SetAttributes sets the "attributes" field.

func (*InodeCreate) SetCreatedAt

func (ic *InodeCreate) SetCreatedAt(t time.Time) *InodeCreate

SetCreatedAt sets the "created_at" field.

func (*InodeCreate) SetExtendedType added in v0.6.6

func (ic *InodeCreate) SetExtendedType(s string) *InodeCreate

SetExtendedType sets the "extended_type" field.

func (*InodeCreate) SetID

func (ic *InodeCreate) SetID(u uuid.UUID) *InodeCreate

SetID sets the "id" field.

func (*InodeCreate) SetMirror added in v0.6.6

func (ic *InodeCreate) SetMirror(m *Mirror) *InodeCreate

SetMirror sets the "mirror" edge to the Mirror entity.

func (*InodeCreate) SetMirrorID added in v0.6.6

func (ic *InodeCreate) SetMirrorID(id uuid.UUID) *InodeCreate

SetMirrorID sets the "mirror" edge to the Mirror entity by ID.

func (*InodeCreate) SetName

func (ic *InodeCreate) SetName(s string) *InodeCreate

SetName sets the "name" field.

func (*InodeCreate) SetNamespace

func (ic *InodeCreate) SetNamespace(n *Namespace) *InodeCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*InodeCreate) SetNamespaceID

func (ic *InodeCreate) SetNamespaceID(id uuid.UUID) *InodeCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*InodeCreate) SetNillableCreatedAt

func (ic *InodeCreate) SetNillableCreatedAt(t *time.Time) *InodeCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*InodeCreate) SetNillableExtendedType added in v0.6.6

func (ic *InodeCreate) SetNillableExtendedType(s *string) *InodeCreate

SetNillableExtendedType sets the "extended_type" field if the given value is not nil.

func (*InodeCreate) SetNillableID added in v0.6.1

func (ic *InodeCreate) SetNillableID(u *uuid.UUID) *InodeCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*InodeCreate) SetNillableMirrorID added in v0.6.6

func (ic *InodeCreate) SetNillableMirrorID(id *uuid.UUID) *InodeCreate

SetNillableMirrorID sets the "mirror" edge to the Mirror entity by ID if the given value is not nil.

func (*InodeCreate) SetNillableName

func (ic *InodeCreate) SetNillableName(s *string) *InodeCreate

SetNillableName sets the "name" field if the given value is not nil.

func (*InodeCreate) SetNillableParentID

func (ic *InodeCreate) SetNillableParentID(id *uuid.UUID) *InodeCreate

SetNillableParentID sets the "parent" edge to the Inode entity by ID if the given value is not nil.

func (*InodeCreate) SetNillableReadOnly added in v0.6.6

func (ic *InodeCreate) SetNillableReadOnly(b *bool) *InodeCreate

SetNillableReadOnly sets the "readOnly" field if the given value is not nil.

func (*InodeCreate) SetNillableUpdatedAt

func (ic *InodeCreate) SetNillableUpdatedAt(t *time.Time) *InodeCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*InodeCreate) SetNillableWorkflowID

func (ic *InodeCreate) SetNillableWorkflowID(id *uuid.UUID) *InodeCreate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*InodeCreate) SetParent

func (ic *InodeCreate) SetParent(i *Inode) *InodeCreate

SetParent sets the "parent" edge to the Inode entity.

func (*InodeCreate) SetParentID

func (ic *InodeCreate) SetParentID(id uuid.UUID) *InodeCreate

SetParentID sets the "parent" edge to the Inode entity by ID.

func (*InodeCreate) SetReadOnly added in v0.6.6

func (ic *InodeCreate) SetReadOnly(b bool) *InodeCreate

SetReadOnly sets the "readOnly" field.

func (*InodeCreate) SetType

func (ic *InodeCreate) SetType(s string) *InodeCreate

SetType sets the "type" field.

func (*InodeCreate) SetUpdatedAt

func (ic *InodeCreate) SetUpdatedAt(t time.Time) *InodeCreate

SetUpdatedAt sets the "updated_at" field.

func (*InodeCreate) SetWorkflow

func (ic *InodeCreate) SetWorkflow(w *Workflow) *InodeCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*InodeCreate) SetWorkflowID

func (ic *InodeCreate) SetWorkflowID(id uuid.UUID) *InodeCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type InodeCreateBulk

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

InodeCreateBulk is the builder for creating many Inode entities in bulk.

func (*InodeCreateBulk) Exec

func (icb *InodeCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*InodeCreateBulk) ExecX

func (icb *InodeCreateBulk) ExecX(ctx context.Context)

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

func (*InodeCreateBulk) Save

func (icb *InodeCreateBulk) Save(ctx context.Context) ([]*Inode, error)

Save creates the Inode entities in the database.

func (*InodeCreateBulk) SaveX

func (icb *InodeCreateBulk) SaveX(ctx context.Context) []*Inode

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

type InodeDelete

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

InodeDelete is the builder for deleting a Inode entity.

func (*InodeDelete) Exec

func (id *InodeDelete) Exec(ctx context.Context) (int, error)

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

func (*InodeDelete) ExecX

func (id *InodeDelete) ExecX(ctx context.Context) int

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

func (*InodeDelete) Where

func (id *InodeDelete) Where(ps ...predicate.Inode) *InodeDelete

Where appends a list predicates to the InodeDelete builder.

type InodeDeleteOne

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

InodeDeleteOne is the builder for deleting a single Inode entity.

func (*InodeDeleteOne) Exec

func (ido *InodeDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*InodeDeleteOne) ExecX

func (ido *InodeDeleteOne) ExecX(ctx context.Context)

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

type InodeEdges

type InodeEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Children holds the value of the children edge.
	Children []*Inode `json:"children,omitempty"`
	// Parent holds the value of the parent edge.
	Parent *Inode `json:"parent,omitempty"`
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Mirror holds the value of the mirror edge.
	Mirror *Mirror `json:"mirror,omitempty"`
	// contains filtered or unexported fields
}

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

func (InodeEdges) ChildrenOrErr

func (e InodeEdges) ChildrenOrErr() ([]*Inode, error)

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

func (InodeEdges) MirrorOrErr added in v0.6.6

func (e InodeEdges) MirrorOrErr() (*Mirror, error)

MirrorOrErr returns the Mirror value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (InodeEdges) NamespaceOrErr

func (e InodeEdges) 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 (InodeEdges) ParentOrErr

func (e InodeEdges) ParentOrErr() (*Inode, error)

ParentOrErr returns the Parent value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (InodeEdges) WorkflowOrErr

func (e InodeEdges) 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 InodeGroupBy

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

InodeGroupBy is the group-by builder for Inode entities.

func (*InodeGroupBy) Aggregate

func (igb *InodeGroupBy) Aggregate(fns ...AggregateFunc) *InodeGroupBy

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

func (*InodeGroupBy) Bool

func (s *InodeGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*InodeGroupBy) BoolX

func (s *InodeGroupBy) BoolX(ctx context.Context) bool

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

func (*InodeGroupBy) Bools

func (s *InodeGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*InodeGroupBy) BoolsX

func (s *InodeGroupBy) BoolsX(ctx context.Context) []bool

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

func (*InodeGroupBy) Float64

func (s *InodeGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*InodeGroupBy) Float64X

func (s *InodeGroupBy) Float64X(ctx context.Context) float64

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

func (*InodeGroupBy) Float64s

func (s *InodeGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*InodeGroupBy) Float64sX

func (s *InodeGroupBy) Float64sX(ctx context.Context) []float64

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

func (*InodeGroupBy) Int

func (s *InodeGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*InodeGroupBy) IntX

func (s *InodeGroupBy) IntX(ctx context.Context) int

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

func (*InodeGroupBy) Ints

func (s *InodeGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*InodeGroupBy) IntsX

func (s *InodeGroupBy) IntsX(ctx context.Context) []int

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

func (*InodeGroupBy) Scan

func (igb *InodeGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*InodeGroupBy) ScanX

func (s *InodeGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*InodeGroupBy) String

func (s *InodeGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*InodeGroupBy) StringX

func (s *InodeGroupBy) StringX(ctx context.Context) string

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

func (*InodeGroupBy) Strings

func (s *InodeGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*InodeGroupBy) StringsX

func (s *InodeGroupBy) StringsX(ctx context.Context) []string

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

type InodeMutation

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

InodeMutation represents an operation that mutates the Inode nodes in the graph.

func (*InodeMutation) AddChildIDs

func (m *InodeMutation) AddChildIDs(ids ...uuid.UUID)

AddChildIDs adds the "children" edge to the Inode entity by ids.

func (*InodeMutation) AddField

func (m *InodeMutation) 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 (*InodeMutation) AddedEdges

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

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

func (*InodeMutation) AddedField

func (m *InodeMutation) 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 (*InodeMutation) AddedFields

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

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

func (*InodeMutation) AddedIDs

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

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

func (*InodeMutation) Attributes

func (m *InodeMutation) Attributes() (r []string, exists bool)

Attributes returns the value of the "attributes" field in the mutation.

func (*InodeMutation) AttributesCleared

func (m *InodeMutation) AttributesCleared() bool

AttributesCleared returns if the "attributes" field was cleared in this mutation.

func (*InodeMutation) ChildrenCleared

func (m *InodeMutation) ChildrenCleared() bool

ChildrenCleared reports if the "children" edge to the Inode entity was cleared.

func (*InodeMutation) ChildrenIDs

func (m *InodeMutation) ChildrenIDs() (ids []uuid.UUID)

ChildrenIDs returns the "children" edge IDs in the mutation.

func (*InodeMutation) ClearAttributes

func (m *InodeMutation) ClearAttributes()

ClearAttributes clears the value of the "attributes" field.

func (*InodeMutation) ClearChildren

func (m *InodeMutation) ClearChildren()

ClearChildren clears the "children" edge to the Inode entity.

func (*InodeMutation) ClearEdge

func (m *InodeMutation) 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 (*InodeMutation) ClearExtendedType added in v0.6.6

func (m *InodeMutation) ClearExtendedType()

ClearExtendedType clears the value of the "extended_type" field.

func (*InodeMutation) ClearField

func (m *InodeMutation) 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 (*InodeMutation) ClearMirror added in v0.6.6

func (m *InodeMutation) ClearMirror()

ClearMirror clears the "mirror" edge to the Mirror entity.

func (*InodeMutation) ClearName

func (m *InodeMutation) ClearName()

ClearName clears the value of the "name" field.

func (*InodeMutation) ClearNamespace

func (m *InodeMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*InodeMutation) ClearParent

func (m *InodeMutation) ClearParent()

ClearParent clears the "parent" edge to the Inode entity.

func (*InodeMutation) ClearReadOnly added in v0.6.6

func (m *InodeMutation) ClearReadOnly()

ClearReadOnly clears the value of the "readOnly" field.

func (*InodeMutation) ClearWorkflow

func (m *InodeMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*InodeMutation) ClearedEdges

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

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

func (*InodeMutation) ClearedFields

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

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

func (InodeMutation) Client

func (m InodeMutation) 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 (*InodeMutation) CreatedAt

func (m *InodeMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*InodeMutation) EdgeCleared

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

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

func (*InodeMutation) ExtendedType added in v0.6.6

func (m *InodeMutation) ExtendedType() (r string, exists bool)

ExtendedType returns the value of the "extended_type" field in the mutation.

func (*InodeMutation) ExtendedTypeCleared added in v0.6.6

func (m *InodeMutation) ExtendedTypeCleared() bool

ExtendedTypeCleared returns if the "extended_type" field was cleared in this mutation.

func (*InodeMutation) Field

func (m *InodeMutation) 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 (*InodeMutation) FieldCleared

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

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

func (*InodeMutation) Fields

func (m *InodeMutation) 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 (*InodeMutation) GetType

func (m *InodeMutation) GetType() (r string, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*InodeMutation) ID

func (m *InodeMutation) 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 (*InodeMutation) IDs added in v0.6.1

func (m *InodeMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*InodeMutation) MirrorCleared added in v0.6.6

func (m *InodeMutation) MirrorCleared() bool

MirrorCleared reports if the "mirror" edge to the Mirror entity was cleared.

func (*InodeMutation) MirrorID added in v0.6.6

func (m *InodeMutation) MirrorID() (id uuid.UUID, exists bool)

MirrorID returns the "mirror" edge ID in the mutation.

func (*InodeMutation) MirrorIDs added in v0.6.6

func (m *InodeMutation) MirrorIDs() (ids []uuid.UUID)

MirrorIDs returns the "mirror" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use MirrorID instead. It exists only for internal usage by the builders.

func (*InodeMutation) Name

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

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

func (*InodeMutation) NameCleared

func (m *InodeMutation) NameCleared() bool

NameCleared returns if the "name" field was cleared in this mutation.

func (*InodeMutation) NamespaceCleared

func (m *InodeMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*InodeMutation) NamespaceID

func (m *InodeMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*InodeMutation) NamespaceIDs

func (m *InodeMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*InodeMutation) OldAttributes

func (m *InodeMutation) OldAttributes(ctx context.Context) (v []string, err error)

OldAttributes returns the old "attributes" field's value of the Inode entity. If the Inode 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 (*InodeMutation) OldCreatedAt

func (m *InodeMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Inode entity. If the Inode 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 (*InodeMutation) OldExtendedType added in v0.6.6

func (m *InodeMutation) OldExtendedType(ctx context.Context) (v string, err error)

OldExtendedType returns the old "extended_type" field's value of the Inode entity. If the Inode 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 (*InodeMutation) OldField

func (m *InodeMutation) 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 (*InodeMutation) OldName

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

OldName returns the old "name" field's value of the Inode entity. If the Inode 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 (*InodeMutation) OldReadOnly added in v0.6.6

func (m *InodeMutation) OldReadOnly(ctx context.Context) (v bool, err error)

OldReadOnly returns the old "readOnly" field's value of the Inode entity. If the Inode 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 (*InodeMutation) OldType

func (m *InodeMutation) OldType(ctx context.Context) (v string, err error)

OldType returns the old "type" field's value of the Inode entity. If the Inode 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 (*InodeMutation) OldUpdatedAt

func (m *InodeMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Inode entity. If the Inode 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 (*InodeMutation) Op

func (m *InodeMutation) Op() Op

Op returns the operation name.

func (*InodeMutation) ParentCleared

func (m *InodeMutation) ParentCleared() bool

ParentCleared reports if the "parent" edge to the Inode entity was cleared.

func (*InodeMutation) ParentID

func (m *InodeMutation) ParentID() (id uuid.UUID, exists bool)

ParentID returns the "parent" edge ID in the mutation.

func (*InodeMutation) ParentIDs

func (m *InodeMutation) ParentIDs() (ids []uuid.UUID)

ParentIDs returns the "parent" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ParentID instead. It exists only for internal usage by the builders.

func (*InodeMutation) ReadOnly added in v0.6.6

func (m *InodeMutation) ReadOnly() (r bool, exists bool)

ReadOnly returns the value of the "readOnly" field in the mutation.

func (*InodeMutation) ReadOnlyCleared added in v0.6.6

func (m *InodeMutation) ReadOnlyCleared() bool

ReadOnlyCleared returns if the "readOnly" field was cleared in this mutation.

func (*InodeMutation) RemoveChildIDs

func (m *InodeMutation) RemoveChildIDs(ids ...uuid.UUID)

RemoveChildIDs removes the "children" edge to the Inode entity by IDs.

func (*InodeMutation) RemovedChildrenIDs

func (m *InodeMutation) RemovedChildrenIDs() (ids []uuid.UUID)

RemovedChildren returns the removed IDs of the "children" edge to the Inode entity.

func (*InodeMutation) RemovedEdges

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

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

func (*InodeMutation) RemovedIDs

func (m *InodeMutation) 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 (*InodeMutation) ResetAttributes

func (m *InodeMutation) ResetAttributes()

ResetAttributes resets all changes to the "attributes" field.

func (*InodeMutation) ResetChildren

func (m *InodeMutation) ResetChildren()

ResetChildren resets all changes to the "children" edge.

func (*InodeMutation) ResetCreatedAt

func (m *InodeMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*InodeMutation) ResetEdge

func (m *InodeMutation) 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 (*InodeMutation) ResetExtendedType added in v0.6.6

func (m *InodeMutation) ResetExtendedType()

ResetExtendedType resets all changes to the "extended_type" field.

func (*InodeMutation) ResetField

func (m *InodeMutation) 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 (*InodeMutation) ResetMirror added in v0.6.6

func (m *InodeMutation) ResetMirror()

ResetMirror resets all changes to the "mirror" edge.

func (*InodeMutation) ResetName

func (m *InodeMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*InodeMutation) ResetNamespace

func (m *InodeMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*InodeMutation) ResetParent

func (m *InodeMutation) ResetParent()

ResetParent resets all changes to the "parent" edge.

func (*InodeMutation) ResetReadOnly added in v0.6.6

func (m *InodeMutation) ResetReadOnly()

ResetReadOnly resets all changes to the "readOnly" field.

func (*InodeMutation) ResetType

func (m *InodeMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*InodeMutation) ResetUpdatedAt

func (m *InodeMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*InodeMutation) ResetWorkflow

func (m *InodeMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*InodeMutation) SetAttributes

func (m *InodeMutation) SetAttributes(s []string)

SetAttributes sets the "attributes" field.

func (*InodeMutation) SetCreatedAt

func (m *InodeMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*InodeMutation) SetExtendedType added in v0.6.6

func (m *InodeMutation) SetExtendedType(s string)

SetExtendedType sets the "extended_type" field.

func (*InodeMutation) SetField

func (m *InodeMutation) 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 (*InodeMutation) SetID

func (m *InodeMutation) SetID(id uuid.UUID)

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

func (*InodeMutation) SetMirrorID added in v0.6.6

func (m *InodeMutation) SetMirrorID(id uuid.UUID)

SetMirrorID sets the "mirror" edge to the Mirror entity by id.

func (*InodeMutation) SetName

func (m *InodeMutation) SetName(s string)

SetName sets the "name" field.

func (*InodeMutation) SetNamespaceID

func (m *InodeMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*InodeMutation) SetParentID

func (m *InodeMutation) SetParentID(id uuid.UUID)

SetParentID sets the "parent" edge to the Inode entity by id.

func (*InodeMutation) SetReadOnly added in v0.6.6

func (m *InodeMutation) SetReadOnly(b bool)

SetReadOnly sets the "readOnly" field.

func (*InodeMutation) SetType

func (m *InodeMutation) SetType(s string)

SetType sets the "type" field.

func (*InodeMutation) SetUpdatedAt

func (m *InodeMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*InodeMutation) SetWorkflowID

func (m *InodeMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (InodeMutation) Tx

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

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

func (*InodeMutation) Type

func (m *InodeMutation) Type() string

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

func (*InodeMutation) UpdatedAt

func (m *InodeMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*InodeMutation) Where

func (m *InodeMutation) Where(ps ...predicate.Inode)

Where appends a list predicates to the InodeMutation builder.

func (*InodeMutation) WorkflowCleared

func (m *InodeMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*InodeMutation) WorkflowID

func (m *InodeMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*InodeMutation) WorkflowIDs

func (m *InodeMutation) 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 InodeQuery

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

InodeQuery is the builder for querying Inode entities.

func (*InodeQuery) All

func (iq *InodeQuery) All(ctx context.Context) ([]*Inode, error)

All executes the query and returns a list of Inodes.

func (*InodeQuery) AllX

func (iq *InodeQuery) AllX(ctx context.Context) []*Inode

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

func (*InodeQuery) Clone

func (iq *InodeQuery) Clone() *InodeQuery

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

func (*InodeQuery) CollectFields

func (i *InodeQuery) CollectFields(ctx context.Context, satisfies ...string) *InodeQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*InodeQuery) Count

func (iq *InodeQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*InodeQuery) CountX

func (iq *InodeQuery) CountX(ctx context.Context) int

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

func (*InodeQuery) Exist

func (iq *InodeQuery) Exist(ctx context.Context) (bool, error)

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

func (*InodeQuery) ExistX

func (iq *InodeQuery) ExistX(ctx context.Context) bool

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

func (*InodeQuery) First

func (iq *InodeQuery) First(ctx context.Context) (*Inode, error)

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

func (*InodeQuery) FirstID

func (iq *InodeQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*InodeQuery) FirstIDX

func (iq *InodeQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*InodeQuery) FirstX

func (iq *InodeQuery) FirstX(ctx context.Context) *Inode

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

func (*InodeQuery) GroupBy

func (iq *InodeQuery) GroupBy(field string, fields ...string) *InodeGroupBy

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Inode.Query().
	GroupBy(inode.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*InodeQuery) IDs

func (iq *InodeQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*InodeQuery) IDsX

func (iq *InodeQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*InodeQuery) Limit

func (iq *InodeQuery) Limit(limit int) *InodeQuery

Limit adds a limit step to the query.

func (*InodeQuery) Offset

func (iq *InodeQuery) Offset(offset int) *InodeQuery

Offset adds an offset step to the query.

func (*InodeQuery) Only

func (iq *InodeQuery) Only(ctx context.Context) (*Inode, error)

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

func (*InodeQuery) OnlyID

func (iq *InodeQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*InodeQuery) OnlyIDX

func (iq *InodeQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*InodeQuery) OnlyX

func (iq *InodeQuery) OnlyX(ctx context.Context) *Inode

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

func (*InodeQuery) Order

func (iq *InodeQuery) Order(o ...OrderFunc) *InodeQuery

Order adds an order step to the query.

func (*InodeQuery) QueryChildren

func (iq *InodeQuery) QueryChildren() *InodeQuery

QueryChildren chains the current query on the "children" edge.

func (*InodeQuery) QueryMirror added in v0.6.6

func (iq *InodeQuery) QueryMirror() *MirrorQuery

QueryMirror chains the current query on the "mirror" edge.

func (*InodeQuery) QueryNamespace

func (iq *InodeQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*InodeQuery) QueryParent

func (iq *InodeQuery) QueryParent() *InodeQuery

QueryParent chains the current query on the "parent" edge.

func (*InodeQuery) QueryWorkflow

func (iq *InodeQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*InodeQuery) Select

func (iq *InodeQuery) Select(fields ...string) *InodeSelect

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Inode.Query().
	Select(inode.FieldCreatedAt).
	Scan(ctx, &v)

func (*InodeQuery) Unique

func (iq *InodeQuery) Unique(unique bool) *InodeQuery

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 (*InodeQuery) Where

func (iq *InodeQuery) Where(ps ...predicate.Inode) *InodeQuery

Where adds a new predicate for the InodeQuery builder.

func (*InodeQuery) WithChildren

func (iq *InodeQuery) WithChildren(opts ...func(*InodeQuery)) *InodeQuery

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

func (*InodeQuery) WithMirror added in v0.6.6

func (iq *InodeQuery) WithMirror(opts ...func(*MirrorQuery)) *InodeQuery

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

func (*InodeQuery) WithNamespace

func (iq *InodeQuery) WithNamespace(opts ...func(*NamespaceQuery)) *InodeQuery

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 (*InodeQuery) WithParent

func (iq *InodeQuery) WithParent(opts ...func(*InodeQuery)) *InodeQuery

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

func (*InodeQuery) WithWorkflow

func (iq *InodeQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *InodeQuery

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 InodeSelect

type InodeSelect struct {
	*InodeQuery
	// contains filtered or unexported fields
}

InodeSelect is the builder for selecting fields of Inode entities.

func (*InodeSelect) Bool

func (s *InodeSelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*InodeSelect) BoolX

func (s *InodeSelect) BoolX(ctx context.Context) bool

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

func (*InodeSelect) Bools

func (s *InodeSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*InodeSelect) BoolsX

func (s *InodeSelect) BoolsX(ctx context.Context) []bool

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

func (*InodeSelect) Float64

func (s *InodeSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*InodeSelect) Float64X

func (s *InodeSelect) Float64X(ctx context.Context) float64

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

func (*InodeSelect) Float64s

func (s *InodeSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*InodeSelect) Float64sX

func (s *InodeSelect) Float64sX(ctx context.Context) []float64

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

func (*InodeSelect) Int

func (s *InodeSelect) Int(ctx context.Context) (_ int, err error)

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

func (*InodeSelect) IntX

func (s *InodeSelect) IntX(ctx context.Context) int

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

func (*InodeSelect) Ints

func (s *InodeSelect) Ints(ctx context.Context) ([]int, error)

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

func (*InodeSelect) IntsX

func (s *InodeSelect) IntsX(ctx context.Context) []int

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

func (*InodeSelect) Scan

func (is *InodeSelect) Scan(ctx context.Context, v interface{}) error

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

func (*InodeSelect) ScanX

func (s *InodeSelect) ScanX(ctx context.Context, v interface{})

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

func (*InodeSelect) String

func (s *InodeSelect) String(ctx context.Context) (_ string, err error)

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

func (*InodeSelect) StringX

func (s *InodeSelect) StringX(ctx context.Context) string

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

func (*InodeSelect) Strings

func (s *InodeSelect) Strings(ctx context.Context) ([]string, error)

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

func (*InodeSelect) StringsX

func (s *InodeSelect) StringsX(ctx context.Context) []string

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

type InodeUpdate

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

InodeUpdate is the builder for updating Inode entities.

func (*InodeUpdate) AddChildIDs

func (iu *InodeUpdate) AddChildIDs(ids ...uuid.UUID) *InodeUpdate

AddChildIDs adds the "children" edge to the Inode entity by IDs.

func (*InodeUpdate) AddChildren

func (iu *InodeUpdate) AddChildren(i ...*Inode) *InodeUpdate

AddChildren adds the "children" edges to the Inode entity.

func (*InodeUpdate) ClearAttributes

func (iu *InodeUpdate) ClearAttributes() *InodeUpdate

ClearAttributes clears the value of the "attributes" field.

func (*InodeUpdate) ClearChildren

func (iu *InodeUpdate) ClearChildren() *InodeUpdate

ClearChildren clears all "children" edges to the Inode entity.

func (*InodeUpdate) ClearExtendedType added in v0.6.6

func (iu *InodeUpdate) ClearExtendedType() *InodeUpdate

ClearExtendedType clears the value of the "extended_type" field.

func (*InodeUpdate) ClearMirror added in v0.6.6

func (iu *InodeUpdate) ClearMirror() *InodeUpdate

ClearMirror clears the "mirror" edge to the Mirror entity.

func (*InodeUpdate) ClearName

func (iu *InodeUpdate) ClearName() *InodeUpdate

ClearName clears the value of the "name" field.

func (*InodeUpdate) ClearNamespace

func (iu *InodeUpdate) ClearNamespace() *InodeUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*InodeUpdate) ClearParent

func (iu *InodeUpdate) ClearParent() *InodeUpdate

ClearParent clears the "parent" edge to the Inode entity.

func (*InodeUpdate) ClearReadOnly added in v0.6.6

func (iu *InodeUpdate) ClearReadOnly() *InodeUpdate

ClearReadOnly clears the value of the "readOnly" field.

func (*InodeUpdate) ClearWorkflow

func (iu *InodeUpdate) ClearWorkflow() *InodeUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*InodeUpdate) Exec

func (iu *InodeUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*InodeUpdate) ExecX

func (iu *InodeUpdate) ExecX(ctx context.Context)

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

func (*InodeUpdate) Mutation

func (iu *InodeUpdate) Mutation() *InodeMutation

Mutation returns the InodeMutation object of the builder.

func (*InodeUpdate) RemoveChildIDs

func (iu *InodeUpdate) RemoveChildIDs(ids ...uuid.UUID) *InodeUpdate

RemoveChildIDs removes the "children" edge to Inode entities by IDs.

func (*InodeUpdate) RemoveChildren

func (iu *InodeUpdate) RemoveChildren(i ...*Inode) *InodeUpdate

RemoveChildren removes "children" edges to Inode entities.

func (*InodeUpdate) Save

func (iu *InodeUpdate) Save(ctx context.Context) (int, error)

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

func (*InodeUpdate) SaveX

func (iu *InodeUpdate) SaveX(ctx context.Context) int

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

func (*InodeUpdate) SetAttributes

func (iu *InodeUpdate) SetAttributes(s []string) *InodeUpdate

SetAttributes sets the "attributes" field.

func (*InodeUpdate) SetExtendedType added in v0.6.6

func (iu *InodeUpdate) SetExtendedType(s string) *InodeUpdate

SetExtendedType sets the "extended_type" field.

func (*InodeUpdate) SetMirror added in v0.6.6

func (iu *InodeUpdate) SetMirror(m *Mirror) *InodeUpdate

SetMirror sets the "mirror" edge to the Mirror entity.

func (*InodeUpdate) SetMirrorID added in v0.6.6

func (iu *InodeUpdate) SetMirrorID(id uuid.UUID) *InodeUpdate

SetMirrorID sets the "mirror" edge to the Mirror entity by ID.

func (*InodeUpdate) SetName

func (iu *InodeUpdate) SetName(s string) *InodeUpdate

SetName sets the "name" field.

func (*InodeUpdate) SetNamespace

func (iu *InodeUpdate) SetNamespace(n *Namespace) *InodeUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*InodeUpdate) SetNamespaceID

func (iu *InodeUpdate) SetNamespaceID(id uuid.UUID) *InodeUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*InodeUpdate) SetNillableExtendedType added in v0.6.6

func (iu *InodeUpdate) SetNillableExtendedType(s *string) *InodeUpdate

SetNillableExtendedType sets the "extended_type" field if the given value is not nil.

func (*InodeUpdate) SetNillableMirrorID added in v0.6.6

func (iu *InodeUpdate) SetNillableMirrorID(id *uuid.UUID) *InodeUpdate

SetNillableMirrorID sets the "mirror" edge to the Mirror entity by ID if the given value is not nil.

func (*InodeUpdate) SetNillableName

func (iu *InodeUpdate) SetNillableName(s *string) *InodeUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*InodeUpdate) SetNillableParentID

func (iu *InodeUpdate) SetNillableParentID(id *uuid.UUID) *InodeUpdate

SetNillableParentID sets the "parent" edge to the Inode entity by ID if the given value is not nil.

func (*InodeUpdate) SetNillableReadOnly added in v0.6.6

func (iu *InodeUpdate) SetNillableReadOnly(b *bool) *InodeUpdate

SetNillableReadOnly sets the "readOnly" field if the given value is not nil.

func (*InodeUpdate) SetNillableWorkflowID

func (iu *InodeUpdate) SetNillableWorkflowID(id *uuid.UUID) *InodeUpdate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*InodeUpdate) SetParent

func (iu *InodeUpdate) SetParent(i *Inode) *InodeUpdate

SetParent sets the "parent" edge to the Inode entity.

func (*InodeUpdate) SetParentID

func (iu *InodeUpdate) SetParentID(id uuid.UUID) *InodeUpdate

SetParentID sets the "parent" edge to the Inode entity by ID.

func (*InodeUpdate) SetReadOnly added in v0.6.6

func (iu *InodeUpdate) SetReadOnly(b bool) *InodeUpdate

SetReadOnly sets the "readOnly" field.

func (*InodeUpdate) SetUpdatedAt

func (iu *InodeUpdate) SetUpdatedAt(t time.Time) *InodeUpdate

SetUpdatedAt sets the "updated_at" field.

func (*InodeUpdate) SetWorkflow

func (iu *InodeUpdate) SetWorkflow(w *Workflow) *InodeUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*InodeUpdate) SetWorkflowID

func (iu *InodeUpdate) SetWorkflowID(id uuid.UUID) *InodeUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*InodeUpdate) Where

func (iu *InodeUpdate) Where(ps ...predicate.Inode) *InodeUpdate

Where appends a list predicates to the InodeUpdate builder.

type InodeUpdateOne

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

InodeUpdateOne is the builder for updating a single Inode entity.

func (*InodeUpdateOne) AddChildIDs

func (iuo *InodeUpdateOne) AddChildIDs(ids ...uuid.UUID) *InodeUpdateOne

AddChildIDs adds the "children" edge to the Inode entity by IDs.

func (*InodeUpdateOne) AddChildren

func (iuo *InodeUpdateOne) AddChildren(i ...*Inode) *InodeUpdateOne

AddChildren adds the "children" edges to the Inode entity.

func (*InodeUpdateOne) ClearAttributes

func (iuo *InodeUpdateOne) ClearAttributes() *InodeUpdateOne

ClearAttributes clears the value of the "attributes" field.

func (*InodeUpdateOne) ClearChildren

func (iuo *InodeUpdateOne) ClearChildren() *InodeUpdateOne

ClearChildren clears all "children" edges to the Inode entity.

func (*InodeUpdateOne) ClearExtendedType added in v0.6.6

func (iuo *InodeUpdateOne) ClearExtendedType() *InodeUpdateOne

ClearExtendedType clears the value of the "extended_type" field.

func (*InodeUpdateOne) ClearMirror added in v0.6.6

func (iuo *InodeUpdateOne) ClearMirror() *InodeUpdateOne

ClearMirror clears the "mirror" edge to the Mirror entity.

func (*InodeUpdateOne) ClearName

func (iuo *InodeUpdateOne) ClearName() *InodeUpdateOne

ClearName clears the value of the "name" field.

func (*InodeUpdateOne) ClearNamespace

func (iuo *InodeUpdateOne) ClearNamespace() *InodeUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*InodeUpdateOne) ClearParent

func (iuo *InodeUpdateOne) ClearParent() *InodeUpdateOne

ClearParent clears the "parent" edge to the Inode entity.

func (*InodeUpdateOne) ClearReadOnly added in v0.6.6

func (iuo *InodeUpdateOne) ClearReadOnly() *InodeUpdateOne

ClearReadOnly clears the value of the "readOnly" field.

func (*InodeUpdateOne) ClearWorkflow

func (iuo *InodeUpdateOne) ClearWorkflow() *InodeUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*InodeUpdateOne) Exec

func (iuo *InodeUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*InodeUpdateOne) ExecX

func (iuo *InodeUpdateOne) ExecX(ctx context.Context)

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

func (*InodeUpdateOne) Mutation

func (iuo *InodeUpdateOne) Mutation() *InodeMutation

Mutation returns the InodeMutation object of the builder.

func (*InodeUpdateOne) RemoveChildIDs

func (iuo *InodeUpdateOne) RemoveChildIDs(ids ...uuid.UUID) *InodeUpdateOne

RemoveChildIDs removes the "children" edge to Inode entities by IDs.

func (*InodeUpdateOne) RemoveChildren

func (iuo *InodeUpdateOne) RemoveChildren(i ...*Inode) *InodeUpdateOne

RemoveChildren removes "children" edges to Inode entities.

func (*InodeUpdateOne) Save

func (iuo *InodeUpdateOne) Save(ctx context.Context) (*Inode, error)

Save executes the query and returns the updated Inode entity.

func (*InodeUpdateOne) SaveX

func (iuo *InodeUpdateOne) SaveX(ctx context.Context) *Inode

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

func (*InodeUpdateOne) Select

func (iuo *InodeUpdateOne) Select(field string, fields ...string) *InodeUpdateOne

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

func (*InodeUpdateOne) SetAttributes

func (iuo *InodeUpdateOne) SetAttributes(s []string) *InodeUpdateOne

SetAttributes sets the "attributes" field.

func (*InodeUpdateOne) SetExtendedType added in v0.6.6

func (iuo *InodeUpdateOne) SetExtendedType(s string) *InodeUpdateOne

SetExtendedType sets the "extended_type" field.

func (*InodeUpdateOne) SetMirror added in v0.6.6

func (iuo *InodeUpdateOne) SetMirror(m *Mirror) *InodeUpdateOne

SetMirror sets the "mirror" edge to the Mirror entity.

func (*InodeUpdateOne) SetMirrorID added in v0.6.6

func (iuo *InodeUpdateOne) SetMirrorID(id uuid.UUID) *InodeUpdateOne

SetMirrorID sets the "mirror" edge to the Mirror entity by ID.

func (*InodeUpdateOne) SetName

func (iuo *InodeUpdateOne) SetName(s string) *InodeUpdateOne

SetName sets the "name" field.

func (*InodeUpdateOne) SetNamespace

func (iuo *InodeUpdateOne) SetNamespace(n *Namespace) *InodeUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*InodeUpdateOne) SetNamespaceID

func (iuo *InodeUpdateOne) SetNamespaceID(id uuid.UUID) *InodeUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*InodeUpdateOne) SetNillableExtendedType added in v0.6.6

func (iuo *InodeUpdateOne) SetNillableExtendedType(s *string) *InodeUpdateOne

SetNillableExtendedType sets the "extended_type" field if the given value is not nil.

func (*InodeUpdateOne) SetNillableMirrorID added in v0.6.6

func (iuo *InodeUpdateOne) SetNillableMirrorID(id *uuid.UUID) *InodeUpdateOne

SetNillableMirrorID sets the "mirror" edge to the Mirror entity by ID if the given value is not nil.

func (*InodeUpdateOne) SetNillableName

func (iuo *InodeUpdateOne) SetNillableName(s *string) *InodeUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*InodeUpdateOne) SetNillableParentID

func (iuo *InodeUpdateOne) SetNillableParentID(id *uuid.UUID) *InodeUpdateOne

SetNillableParentID sets the "parent" edge to the Inode entity by ID if the given value is not nil.

func (*InodeUpdateOne) SetNillableReadOnly added in v0.6.6

func (iuo *InodeUpdateOne) SetNillableReadOnly(b *bool) *InodeUpdateOne

SetNillableReadOnly sets the "readOnly" field if the given value is not nil.

func (*InodeUpdateOne) SetNillableWorkflowID

func (iuo *InodeUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *InodeUpdateOne

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*InodeUpdateOne) SetParent

func (iuo *InodeUpdateOne) SetParent(i *Inode) *InodeUpdateOne

SetParent sets the "parent" edge to the Inode entity.

func (*InodeUpdateOne) SetParentID

func (iuo *InodeUpdateOne) SetParentID(id uuid.UUID) *InodeUpdateOne

SetParentID sets the "parent" edge to the Inode entity by ID.

func (*InodeUpdateOne) SetReadOnly added in v0.6.6

func (iuo *InodeUpdateOne) SetReadOnly(b bool) *InodeUpdateOne

SetReadOnly sets the "readOnly" field.

func (*InodeUpdateOne) SetUpdatedAt

func (iuo *InodeUpdateOne) SetUpdatedAt(t time.Time) *InodeUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*InodeUpdateOne) SetWorkflow

func (iuo *InodeUpdateOne) SetWorkflow(w *Workflow) *InodeUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*InodeUpdateOne) SetWorkflowID

func (iuo *InodeUpdateOne) SetWorkflowID(id uuid.UUID) *InodeUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type Inodes

type Inodes []*Inode

Inodes is a parsable slice of Inode.

type Instance

type Instance struct {

	// ID of the ent.
	ID uuid.UUID `json:"id"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// EndAt holds the value of the "end_at" field.
	EndAt time.Time `json:"end_at,omitempty"`
	// Status holds the value of the "status" field.
	Status string `json:"status,omitempty"`
	// As holds the value of the "as" field.
	As string `json:"as,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"`
	// Invoker holds the value of the "invoker" field.
	Invoker string `json:"invoker,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the InstanceQuery when eager-loading is set.
	Edges InstanceEdges `json:"edges"`
	// contains filtered or unexported fields
}

Instance is the model entity for the Instance schema.

func (*Instance) Children

func (i *Instance) Children(ctx context.Context) ([]*InstanceRuntime, error)

func (*Instance) Eventlisteners

func (i *Instance) Eventlisteners(ctx context.Context) ([]*Events, error)

func (*Instance) Logs

func (i *Instance) Logs(ctx context.Context) ([]*LogMsg, error)

func (*Instance) Namespace

func (i *Instance) Namespace(ctx context.Context) (*Namespace, error)

func (*Instance) QueryChildren

func (i *Instance) QueryChildren() *InstanceRuntimeQuery

QueryChildren queries the "children" edge of the Instance entity.

func (*Instance) QueryEventlisteners

func (i *Instance) QueryEventlisteners() *EventsQuery

QueryEventlisteners queries the "eventlisteners" edge of the Instance entity.

func (*Instance) QueryLogs

func (i *Instance) QueryLogs() *LogMsgQuery

QueryLogs queries the "logs" edge of the Instance entity.

func (*Instance) QueryNamespace

func (i *Instance) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the Instance entity.

func (*Instance) QueryRevision

func (i *Instance) QueryRevision() *RevisionQuery

QueryRevision queries the "revision" edge of the Instance entity.

func (*Instance) QueryRuntime

func (i *Instance) QueryRuntime() *InstanceRuntimeQuery

QueryRuntime queries the "runtime" edge of the Instance entity.

func (*Instance) QueryVars

func (i *Instance) QueryVars() *VarRefQuery

QueryVars queries the "vars" edge of the Instance entity.

func (*Instance) QueryWorkflow

func (i *Instance) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the Instance entity.

func (*Instance) Revision

func (i *Instance) Revision(ctx context.Context) (*Revision, error)

func (*Instance) Runtime

func (i *Instance) Runtime(ctx context.Context) (*InstanceRuntime, error)

func (*Instance) String

func (i *Instance) String() string

String implements the fmt.Stringer.

func (*Instance) Unwrap

func (i *Instance) Unwrap() *Instance

Unwrap unwraps the Instance 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 (*Instance) Update

func (i *Instance) Update() *InstanceUpdateOne

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

func (*Instance) Vars

func (i *Instance) Vars(ctx context.Context) ([]*VarRef, error)

func (*Instance) Workflow

func (i *Instance) Workflow(ctx context.Context) (*Workflow, error)

type InstanceClient

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

InstanceClient is a client for the Instance schema.

func NewInstanceClient

func NewInstanceClient(c config) *InstanceClient

NewInstanceClient returns a client for the Instance from the given config.

func (*InstanceClient) Create

func (c *InstanceClient) Create() *InstanceCreate

Create returns a builder for creating a Instance entity.

func (*InstanceClient) CreateBulk

func (c *InstanceClient) CreateBulk(builders ...*InstanceCreate) *InstanceCreateBulk

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

func (*InstanceClient) Delete

func (c *InstanceClient) Delete() *InstanceDelete

Delete returns a delete builder for Instance.

func (*InstanceClient) DeleteOne

func (c *InstanceClient) DeleteOne(i *Instance) *InstanceDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*InstanceClient) DeleteOneID

func (c *InstanceClient) DeleteOneID(id uuid.UUID) *InstanceDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*InstanceClient) Get

func (c *InstanceClient) Get(ctx context.Context, id uuid.UUID) (*Instance, error)

Get returns a Instance entity by its id.

func (*InstanceClient) GetX

func (c *InstanceClient) GetX(ctx context.Context, id uuid.UUID) *Instance

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

func (*InstanceClient) Hooks

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

Hooks returns the client hooks.

func (*InstanceClient) Query

func (c *InstanceClient) Query() *InstanceQuery

Query returns a query builder for Instance.

func (*InstanceClient) QueryChildren

func (c *InstanceClient) QueryChildren(i *Instance) *InstanceRuntimeQuery

QueryChildren queries the children edge of a Instance.

func (*InstanceClient) QueryEventlisteners

func (c *InstanceClient) QueryEventlisteners(i *Instance) *EventsQuery

QueryEventlisteners queries the eventlisteners edge of a Instance.

func (*InstanceClient) QueryLogs

func (c *InstanceClient) QueryLogs(i *Instance) *LogMsgQuery

QueryLogs queries the logs edge of a Instance.

func (*InstanceClient) QueryNamespace

func (c *InstanceClient) QueryNamespace(i *Instance) *NamespaceQuery

QueryNamespace queries the namespace edge of a Instance.

func (*InstanceClient) QueryRevision

func (c *InstanceClient) QueryRevision(i *Instance) *RevisionQuery

QueryRevision queries the revision edge of a Instance.

func (*InstanceClient) QueryRuntime

func (c *InstanceClient) QueryRuntime(i *Instance) *InstanceRuntimeQuery

QueryRuntime queries the runtime edge of a Instance.

func (*InstanceClient) QueryVars

func (c *InstanceClient) QueryVars(i *Instance) *VarRefQuery

QueryVars queries the vars edge of a Instance.

func (*InstanceClient) QueryWorkflow

func (c *InstanceClient) QueryWorkflow(i *Instance) *WorkflowQuery

QueryWorkflow queries the workflow edge of a Instance.

func (*InstanceClient) Update

func (c *InstanceClient) Update() *InstanceUpdate

Update returns an update builder for Instance.

func (*InstanceClient) UpdateOne

func (c *InstanceClient) UpdateOne(i *Instance) *InstanceUpdateOne

UpdateOne returns an update builder for the given entity.

func (*InstanceClient) UpdateOneID

func (c *InstanceClient) UpdateOneID(id uuid.UUID) *InstanceUpdateOne

UpdateOneID returns an update builder for the given id.

func (*InstanceClient) Use

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

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

type InstanceCreate

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

InstanceCreate is the builder for creating a Instance entity.

func (*InstanceCreate) AddChildIDs

func (ic *InstanceCreate) AddChildIDs(ids ...uuid.UUID) *InstanceCreate

AddChildIDs adds the "children" edge to the InstanceRuntime entity by IDs.

func (*InstanceCreate) AddChildren

func (ic *InstanceCreate) AddChildren(i ...*InstanceRuntime) *InstanceCreate

AddChildren adds the "children" edges to the InstanceRuntime entity.

func (*InstanceCreate) AddEventlistenerIDs

func (ic *InstanceCreate) AddEventlistenerIDs(ids ...uuid.UUID) *InstanceCreate

AddEventlistenerIDs adds the "eventlisteners" edge to the Events entity by IDs.

func (*InstanceCreate) AddEventlisteners

func (ic *InstanceCreate) AddEventlisteners(e ...*Events) *InstanceCreate

AddEventlisteners adds the "eventlisteners" edges to the Events entity.

func (*InstanceCreate) AddLogIDs

func (ic *InstanceCreate) AddLogIDs(ids ...uuid.UUID) *InstanceCreate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*InstanceCreate) AddLogs

func (ic *InstanceCreate) AddLogs(l ...*LogMsg) *InstanceCreate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*InstanceCreate) AddVarIDs

func (ic *InstanceCreate) AddVarIDs(ids ...uuid.UUID) *InstanceCreate

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*InstanceCreate) AddVars

func (ic *InstanceCreate) AddVars(v ...*VarRef) *InstanceCreate

AddVars adds the "vars" edges to the VarRef entity.

func (*InstanceCreate) Exec

func (ic *InstanceCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*InstanceCreate) ExecX

func (ic *InstanceCreate) ExecX(ctx context.Context)

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

func (*InstanceCreate) Mutation

func (ic *InstanceCreate) Mutation() *InstanceMutation

Mutation returns the InstanceMutation object of the builder.

func (*InstanceCreate) Save

func (ic *InstanceCreate) Save(ctx context.Context) (*Instance, error)

Save creates the Instance in the database.

func (*InstanceCreate) SaveX

func (ic *InstanceCreate) SaveX(ctx context.Context) *Instance

SaveX calls Save and panics if Save returns an error.

func (*InstanceCreate) SetAs

func (ic *InstanceCreate) SetAs(s string) *InstanceCreate

SetAs sets the "as" field.

func (*InstanceCreate) SetCreatedAt

func (ic *InstanceCreate) SetCreatedAt(t time.Time) *InstanceCreate

SetCreatedAt sets the "created_at" field.

func (*InstanceCreate) SetEndAt

func (ic *InstanceCreate) SetEndAt(t time.Time) *InstanceCreate

SetEndAt sets the "end_at" field.

func (*InstanceCreate) SetErrorCode

func (ic *InstanceCreate) SetErrorCode(s string) *InstanceCreate

SetErrorCode sets the "errorCode" field.

func (*InstanceCreate) SetErrorMessage

func (ic *InstanceCreate) SetErrorMessage(s string) *InstanceCreate

SetErrorMessage sets the "errorMessage" field.

func (*InstanceCreate) SetID

func (ic *InstanceCreate) SetID(u uuid.UUID) *InstanceCreate

SetID sets the "id" field.

func (*InstanceCreate) SetInvoker added in v0.6.3

func (ic *InstanceCreate) SetInvoker(s string) *InstanceCreate

SetInvoker sets the "invoker" field.

func (*InstanceCreate) SetNamespace

func (ic *InstanceCreate) SetNamespace(n *Namespace) *InstanceCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*InstanceCreate) SetNamespaceID

func (ic *InstanceCreate) SetNamespaceID(id uuid.UUID) *InstanceCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*InstanceCreate) SetNillableCreatedAt

func (ic *InstanceCreate) SetNillableCreatedAt(t *time.Time) *InstanceCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*InstanceCreate) SetNillableEndAt

func (ic *InstanceCreate) SetNillableEndAt(t *time.Time) *InstanceCreate

SetNillableEndAt sets the "end_at" field if the given value is not nil.

func (*InstanceCreate) SetNillableErrorCode

func (ic *InstanceCreate) SetNillableErrorCode(s *string) *InstanceCreate

SetNillableErrorCode sets the "errorCode" field if the given value is not nil.

func (*InstanceCreate) SetNillableErrorMessage

func (ic *InstanceCreate) SetNillableErrorMessage(s *string) *InstanceCreate

SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.

func (*InstanceCreate) SetNillableID added in v0.6.1

func (ic *InstanceCreate) SetNillableID(u *uuid.UUID) *InstanceCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*InstanceCreate) SetNillableInvoker added in v0.6.3

func (ic *InstanceCreate) SetNillableInvoker(s *string) *InstanceCreate

SetNillableInvoker sets the "invoker" field if the given value is not nil.

func (*InstanceCreate) SetNillableRevisionID added in v0.6.1

func (ic *InstanceCreate) SetNillableRevisionID(id *uuid.UUID) *InstanceCreate

SetNillableRevisionID sets the "revision" edge to the Revision entity by ID if the given value is not nil.

func (*InstanceCreate) SetNillableUpdatedAt

func (ic *InstanceCreate) SetNillableUpdatedAt(t *time.Time) *InstanceCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*InstanceCreate) SetNillableWorkflowID added in v0.6.1

func (ic *InstanceCreate) SetNillableWorkflowID(id *uuid.UUID) *InstanceCreate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*InstanceCreate) SetRevision

func (ic *InstanceCreate) SetRevision(r *Revision) *InstanceCreate

SetRevision sets the "revision" edge to the Revision entity.

func (*InstanceCreate) SetRevisionID

func (ic *InstanceCreate) SetRevisionID(id uuid.UUID) *InstanceCreate

SetRevisionID sets the "revision" edge to the Revision entity by ID.

func (*InstanceCreate) SetRuntime

func (ic *InstanceCreate) SetRuntime(i *InstanceRuntime) *InstanceCreate

SetRuntime sets the "runtime" edge to the InstanceRuntime entity.

func (*InstanceCreate) SetRuntimeID

func (ic *InstanceCreate) SetRuntimeID(id uuid.UUID) *InstanceCreate

SetRuntimeID sets the "runtime" edge to the InstanceRuntime entity by ID.

func (*InstanceCreate) SetStatus

func (ic *InstanceCreate) SetStatus(s string) *InstanceCreate

SetStatus sets the "status" field.

func (*InstanceCreate) SetUpdatedAt

func (ic *InstanceCreate) SetUpdatedAt(t time.Time) *InstanceCreate

SetUpdatedAt sets the "updated_at" field.

func (*InstanceCreate) SetWorkflow

func (ic *InstanceCreate) SetWorkflow(w *Workflow) *InstanceCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*InstanceCreate) SetWorkflowID

func (ic *InstanceCreate) SetWorkflowID(id uuid.UUID) *InstanceCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type InstanceCreateBulk

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

InstanceCreateBulk is the builder for creating many Instance entities in bulk.

func (*InstanceCreateBulk) Exec

func (icb *InstanceCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*InstanceCreateBulk) ExecX

func (icb *InstanceCreateBulk) ExecX(ctx context.Context)

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

func (*InstanceCreateBulk) Save

func (icb *InstanceCreateBulk) Save(ctx context.Context) ([]*Instance, error)

Save creates the Instance entities in the database.

func (*InstanceCreateBulk) SaveX

func (icb *InstanceCreateBulk) SaveX(ctx context.Context) []*Instance

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

type InstanceDelete

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

InstanceDelete is the builder for deleting a Instance entity.

func (*InstanceDelete) Exec

func (id *InstanceDelete) Exec(ctx context.Context) (int, error)

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

func (*InstanceDelete) ExecX

func (id *InstanceDelete) ExecX(ctx context.Context) int

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

func (*InstanceDelete) Where

func (id *InstanceDelete) Where(ps ...predicate.Instance) *InstanceDelete

Where appends a list predicates to the InstanceDelete builder.

type InstanceDeleteOne

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

InstanceDeleteOne is the builder for deleting a single Instance entity.

func (*InstanceDeleteOne) Exec

func (ido *InstanceDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*InstanceDeleteOne) ExecX

func (ido *InstanceDeleteOne) ExecX(ctx context.Context)

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

type InstanceEdges

type InstanceEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Revision holds the value of the revision edge.
	Revision *Revision `json:"revision,omitempty"`
	// Logs holds the value of the logs edge.
	Logs []*LogMsg `json:"logs,omitempty"`
	// Vars holds the value of the vars edge.
	Vars []*VarRef `json:"vars,omitempty"`
	// Runtime holds the value of the runtime edge.
	Runtime *InstanceRuntime `json:"runtime,omitempty"`
	// Children holds the value of the children edge.
	Children []*InstanceRuntime `json:"children,omitempty"`
	// Eventlisteners holds the value of the eventlisteners edge.
	Eventlisteners []*Events `json:"eventlisteners,omitempty"`
	// contains filtered or unexported fields
}

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

func (InstanceEdges) ChildrenOrErr

func (e InstanceEdges) ChildrenOrErr() ([]*InstanceRuntime, error)

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

func (InstanceEdges) EventlistenersOrErr

func (e InstanceEdges) EventlistenersOrErr() ([]*Events, error)

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

func (InstanceEdges) LogsOrErr

func (e InstanceEdges) LogsOrErr() ([]*LogMsg, error)

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

func (InstanceEdges) NamespaceOrErr

func (e InstanceEdges) 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 (InstanceEdges) RevisionOrErr

func (e InstanceEdges) RevisionOrErr() (*Revision, error)

RevisionOrErr returns the Revision value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (InstanceEdges) RuntimeOrErr

func (e InstanceEdges) RuntimeOrErr() (*InstanceRuntime, error)

RuntimeOrErr returns the Runtime value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (InstanceEdges) VarsOrErr

func (e InstanceEdges) VarsOrErr() ([]*VarRef, error)

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

func (InstanceEdges) WorkflowOrErr

func (e InstanceEdges) 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 InstanceGroupBy

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

InstanceGroupBy is the group-by builder for Instance entities.

func (*InstanceGroupBy) Aggregate

func (igb *InstanceGroupBy) Aggregate(fns ...AggregateFunc) *InstanceGroupBy

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

func (*InstanceGroupBy) Bool

func (s *InstanceGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*InstanceGroupBy) BoolX

func (s *InstanceGroupBy) BoolX(ctx context.Context) bool

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

func (*InstanceGroupBy) Bools

func (s *InstanceGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*InstanceGroupBy) BoolsX

func (s *InstanceGroupBy) BoolsX(ctx context.Context) []bool

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

func (*InstanceGroupBy) Float64

func (s *InstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*InstanceGroupBy) Float64X

func (s *InstanceGroupBy) Float64X(ctx context.Context) float64

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

func (*InstanceGroupBy) Float64s

func (s *InstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*InstanceGroupBy) Float64sX

func (s *InstanceGroupBy) Float64sX(ctx context.Context) []float64

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

func (*InstanceGroupBy) Int

func (s *InstanceGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*InstanceGroupBy) IntX

func (s *InstanceGroupBy) IntX(ctx context.Context) int

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

func (*InstanceGroupBy) Ints

func (s *InstanceGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*InstanceGroupBy) IntsX

func (s *InstanceGroupBy) IntsX(ctx context.Context) []int

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

func (*InstanceGroupBy) Scan

func (igb *InstanceGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*InstanceGroupBy) ScanX

func (s *InstanceGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*InstanceGroupBy) String

func (s *InstanceGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*InstanceGroupBy) StringX

func (s *InstanceGroupBy) StringX(ctx context.Context) string

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

func (*InstanceGroupBy) Strings

func (s *InstanceGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*InstanceGroupBy) StringsX

func (s *InstanceGroupBy) StringsX(ctx context.Context) []string

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

type InstanceMutation

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

InstanceMutation represents an operation that mutates the Instance nodes in the graph.

func (*InstanceMutation) AddChildIDs

func (m *InstanceMutation) AddChildIDs(ids ...uuid.UUID)

AddChildIDs adds the "children" edge to the InstanceRuntime entity by ids.

func (*InstanceMutation) AddEventlistenerIDs

func (m *InstanceMutation) AddEventlistenerIDs(ids ...uuid.UUID)

AddEventlistenerIDs adds the "eventlisteners" edge to the Events entity by ids.

func (*InstanceMutation) AddField

func (m *InstanceMutation) 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 (*InstanceMutation) AddLogIDs

func (m *InstanceMutation) AddLogIDs(ids ...uuid.UUID)

AddLogIDs adds the "logs" edge to the LogMsg entity by ids.

func (*InstanceMutation) AddVarIDs

func (m *InstanceMutation) AddVarIDs(ids ...uuid.UUID)

AddVarIDs adds the "vars" edge to the VarRef entity by ids.

func (*InstanceMutation) AddedEdges

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

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

func (*InstanceMutation) AddedField

func (m *InstanceMutation) 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 (*InstanceMutation) AddedFields

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

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

func (*InstanceMutation) AddedIDs

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

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

func (*InstanceMutation) As

func (m *InstanceMutation) As() (r string, exists bool)

As returns the value of the "as" field in the mutation.

func (*InstanceMutation) ChildrenCleared

func (m *InstanceMutation) ChildrenCleared() bool

ChildrenCleared reports if the "children" edge to the InstanceRuntime entity was cleared.

func (*InstanceMutation) ChildrenIDs

func (m *InstanceMutation) ChildrenIDs() (ids []uuid.UUID)

ChildrenIDs returns the "children" edge IDs in the mutation.

func (*InstanceMutation) ClearChildren

func (m *InstanceMutation) ClearChildren()

ClearChildren clears the "children" edge to the InstanceRuntime entity.

func (*InstanceMutation) ClearEdge

func (m *InstanceMutation) 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 (*InstanceMutation) ClearEndAt

func (m *InstanceMutation) ClearEndAt()

ClearEndAt clears the value of the "end_at" field.

func (*InstanceMutation) ClearErrorCode

func (m *InstanceMutation) ClearErrorCode()

ClearErrorCode clears the value of the "errorCode" field.

func (*InstanceMutation) ClearErrorMessage

func (m *InstanceMutation) ClearErrorMessage()

ClearErrorMessage clears the value of the "errorMessage" field.

func (*InstanceMutation) ClearEventlisteners

func (m *InstanceMutation) ClearEventlisteners()

ClearEventlisteners clears the "eventlisteners" edge to the Events entity.

func (*InstanceMutation) ClearField

func (m *InstanceMutation) 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 (*InstanceMutation) ClearInvoker added in v0.6.3

func (m *InstanceMutation) ClearInvoker()

ClearInvoker clears the value of the "invoker" field.

func (*InstanceMutation) ClearLogs

func (m *InstanceMutation) ClearLogs()

ClearLogs clears the "logs" edge to the LogMsg entity.

func (*InstanceMutation) ClearNamespace

func (m *InstanceMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*InstanceMutation) ClearRevision

func (m *InstanceMutation) ClearRevision()

ClearRevision clears the "revision" edge to the Revision entity.

func (*InstanceMutation) ClearRuntime

func (m *InstanceMutation) ClearRuntime()

ClearRuntime clears the "runtime" edge to the InstanceRuntime entity.

func (*InstanceMutation) ClearVars

func (m *InstanceMutation) ClearVars()

ClearVars clears the "vars" edge to the VarRef entity.

func (*InstanceMutation) ClearWorkflow

func (m *InstanceMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*InstanceMutation) ClearedEdges

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

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

func (*InstanceMutation) ClearedFields

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

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

func (InstanceMutation) Client

func (m InstanceMutation) 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 (*InstanceMutation) CreatedAt

func (m *InstanceMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*InstanceMutation) EdgeCleared

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

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

func (*InstanceMutation) EndAt

func (m *InstanceMutation) EndAt() (r time.Time, exists bool)

EndAt returns the value of the "end_at" field in the mutation.

func (*InstanceMutation) EndAtCleared

func (m *InstanceMutation) EndAtCleared() bool

EndAtCleared returns if the "end_at" field was cleared in this mutation.

func (*InstanceMutation) ErrorCode

func (m *InstanceMutation) ErrorCode() (r string, exists bool)

ErrorCode returns the value of the "errorCode" field in the mutation.

func (*InstanceMutation) ErrorCodeCleared

func (m *InstanceMutation) ErrorCodeCleared() bool

ErrorCodeCleared returns if the "errorCode" field was cleared in this mutation.

func (*InstanceMutation) ErrorMessage

func (m *InstanceMutation) ErrorMessage() (r string, exists bool)

ErrorMessage returns the value of the "errorMessage" field in the mutation.

func (*InstanceMutation) ErrorMessageCleared

func (m *InstanceMutation) ErrorMessageCleared() bool

ErrorMessageCleared returns if the "errorMessage" field was cleared in this mutation.

func (*InstanceMutation) EventlistenersCleared

func (m *InstanceMutation) EventlistenersCleared() bool

EventlistenersCleared reports if the "eventlisteners" edge to the Events entity was cleared.

func (*InstanceMutation) EventlistenersIDs

func (m *InstanceMutation) EventlistenersIDs() (ids []uuid.UUID)

EventlistenersIDs returns the "eventlisteners" edge IDs in the mutation.

func (*InstanceMutation) Field

func (m *InstanceMutation) 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 (*InstanceMutation) FieldCleared

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

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

func (*InstanceMutation) Fields

func (m *InstanceMutation) 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 (*InstanceMutation) ID

func (m *InstanceMutation) 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 (*InstanceMutation) IDs added in v0.6.1

func (m *InstanceMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*InstanceMutation) Invoker added in v0.6.3

func (m *InstanceMutation) Invoker() (r string, exists bool)

Invoker returns the value of the "invoker" field in the mutation.

func (*InstanceMutation) InvokerCleared added in v0.6.3

func (m *InstanceMutation) InvokerCleared() bool

InvokerCleared returns if the "invoker" field was cleared in this mutation.

func (*InstanceMutation) LogsCleared

func (m *InstanceMutation) LogsCleared() bool

LogsCleared reports if the "logs" edge to the LogMsg entity was cleared.

func (*InstanceMutation) LogsIDs

func (m *InstanceMutation) LogsIDs() (ids []uuid.UUID)

LogsIDs returns the "logs" edge IDs in the mutation.

func (*InstanceMutation) NamespaceCleared

func (m *InstanceMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*InstanceMutation) NamespaceID

func (m *InstanceMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*InstanceMutation) NamespaceIDs

func (m *InstanceMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*InstanceMutation) OldAs

func (m *InstanceMutation) OldAs(ctx context.Context) (v string, err error)

OldAs returns the old "as" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldCreatedAt

func (m *InstanceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldEndAt

func (m *InstanceMutation) OldEndAt(ctx context.Context) (v time.Time, err error)

OldEndAt returns the old "end_at" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldErrorCode

func (m *InstanceMutation) OldErrorCode(ctx context.Context) (v string, err error)

OldErrorCode returns the old "errorCode" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldErrorMessage

func (m *InstanceMutation) OldErrorMessage(ctx context.Context) (v string, err error)

OldErrorMessage returns the old "errorMessage" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldField

func (m *InstanceMutation) 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 (*InstanceMutation) OldInvoker added in v0.6.3

func (m *InstanceMutation) OldInvoker(ctx context.Context) (v string, err error)

OldInvoker returns the old "invoker" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldStatus

func (m *InstanceMutation) OldStatus(ctx context.Context) (v string, err error)

OldStatus returns the old "status" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) OldUpdatedAt

func (m *InstanceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Instance entity. If the Instance 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 (*InstanceMutation) Op

func (m *InstanceMutation) Op() Op

Op returns the operation name.

func (*InstanceMutation) RemoveChildIDs

func (m *InstanceMutation) RemoveChildIDs(ids ...uuid.UUID)

RemoveChildIDs removes the "children" edge to the InstanceRuntime entity by IDs.

func (*InstanceMutation) RemoveEventlistenerIDs

func (m *InstanceMutation) RemoveEventlistenerIDs(ids ...uuid.UUID)

RemoveEventlistenerIDs removes the "eventlisteners" edge to the Events entity by IDs.

func (*InstanceMutation) RemoveLogIDs

func (m *InstanceMutation) RemoveLogIDs(ids ...uuid.UUID)

RemoveLogIDs removes the "logs" edge to the LogMsg entity by IDs.

func (*InstanceMutation) RemoveVarIDs

func (m *InstanceMutation) RemoveVarIDs(ids ...uuid.UUID)

RemoveVarIDs removes the "vars" edge to the VarRef entity by IDs.

func (*InstanceMutation) RemovedChildrenIDs

func (m *InstanceMutation) RemovedChildrenIDs() (ids []uuid.UUID)

RemovedChildren returns the removed IDs of the "children" edge to the InstanceRuntime entity.

func (*InstanceMutation) RemovedEdges

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

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

func (*InstanceMutation) RemovedEventlistenersIDs

func (m *InstanceMutation) RemovedEventlistenersIDs() (ids []uuid.UUID)

RemovedEventlisteners returns the removed IDs of the "eventlisteners" edge to the Events entity.

func (*InstanceMutation) RemovedIDs

func (m *InstanceMutation) 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 (*InstanceMutation) RemovedLogsIDs

func (m *InstanceMutation) RemovedLogsIDs() (ids []uuid.UUID)

RemovedLogs returns the removed IDs of the "logs" edge to the LogMsg entity.

func (*InstanceMutation) RemovedVarsIDs

func (m *InstanceMutation) RemovedVarsIDs() (ids []uuid.UUID)

RemovedVars returns the removed IDs of the "vars" edge to the VarRef entity.

func (*InstanceMutation) ResetAs

func (m *InstanceMutation) ResetAs()

ResetAs resets all changes to the "as" field.

func (*InstanceMutation) ResetChildren

func (m *InstanceMutation) ResetChildren()

ResetChildren resets all changes to the "children" edge.

func (*InstanceMutation) ResetCreatedAt

func (m *InstanceMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*InstanceMutation) ResetEdge

func (m *InstanceMutation) 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 (*InstanceMutation) ResetEndAt

func (m *InstanceMutation) ResetEndAt()

ResetEndAt resets all changes to the "end_at" field.

func (*InstanceMutation) ResetErrorCode

func (m *InstanceMutation) ResetErrorCode()

ResetErrorCode resets all changes to the "errorCode" field.

func (*InstanceMutation) ResetErrorMessage

func (m *InstanceMutation) ResetErrorMessage()

ResetErrorMessage resets all changes to the "errorMessage" field.

func (*InstanceMutation) ResetEventlisteners

func (m *InstanceMutation) ResetEventlisteners()

ResetEventlisteners resets all changes to the "eventlisteners" edge.

func (*InstanceMutation) ResetField

func (m *InstanceMutation) 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 (*InstanceMutation) ResetInvoker added in v0.6.3

func (m *InstanceMutation) ResetInvoker()

ResetInvoker resets all changes to the "invoker" field.

func (*InstanceMutation) ResetLogs

func (m *InstanceMutation) ResetLogs()

ResetLogs resets all changes to the "logs" edge.

func (*InstanceMutation) ResetNamespace

func (m *InstanceMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*InstanceMutation) ResetRevision

func (m *InstanceMutation) ResetRevision()

ResetRevision resets all changes to the "revision" edge.

func (*InstanceMutation) ResetRuntime

func (m *InstanceMutation) ResetRuntime()

ResetRuntime resets all changes to the "runtime" edge.

func (*InstanceMutation) ResetStatus

func (m *InstanceMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*InstanceMutation) ResetUpdatedAt

func (m *InstanceMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*InstanceMutation) ResetVars

func (m *InstanceMutation) ResetVars()

ResetVars resets all changes to the "vars" edge.

func (*InstanceMutation) ResetWorkflow

func (m *InstanceMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*InstanceMutation) RevisionCleared

func (m *InstanceMutation) RevisionCleared() bool

RevisionCleared reports if the "revision" edge to the Revision entity was cleared.

func (*InstanceMutation) RevisionID

func (m *InstanceMutation) RevisionID() (id uuid.UUID, exists bool)

RevisionID returns the "revision" edge ID in the mutation.

func (*InstanceMutation) RevisionIDs

func (m *InstanceMutation) RevisionIDs() (ids []uuid.UUID)

RevisionIDs returns the "revision" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RevisionID instead. It exists only for internal usage by the builders.

func (*InstanceMutation) RuntimeCleared

func (m *InstanceMutation) RuntimeCleared() bool

RuntimeCleared reports if the "runtime" edge to the InstanceRuntime entity was cleared.

func (*InstanceMutation) RuntimeID

func (m *InstanceMutation) RuntimeID() (id uuid.UUID, exists bool)

RuntimeID returns the "runtime" edge ID in the mutation.

func (*InstanceMutation) RuntimeIDs

func (m *InstanceMutation) RuntimeIDs() (ids []uuid.UUID)

RuntimeIDs returns the "runtime" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RuntimeID instead. It exists only for internal usage by the builders.

func (*InstanceMutation) SetAs

func (m *InstanceMutation) SetAs(s string)

SetAs sets the "as" field.

func (*InstanceMutation) SetCreatedAt

func (m *InstanceMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*InstanceMutation) SetEndAt

func (m *InstanceMutation) SetEndAt(t time.Time)

SetEndAt sets the "end_at" field.

func (*InstanceMutation) SetErrorCode

func (m *InstanceMutation) SetErrorCode(s string)

SetErrorCode sets the "errorCode" field.

func (*InstanceMutation) SetErrorMessage

func (m *InstanceMutation) SetErrorMessage(s string)

SetErrorMessage sets the "errorMessage" field.

func (*InstanceMutation) SetField

func (m *InstanceMutation) 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 (*InstanceMutation) SetID

func (m *InstanceMutation) SetID(id uuid.UUID)

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

func (*InstanceMutation) SetInvoker added in v0.6.3

func (m *InstanceMutation) SetInvoker(s string)

SetInvoker sets the "invoker" field.

func (*InstanceMutation) SetNamespaceID

func (m *InstanceMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*InstanceMutation) SetRevisionID

func (m *InstanceMutation) SetRevisionID(id uuid.UUID)

SetRevisionID sets the "revision" edge to the Revision entity by id.

func (*InstanceMutation) SetRuntimeID

func (m *InstanceMutation) SetRuntimeID(id uuid.UUID)

SetRuntimeID sets the "runtime" edge to the InstanceRuntime entity by id.

func (*InstanceMutation) SetStatus

func (m *InstanceMutation) SetStatus(s string)

SetStatus sets the "status" field.

func (*InstanceMutation) SetUpdatedAt

func (m *InstanceMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*InstanceMutation) SetWorkflowID

func (m *InstanceMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*InstanceMutation) Status

func (m *InstanceMutation) Status() (r string, exists bool)

Status returns the value of the "status" field in the mutation.

func (InstanceMutation) Tx

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

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

func (*InstanceMutation) Type

func (m *InstanceMutation) Type() string

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

func (*InstanceMutation) UpdatedAt

func (m *InstanceMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*InstanceMutation) VarsCleared

func (m *InstanceMutation) VarsCleared() bool

VarsCleared reports if the "vars" edge to the VarRef entity was cleared.

func (*InstanceMutation) VarsIDs

func (m *InstanceMutation) VarsIDs() (ids []uuid.UUID)

VarsIDs returns the "vars" edge IDs in the mutation.

func (*InstanceMutation) Where

func (m *InstanceMutation) Where(ps ...predicate.Instance)

Where appends a list predicates to the InstanceMutation builder.

func (*InstanceMutation) WorkflowCleared

func (m *InstanceMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*InstanceMutation) WorkflowID

func (m *InstanceMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*InstanceMutation) WorkflowIDs

func (m *InstanceMutation) 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 InstanceQuery

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

InstanceQuery is the builder for querying Instance entities.

func (*InstanceQuery) All

func (iq *InstanceQuery) All(ctx context.Context) ([]*Instance, error)

All executes the query and returns a list of Instances.

func (*InstanceQuery) AllX

func (iq *InstanceQuery) AllX(ctx context.Context) []*Instance

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

func (*InstanceQuery) Clone

func (iq *InstanceQuery) Clone() *InstanceQuery

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

func (*InstanceQuery) CollectFields

func (i *InstanceQuery) CollectFields(ctx context.Context, satisfies ...string) *InstanceQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*InstanceQuery) Count

func (iq *InstanceQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*InstanceQuery) CountX

func (iq *InstanceQuery) CountX(ctx context.Context) int

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

func (*InstanceQuery) Exist

func (iq *InstanceQuery) Exist(ctx context.Context) (bool, error)

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

func (*InstanceQuery) ExistX

func (iq *InstanceQuery) ExistX(ctx context.Context) bool

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

func (*InstanceQuery) First

func (iq *InstanceQuery) First(ctx context.Context) (*Instance, error)

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

func (*InstanceQuery) FirstID

func (iq *InstanceQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*InstanceQuery) FirstIDX

func (iq *InstanceQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*InstanceQuery) FirstX

func (iq *InstanceQuery) FirstX(ctx context.Context) *Instance

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

func (*InstanceQuery) GroupBy

func (iq *InstanceQuery) GroupBy(field string, fields ...string) *InstanceGroupBy

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Instance.Query().
	GroupBy(instance.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*InstanceQuery) IDs

func (iq *InstanceQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*InstanceQuery) IDsX

func (iq *InstanceQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*InstanceQuery) Limit

func (iq *InstanceQuery) Limit(limit int) *InstanceQuery

Limit adds a limit step to the query.

func (*InstanceQuery) Offset

func (iq *InstanceQuery) Offset(offset int) *InstanceQuery

Offset adds an offset step to the query.

func (*InstanceQuery) Only

func (iq *InstanceQuery) Only(ctx context.Context) (*Instance, error)

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

func (*InstanceQuery) OnlyID

func (iq *InstanceQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*InstanceQuery) OnlyIDX

func (iq *InstanceQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*InstanceQuery) OnlyX

func (iq *InstanceQuery) OnlyX(ctx context.Context) *Instance

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

func (*InstanceQuery) Order

func (iq *InstanceQuery) Order(o ...OrderFunc) *InstanceQuery

Order adds an order step to the query.

func (*InstanceQuery) QueryChildren

func (iq *InstanceQuery) QueryChildren() *InstanceRuntimeQuery

QueryChildren chains the current query on the "children" edge.

func (*InstanceQuery) QueryEventlisteners

func (iq *InstanceQuery) QueryEventlisteners() *EventsQuery

QueryEventlisteners chains the current query on the "eventlisteners" edge.

func (*InstanceQuery) QueryLogs

func (iq *InstanceQuery) QueryLogs() *LogMsgQuery

QueryLogs chains the current query on the "logs" edge.

func (*InstanceQuery) QueryNamespace

func (iq *InstanceQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*InstanceQuery) QueryRevision

func (iq *InstanceQuery) QueryRevision() *RevisionQuery

QueryRevision chains the current query on the "revision" edge.

func (*InstanceQuery) QueryRuntime

func (iq *InstanceQuery) QueryRuntime() *InstanceRuntimeQuery

QueryRuntime chains the current query on the "runtime" edge.

func (*InstanceQuery) QueryVars

func (iq *InstanceQuery) QueryVars() *VarRefQuery

QueryVars chains the current query on the "vars" edge.

func (*InstanceQuery) QueryWorkflow

func (iq *InstanceQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*InstanceQuery) Select

func (iq *InstanceQuery) Select(fields ...string) *InstanceSelect

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Instance.Query().
	Select(instance.FieldCreatedAt).
	Scan(ctx, &v)

func (*InstanceQuery) Unique

func (iq *InstanceQuery) Unique(unique bool) *InstanceQuery

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 (*InstanceQuery) Where

func (iq *InstanceQuery) Where(ps ...predicate.Instance) *InstanceQuery

Where adds a new predicate for the InstanceQuery builder.

func (*InstanceQuery) WithChildren

func (iq *InstanceQuery) WithChildren(opts ...func(*InstanceRuntimeQuery)) *InstanceQuery

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

func (*InstanceQuery) WithEventlisteners

func (iq *InstanceQuery) WithEventlisteners(opts ...func(*EventsQuery)) *InstanceQuery

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

func (*InstanceQuery) WithLogs

func (iq *InstanceQuery) WithLogs(opts ...func(*LogMsgQuery)) *InstanceQuery

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

func (*InstanceQuery) WithNamespace

func (iq *InstanceQuery) WithNamespace(opts ...func(*NamespaceQuery)) *InstanceQuery

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 (*InstanceQuery) WithRevision

func (iq *InstanceQuery) WithRevision(opts ...func(*RevisionQuery)) *InstanceQuery

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

func (*InstanceQuery) WithRuntime

func (iq *InstanceQuery) WithRuntime(opts ...func(*InstanceRuntimeQuery)) *InstanceQuery

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

func (*InstanceQuery) WithVars

func (iq *InstanceQuery) WithVars(opts ...func(*VarRefQuery)) *InstanceQuery

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

func (*InstanceQuery) WithWorkflow

func (iq *InstanceQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *InstanceQuery

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 InstanceRuntime

type InstanceRuntime struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// Input holds the value of the "input" field.
	Input []byte `json:"input,omitempty"`
	// Data holds the value of the "data" field.
	Data string `json:"data,omitempty"`
	// Controller holds the value of the "controller" field.
	Controller string `json:"controller,omitempty"`
	// Memory holds the value of the "memory" field.
	Memory string `json:"memory,omitempty"`
	// Flow holds the value of the "flow" field.
	Flow []string `json:"flow,omitempty"`
	// Output holds the value of the "output" field.
	Output string `json:"output,omitempty"`
	// StateBeginTime holds the value of the "stateBeginTime" field.
	StateBeginTime time.Time `json:"stateBeginTime,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"`
	// CallerData holds the value of the "caller_data" field.
	CallerData string `json:"caller_data,omitempty"`
	// InstanceContext holds the value of the "instanceContext" field.
	InstanceContext string `json:"instanceContext,omitempty"`
	// StateContext holds the value of the "stateContext" field.
	StateContext string `json:"stateContext,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata string `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the InstanceRuntimeQuery when eager-loading is set.
	Edges InstanceRuntimeEdges `json:"edges"`
	// contains filtered or unexported fields
}

InstanceRuntime is the model entity for the InstanceRuntime schema.

func (*InstanceRuntime) Caller

func (ir *InstanceRuntime) Caller(ctx context.Context) (*Instance, error)

func (*InstanceRuntime) Instance

func (ir *InstanceRuntime) Instance(ctx context.Context) (*Instance, error)

func (*InstanceRuntime) QueryCaller

func (ir *InstanceRuntime) QueryCaller() *InstanceQuery

QueryCaller queries the "caller" edge of the InstanceRuntime entity.

func (*InstanceRuntime) QueryInstance

func (ir *InstanceRuntime) QueryInstance() *InstanceQuery

QueryInstance queries the "instance" edge of the InstanceRuntime entity.

func (*InstanceRuntime) String

func (ir *InstanceRuntime) String() string

String implements the fmt.Stringer.

func (*InstanceRuntime) Unwrap

func (ir *InstanceRuntime) Unwrap() *InstanceRuntime

Unwrap unwraps the InstanceRuntime 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 (*InstanceRuntime) Update

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

type InstanceRuntimeClient

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

InstanceRuntimeClient is a client for the InstanceRuntime schema.

func NewInstanceRuntimeClient

func NewInstanceRuntimeClient(c config) *InstanceRuntimeClient

NewInstanceRuntimeClient returns a client for the InstanceRuntime from the given config.

func (*InstanceRuntimeClient) Create

Create returns a builder for creating a InstanceRuntime entity.

func (*InstanceRuntimeClient) CreateBulk

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

func (*InstanceRuntimeClient) Delete

Delete returns a delete builder for InstanceRuntime.

func (*InstanceRuntimeClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*InstanceRuntimeClient) DeleteOneID

DeleteOne returns a builder for deleting the given entity by its id.

func (*InstanceRuntimeClient) Get

Get returns a InstanceRuntime entity by its id.

func (*InstanceRuntimeClient) GetX

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

func (*InstanceRuntimeClient) Hooks

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

Hooks returns the client hooks.

func (*InstanceRuntimeClient) Query

Query returns a query builder for InstanceRuntime.

func (*InstanceRuntimeClient) QueryCaller

QueryCaller queries the caller edge of a InstanceRuntime.

func (*InstanceRuntimeClient) QueryInstance

func (c *InstanceRuntimeClient) QueryInstance(ir *InstanceRuntime) *InstanceQuery

QueryInstance queries the instance edge of a InstanceRuntime.

func (*InstanceRuntimeClient) Update

Update returns an update builder for InstanceRuntime.

func (*InstanceRuntimeClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*InstanceRuntimeClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*InstanceRuntimeClient) Use

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

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

type InstanceRuntimeCreate

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

InstanceRuntimeCreate is the builder for creating a InstanceRuntime entity.

func (*InstanceRuntimeCreate) Exec

func (irc *InstanceRuntimeCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*InstanceRuntimeCreate) ExecX

func (irc *InstanceRuntimeCreate) ExecX(ctx context.Context)

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

func (*InstanceRuntimeCreate) Mutation

Mutation returns the InstanceRuntimeMutation object of the builder.

func (*InstanceRuntimeCreate) Save

Save creates the InstanceRuntime in the database.

func (*InstanceRuntimeCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*InstanceRuntimeCreate) SetAttempts

func (irc *InstanceRuntimeCreate) SetAttempts(i int) *InstanceRuntimeCreate

SetAttempts sets the "attempts" field.

func (*InstanceRuntimeCreate) SetCaller

SetCaller sets the "caller" edge to the Instance entity.

func (*InstanceRuntimeCreate) SetCallerData

func (irc *InstanceRuntimeCreate) SetCallerData(s string) *InstanceRuntimeCreate

SetCallerData sets the "caller_data" field.

func (*InstanceRuntimeCreate) SetCallerID

func (irc *InstanceRuntimeCreate) SetCallerID(id uuid.UUID) *InstanceRuntimeCreate

SetCallerID sets the "caller" edge to the Instance entity by ID.

func (*InstanceRuntimeCreate) SetController

func (irc *InstanceRuntimeCreate) SetController(s string) *InstanceRuntimeCreate

SetController sets the "controller" field.

func (*InstanceRuntimeCreate) SetData

SetData sets the "data" field.

func (*InstanceRuntimeCreate) SetDeadline

SetDeadline sets the "deadline" field.

func (*InstanceRuntimeCreate) SetFlow

SetFlow sets the "flow" field.

func (*InstanceRuntimeCreate) SetID

SetID sets the "id" field.

func (*InstanceRuntimeCreate) SetInput

func (irc *InstanceRuntimeCreate) SetInput(b []byte) *InstanceRuntimeCreate

SetInput sets the "input" field.

func (*InstanceRuntimeCreate) SetInstance

SetInstance sets the "instance" edge to the Instance entity.

func (*InstanceRuntimeCreate) SetInstanceContext

func (irc *InstanceRuntimeCreate) SetInstanceContext(s string) *InstanceRuntimeCreate

SetInstanceContext sets the "instanceContext" field.

func (*InstanceRuntimeCreate) SetInstanceID

func (irc *InstanceRuntimeCreate) SetInstanceID(id uuid.UUID) *InstanceRuntimeCreate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*InstanceRuntimeCreate) SetMemory

SetMemory sets the "memory" field.

func (*InstanceRuntimeCreate) SetMetadata added in v0.6.1

func (irc *InstanceRuntimeCreate) SetMetadata(s string) *InstanceRuntimeCreate

SetMetadata sets the "metadata" field.

func (*InstanceRuntimeCreate) SetNillableAttempts

func (irc *InstanceRuntimeCreate) SetNillableAttempts(i *int) *InstanceRuntimeCreate

SetNillableAttempts sets the "attempts" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableCallerData

func (irc *InstanceRuntimeCreate) SetNillableCallerData(s *string) *InstanceRuntimeCreate

SetNillableCallerData sets the "caller_data" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableCallerID

func (irc *InstanceRuntimeCreate) SetNillableCallerID(id *uuid.UUID) *InstanceRuntimeCreate

SetNillableCallerID sets the "caller" edge to the Instance entity by ID if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableController

func (irc *InstanceRuntimeCreate) SetNillableController(s *string) *InstanceRuntimeCreate

SetNillableController sets the "controller" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableDeadline

func (irc *InstanceRuntimeCreate) SetNillableDeadline(t *time.Time) *InstanceRuntimeCreate

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableID added in v0.6.1

func (irc *InstanceRuntimeCreate) SetNillableID(u *uuid.UUID) *InstanceRuntimeCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableInstanceContext

func (irc *InstanceRuntimeCreate) SetNillableInstanceContext(s *string) *InstanceRuntimeCreate

SetNillableInstanceContext sets the "instanceContext" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableInstanceID

func (irc *InstanceRuntimeCreate) SetNillableInstanceID(id *uuid.UUID) *InstanceRuntimeCreate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableMemory

func (irc *InstanceRuntimeCreate) SetNillableMemory(s *string) *InstanceRuntimeCreate

SetNillableMemory sets the "memory" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableMetadata added in v0.6.1

func (irc *InstanceRuntimeCreate) SetNillableMetadata(s *string) *InstanceRuntimeCreate

SetNillableMetadata sets the "metadata" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableOutput

func (irc *InstanceRuntimeCreate) SetNillableOutput(s *string) *InstanceRuntimeCreate

SetNillableOutput sets the "output" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableStateBeginTime

func (irc *InstanceRuntimeCreate) SetNillableStateBeginTime(t *time.Time) *InstanceRuntimeCreate

SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetNillableStateContext

func (irc *InstanceRuntimeCreate) SetNillableStateContext(s *string) *InstanceRuntimeCreate

SetNillableStateContext sets the "stateContext" field if the given value is not nil.

func (*InstanceRuntimeCreate) SetOutput

SetOutput sets the "output" field.

func (*InstanceRuntimeCreate) SetStateBeginTime

func (irc *InstanceRuntimeCreate) SetStateBeginTime(t time.Time) *InstanceRuntimeCreate

SetStateBeginTime sets the "stateBeginTime" field.

func (*InstanceRuntimeCreate) SetStateContext

func (irc *InstanceRuntimeCreate) SetStateContext(s string) *InstanceRuntimeCreate

SetStateContext sets the "stateContext" field.

type InstanceRuntimeCreateBulk

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

InstanceRuntimeCreateBulk is the builder for creating many InstanceRuntime entities in bulk.

func (*InstanceRuntimeCreateBulk) Exec

Exec executes the query.

func (*InstanceRuntimeCreateBulk) ExecX

func (ircb *InstanceRuntimeCreateBulk) ExecX(ctx context.Context)

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

func (*InstanceRuntimeCreateBulk) Save

Save creates the InstanceRuntime entities in the database.

func (*InstanceRuntimeCreateBulk) SaveX

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

type InstanceRuntimeDelete

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

InstanceRuntimeDelete is the builder for deleting a InstanceRuntime entity.

func (*InstanceRuntimeDelete) Exec

func (ird *InstanceRuntimeDelete) Exec(ctx context.Context) (int, error)

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

func (*InstanceRuntimeDelete) ExecX

func (ird *InstanceRuntimeDelete) ExecX(ctx context.Context) int

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

func (*InstanceRuntimeDelete) Where

Where appends a list predicates to the InstanceRuntimeDelete builder.

type InstanceRuntimeDeleteOne

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

InstanceRuntimeDeleteOne is the builder for deleting a single InstanceRuntime entity.

func (*InstanceRuntimeDeleteOne) Exec

Exec executes the deletion query.

func (*InstanceRuntimeDeleteOne) ExecX

func (irdo *InstanceRuntimeDeleteOne) ExecX(ctx context.Context)

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

type InstanceRuntimeEdges

type InstanceRuntimeEdges struct {
	// Instance holds the value of the instance edge.
	Instance *Instance `json:"instance,omitempty"`
	// Caller holds the value of the caller edge.
	Caller *Instance `json:"caller,omitempty"`
	// contains filtered or unexported fields
}

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

func (InstanceRuntimeEdges) CallerOrErr

func (e InstanceRuntimeEdges) CallerOrErr() (*Instance, error)

CallerOrErr returns the Caller value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (InstanceRuntimeEdges) InstanceOrErr

func (e InstanceRuntimeEdges) InstanceOrErr() (*Instance, error)

InstanceOrErr returns the Instance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type InstanceRuntimeGroupBy

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

InstanceRuntimeGroupBy is the group-by builder for InstanceRuntime entities.

func (*InstanceRuntimeGroupBy) Aggregate

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

func (*InstanceRuntimeGroupBy) Bool

func (s *InstanceRuntimeGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*InstanceRuntimeGroupBy) BoolX

func (s *InstanceRuntimeGroupBy) BoolX(ctx context.Context) bool

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

func (*InstanceRuntimeGroupBy) Bools

func (s *InstanceRuntimeGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*InstanceRuntimeGroupBy) BoolsX

func (s *InstanceRuntimeGroupBy) BoolsX(ctx context.Context) []bool

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

func (*InstanceRuntimeGroupBy) Float64

func (s *InstanceRuntimeGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*InstanceRuntimeGroupBy) Float64X

func (s *InstanceRuntimeGroupBy) Float64X(ctx context.Context) float64

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

func (*InstanceRuntimeGroupBy) Float64s

func (s *InstanceRuntimeGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*InstanceRuntimeGroupBy) Float64sX

func (s *InstanceRuntimeGroupBy) Float64sX(ctx context.Context) []float64

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

func (*InstanceRuntimeGroupBy) Int

func (s *InstanceRuntimeGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*InstanceRuntimeGroupBy) IntX

func (s *InstanceRuntimeGroupBy) IntX(ctx context.Context) int

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

func (*InstanceRuntimeGroupBy) Ints

func (s *InstanceRuntimeGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*InstanceRuntimeGroupBy) IntsX

func (s *InstanceRuntimeGroupBy) IntsX(ctx context.Context) []int

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

func (*InstanceRuntimeGroupBy) Scan

func (irgb *InstanceRuntimeGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*InstanceRuntimeGroupBy) ScanX

func (s *InstanceRuntimeGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*InstanceRuntimeGroupBy) String

func (s *InstanceRuntimeGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*InstanceRuntimeGroupBy) StringX

func (s *InstanceRuntimeGroupBy) StringX(ctx context.Context) string

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

func (*InstanceRuntimeGroupBy) Strings

func (s *InstanceRuntimeGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*InstanceRuntimeGroupBy) StringsX

func (s *InstanceRuntimeGroupBy) StringsX(ctx context.Context) []string

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

type InstanceRuntimeMutation

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

InstanceRuntimeMutation represents an operation that mutates the InstanceRuntime nodes in the graph.

func (*InstanceRuntimeMutation) AddAttempts

func (m *InstanceRuntimeMutation) AddAttempts(i int)

AddAttempts adds i to the "attempts" field.

func (*InstanceRuntimeMutation) AddField

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) AddedAttempts

func (m *InstanceRuntimeMutation) AddedAttempts() (r int, exists bool)

AddedAttempts returns the value that was added to the "attempts" field in this mutation.

func (*InstanceRuntimeMutation) AddedEdges

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

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

func (*InstanceRuntimeMutation) AddedField

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) AddedFields

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

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

func (*InstanceRuntimeMutation) AddedIDs

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

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

func (*InstanceRuntimeMutation) Attempts

func (m *InstanceRuntimeMutation) Attempts() (r int, exists bool)

Attempts returns the value of the "attempts" field in the mutation.

func (*InstanceRuntimeMutation) AttemptsCleared

func (m *InstanceRuntimeMutation) AttemptsCleared() bool

AttemptsCleared returns if the "attempts" field was cleared in this mutation.

func (*InstanceRuntimeMutation) CallerCleared

func (m *InstanceRuntimeMutation) CallerCleared() bool

CallerCleared reports if the "caller" edge to the Instance entity was cleared.

func (*InstanceRuntimeMutation) CallerData

func (m *InstanceRuntimeMutation) CallerData() (r string, exists bool)

CallerData returns the value of the "caller_data" field in the mutation.

func (*InstanceRuntimeMutation) CallerDataCleared

func (m *InstanceRuntimeMutation) CallerDataCleared() bool

CallerDataCleared returns if the "caller_data" field was cleared in this mutation.

func (*InstanceRuntimeMutation) CallerID

func (m *InstanceRuntimeMutation) CallerID() (id uuid.UUID, exists bool)

CallerID returns the "caller" edge ID in the mutation.

func (*InstanceRuntimeMutation) CallerIDs

func (m *InstanceRuntimeMutation) CallerIDs() (ids []uuid.UUID)

CallerIDs returns the "caller" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CallerID instead. It exists only for internal usage by the builders.

func (*InstanceRuntimeMutation) ClearAttempts

func (m *InstanceRuntimeMutation) ClearAttempts()

ClearAttempts clears the value of the "attempts" field.

func (*InstanceRuntimeMutation) ClearCaller

func (m *InstanceRuntimeMutation) ClearCaller()

ClearCaller clears the "caller" edge to the Instance entity.

func (*InstanceRuntimeMutation) ClearCallerData

func (m *InstanceRuntimeMutation) ClearCallerData()

ClearCallerData clears the value of the "caller_data" field.

func (*InstanceRuntimeMutation) ClearController

func (m *InstanceRuntimeMutation) ClearController()

ClearController clears the value of the "controller" field.

func (*InstanceRuntimeMutation) ClearDeadline

func (m *InstanceRuntimeMutation) ClearDeadline()

ClearDeadline clears the value of the "deadline" field.

func (*InstanceRuntimeMutation) ClearEdge

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) ClearField

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) ClearFlow

func (m *InstanceRuntimeMutation) ClearFlow()

ClearFlow clears the value of the "flow" field.

func (*InstanceRuntimeMutation) ClearInstance

func (m *InstanceRuntimeMutation) ClearInstance()

ClearInstance clears the "instance" edge to the Instance entity.

func (*InstanceRuntimeMutation) ClearInstanceContext

func (m *InstanceRuntimeMutation) ClearInstanceContext()

ClearInstanceContext clears the value of the "instanceContext" field.

func (*InstanceRuntimeMutation) ClearMemory

func (m *InstanceRuntimeMutation) ClearMemory()

ClearMemory clears the value of the "memory" field.

func (*InstanceRuntimeMutation) ClearMetadata added in v0.6.1

func (m *InstanceRuntimeMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*InstanceRuntimeMutation) ClearOutput

func (m *InstanceRuntimeMutation) ClearOutput()

ClearOutput clears the value of the "output" field.

func (*InstanceRuntimeMutation) ClearStateBeginTime

func (m *InstanceRuntimeMutation) ClearStateBeginTime()

ClearStateBeginTime clears the value of the "stateBeginTime" field.

func (*InstanceRuntimeMutation) ClearStateContext

func (m *InstanceRuntimeMutation) ClearStateContext()

ClearStateContext clears the value of the "stateContext" field.

func (*InstanceRuntimeMutation) ClearedEdges

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

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

func (*InstanceRuntimeMutation) ClearedFields

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

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

func (InstanceRuntimeMutation) Client

func (m InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) Controller

func (m *InstanceRuntimeMutation) Controller() (r string, exists bool)

Controller returns the value of the "controller" field in the mutation.

func (*InstanceRuntimeMutation) ControllerCleared

func (m *InstanceRuntimeMutation) ControllerCleared() bool

ControllerCleared returns if the "controller" field was cleared in this mutation.

func (*InstanceRuntimeMutation) Data

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

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

func (*InstanceRuntimeMutation) Deadline

func (m *InstanceRuntimeMutation) Deadline() (r time.Time, exists bool)

Deadline returns the value of the "deadline" field in the mutation.

func (*InstanceRuntimeMutation) DeadlineCleared

func (m *InstanceRuntimeMutation) DeadlineCleared() bool

DeadlineCleared returns if the "deadline" field was cleared in this mutation.

func (*InstanceRuntimeMutation) EdgeCleared

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

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

func (*InstanceRuntimeMutation) Field

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) FieldCleared

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

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

func (*InstanceRuntimeMutation) Fields

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) Flow

func (m *InstanceRuntimeMutation) Flow() (r []string, exists bool)

Flow returns the value of the "flow" field in the mutation.

func (*InstanceRuntimeMutation) FlowCleared

func (m *InstanceRuntimeMutation) FlowCleared() bool

FlowCleared returns if the "flow" field was cleared in this mutation.

func (*InstanceRuntimeMutation) ID

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) IDs added in v0.6.1

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*InstanceRuntimeMutation) Input

func (m *InstanceRuntimeMutation) Input() (r []byte, exists bool)

Input returns the value of the "input" field in the mutation.

func (*InstanceRuntimeMutation) InstanceCleared

func (m *InstanceRuntimeMutation) InstanceCleared() bool

InstanceCleared reports if the "instance" edge to the Instance entity was cleared.

func (*InstanceRuntimeMutation) InstanceContext

func (m *InstanceRuntimeMutation) InstanceContext() (r string, exists bool)

InstanceContext returns the value of the "instanceContext" field in the mutation.

func (*InstanceRuntimeMutation) InstanceContextCleared

func (m *InstanceRuntimeMutation) InstanceContextCleared() bool

InstanceContextCleared returns if the "instanceContext" field was cleared in this mutation.

func (*InstanceRuntimeMutation) InstanceID

func (m *InstanceRuntimeMutation) InstanceID() (id uuid.UUID, exists bool)

InstanceID returns the "instance" edge ID in the mutation.

func (*InstanceRuntimeMutation) InstanceIDs

func (m *InstanceRuntimeMutation) InstanceIDs() (ids []uuid.UUID)

InstanceIDs returns the "instance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use InstanceID instead. It exists only for internal usage by the builders.

func (*InstanceRuntimeMutation) Memory

func (m *InstanceRuntimeMutation) Memory() (r string, exists bool)

Memory returns the value of the "memory" field in the mutation.

func (*InstanceRuntimeMutation) MemoryCleared

func (m *InstanceRuntimeMutation) MemoryCleared() bool

MemoryCleared returns if the "memory" field was cleared in this mutation.

func (*InstanceRuntimeMutation) Metadata added in v0.6.1

func (m *InstanceRuntimeMutation) Metadata() (r string, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*InstanceRuntimeMutation) MetadataCleared added in v0.6.1

func (m *InstanceRuntimeMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*InstanceRuntimeMutation) OldAttempts

func (m *InstanceRuntimeMutation) OldAttempts(ctx context.Context) (v int, err error)

OldAttempts returns the old "attempts" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldCallerData

func (m *InstanceRuntimeMutation) OldCallerData(ctx context.Context) (v string, err error)

OldCallerData returns the old "caller_data" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldController

func (m *InstanceRuntimeMutation) OldController(ctx context.Context) (v string, err error)

OldController returns the old "controller" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldData

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

OldData returns the old "data" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldDeadline

func (m *InstanceRuntimeMutation) OldDeadline(ctx context.Context) (v time.Time, err error)

OldDeadline returns the old "deadline" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldField

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) OldFlow

func (m *InstanceRuntimeMutation) OldFlow(ctx context.Context) (v []string, err error)

OldFlow returns the old "flow" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldInput

func (m *InstanceRuntimeMutation) OldInput(ctx context.Context) (v []byte, err error)

OldInput returns the old "input" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldInstanceContext

func (m *InstanceRuntimeMutation) OldInstanceContext(ctx context.Context) (v string, err error)

OldInstanceContext returns the old "instanceContext" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldMemory

func (m *InstanceRuntimeMutation) OldMemory(ctx context.Context) (v string, err error)

OldMemory returns the old "memory" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldMetadata added in v0.6.1

func (m *InstanceRuntimeMutation) OldMetadata(ctx context.Context) (v string, err error)

OldMetadata returns the old "metadata" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldOutput

func (m *InstanceRuntimeMutation) OldOutput(ctx context.Context) (v string, err error)

OldOutput returns the old "output" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldStateBeginTime

func (m *InstanceRuntimeMutation) OldStateBeginTime(ctx context.Context) (v time.Time, err error)

OldStateBeginTime returns the old "stateBeginTime" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) OldStateContext

func (m *InstanceRuntimeMutation) OldStateContext(ctx context.Context) (v string, err error)

OldStateContext returns the old "stateContext" field's value of the InstanceRuntime entity. If the InstanceRuntime 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 (*InstanceRuntimeMutation) Op

func (m *InstanceRuntimeMutation) Op() Op

Op returns the operation name.

func (*InstanceRuntimeMutation) Output

func (m *InstanceRuntimeMutation) Output() (r string, exists bool)

Output returns the value of the "output" field in the mutation.

func (*InstanceRuntimeMutation) OutputCleared

func (m *InstanceRuntimeMutation) OutputCleared() bool

OutputCleared returns if the "output" field was cleared in this mutation.

func (*InstanceRuntimeMutation) RemovedEdges

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

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

func (*InstanceRuntimeMutation) RemovedIDs

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) ResetAttempts

func (m *InstanceRuntimeMutation) ResetAttempts()

ResetAttempts resets all changes to the "attempts" field.

func (*InstanceRuntimeMutation) ResetCaller

func (m *InstanceRuntimeMutation) ResetCaller()

ResetCaller resets all changes to the "caller" edge.

func (*InstanceRuntimeMutation) ResetCallerData

func (m *InstanceRuntimeMutation) ResetCallerData()

ResetCallerData resets all changes to the "caller_data" field.

func (*InstanceRuntimeMutation) ResetController

func (m *InstanceRuntimeMutation) ResetController()

ResetController resets all changes to the "controller" field.

func (*InstanceRuntimeMutation) ResetData

func (m *InstanceRuntimeMutation) ResetData()

ResetData resets all changes to the "data" field.

func (*InstanceRuntimeMutation) ResetDeadline

func (m *InstanceRuntimeMutation) ResetDeadline()

ResetDeadline resets all changes to the "deadline" field.

func (*InstanceRuntimeMutation) ResetEdge

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) ResetField

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) ResetFlow

func (m *InstanceRuntimeMutation) ResetFlow()

ResetFlow resets all changes to the "flow" field.

func (*InstanceRuntimeMutation) ResetInput

func (m *InstanceRuntimeMutation) ResetInput()

ResetInput resets all changes to the "input" field.

func (*InstanceRuntimeMutation) ResetInstance

func (m *InstanceRuntimeMutation) ResetInstance()

ResetInstance resets all changes to the "instance" edge.

func (*InstanceRuntimeMutation) ResetInstanceContext

func (m *InstanceRuntimeMutation) ResetInstanceContext()

ResetInstanceContext resets all changes to the "instanceContext" field.

func (*InstanceRuntimeMutation) ResetMemory

func (m *InstanceRuntimeMutation) ResetMemory()

ResetMemory resets all changes to the "memory" field.

func (*InstanceRuntimeMutation) ResetMetadata added in v0.6.1

func (m *InstanceRuntimeMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*InstanceRuntimeMutation) ResetOutput

func (m *InstanceRuntimeMutation) ResetOutput()

ResetOutput resets all changes to the "output" field.

func (*InstanceRuntimeMutation) ResetStateBeginTime

func (m *InstanceRuntimeMutation) ResetStateBeginTime()

ResetStateBeginTime resets all changes to the "stateBeginTime" field.

func (*InstanceRuntimeMutation) ResetStateContext

func (m *InstanceRuntimeMutation) ResetStateContext()

ResetStateContext resets all changes to the "stateContext" field.

func (*InstanceRuntimeMutation) SetAttempts

func (m *InstanceRuntimeMutation) SetAttempts(i int)

SetAttempts sets the "attempts" field.

func (*InstanceRuntimeMutation) SetCallerData

func (m *InstanceRuntimeMutation) SetCallerData(s string)

SetCallerData sets the "caller_data" field.

func (*InstanceRuntimeMutation) SetCallerID

func (m *InstanceRuntimeMutation) SetCallerID(id uuid.UUID)

SetCallerID sets the "caller" edge to the Instance entity by id.

func (*InstanceRuntimeMutation) SetController

func (m *InstanceRuntimeMutation) SetController(s string)

SetController sets the "controller" field.

func (*InstanceRuntimeMutation) SetData

func (m *InstanceRuntimeMutation) SetData(s string)

SetData sets the "data" field.

func (*InstanceRuntimeMutation) SetDeadline

func (m *InstanceRuntimeMutation) SetDeadline(t time.Time)

SetDeadline sets the "deadline" field.

func (*InstanceRuntimeMutation) SetField

func (m *InstanceRuntimeMutation) 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 (*InstanceRuntimeMutation) SetFlow

func (m *InstanceRuntimeMutation) SetFlow(s []string)

SetFlow sets the "flow" field.

func (*InstanceRuntimeMutation) SetID

func (m *InstanceRuntimeMutation) SetID(id uuid.UUID)

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

func (*InstanceRuntimeMutation) SetInput

func (m *InstanceRuntimeMutation) SetInput(b []byte)

SetInput sets the "input" field.

func (*InstanceRuntimeMutation) SetInstanceContext

func (m *InstanceRuntimeMutation) SetInstanceContext(s string)

SetInstanceContext sets the "instanceContext" field.

func (*InstanceRuntimeMutation) SetInstanceID

func (m *InstanceRuntimeMutation) SetInstanceID(id uuid.UUID)

SetInstanceID sets the "instance" edge to the Instance entity by id.

func (*InstanceRuntimeMutation) SetMemory

func (m *InstanceRuntimeMutation) SetMemory(s string)

SetMemory sets the "memory" field.

func (*InstanceRuntimeMutation) SetMetadata added in v0.6.1

func (m *InstanceRuntimeMutation) SetMetadata(s string)

SetMetadata sets the "metadata" field.

func (*InstanceRuntimeMutation) SetOutput

func (m *InstanceRuntimeMutation) SetOutput(s string)

SetOutput sets the "output" field.

func (*InstanceRuntimeMutation) SetStateBeginTime

func (m *InstanceRuntimeMutation) SetStateBeginTime(t time.Time)

SetStateBeginTime sets the "stateBeginTime" field.

func (*InstanceRuntimeMutation) SetStateContext

func (m *InstanceRuntimeMutation) SetStateContext(s string)

SetStateContext sets the "stateContext" field.

func (*InstanceRuntimeMutation) StateBeginTime

func (m *InstanceRuntimeMutation) StateBeginTime() (r time.Time, exists bool)

StateBeginTime returns the value of the "stateBeginTime" field in the mutation.

func (*InstanceRuntimeMutation) StateBeginTimeCleared

func (m *InstanceRuntimeMutation) StateBeginTimeCleared() bool

StateBeginTimeCleared returns if the "stateBeginTime" field was cleared in this mutation.

func (*InstanceRuntimeMutation) StateContext

func (m *InstanceRuntimeMutation) StateContext() (r string, exists bool)

StateContext returns the value of the "stateContext" field in the mutation.

func (*InstanceRuntimeMutation) StateContextCleared

func (m *InstanceRuntimeMutation) StateContextCleared() bool

StateContextCleared returns if the "stateContext" field was cleared in this mutation.

func (InstanceRuntimeMutation) Tx

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

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

func (*InstanceRuntimeMutation) Type

func (m *InstanceRuntimeMutation) Type() string

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

func (*InstanceRuntimeMutation) Where

Where appends a list predicates to the InstanceRuntimeMutation builder.

type InstanceRuntimeQuery

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

InstanceRuntimeQuery is the builder for querying InstanceRuntime entities.

func (*InstanceRuntimeQuery) All

All executes the query and returns a list of InstanceRuntimes.

func (*InstanceRuntimeQuery) AllX

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

func (*InstanceRuntimeQuery) Clone

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

func (*InstanceRuntimeQuery) CollectFields

func (ir *InstanceRuntimeQuery) CollectFields(ctx context.Context, satisfies ...string) *InstanceRuntimeQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*InstanceRuntimeQuery) Count

func (irq *InstanceRuntimeQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*InstanceRuntimeQuery) CountX

func (irq *InstanceRuntimeQuery) CountX(ctx context.Context) int

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

func (*InstanceRuntimeQuery) Exist

func (irq *InstanceRuntimeQuery) Exist(ctx context.Context) (bool, error)

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

func (*InstanceRuntimeQuery) ExistX

func (irq *InstanceRuntimeQuery) ExistX(ctx context.Context) bool

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

func (*InstanceRuntimeQuery) First

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

func (*InstanceRuntimeQuery) FirstID

func (irq *InstanceRuntimeQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*InstanceRuntimeQuery) FirstIDX

func (irq *InstanceRuntimeQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*InstanceRuntimeQuery) FirstX

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

func (*InstanceRuntimeQuery) GroupBy

func (irq *InstanceRuntimeQuery) GroupBy(field string, fields ...string) *InstanceRuntimeGroupBy

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 {
	Input []byte `json:"input,omitempty"`
	Count int `json:"count,omitempty"`
}

client.InstanceRuntime.Query().
	GroupBy(instanceruntime.FieldInput).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*InstanceRuntimeQuery) IDs

func (irq *InstanceRuntimeQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*InstanceRuntimeQuery) IDsX

func (irq *InstanceRuntimeQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*InstanceRuntimeQuery) Limit

func (irq *InstanceRuntimeQuery) Limit(limit int) *InstanceRuntimeQuery

Limit adds a limit step to the query.

func (*InstanceRuntimeQuery) Offset

func (irq *InstanceRuntimeQuery) Offset(offset int) *InstanceRuntimeQuery

Offset adds an offset step to the query.

func (*InstanceRuntimeQuery) Only

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

func (*InstanceRuntimeQuery) OnlyID

func (irq *InstanceRuntimeQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*InstanceRuntimeQuery) OnlyIDX

func (irq *InstanceRuntimeQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*InstanceRuntimeQuery) OnlyX

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

func (*InstanceRuntimeQuery) Order

Order adds an order step to the query.

func (*InstanceRuntimeQuery) QueryCaller

func (irq *InstanceRuntimeQuery) QueryCaller() *InstanceQuery

QueryCaller chains the current query on the "caller" edge.

func (*InstanceRuntimeQuery) QueryInstance

func (irq *InstanceRuntimeQuery) QueryInstance() *InstanceQuery

QueryInstance chains the current query on the "instance" edge.

func (*InstanceRuntimeQuery) Select

func (irq *InstanceRuntimeQuery) Select(fields ...string) *InstanceRuntimeSelect

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 {
	Input []byte `json:"input,omitempty"`
}

client.InstanceRuntime.Query().
	Select(instanceruntime.FieldInput).
	Scan(ctx, &v)

func (*InstanceRuntimeQuery) Unique

func (irq *InstanceRuntimeQuery) Unique(unique bool) *InstanceRuntimeQuery

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 (*InstanceRuntimeQuery) Where

Where adds a new predicate for the InstanceRuntimeQuery builder.

func (*InstanceRuntimeQuery) WithCaller

func (irq *InstanceRuntimeQuery) WithCaller(opts ...func(*InstanceQuery)) *InstanceRuntimeQuery

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

func (*InstanceRuntimeQuery) WithInstance

func (irq *InstanceRuntimeQuery) WithInstance(opts ...func(*InstanceQuery)) *InstanceRuntimeQuery

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.

type InstanceRuntimeSelect

type InstanceRuntimeSelect struct {
	*InstanceRuntimeQuery
	// contains filtered or unexported fields
}

InstanceRuntimeSelect is the builder for selecting fields of InstanceRuntime entities.

func (*InstanceRuntimeSelect) Bool

func (s *InstanceRuntimeSelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*InstanceRuntimeSelect) BoolX

func (s *InstanceRuntimeSelect) BoolX(ctx context.Context) bool

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

func (*InstanceRuntimeSelect) Bools

func (s *InstanceRuntimeSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*InstanceRuntimeSelect) BoolsX

func (s *InstanceRuntimeSelect) BoolsX(ctx context.Context) []bool

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

func (*InstanceRuntimeSelect) Float64

func (s *InstanceRuntimeSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*InstanceRuntimeSelect) Float64X

func (s *InstanceRuntimeSelect) Float64X(ctx context.Context) float64

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

func (*InstanceRuntimeSelect) Float64s

func (s *InstanceRuntimeSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*InstanceRuntimeSelect) Float64sX

func (s *InstanceRuntimeSelect) Float64sX(ctx context.Context) []float64

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

func (*InstanceRuntimeSelect) Int

func (s *InstanceRuntimeSelect) Int(ctx context.Context) (_ int, err error)

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

func (*InstanceRuntimeSelect) IntX

func (s *InstanceRuntimeSelect) IntX(ctx context.Context) int

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

func (*InstanceRuntimeSelect) Ints

func (s *InstanceRuntimeSelect) Ints(ctx context.Context) ([]int, error)

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

func (*InstanceRuntimeSelect) IntsX

func (s *InstanceRuntimeSelect) IntsX(ctx context.Context) []int

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

func (*InstanceRuntimeSelect) Scan

func (irs *InstanceRuntimeSelect) Scan(ctx context.Context, v interface{}) error

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

func (*InstanceRuntimeSelect) ScanX

func (s *InstanceRuntimeSelect) ScanX(ctx context.Context, v interface{})

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

func (*InstanceRuntimeSelect) String

func (s *InstanceRuntimeSelect) String(ctx context.Context) (_ string, err error)

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

func (*InstanceRuntimeSelect) StringX

func (s *InstanceRuntimeSelect) StringX(ctx context.Context) string

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

func (*InstanceRuntimeSelect) Strings

func (s *InstanceRuntimeSelect) Strings(ctx context.Context) ([]string, error)

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

func (*InstanceRuntimeSelect) StringsX

func (s *InstanceRuntimeSelect) StringsX(ctx context.Context) []string

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

type InstanceRuntimeUpdate

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

InstanceRuntimeUpdate is the builder for updating InstanceRuntime entities.

func (*InstanceRuntimeUpdate) AddAttempts

func (iru *InstanceRuntimeUpdate) AddAttempts(i int) *InstanceRuntimeUpdate

AddAttempts adds i to the "attempts" field.

func (*InstanceRuntimeUpdate) ClearAttempts

func (iru *InstanceRuntimeUpdate) ClearAttempts() *InstanceRuntimeUpdate

ClearAttempts clears the value of the "attempts" field.

func (*InstanceRuntimeUpdate) ClearCaller

func (iru *InstanceRuntimeUpdate) ClearCaller() *InstanceRuntimeUpdate

ClearCaller clears the "caller" edge to the Instance entity.

func (*InstanceRuntimeUpdate) ClearCallerData

func (iru *InstanceRuntimeUpdate) ClearCallerData() *InstanceRuntimeUpdate

ClearCallerData clears the value of the "caller_data" field.

func (*InstanceRuntimeUpdate) ClearController

func (iru *InstanceRuntimeUpdate) ClearController() *InstanceRuntimeUpdate

ClearController clears the value of the "controller" field.

func (*InstanceRuntimeUpdate) ClearDeadline

func (iru *InstanceRuntimeUpdate) ClearDeadline() *InstanceRuntimeUpdate

ClearDeadline clears the value of the "deadline" field.

func (*InstanceRuntimeUpdate) ClearFlow

func (iru *InstanceRuntimeUpdate) ClearFlow() *InstanceRuntimeUpdate

ClearFlow clears the value of the "flow" field.

func (*InstanceRuntimeUpdate) ClearInstance

func (iru *InstanceRuntimeUpdate) ClearInstance() *InstanceRuntimeUpdate

ClearInstance clears the "instance" edge to the Instance entity.

func (*InstanceRuntimeUpdate) ClearInstanceContext

func (iru *InstanceRuntimeUpdate) ClearInstanceContext() *InstanceRuntimeUpdate

ClearInstanceContext clears the value of the "instanceContext" field.

func (*InstanceRuntimeUpdate) ClearMemory

func (iru *InstanceRuntimeUpdate) ClearMemory() *InstanceRuntimeUpdate

ClearMemory clears the value of the "memory" field.

func (*InstanceRuntimeUpdate) ClearMetadata added in v0.6.1

func (iru *InstanceRuntimeUpdate) ClearMetadata() *InstanceRuntimeUpdate

ClearMetadata clears the value of the "metadata" field.

func (*InstanceRuntimeUpdate) ClearOutput

func (iru *InstanceRuntimeUpdate) ClearOutput() *InstanceRuntimeUpdate

ClearOutput clears the value of the "output" field.

func (*InstanceRuntimeUpdate) ClearStateBeginTime

func (iru *InstanceRuntimeUpdate) ClearStateBeginTime() *InstanceRuntimeUpdate

ClearStateBeginTime clears the value of the "stateBeginTime" field.

func (*InstanceRuntimeUpdate) ClearStateContext

func (iru *InstanceRuntimeUpdate) ClearStateContext() *InstanceRuntimeUpdate

ClearStateContext clears the value of the "stateContext" field.

func (*InstanceRuntimeUpdate) Exec

func (iru *InstanceRuntimeUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*InstanceRuntimeUpdate) ExecX

func (iru *InstanceRuntimeUpdate) ExecX(ctx context.Context)

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

func (*InstanceRuntimeUpdate) Mutation

Mutation returns the InstanceRuntimeMutation object of the builder.

func (*InstanceRuntimeUpdate) Save

func (iru *InstanceRuntimeUpdate) Save(ctx context.Context) (int, error)

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

func (*InstanceRuntimeUpdate) SaveX

func (iru *InstanceRuntimeUpdate) SaveX(ctx context.Context) int

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

func (*InstanceRuntimeUpdate) SetAttempts

func (iru *InstanceRuntimeUpdate) SetAttempts(i int) *InstanceRuntimeUpdate

SetAttempts sets the "attempts" field.

func (*InstanceRuntimeUpdate) SetCaller

SetCaller sets the "caller" edge to the Instance entity.

func (*InstanceRuntimeUpdate) SetCallerData

func (iru *InstanceRuntimeUpdate) SetCallerData(s string) *InstanceRuntimeUpdate

SetCallerData sets the "caller_data" field.

func (*InstanceRuntimeUpdate) SetCallerID

func (iru *InstanceRuntimeUpdate) SetCallerID(id uuid.UUID) *InstanceRuntimeUpdate

SetCallerID sets the "caller" edge to the Instance entity by ID.

func (*InstanceRuntimeUpdate) SetController

func (iru *InstanceRuntimeUpdate) SetController(s string) *InstanceRuntimeUpdate

SetController sets the "controller" field.

func (*InstanceRuntimeUpdate) SetData

SetData sets the "data" field.

func (*InstanceRuntimeUpdate) SetDeadline

SetDeadline sets the "deadline" field.

func (*InstanceRuntimeUpdate) SetFlow

SetFlow sets the "flow" field.

func (*InstanceRuntimeUpdate) SetInstance

SetInstance sets the "instance" edge to the Instance entity.

func (*InstanceRuntimeUpdate) SetInstanceContext

func (iru *InstanceRuntimeUpdate) SetInstanceContext(s string) *InstanceRuntimeUpdate

SetInstanceContext sets the "instanceContext" field.

func (*InstanceRuntimeUpdate) SetInstanceID

func (iru *InstanceRuntimeUpdate) SetInstanceID(id uuid.UUID) *InstanceRuntimeUpdate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*InstanceRuntimeUpdate) SetMemory

SetMemory sets the "memory" field.

func (*InstanceRuntimeUpdate) SetMetadata added in v0.6.1

func (iru *InstanceRuntimeUpdate) SetMetadata(s string) *InstanceRuntimeUpdate

SetMetadata sets the "metadata" field.

func (*InstanceRuntimeUpdate) SetNillableAttempts

func (iru *InstanceRuntimeUpdate) SetNillableAttempts(i *int) *InstanceRuntimeUpdate

SetNillableAttempts sets the "attempts" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableCallerData

func (iru *InstanceRuntimeUpdate) SetNillableCallerData(s *string) *InstanceRuntimeUpdate

SetNillableCallerData sets the "caller_data" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableCallerID

func (iru *InstanceRuntimeUpdate) SetNillableCallerID(id *uuid.UUID) *InstanceRuntimeUpdate

SetNillableCallerID sets the "caller" edge to the Instance entity by ID if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableController

func (iru *InstanceRuntimeUpdate) SetNillableController(s *string) *InstanceRuntimeUpdate

SetNillableController sets the "controller" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableDeadline

func (iru *InstanceRuntimeUpdate) SetNillableDeadline(t *time.Time) *InstanceRuntimeUpdate

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableInstanceContext

func (iru *InstanceRuntimeUpdate) SetNillableInstanceContext(s *string) *InstanceRuntimeUpdate

SetNillableInstanceContext sets the "instanceContext" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableInstanceID

func (iru *InstanceRuntimeUpdate) SetNillableInstanceID(id *uuid.UUID) *InstanceRuntimeUpdate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableMemory

func (iru *InstanceRuntimeUpdate) SetNillableMemory(s *string) *InstanceRuntimeUpdate

SetNillableMemory sets the "memory" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableMetadata added in v0.6.1

func (iru *InstanceRuntimeUpdate) SetNillableMetadata(s *string) *InstanceRuntimeUpdate

SetNillableMetadata sets the "metadata" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableOutput

func (iru *InstanceRuntimeUpdate) SetNillableOutput(s *string) *InstanceRuntimeUpdate

SetNillableOutput sets the "output" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableStateBeginTime

func (iru *InstanceRuntimeUpdate) SetNillableStateBeginTime(t *time.Time) *InstanceRuntimeUpdate

SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetNillableStateContext

func (iru *InstanceRuntimeUpdate) SetNillableStateContext(s *string) *InstanceRuntimeUpdate

SetNillableStateContext sets the "stateContext" field if the given value is not nil.

func (*InstanceRuntimeUpdate) SetOutput

SetOutput sets the "output" field.

func (*InstanceRuntimeUpdate) SetStateBeginTime

func (iru *InstanceRuntimeUpdate) SetStateBeginTime(t time.Time) *InstanceRuntimeUpdate

SetStateBeginTime sets the "stateBeginTime" field.

func (*InstanceRuntimeUpdate) SetStateContext

func (iru *InstanceRuntimeUpdate) SetStateContext(s string) *InstanceRuntimeUpdate

SetStateContext sets the "stateContext" field.

func (*InstanceRuntimeUpdate) Where

Where appends a list predicates to the InstanceRuntimeUpdate builder.

type InstanceRuntimeUpdateOne

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

InstanceRuntimeUpdateOne is the builder for updating a single InstanceRuntime entity.

func (*InstanceRuntimeUpdateOne) AddAttempts

AddAttempts adds i to the "attempts" field.

func (*InstanceRuntimeUpdateOne) ClearAttempts

func (iruo *InstanceRuntimeUpdateOne) ClearAttempts() *InstanceRuntimeUpdateOne

ClearAttempts clears the value of the "attempts" field.

func (*InstanceRuntimeUpdateOne) ClearCaller

ClearCaller clears the "caller" edge to the Instance entity.

func (*InstanceRuntimeUpdateOne) ClearCallerData

func (iruo *InstanceRuntimeUpdateOne) ClearCallerData() *InstanceRuntimeUpdateOne

ClearCallerData clears the value of the "caller_data" field.

func (*InstanceRuntimeUpdateOne) ClearController

func (iruo *InstanceRuntimeUpdateOne) ClearController() *InstanceRuntimeUpdateOne

ClearController clears the value of the "controller" field.

func (*InstanceRuntimeUpdateOne) ClearDeadline

func (iruo *InstanceRuntimeUpdateOne) ClearDeadline() *InstanceRuntimeUpdateOne

ClearDeadline clears the value of the "deadline" field.

func (*InstanceRuntimeUpdateOne) ClearFlow

ClearFlow clears the value of the "flow" field.

func (*InstanceRuntimeUpdateOne) ClearInstance

func (iruo *InstanceRuntimeUpdateOne) ClearInstance() *InstanceRuntimeUpdateOne

ClearInstance clears the "instance" edge to the Instance entity.

func (*InstanceRuntimeUpdateOne) ClearInstanceContext

func (iruo *InstanceRuntimeUpdateOne) ClearInstanceContext() *InstanceRuntimeUpdateOne

ClearInstanceContext clears the value of the "instanceContext" field.

func (*InstanceRuntimeUpdateOne) ClearMemory

ClearMemory clears the value of the "memory" field.

func (*InstanceRuntimeUpdateOne) ClearMetadata added in v0.6.1

func (iruo *InstanceRuntimeUpdateOne) ClearMetadata() *InstanceRuntimeUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*InstanceRuntimeUpdateOne) ClearOutput

ClearOutput clears the value of the "output" field.

func (*InstanceRuntimeUpdateOne) ClearStateBeginTime

func (iruo *InstanceRuntimeUpdateOne) ClearStateBeginTime() *InstanceRuntimeUpdateOne

ClearStateBeginTime clears the value of the "stateBeginTime" field.

func (*InstanceRuntimeUpdateOne) ClearStateContext

func (iruo *InstanceRuntimeUpdateOne) ClearStateContext() *InstanceRuntimeUpdateOne

ClearStateContext clears the value of the "stateContext" field.

func (*InstanceRuntimeUpdateOne) Exec

Exec executes the query on the entity.

func (*InstanceRuntimeUpdateOne) ExecX

func (iruo *InstanceRuntimeUpdateOne) ExecX(ctx context.Context)

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

func (*InstanceRuntimeUpdateOne) Mutation

Mutation returns the InstanceRuntimeMutation object of the builder.

func (*InstanceRuntimeUpdateOne) Save

Save executes the query and returns the updated InstanceRuntime entity.

func (*InstanceRuntimeUpdateOne) SaveX

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

func (*InstanceRuntimeUpdateOne) Select

func (iruo *InstanceRuntimeUpdateOne) Select(field string, fields ...string) *InstanceRuntimeUpdateOne

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

func (*InstanceRuntimeUpdateOne) SetAttempts

SetAttempts sets the "attempts" field.

func (*InstanceRuntimeUpdateOne) SetCaller

SetCaller sets the "caller" edge to the Instance entity.

func (*InstanceRuntimeUpdateOne) SetCallerData

SetCallerData sets the "caller_data" field.

func (*InstanceRuntimeUpdateOne) SetCallerID

SetCallerID sets the "caller" edge to the Instance entity by ID.

func (*InstanceRuntimeUpdateOne) SetController

SetController sets the "controller" field.

func (*InstanceRuntimeUpdateOne) SetData

SetData sets the "data" field.

func (*InstanceRuntimeUpdateOne) SetDeadline

SetDeadline sets the "deadline" field.

func (*InstanceRuntimeUpdateOne) SetFlow

SetFlow sets the "flow" field.

func (*InstanceRuntimeUpdateOne) SetInstance

SetInstance sets the "instance" edge to the Instance entity.

func (*InstanceRuntimeUpdateOne) SetInstanceContext

func (iruo *InstanceRuntimeUpdateOne) SetInstanceContext(s string) *InstanceRuntimeUpdateOne

SetInstanceContext sets the "instanceContext" field.

func (*InstanceRuntimeUpdateOne) SetInstanceID

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*InstanceRuntimeUpdateOne) SetMemory

SetMemory sets the "memory" field.

func (*InstanceRuntimeUpdateOne) SetMetadata added in v0.6.1

SetMetadata sets the "metadata" field.

func (*InstanceRuntimeUpdateOne) SetNillableAttempts

func (iruo *InstanceRuntimeUpdateOne) SetNillableAttempts(i *int) *InstanceRuntimeUpdateOne

SetNillableAttempts sets the "attempts" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableCallerData

func (iruo *InstanceRuntimeUpdateOne) SetNillableCallerData(s *string) *InstanceRuntimeUpdateOne

SetNillableCallerData sets the "caller_data" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableCallerID

func (iruo *InstanceRuntimeUpdateOne) SetNillableCallerID(id *uuid.UUID) *InstanceRuntimeUpdateOne

SetNillableCallerID sets the "caller" edge to the Instance entity by ID if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableController

func (iruo *InstanceRuntimeUpdateOne) SetNillableController(s *string) *InstanceRuntimeUpdateOne

SetNillableController sets the "controller" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableDeadline

func (iruo *InstanceRuntimeUpdateOne) SetNillableDeadline(t *time.Time) *InstanceRuntimeUpdateOne

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableInstanceContext

func (iruo *InstanceRuntimeUpdateOne) SetNillableInstanceContext(s *string) *InstanceRuntimeUpdateOne

SetNillableInstanceContext sets the "instanceContext" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableInstanceID

func (iruo *InstanceRuntimeUpdateOne) SetNillableInstanceID(id *uuid.UUID) *InstanceRuntimeUpdateOne

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableMemory

func (iruo *InstanceRuntimeUpdateOne) SetNillableMemory(s *string) *InstanceRuntimeUpdateOne

SetNillableMemory sets the "memory" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableMetadata added in v0.6.1

func (iruo *InstanceRuntimeUpdateOne) SetNillableMetadata(s *string) *InstanceRuntimeUpdateOne

SetNillableMetadata sets the "metadata" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableOutput

func (iruo *InstanceRuntimeUpdateOne) SetNillableOutput(s *string) *InstanceRuntimeUpdateOne

SetNillableOutput sets the "output" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableStateBeginTime

func (iruo *InstanceRuntimeUpdateOne) SetNillableStateBeginTime(t *time.Time) *InstanceRuntimeUpdateOne

SetNillableStateBeginTime sets the "stateBeginTime" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetNillableStateContext

func (iruo *InstanceRuntimeUpdateOne) SetNillableStateContext(s *string) *InstanceRuntimeUpdateOne

SetNillableStateContext sets the "stateContext" field if the given value is not nil.

func (*InstanceRuntimeUpdateOne) SetOutput

SetOutput sets the "output" field.

func (*InstanceRuntimeUpdateOne) SetStateBeginTime

func (iruo *InstanceRuntimeUpdateOne) SetStateBeginTime(t time.Time) *InstanceRuntimeUpdateOne

SetStateBeginTime sets the "stateBeginTime" field.

func (*InstanceRuntimeUpdateOne) SetStateContext

func (iruo *InstanceRuntimeUpdateOne) SetStateContext(s string) *InstanceRuntimeUpdateOne

SetStateContext sets the "stateContext" field.

type InstanceRuntimes

type InstanceRuntimes []*InstanceRuntime

InstanceRuntimes is a parsable slice of InstanceRuntime.

type InstanceSelect

type InstanceSelect struct {
	*InstanceQuery
	// contains filtered or unexported fields
}

InstanceSelect is the builder for selecting fields of Instance entities.

func (*InstanceSelect) Bool

func (s *InstanceSelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*InstanceSelect) BoolX

func (s *InstanceSelect) BoolX(ctx context.Context) bool

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

func (*InstanceSelect) Bools

func (s *InstanceSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*InstanceSelect) BoolsX

func (s *InstanceSelect) BoolsX(ctx context.Context) []bool

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

func (*InstanceSelect) Float64

func (s *InstanceSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*InstanceSelect) Float64X

func (s *InstanceSelect) Float64X(ctx context.Context) float64

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

func (*InstanceSelect) Float64s

func (s *InstanceSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*InstanceSelect) Float64sX

func (s *InstanceSelect) Float64sX(ctx context.Context) []float64

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

func (*InstanceSelect) Int

func (s *InstanceSelect) Int(ctx context.Context) (_ int, err error)

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

func (*InstanceSelect) IntX

func (s *InstanceSelect) IntX(ctx context.Context) int

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

func (*InstanceSelect) Ints

func (s *InstanceSelect) Ints(ctx context.Context) ([]int, error)

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

func (*InstanceSelect) IntsX

func (s *InstanceSelect) IntsX(ctx context.Context) []int

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

func (*InstanceSelect) Scan

func (is *InstanceSelect) Scan(ctx context.Context, v interface{}) error

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

func (*InstanceSelect) ScanX

func (s *InstanceSelect) ScanX(ctx context.Context, v interface{})

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

func (*InstanceSelect) String

func (s *InstanceSelect) String(ctx context.Context) (_ string, err error)

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

func (*InstanceSelect) StringX

func (s *InstanceSelect) StringX(ctx context.Context) string

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

func (*InstanceSelect) Strings

func (s *InstanceSelect) Strings(ctx context.Context) ([]string, error)

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

func (*InstanceSelect) StringsX

func (s *InstanceSelect) StringsX(ctx context.Context) []string

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

type InstanceUpdate

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

InstanceUpdate is the builder for updating Instance entities.

func (*InstanceUpdate) AddChildIDs

func (iu *InstanceUpdate) AddChildIDs(ids ...uuid.UUID) *InstanceUpdate

AddChildIDs adds the "children" edge to the InstanceRuntime entity by IDs.

func (*InstanceUpdate) AddChildren

func (iu *InstanceUpdate) AddChildren(i ...*InstanceRuntime) *InstanceUpdate

AddChildren adds the "children" edges to the InstanceRuntime entity.

func (*InstanceUpdate) AddEventlistenerIDs

func (iu *InstanceUpdate) AddEventlistenerIDs(ids ...uuid.UUID) *InstanceUpdate

AddEventlistenerIDs adds the "eventlisteners" edge to the Events entity by IDs.

func (*InstanceUpdate) AddEventlisteners

func (iu *InstanceUpdate) AddEventlisteners(e ...*Events) *InstanceUpdate

AddEventlisteners adds the "eventlisteners" edges to the Events entity.

func (*InstanceUpdate) AddLogIDs

func (iu *InstanceUpdate) AddLogIDs(ids ...uuid.UUID) *InstanceUpdate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*InstanceUpdate) AddLogs

func (iu *InstanceUpdate) AddLogs(l ...*LogMsg) *InstanceUpdate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*InstanceUpdate) AddVarIDs

func (iu *InstanceUpdate) AddVarIDs(ids ...uuid.UUID) *InstanceUpdate

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*InstanceUpdate) AddVars

func (iu *InstanceUpdate) AddVars(v ...*VarRef) *InstanceUpdate

AddVars adds the "vars" edges to the VarRef entity.

func (*InstanceUpdate) ClearChildren

func (iu *InstanceUpdate) ClearChildren() *InstanceUpdate

ClearChildren clears all "children" edges to the InstanceRuntime entity.

func (*InstanceUpdate) ClearEndAt

func (iu *InstanceUpdate) ClearEndAt() *InstanceUpdate

ClearEndAt clears the value of the "end_at" field.

func (*InstanceUpdate) ClearErrorCode

func (iu *InstanceUpdate) ClearErrorCode() *InstanceUpdate

ClearErrorCode clears the value of the "errorCode" field.

func (*InstanceUpdate) ClearErrorMessage

func (iu *InstanceUpdate) ClearErrorMessage() *InstanceUpdate

ClearErrorMessage clears the value of the "errorMessage" field.

func (*InstanceUpdate) ClearEventlisteners

func (iu *InstanceUpdate) ClearEventlisteners() *InstanceUpdate

ClearEventlisteners clears all "eventlisteners" edges to the Events entity.

func (*InstanceUpdate) ClearInvoker added in v0.6.3

func (iu *InstanceUpdate) ClearInvoker() *InstanceUpdate

ClearInvoker clears the value of the "invoker" field.

func (*InstanceUpdate) ClearLogs

func (iu *InstanceUpdate) ClearLogs() *InstanceUpdate

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*InstanceUpdate) ClearNamespace

func (iu *InstanceUpdate) ClearNamespace() *InstanceUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*InstanceUpdate) ClearRevision

func (iu *InstanceUpdate) ClearRevision() *InstanceUpdate

ClearRevision clears the "revision" edge to the Revision entity.

func (*InstanceUpdate) ClearRuntime

func (iu *InstanceUpdate) ClearRuntime() *InstanceUpdate

ClearRuntime clears the "runtime" edge to the InstanceRuntime entity.

func (*InstanceUpdate) ClearVars

func (iu *InstanceUpdate) ClearVars() *InstanceUpdate

ClearVars clears all "vars" edges to the VarRef entity.

func (*InstanceUpdate) ClearWorkflow

func (iu *InstanceUpdate) ClearWorkflow() *InstanceUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*InstanceUpdate) Exec

func (iu *InstanceUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*InstanceUpdate) ExecX

func (iu *InstanceUpdate) ExecX(ctx context.Context)

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

func (*InstanceUpdate) Mutation

func (iu *InstanceUpdate) Mutation() *InstanceMutation

Mutation returns the InstanceMutation object of the builder.

func (*InstanceUpdate) RemoveChildIDs

func (iu *InstanceUpdate) RemoveChildIDs(ids ...uuid.UUID) *InstanceUpdate

RemoveChildIDs removes the "children" edge to InstanceRuntime entities by IDs.

func (*InstanceUpdate) RemoveChildren

func (iu *InstanceUpdate) RemoveChildren(i ...*InstanceRuntime) *InstanceUpdate

RemoveChildren removes "children" edges to InstanceRuntime entities.

func (*InstanceUpdate) RemoveEventlistenerIDs

func (iu *InstanceUpdate) RemoveEventlistenerIDs(ids ...uuid.UUID) *InstanceUpdate

RemoveEventlistenerIDs removes the "eventlisteners" edge to Events entities by IDs.

func (*InstanceUpdate) RemoveEventlisteners

func (iu *InstanceUpdate) RemoveEventlisteners(e ...*Events) *InstanceUpdate

RemoveEventlisteners removes "eventlisteners" edges to Events entities.

func (*InstanceUpdate) RemoveLogIDs

func (iu *InstanceUpdate) RemoveLogIDs(ids ...uuid.UUID) *InstanceUpdate

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*InstanceUpdate) RemoveLogs

func (iu *InstanceUpdate) RemoveLogs(l ...*LogMsg) *InstanceUpdate

RemoveLogs removes "logs" edges to LogMsg entities.

func (*InstanceUpdate) RemoveVarIDs

func (iu *InstanceUpdate) RemoveVarIDs(ids ...uuid.UUID) *InstanceUpdate

RemoveVarIDs removes the "vars" edge to VarRef entities by IDs.

func (*InstanceUpdate) RemoveVars

func (iu *InstanceUpdate) RemoveVars(v ...*VarRef) *InstanceUpdate

RemoveVars removes "vars" edges to VarRef entities.

func (*InstanceUpdate) Save

func (iu *InstanceUpdate) Save(ctx context.Context) (int, error)

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

func (*InstanceUpdate) SaveX

func (iu *InstanceUpdate) SaveX(ctx context.Context) int

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

func (*InstanceUpdate) SetEndAt

func (iu *InstanceUpdate) SetEndAt(t time.Time) *InstanceUpdate

SetEndAt sets the "end_at" field.

func (*InstanceUpdate) SetErrorCode

func (iu *InstanceUpdate) SetErrorCode(s string) *InstanceUpdate

SetErrorCode sets the "errorCode" field.

func (*InstanceUpdate) SetErrorMessage

func (iu *InstanceUpdate) SetErrorMessage(s string) *InstanceUpdate

SetErrorMessage sets the "errorMessage" field.

func (*InstanceUpdate) SetInvoker added in v0.6.3

func (iu *InstanceUpdate) SetInvoker(s string) *InstanceUpdate

SetInvoker sets the "invoker" field.

func (*InstanceUpdate) SetNamespace

func (iu *InstanceUpdate) SetNamespace(n *Namespace) *InstanceUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*InstanceUpdate) SetNamespaceID

func (iu *InstanceUpdate) SetNamespaceID(id uuid.UUID) *InstanceUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*InstanceUpdate) SetNillableEndAt

func (iu *InstanceUpdate) SetNillableEndAt(t *time.Time) *InstanceUpdate

SetNillableEndAt sets the "end_at" field if the given value is not nil.

func (*InstanceUpdate) SetNillableErrorCode

func (iu *InstanceUpdate) SetNillableErrorCode(s *string) *InstanceUpdate

SetNillableErrorCode sets the "errorCode" field if the given value is not nil.

func (*InstanceUpdate) SetNillableErrorMessage

func (iu *InstanceUpdate) SetNillableErrorMessage(s *string) *InstanceUpdate

SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.

func (*InstanceUpdate) SetNillableInvoker added in v0.6.3

func (iu *InstanceUpdate) SetNillableInvoker(s *string) *InstanceUpdate

SetNillableInvoker sets the "invoker" field if the given value is not nil.

func (*InstanceUpdate) SetNillableRevisionID added in v0.6.1

func (iu *InstanceUpdate) SetNillableRevisionID(id *uuid.UUID) *InstanceUpdate

SetNillableRevisionID sets the "revision" edge to the Revision entity by ID if the given value is not nil.

func (*InstanceUpdate) SetNillableWorkflowID added in v0.6.1

func (iu *InstanceUpdate) SetNillableWorkflowID(id *uuid.UUID) *InstanceUpdate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*InstanceUpdate) SetRevision

func (iu *InstanceUpdate) SetRevision(r *Revision) *InstanceUpdate

SetRevision sets the "revision" edge to the Revision entity.

func (*InstanceUpdate) SetRevisionID

func (iu *InstanceUpdate) SetRevisionID(id uuid.UUID) *InstanceUpdate

SetRevisionID sets the "revision" edge to the Revision entity by ID.

func (*InstanceUpdate) SetRuntime

func (iu *InstanceUpdate) SetRuntime(i *InstanceRuntime) *InstanceUpdate

SetRuntime sets the "runtime" edge to the InstanceRuntime entity.

func (*InstanceUpdate) SetRuntimeID

func (iu *InstanceUpdate) SetRuntimeID(id uuid.UUID) *InstanceUpdate

SetRuntimeID sets the "runtime" edge to the InstanceRuntime entity by ID.

func (*InstanceUpdate) SetStatus

func (iu *InstanceUpdate) SetStatus(s string) *InstanceUpdate

SetStatus sets the "status" field.

func (*InstanceUpdate) SetUpdatedAt

func (iu *InstanceUpdate) SetUpdatedAt(t time.Time) *InstanceUpdate

SetUpdatedAt sets the "updated_at" field.

func (*InstanceUpdate) SetWorkflow

func (iu *InstanceUpdate) SetWorkflow(w *Workflow) *InstanceUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*InstanceUpdate) SetWorkflowID

func (iu *InstanceUpdate) SetWorkflowID(id uuid.UUID) *InstanceUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*InstanceUpdate) Where

func (iu *InstanceUpdate) Where(ps ...predicate.Instance) *InstanceUpdate

Where appends a list predicates to the InstanceUpdate builder.

type InstanceUpdateOne

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

InstanceUpdateOne is the builder for updating a single Instance entity.

func (*InstanceUpdateOne) AddChildIDs

func (iuo *InstanceUpdateOne) AddChildIDs(ids ...uuid.UUID) *InstanceUpdateOne

AddChildIDs adds the "children" edge to the InstanceRuntime entity by IDs.

func (*InstanceUpdateOne) AddChildren

func (iuo *InstanceUpdateOne) AddChildren(i ...*InstanceRuntime) *InstanceUpdateOne

AddChildren adds the "children" edges to the InstanceRuntime entity.

func (*InstanceUpdateOne) AddEventlistenerIDs

func (iuo *InstanceUpdateOne) AddEventlistenerIDs(ids ...uuid.UUID) *InstanceUpdateOne

AddEventlistenerIDs adds the "eventlisteners" edge to the Events entity by IDs.

func (*InstanceUpdateOne) AddEventlisteners

func (iuo *InstanceUpdateOne) AddEventlisteners(e ...*Events) *InstanceUpdateOne

AddEventlisteners adds the "eventlisteners" edges to the Events entity.

func (*InstanceUpdateOne) AddLogIDs

func (iuo *InstanceUpdateOne) AddLogIDs(ids ...uuid.UUID) *InstanceUpdateOne

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*InstanceUpdateOne) AddLogs

func (iuo *InstanceUpdateOne) AddLogs(l ...*LogMsg) *InstanceUpdateOne

AddLogs adds the "logs" edges to the LogMsg entity.

func (*InstanceUpdateOne) AddVarIDs

func (iuo *InstanceUpdateOne) AddVarIDs(ids ...uuid.UUID) *InstanceUpdateOne

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*InstanceUpdateOne) AddVars

func (iuo *InstanceUpdateOne) AddVars(v ...*VarRef) *InstanceUpdateOne

AddVars adds the "vars" edges to the VarRef entity.

func (*InstanceUpdateOne) ClearChildren

func (iuo *InstanceUpdateOne) ClearChildren() *InstanceUpdateOne

ClearChildren clears all "children" edges to the InstanceRuntime entity.

func (*InstanceUpdateOne) ClearEndAt

func (iuo *InstanceUpdateOne) ClearEndAt() *InstanceUpdateOne

ClearEndAt clears the value of the "end_at" field.

func (*InstanceUpdateOne) ClearErrorCode

func (iuo *InstanceUpdateOne) ClearErrorCode() *InstanceUpdateOne

ClearErrorCode clears the value of the "errorCode" field.

func (*InstanceUpdateOne) ClearErrorMessage

func (iuo *InstanceUpdateOne) ClearErrorMessage() *InstanceUpdateOne

ClearErrorMessage clears the value of the "errorMessage" field.

func (*InstanceUpdateOne) ClearEventlisteners

func (iuo *InstanceUpdateOne) ClearEventlisteners() *InstanceUpdateOne

ClearEventlisteners clears all "eventlisteners" edges to the Events entity.

func (*InstanceUpdateOne) ClearInvoker added in v0.6.3

func (iuo *InstanceUpdateOne) ClearInvoker() *InstanceUpdateOne

ClearInvoker clears the value of the "invoker" field.

func (*InstanceUpdateOne) ClearLogs

func (iuo *InstanceUpdateOne) ClearLogs() *InstanceUpdateOne

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*InstanceUpdateOne) ClearNamespace

func (iuo *InstanceUpdateOne) ClearNamespace() *InstanceUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*InstanceUpdateOne) ClearRevision

func (iuo *InstanceUpdateOne) ClearRevision() *InstanceUpdateOne

ClearRevision clears the "revision" edge to the Revision entity.

func (*InstanceUpdateOne) ClearRuntime

func (iuo *InstanceUpdateOne) ClearRuntime() *InstanceUpdateOne

ClearRuntime clears the "runtime" edge to the InstanceRuntime entity.

func (*InstanceUpdateOne) ClearVars

func (iuo *InstanceUpdateOne) ClearVars() *InstanceUpdateOne

ClearVars clears all "vars" edges to the VarRef entity.

func (*InstanceUpdateOne) ClearWorkflow

func (iuo *InstanceUpdateOne) ClearWorkflow() *InstanceUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*InstanceUpdateOne) Exec

func (iuo *InstanceUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*InstanceUpdateOne) ExecX

func (iuo *InstanceUpdateOne) ExecX(ctx context.Context)

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

func (*InstanceUpdateOne) Mutation

func (iuo *InstanceUpdateOne) Mutation() *InstanceMutation

Mutation returns the InstanceMutation object of the builder.

func (*InstanceUpdateOne) RemoveChildIDs

func (iuo *InstanceUpdateOne) RemoveChildIDs(ids ...uuid.UUID) *InstanceUpdateOne

RemoveChildIDs removes the "children" edge to InstanceRuntime entities by IDs.

func (*InstanceUpdateOne) RemoveChildren

func (iuo *InstanceUpdateOne) RemoveChildren(i ...*InstanceRuntime) *InstanceUpdateOne

RemoveChildren removes "children" edges to InstanceRuntime entities.

func (*InstanceUpdateOne) RemoveEventlistenerIDs

func (iuo *InstanceUpdateOne) RemoveEventlistenerIDs(ids ...uuid.UUID) *InstanceUpdateOne

RemoveEventlistenerIDs removes the "eventlisteners" edge to Events entities by IDs.

func (*InstanceUpdateOne) RemoveEventlisteners

func (iuo *InstanceUpdateOne) RemoveEventlisteners(e ...*Events) *InstanceUpdateOne

RemoveEventlisteners removes "eventlisteners" edges to Events entities.

func (*InstanceUpdateOne) RemoveLogIDs

func (iuo *InstanceUpdateOne) RemoveLogIDs(ids ...uuid.UUID) *InstanceUpdateOne

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*InstanceUpdateOne) RemoveLogs

func (iuo *InstanceUpdateOne) RemoveLogs(l ...*LogMsg) *InstanceUpdateOne

RemoveLogs removes "logs" edges to LogMsg entities.

func (*InstanceUpdateOne) RemoveVarIDs

func (iuo *InstanceUpdateOne) RemoveVarIDs(ids ...uuid.UUID) *InstanceUpdateOne

RemoveVarIDs removes the "vars" edge to VarRef entities by IDs.

func (*InstanceUpdateOne) RemoveVars

func (iuo *InstanceUpdateOne) RemoveVars(v ...*VarRef) *InstanceUpdateOne

RemoveVars removes "vars" edges to VarRef entities.

func (*InstanceUpdateOne) Save

func (iuo *InstanceUpdateOne) Save(ctx context.Context) (*Instance, error)

Save executes the query and returns the updated Instance entity.

func (*InstanceUpdateOne) SaveX

func (iuo *InstanceUpdateOne) SaveX(ctx context.Context) *Instance

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

func (*InstanceUpdateOne) Select

func (iuo *InstanceUpdateOne) Select(field string, fields ...string) *InstanceUpdateOne

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

func (*InstanceUpdateOne) SetEndAt

func (iuo *InstanceUpdateOne) SetEndAt(t time.Time) *InstanceUpdateOne

SetEndAt sets the "end_at" field.

func (*InstanceUpdateOne) SetErrorCode

func (iuo *InstanceUpdateOne) SetErrorCode(s string) *InstanceUpdateOne

SetErrorCode sets the "errorCode" field.

func (*InstanceUpdateOne) SetErrorMessage

func (iuo *InstanceUpdateOne) SetErrorMessage(s string) *InstanceUpdateOne

SetErrorMessage sets the "errorMessage" field.

func (*InstanceUpdateOne) SetInvoker added in v0.6.3

func (iuo *InstanceUpdateOne) SetInvoker(s string) *InstanceUpdateOne

SetInvoker sets the "invoker" field.

func (*InstanceUpdateOne) SetNamespace

func (iuo *InstanceUpdateOne) SetNamespace(n *Namespace) *InstanceUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*InstanceUpdateOne) SetNamespaceID

func (iuo *InstanceUpdateOne) SetNamespaceID(id uuid.UUID) *InstanceUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*InstanceUpdateOne) SetNillableEndAt

func (iuo *InstanceUpdateOne) SetNillableEndAt(t *time.Time) *InstanceUpdateOne

SetNillableEndAt sets the "end_at" field if the given value is not nil.

func (*InstanceUpdateOne) SetNillableErrorCode

func (iuo *InstanceUpdateOne) SetNillableErrorCode(s *string) *InstanceUpdateOne

SetNillableErrorCode sets the "errorCode" field if the given value is not nil.

func (*InstanceUpdateOne) SetNillableErrorMessage

func (iuo *InstanceUpdateOne) SetNillableErrorMessage(s *string) *InstanceUpdateOne

SetNillableErrorMessage sets the "errorMessage" field if the given value is not nil.

func (*InstanceUpdateOne) SetNillableInvoker added in v0.6.3

func (iuo *InstanceUpdateOne) SetNillableInvoker(s *string) *InstanceUpdateOne

SetNillableInvoker sets the "invoker" field if the given value is not nil.

func (*InstanceUpdateOne) SetNillableRevisionID added in v0.6.1

func (iuo *InstanceUpdateOne) SetNillableRevisionID(id *uuid.UUID) *InstanceUpdateOne

SetNillableRevisionID sets the "revision" edge to the Revision entity by ID if the given value is not nil.

func (*InstanceUpdateOne) SetNillableWorkflowID added in v0.6.1

func (iuo *InstanceUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *InstanceUpdateOne

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*InstanceUpdateOne) SetRevision

func (iuo *InstanceUpdateOne) SetRevision(r *Revision) *InstanceUpdateOne

SetRevision sets the "revision" edge to the Revision entity.

func (*InstanceUpdateOne) SetRevisionID

func (iuo *InstanceUpdateOne) SetRevisionID(id uuid.UUID) *InstanceUpdateOne

SetRevisionID sets the "revision" edge to the Revision entity by ID.

func (*InstanceUpdateOne) SetRuntime

SetRuntime sets the "runtime" edge to the InstanceRuntime entity.

func (*InstanceUpdateOne) SetRuntimeID

func (iuo *InstanceUpdateOne) SetRuntimeID(id uuid.UUID) *InstanceUpdateOne

SetRuntimeID sets the "runtime" edge to the InstanceRuntime entity by ID.

func (*InstanceUpdateOne) SetStatus

func (iuo *InstanceUpdateOne) SetStatus(s string) *InstanceUpdateOne

SetStatus sets the "status" field.

func (*InstanceUpdateOne) SetUpdatedAt

func (iuo *InstanceUpdateOne) SetUpdatedAt(t time.Time) *InstanceUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*InstanceUpdateOne) SetWorkflow

func (iuo *InstanceUpdateOne) SetWorkflow(w *Workflow) *InstanceUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*InstanceUpdateOne) SetWorkflowID

func (iuo *InstanceUpdateOne) SetWorkflowID(id uuid.UUID) *InstanceUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type Instances

type Instances []*Instance

Instances is a parsable slice of Instance.

type LogMsg

type LogMsg struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// T holds the value of the "t" field.
	T time.Time `json:"t,omitempty"`
	// Msg holds the value of the "msg" field.
	Msg string `json:"msg,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the LogMsgQuery when eager-loading is set.
	Edges LogMsgEdges `json:"edges"`
	// contains filtered or unexported fields
}

LogMsg is the model entity for the LogMsg schema.

func (*LogMsg) Activity added in v0.6.6

func (lm *LogMsg) Activity(ctx context.Context) (*MirrorActivity, error)

func (*LogMsg) Instance

func (lm *LogMsg) Instance(ctx context.Context) (*Instance, error)

func (*LogMsg) Namespace

func (lm *LogMsg) Namespace(ctx context.Context) (*Namespace, error)

func (*LogMsg) QueryActivity added in v0.6.6

func (lm *LogMsg) QueryActivity() *MirrorActivityQuery

QueryActivity queries the "activity" edge of the LogMsg entity.

func (*LogMsg) QueryInstance

func (lm *LogMsg) QueryInstance() *InstanceQuery

QueryInstance queries the "instance" edge of the LogMsg entity.

func (*LogMsg) QueryNamespace

func (lm *LogMsg) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the LogMsg entity.

func (*LogMsg) QueryWorkflow

func (lm *LogMsg) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the LogMsg entity.

func (*LogMsg) String

func (lm *LogMsg) String() string

String implements the fmt.Stringer.

func (*LogMsg) Unwrap

func (lm *LogMsg) Unwrap() *LogMsg

Unwrap unwraps the LogMsg 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 (*LogMsg) Update

func (lm *LogMsg) Update() *LogMsgUpdateOne

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

func (*LogMsg) Workflow

func (lm *LogMsg) Workflow(ctx context.Context) (*Workflow, error)

type LogMsgClient

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

LogMsgClient is a client for the LogMsg schema.

func NewLogMsgClient

func NewLogMsgClient(c config) *LogMsgClient

NewLogMsgClient returns a client for the LogMsg from the given config.

func (*LogMsgClient) Create

func (c *LogMsgClient) Create() *LogMsgCreate

Create returns a builder for creating a LogMsg entity.

func (*LogMsgClient) CreateBulk

func (c *LogMsgClient) CreateBulk(builders ...*LogMsgCreate) *LogMsgCreateBulk

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

func (*LogMsgClient) Delete

func (c *LogMsgClient) Delete() *LogMsgDelete

Delete returns a delete builder for LogMsg.

func (*LogMsgClient) DeleteOne

func (c *LogMsgClient) DeleteOne(lm *LogMsg) *LogMsgDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*LogMsgClient) DeleteOneID

func (c *LogMsgClient) DeleteOneID(id uuid.UUID) *LogMsgDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*LogMsgClient) Get

func (c *LogMsgClient) Get(ctx context.Context, id uuid.UUID) (*LogMsg, error)

Get returns a LogMsg entity by its id.

func (*LogMsgClient) GetX

func (c *LogMsgClient) GetX(ctx context.Context, id uuid.UUID) *LogMsg

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

func (*LogMsgClient) Hooks

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

Hooks returns the client hooks.

func (*LogMsgClient) Query

func (c *LogMsgClient) Query() *LogMsgQuery

Query returns a query builder for LogMsg.

func (*LogMsgClient) QueryActivity added in v0.6.6

func (c *LogMsgClient) QueryActivity(lm *LogMsg) *MirrorActivityQuery

QueryActivity queries the activity edge of a LogMsg.

func (*LogMsgClient) QueryInstance

func (c *LogMsgClient) QueryInstance(lm *LogMsg) *InstanceQuery

QueryInstance queries the instance edge of a LogMsg.

func (*LogMsgClient) QueryNamespace

func (c *LogMsgClient) QueryNamespace(lm *LogMsg) *NamespaceQuery

QueryNamespace queries the namespace edge of a LogMsg.

func (*LogMsgClient) QueryWorkflow

func (c *LogMsgClient) QueryWorkflow(lm *LogMsg) *WorkflowQuery

QueryWorkflow queries the workflow edge of a LogMsg.

func (*LogMsgClient) Update

func (c *LogMsgClient) Update() *LogMsgUpdate

Update returns an update builder for LogMsg.

func (*LogMsgClient) UpdateOne

func (c *LogMsgClient) UpdateOne(lm *LogMsg) *LogMsgUpdateOne

UpdateOne returns an update builder for the given entity.

func (*LogMsgClient) UpdateOneID

func (c *LogMsgClient) UpdateOneID(id uuid.UUID) *LogMsgUpdateOne

UpdateOneID returns an update builder for the given id.

func (*LogMsgClient) Use

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

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

type LogMsgCreate

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

LogMsgCreate is the builder for creating a LogMsg entity.

func (*LogMsgCreate) Exec

func (lmc *LogMsgCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*LogMsgCreate) ExecX

func (lmc *LogMsgCreate) ExecX(ctx context.Context)

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

func (*LogMsgCreate) Mutation

func (lmc *LogMsgCreate) Mutation() *LogMsgMutation

Mutation returns the LogMsgMutation object of the builder.

func (*LogMsgCreate) Save

func (lmc *LogMsgCreate) Save(ctx context.Context) (*LogMsg, error)

Save creates the LogMsg in the database.

func (*LogMsgCreate) SaveX

func (lmc *LogMsgCreate) SaveX(ctx context.Context) *LogMsg

SaveX calls Save and panics if Save returns an error.

func (*LogMsgCreate) SetActivity added in v0.6.6

func (lmc *LogMsgCreate) SetActivity(m *MirrorActivity) *LogMsgCreate

SetActivity sets the "activity" edge to the MirrorActivity entity.

func (*LogMsgCreate) SetActivityID added in v0.6.6

func (lmc *LogMsgCreate) SetActivityID(id uuid.UUID) *LogMsgCreate

SetActivityID sets the "activity" edge to the MirrorActivity entity by ID.

func (*LogMsgCreate) SetID

func (lmc *LogMsgCreate) SetID(u uuid.UUID) *LogMsgCreate

SetID sets the "id" field.

func (*LogMsgCreate) SetInstance

func (lmc *LogMsgCreate) SetInstance(i *Instance) *LogMsgCreate

SetInstance sets the "instance" edge to the Instance entity.

func (*LogMsgCreate) SetInstanceID

func (lmc *LogMsgCreate) SetInstanceID(id uuid.UUID) *LogMsgCreate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*LogMsgCreate) SetMsg

func (lmc *LogMsgCreate) SetMsg(s string) *LogMsgCreate

SetMsg sets the "msg" field.

func (*LogMsgCreate) SetNamespace

func (lmc *LogMsgCreate) SetNamespace(n *Namespace) *LogMsgCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*LogMsgCreate) SetNamespaceID

func (lmc *LogMsgCreate) SetNamespaceID(id uuid.UUID) *LogMsgCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*LogMsgCreate) SetNillableActivityID added in v0.6.6

func (lmc *LogMsgCreate) SetNillableActivityID(id *uuid.UUID) *LogMsgCreate

SetNillableActivityID sets the "activity" edge to the MirrorActivity entity by ID if the given value is not nil.

func (*LogMsgCreate) SetNillableID added in v0.6.1

func (lmc *LogMsgCreate) SetNillableID(u *uuid.UUID) *LogMsgCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*LogMsgCreate) SetNillableInstanceID

func (lmc *LogMsgCreate) SetNillableInstanceID(id *uuid.UUID) *LogMsgCreate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*LogMsgCreate) SetNillableNamespaceID

func (lmc *LogMsgCreate) SetNillableNamespaceID(id *uuid.UUID) *LogMsgCreate

SetNillableNamespaceID sets the "namespace" edge to the Namespace entity by ID if the given value is not nil.

func (*LogMsgCreate) SetNillableWorkflowID

func (lmc *LogMsgCreate) SetNillableWorkflowID(id *uuid.UUID) *LogMsgCreate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*LogMsgCreate) SetT

func (lmc *LogMsgCreate) SetT(t time.Time) *LogMsgCreate

SetT sets the "t" field.

func (*LogMsgCreate) SetWorkflow

func (lmc *LogMsgCreate) SetWorkflow(w *Workflow) *LogMsgCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*LogMsgCreate) SetWorkflowID

func (lmc *LogMsgCreate) SetWorkflowID(id uuid.UUID) *LogMsgCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type LogMsgCreateBulk

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

LogMsgCreateBulk is the builder for creating many LogMsg entities in bulk.

func (*LogMsgCreateBulk) Exec

func (lmcb *LogMsgCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*LogMsgCreateBulk) ExecX

func (lmcb *LogMsgCreateBulk) ExecX(ctx context.Context)

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

func (*LogMsgCreateBulk) Save

func (lmcb *LogMsgCreateBulk) Save(ctx context.Context) ([]*LogMsg, error)

Save creates the LogMsg entities in the database.

func (*LogMsgCreateBulk) SaveX

func (lmcb *LogMsgCreateBulk) SaveX(ctx context.Context) []*LogMsg

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

type LogMsgDelete

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

LogMsgDelete is the builder for deleting a LogMsg entity.

func (*LogMsgDelete) Exec

func (lmd *LogMsgDelete) Exec(ctx context.Context) (int, error)

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

func (*LogMsgDelete) ExecX

func (lmd *LogMsgDelete) ExecX(ctx context.Context) int

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

func (*LogMsgDelete) Where

func (lmd *LogMsgDelete) Where(ps ...predicate.LogMsg) *LogMsgDelete

Where appends a list predicates to the LogMsgDelete builder.

type LogMsgDeleteOne

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

LogMsgDeleteOne is the builder for deleting a single LogMsg entity.

func (*LogMsgDeleteOne) Exec

func (lmdo *LogMsgDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*LogMsgDeleteOne) ExecX

func (lmdo *LogMsgDeleteOne) ExecX(ctx context.Context)

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

type LogMsgEdges

type LogMsgEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Instance holds the value of the instance edge.
	Instance *Instance `json:"instance,omitempty"`
	// Activity holds the value of the activity edge.
	Activity *MirrorActivity `json:"activity,omitempty"`
	// contains filtered or unexported fields
}

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

func (LogMsgEdges) ActivityOrErr added in v0.6.6

func (e LogMsgEdges) ActivityOrErr() (*MirrorActivity, error)

ActivityOrErr returns the Activity value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (LogMsgEdges) InstanceOrErr

func (e LogMsgEdges) InstanceOrErr() (*Instance, error)

InstanceOrErr returns the Instance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (LogMsgEdges) NamespaceOrErr

func (e LogMsgEdges) 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 (LogMsgEdges) WorkflowOrErr

func (e LogMsgEdges) 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 LogMsgGroupBy

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

LogMsgGroupBy is the group-by builder for LogMsg entities.

func (*LogMsgGroupBy) Aggregate

func (lmgb *LogMsgGroupBy) Aggregate(fns ...AggregateFunc) *LogMsgGroupBy

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

func (*LogMsgGroupBy) Bool

func (s *LogMsgGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*LogMsgGroupBy) BoolX

func (s *LogMsgGroupBy) BoolX(ctx context.Context) bool

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

func (*LogMsgGroupBy) Bools

func (s *LogMsgGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*LogMsgGroupBy) BoolsX

func (s *LogMsgGroupBy) BoolsX(ctx context.Context) []bool

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

func (*LogMsgGroupBy) Float64

func (s *LogMsgGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*LogMsgGroupBy) Float64X

func (s *LogMsgGroupBy) Float64X(ctx context.Context) float64

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

func (*LogMsgGroupBy) Float64s

func (s *LogMsgGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*LogMsgGroupBy) Float64sX

func (s *LogMsgGroupBy) Float64sX(ctx context.Context) []float64

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

func (*LogMsgGroupBy) Int

func (s *LogMsgGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*LogMsgGroupBy) IntX

func (s *LogMsgGroupBy) IntX(ctx context.Context) int

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

func (*LogMsgGroupBy) Ints

func (s *LogMsgGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*LogMsgGroupBy) IntsX

func (s *LogMsgGroupBy) IntsX(ctx context.Context) []int

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

func (*LogMsgGroupBy) Scan

func (lmgb *LogMsgGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*LogMsgGroupBy) ScanX

func (s *LogMsgGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*LogMsgGroupBy) String

func (s *LogMsgGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*LogMsgGroupBy) StringX

func (s *LogMsgGroupBy) StringX(ctx context.Context) string

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

func (*LogMsgGroupBy) Strings

func (s *LogMsgGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*LogMsgGroupBy) StringsX

func (s *LogMsgGroupBy) StringsX(ctx context.Context) []string

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

type LogMsgMutation

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

LogMsgMutation represents an operation that mutates the LogMsg nodes in the graph.

func (*LogMsgMutation) ActivityCleared added in v0.6.6

func (m *LogMsgMutation) ActivityCleared() bool

ActivityCleared reports if the "activity" edge to the MirrorActivity entity was cleared.

func (*LogMsgMutation) ActivityID added in v0.6.6

func (m *LogMsgMutation) ActivityID() (id uuid.UUID, exists bool)

ActivityID returns the "activity" edge ID in the mutation.

func (*LogMsgMutation) ActivityIDs added in v0.6.6

func (m *LogMsgMutation) ActivityIDs() (ids []uuid.UUID)

ActivityIDs returns the "activity" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ActivityID instead. It exists only for internal usage by the builders.

func (*LogMsgMutation) AddField

func (m *LogMsgMutation) 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 (*LogMsgMutation) AddedEdges

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

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

func (*LogMsgMutation) AddedField

func (m *LogMsgMutation) 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 (*LogMsgMutation) AddedFields

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

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

func (*LogMsgMutation) AddedIDs

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

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

func (*LogMsgMutation) ClearActivity added in v0.6.6

func (m *LogMsgMutation) ClearActivity()

ClearActivity clears the "activity" edge to the MirrorActivity entity.

func (*LogMsgMutation) ClearEdge

func (m *LogMsgMutation) 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 (*LogMsgMutation) ClearField

func (m *LogMsgMutation) 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 (*LogMsgMutation) ClearInstance

func (m *LogMsgMutation) ClearInstance()

ClearInstance clears the "instance" edge to the Instance entity.

func (*LogMsgMutation) ClearNamespace

func (m *LogMsgMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*LogMsgMutation) ClearWorkflow

func (m *LogMsgMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*LogMsgMutation) ClearedEdges

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

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

func (*LogMsgMutation) ClearedFields

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

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

func (LogMsgMutation) Client

func (m LogMsgMutation) 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 (*LogMsgMutation) EdgeCleared

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

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

func (*LogMsgMutation) Field

func (m *LogMsgMutation) 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 (*LogMsgMutation) FieldCleared

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

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

func (*LogMsgMutation) Fields

func (m *LogMsgMutation) 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 (*LogMsgMutation) ID

func (m *LogMsgMutation) 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 (*LogMsgMutation) IDs added in v0.6.1

func (m *LogMsgMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*LogMsgMutation) InstanceCleared

func (m *LogMsgMutation) InstanceCleared() bool

InstanceCleared reports if the "instance" edge to the Instance entity was cleared.

func (*LogMsgMutation) InstanceID

func (m *LogMsgMutation) InstanceID() (id uuid.UUID, exists bool)

InstanceID returns the "instance" edge ID in the mutation.

func (*LogMsgMutation) InstanceIDs

func (m *LogMsgMutation) InstanceIDs() (ids []uuid.UUID)

InstanceIDs returns the "instance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use InstanceID instead. It exists only for internal usage by the builders.

func (*LogMsgMutation) Msg

func (m *LogMsgMutation) Msg() (r string, exists bool)

Msg returns the value of the "msg" field in the mutation.

func (*LogMsgMutation) NamespaceCleared

func (m *LogMsgMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*LogMsgMutation) NamespaceID

func (m *LogMsgMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*LogMsgMutation) NamespaceIDs

func (m *LogMsgMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*LogMsgMutation) OldField

func (m *LogMsgMutation) 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 (*LogMsgMutation) OldMsg

func (m *LogMsgMutation) OldMsg(ctx context.Context) (v string, err error)

OldMsg returns the old "msg" field's value of the LogMsg entity. If the LogMsg 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 (*LogMsgMutation) OldT

func (m *LogMsgMutation) OldT(ctx context.Context) (v time.Time, err error)

OldT returns the old "t" field's value of the LogMsg entity. If the LogMsg 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 (*LogMsgMutation) Op

func (m *LogMsgMutation) Op() Op

Op returns the operation name.

func (*LogMsgMutation) RemovedEdges

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

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

func (*LogMsgMutation) RemovedIDs

func (m *LogMsgMutation) 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 (*LogMsgMutation) ResetActivity added in v0.6.6

func (m *LogMsgMutation) ResetActivity()

ResetActivity resets all changes to the "activity" edge.

func (*LogMsgMutation) ResetEdge

func (m *LogMsgMutation) 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 (*LogMsgMutation) ResetField

func (m *LogMsgMutation) 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 (*LogMsgMutation) ResetInstance

func (m *LogMsgMutation) ResetInstance()

ResetInstance resets all changes to the "instance" edge.

func (*LogMsgMutation) ResetMsg

func (m *LogMsgMutation) ResetMsg()

ResetMsg resets all changes to the "msg" field.

func (*LogMsgMutation) ResetNamespace

func (m *LogMsgMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*LogMsgMutation) ResetT

func (m *LogMsgMutation) ResetT()

ResetT resets all changes to the "t" field.

func (*LogMsgMutation) ResetWorkflow

func (m *LogMsgMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*LogMsgMutation) SetActivityID added in v0.6.6

func (m *LogMsgMutation) SetActivityID(id uuid.UUID)

SetActivityID sets the "activity" edge to the MirrorActivity entity by id.

func (*LogMsgMutation) SetField

func (m *LogMsgMutation) 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 (*LogMsgMutation) SetID

func (m *LogMsgMutation) SetID(id uuid.UUID)

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

func (*LogMsgMutation) SetInstanceID

func (m *LogMsgMutation) SetInstanceID(id uuid.UUID)

SetInstanceID sets the "instance" edge to the Instance entity by id.

func (*LogMsgMutation) SetMsg

func (m *LogMsgMutation) SetMsg(s string)

SetMsg sets the "msg" field.

func (*LogMsgMutation) SetNamespaceID

func (m *LogMsgMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*LogMsgMutation) SetT

func (m *LogMsgMutation) SetT(t time.Time)

SetT sets the "t" field.

func (*LogMsgMutation) SetWorkflowID

func (m *LogMsgMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*LogMsgMutation) T

func (m *LogMsgMutation) T() (r time.Time, exists bool)

T returns the value of the "t" field in the mutation.

func (LogMsgMutation) Tx

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

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

func (*LogMsgMutation) Type

func (m *LogMsgMutation) Type() string

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

func (*LogMsgMutation) Where

func (m *LogMsgMutation) Where(ps ...predicate.LogMsg)

Where appends a list predicates to the LogMsgMutation builder.

func (*LogMsgMutation) WorkflowCleared

func (m *LogMsgMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*LogMsgMutation) WorkflowID

func (m *LogMsgMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*LogMsgMutation) WorkflowIDs

func (m *LogMsgMutation) 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 LogMsgQuery

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

LogMsgQuery is the builder for querying LogMsg entities.

func (*LogMsgQuery) All

func (lmq *LogMsgQuery) All(ctx context.Context) ([]*LogMsg, error)

All executes the query and returns a list of LogMsgs.

func (*LogMsgQuery) AllX

func (lmq *LogMsgQuery) AllX(ctx context.Context) []*LogMsg

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

func (*LogMsgQuery) Clone

func (lmq *LogMsgQuery) Clone() *LogMsgQuery

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

func (*LogMsgQuery) CollectFields

func (lm *LogMsgQuery) CollectFields(ctx context.Context, satisfies ...string) *LogMsgQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*LogMsgQuery) Count

func (lmq *LogMsgQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LogMsgQuery) CountX

func (lmq *LogMsgQuery) CountX(ctx context.Context) int

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

func (*LogMsgQuery) Exist

func (lmq *LogMsgQuery) Exist(ctx context.Context) (bool, error)

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

func (*LogMsgQuery) ExistX

func (lmq *LogMsgQuery) ExistX(ctx context.Context) bool

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

func (*LogMsgQuery) First

func (lmq *LogMsgQuery) First(ctx context.Context) (*LogMsg, error)

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

func (*LogMsgQuery) FirstID

func (lmq *LogMsgQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*LogMsgQuery) FirstIDX

func (lmq *LogMsgQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*LogMsgQuery) FirstX

func (lmq *LogMsgQuery) FirstX(ctx context.Context) *LogMsg

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

func (*LogMsgQuery) GroupBy

func (lmq *LogMsgQuery) GroupBy(field string, fields ...string) *LogMsgGroupBy

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 {
	T time.Time `json:"t,omitempty"`
	Count int `json:"count,omitempty"`
}

client.LogMsg.Query().
	GroupBy(logmsg.FieldT).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LogMsgQuery) IDs

func (lmq *LogMsgQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*LogMsgQuery) IDsX

func (lmq *LogMsgQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*LogMsgQuery) Limit

func (lmq *LogMsgQuery) Limit(limit int) *LogMsgQuery

Limit adds a limit step to the query.

func (*LogMsgQuery) Offset

func (lmq *LogMsgQuery) Offset(offset int) *LogMsgQuery

Offset adds an offset step to the query.

func (*LogMsgQuery) Only

func (lmq *LogMsgQuery) Only(ctx context.Context) (*LogMsg, error)

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

func (*LogMsgQuery) OnlyID

func (lmq *LogMsgQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*LogMsgQuery) OnlyIDX

func (lmq *LogMsgQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*LogMsgQuery) OnlyX

func (lmq *LogMsgQuery) OnlyX(ctx context.Context) *LogMsg

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

func (*LogMsgQuery) Order

func (lmq *LogMsgQuery) Order(o ...OrderFunc) *LogMsgQuery

Order adds an order step to the query.

func (*LogMsgQuery) QueryActivity added in v0.6.6

func (lmq *LogMsgQuery) QueryActivity() *MirrorActivityQuery

QueryActivity chains the current query on the "activity" edge.

func (*LogMsgQuery) QueryInstance

func (lmq *LogMsgQuery) QueryInstance() *InstanceQuery

QueryInstance chains the current query on the "instance" edge.

func (*LogMsgQuery) QueryNamespace

func (lmq *LogMsgQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*LogMsgQuery) QueryWorkflow

func (lmq *LogMsgQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*LogMsgQuery) Select

func (lmq *LogMsgQuery) Select(fields ...string) *LogMsgSelect

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 {
	T time.Time `json:"t,omitempty"`
}

client.LogMsg.Query().
	Select(logmsg.FieldT).
	Scan(ctx, &v)

func (*LogMsgQuery) Unique

func (lmq *LogMsgQuery) Unique(unique bool) *LogMsgQuery

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 (*LogMsgQuery) Where

func (lmq *LogMsgQuery) Where(ps ...predicate.LogMsg) *LogMsgQuery

Where adds a new predicate for the LogMsgQuery builder.

func (*LogMsgQuery) WithActivity added in v0.6.6

func (lmq *LogMsgQuery) WithActivity(opts ...func(*MirrorActivityQuery)) *LogMsgQuery

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

func (*LogMsgQuery) WithInstance

func (lmq *LogMsgQuery) WithInstance(opts ...func(*InstanceQuery)) *LogMsgQuery

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 (*LogMsgQuery) WithNamespace

func (lmq *LogMsgQuery) WithNamespace(opts ...func(*NamespaceQuery)) *LogMsgQuery

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 (*LogMsgQuery) WithWorkflow

func (lmq *LogMsgQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *LogMsgQuery

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 LogMsgSelect

type LogMsgSelect struct {
	*LogMsgQuery
	// contains filtered or unexported fields
}

LogMsgSelect is the builder for selecting fields of LogMsg entities.

func (*LogMsgSelect) Bool

func (s *LogMsgSelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*LogMsgSelect) BoolX

func (s *LogMsgSelect) BoolX(ctx context.Context) bool

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

func (*LogMsgSelect) Bools

func (s *LogMsgSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*LogMsgSelect) BoolsX

func (s *LogMsgSelect) BoolsX(ctx context.Context) []bool

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

func (*LogMsgSelect) Float64

func (s *LogMsgSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*LogMsgSelect) Float64X

func (s *LogMsgSelect) Float64X(ctx context.Context) float64

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

func (*LogMsgSelect) Float64s

func (s *LogMsgSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*LogMsgSelect) Float64sX

func (s *LogMsgSelect) Float64sX(ctx context.Context) []float64

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

func (*LogMsgSelect) Int

func (s *LogMsgSelect) Int(ctx context.Context) (_ int, err error)

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

func (*LogMsgSelect) IntX

func (s *LogMsgSelect) IntX(ctx context.Context) int

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

func (*LogMsgSelect) Ints

func (s *LogMsgSelect) Ints(ctx context.Context) ([]int, error)

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

func (*LogMsgSelect) IntsX

func (s *LogMsgSelect) IntsX(ctx context.Context) []int

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

func (*LogMsgSelect) Scan

func (lms *LogMsgSelect) Scan(ctx context.Context, v interface{}) error

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

func (*LogMsgSelect) ScanX

func (s *LogMsgSelect) ScanX(ctx context.Context, v interface{})

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

func (*LogMsgSelect) String

func (s *LogMsgSelect) String(ctx context.Context) (_ string, err error)

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

func (*LogMsgSelect) StringX

func (s *LogMsgSelect) StringX(ctx context.Context) string

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

func (*LogMsgSelect) Strings

func (s *LogMsgSelect) Strings(ctx context.Context) ([]string, error)

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

func (*LogMsgSelect) StringsX

func (s *LogMsgSelect) StringsX(ctx context.Context) []string

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

type LogMsgUpdate

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

LogMsgUpdate is the builder for updating LogMsg entities.

func (*LogMsgUpdate) ClearActivity added in v0.6.6

func (lmu *LogMsgUpdate) ClearActivity() *LogMsgUpdate

ClearActivity clears the "activity" edge to the MirrorActivity entity.

func (*LogMsgUpdate) ClearInstance

func (lmu *LogMsgUpdate) ClearInstance() *LogMsgUpdate

ClearInstance clears the "instance" edge to the Instance entity.

func (*LogMsgUpdate) ClearNamespace

func (lmu *LogMsgUpdate) ClearNamespace() *LogMsgUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*LogMsgUpdate) ClearWorkflow

func (lmu *LogMsgUpdate) ClearWorkflow() *LogMsgUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*LogMsgUpdate) Exec

func (lmu *LogMsgUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*LogMsgUpdate) ExecX

func (lmu *LogMsgUpdate) ExecX(ctx context.Context)

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

func (*LogMsgUpdate) Mutation

func (lmu *LogMsgUpdate) Mutation() *LogMsgMutation

Mutation returns the LogMsgMutation object of the builder.

func (*LogMsgUpdate) Save

func (lmu *LogMsgUpdate) Save(ctx context.Context) (int, error)

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

func (*LogMsgUpdate) SaveX

func (lmu *LogMsgUpdate) SaveX(ctx context.Context) int

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

func (*LogMsgUpdate) SetActivity added in v0.6.6

func (lmu *LogMsgUpdate) SetActivity(m *MirrorActivity) *LogMsgUpdate

SetActivity sets the "activity" edge to the MirrorActivity entity.

func (*LogMsgUpdate) SetActivityID added in v0.6.6

func (lmu *LogMsgUpdate) SetActivityID(id uuid.UUID) *LogMsgUpdate

SetActivityID sets the "activity" edge to the MirrorActivity entity by ID.

func (*LogMsgUpdate) SetInstance

func (lmu *LogMsgUpdate) SetInstance(i *Instance) *LogMsgUpdate

SetInstance sets the "instance" edge to the Instance entity.

func (*LogMsgUpdate) SetInstanceID

func (lmu *LogMsgUpdate) SetInstanceID(id uuid.UUID) *LogMsgUpdate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*LogMsgUpdate) SetMsg

func (lmu *LogMsgUpdate) SetMsg(s string) *LogMsgUpdate

SetMsg sets the "msg" field.

func (*LogMsgUpdate) SetNamespace

func (lmu *LogMsgUpdate) SetNamespace(n *Namespace) *LogMsgUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*LogMsgUpdate) SetNamespaceID

func (lmu *LogMsgUpdate) SetNamespaceID(id uuid.UUID) *LogMsgUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*LogMsgUpdate) SetNillableActivityID added in v0.6.6

func (lmu *LogMsgUpdate) SetNillableActivityID(id *uuid.UUID) *LogMsgUpdate

SetNillableActivityID sets the "activity" edge to the MirrorActivity entity by ID if the given value is not nil.

func (*LogMsgUpdate) SetNillableInstanceID

func (lmu *LogMsgUpdate) SetNillableInstanceID(id *uuid.UUID) *LogMsgUpdate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*LogMsgUpdate) SetNillableNamespaceID

func (lmu *LogMsgUpdate) SetNillableNamespaceID(id *uuid.UUID) *LogMsgUpdate

SetNillableNamespaceID sets the "namespace" edge to the Namespace entity by ID if the given value is not nil.

func (*LogMsgUpdate) SetNillableWorkflowID

func (lmu *LogMsgUpdate) SetNillableWorkflowID(id *uuid.UUID) *LogMsgUpdate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*LogMsgUpdate) SetT

func (lmu *LogMsgUpdate) SetT(t time.Time) *LogMsgUpdate

SetT sets the "t" field.

func (*LogMsgUpdate) SetWorkflow

func (lmu *LogMsgUpdate) SetWorkflow(w *Workflow) *LogMsgUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*LogMsgUpdate) SetWorkflowID

func (lmu *LogMsgUpdate) SetWorkflowID(id uuid.UUID) *LogMsgUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*LogMsgUpdate) Where

func (lmu *LogMsgUpdate) Where(ps ...predicate.LogMsg) *LogMsgUpdate

Where appends a list predicates to the LogMsgUpdate builder.

type LogMsgUpdateOne

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

LogMsgUpdateOne is the builder for updating a single LogMsg entity.

func (*LogMsgUpdateOne) ClearActivity added in v0.6.6

func (lmuo *LogMsgUpdateOne) ClearActivity() *LogMsgUpdateOne

ClearActivity clears the "activity" edge to the MirrorActivity entity.

func (*LogMsgUpdateOne) ClearInstance

func (lmuo *LogMsgUpdateOne) ClearInstance() *LogMsgUpdateOne

ClearInstance clears the "instance" edge to the Instance entity.

func (*LogMsgUpdateOne) ClearNamespace

func (lmuo *LogMsgUpdateOne) ClearNamespace() *LogMsgUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*LogMsgUpdateOne) ClearWorkflow

func (lmuo *LogMsgUpdateOne) ClearWorkflow() *LogMsgUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*LogMsgUpdateOne) Exec

func (lmuo *LogMsgUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*LogMsgUpdateOne) ExecX

func (lmuo *LogMsgUpdateOne) ExecX(ctx context.Context)

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

func (*LogMsgUpdateOne) Mutation

func (lmuo *LogMsgUpdateOne) Mutation() *LogMsgMutation

Mutation returns the LogMsgMutation object of the builder.

func (*LogMsgUpdateOne) Save

func (lmuo *LogMsgUpdateOne) Save(ctx context.Context) (*LogMsg, error)

Save executes the query and returns the updated LogMsg entity.

func (*LogMsgUpdateOne) SaveX

func (lmuo *LogMsgUpdateOne) SaveX(ctx context.Context) *LogMsg

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

func (*LogMsgUpdateOne) Select

func (lmuo *LogMsgUpdateOne) Select(field string, fields ...string) *LogMsgUpdateOne

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

func (*LogMsgUpdateOne) SetActivity added in v0.6.6

func (lmuo *LogMsgUpdateOne) SetActivity(m *MirrorActivity) *LogMsgUpdateOne

SetActivity sets the "activity" edge to the MirrorActivity entity.

func (*LogMsgUpdateOne) SetActivityID added in v0.6.6

func (lmuo *LogMsgUpdateOne) SetActivityID(id uuid.UUID) *LogMsgUpdateOne

SetActivityID sets the "activity" edge to the MirrorActivity entity by ID.

func (*LogMsgUpdateOne) SetInstance

func (lmuo *LogMsgUpdateOne) SetInstance(i *Instance) *LogMsgUpdateOne

SetInstance sets the "instance" edge to the Instance entity.

func (*LogMsgUpdateOne) SetInstanceID

func (lmuo *LogMsgUpdateOne) SetInstanceID(id uuid.UUID) *LogMsgUpdateOne

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*LogMsgUpdateOne) SetMsg

func (lmuo *LogMsgUpdateOne) SetMsg(s string) *LogMsgUpdateOne

SetMsg sets the "msg" field.

func (*LogMsgUpdateOne) SetNamespace

func (lmuo *LogMsgUpdateOne) SetNamespace(n *Namespace) *LogMsgUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*LogMsgUpdateOne) SetNamespaceID

func (lmuo *LogMsgUpdateOne) SetNamespaceID(id uuid.UUID) *LogMsgUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*LogMsgUpdateOne) SetNillableActivityID added in v0.6.6

func (lmuo *LogMsgUpdateOne) SetNillableActivityID(id *uuid.UUID) *LogMsgUpdateOne

SetNillableActivityID sets the "activity" edge to the MirrorActivity entity by ID if the given value is not nil.

func (*LogMsgUpdateOne) SetNillableInstanceID

func (lmuo *LogMsgUpdateOne) SetNillableInstanceID(id *uuid.UUID) *LogMsgUpdateOne

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*LogMsgUpdateOne) SetNillableNamespaceID

func (lmuo *LogMsgUpdateOne) SetNillableNamespaceID(id *uuid.UUID) *LogMsgUpdateOne

SetNillableNamespaceID sets the "namespace" edge to the Namespace entity by ID if the given value is not nil.

func (*LogMsgUpdateOne) SetNillableWorkflowID

func (lmuo *LogMsgUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *LogMsgUpdateOne

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*LogMsgUpdateOne) SetT

func (lmuo *LogMsgUpdateOne) SetT(t time.Time) *LogMsgUpdateOne

SetT sets the "t" field.

func (*LogMsgUpdateOne) SetWorkflow

func (lmuo *LogMsgUpdateOne) SetWorkflow(w *Workflow) *LogMsgUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*LogMsgUpdateOne) SetWorkflowID

func (lmuo *LogMsgUpdateOne) SetWorkflowID(id uuid.UUID) *LogMsgUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type LogMsgs

type LogMsgs []*LogMsg

LogMsgs is a parsable slice of LogMsg.

type Mirror added in v0.6.6

type Mirror struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// URL holds the value of the "url" field.
	URL string `json:"url,omitempty"`
	// Ref holds the value of the "ref" field.
	Ref string `json:"ref,omitempty"`
	// Cron holds the value of the "cron" field.
	Cron string `json:"cron,omitempty"`
	// PublicKey holds the value of the "public_key" field.
	PublicKey string `json:"publicKey,omitempty"`
	// PrivateKey holds the value of the "private_key" field.
	PrivateKey string `json:"private_key,omitempty"`
	// Passphrase holds the value of the "passphrase" field.
	Passphrase string `json:"passphrase,omitempty"`
	// Commit holds the value of the "commit" field.
	Commit string `json:"commit,omitempty"`
	// LastSync holds the value of the "last_sync" field.
	LastSync *time.Time `json:"last_sync,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the MirrorQuery when eager-loading is set.
	Edges MirrorEdges `json:"edges"`
	// contains filtered or unexported fields
}

Mirror is the model entity for the Mirror schema.

func (*Mirror) Activities added in v0.6.6

func (m *Mirror) Activities(ctx context.Context) ([]*MirrorActivity, error)

func (*Mirror) Inode added in v0.6.6

func (m *Mirror) Inode(ctx context.Context) (*Inode, error)

func (*Mirror) Namespace added in v0.6.6

func (m *Mirror) Namespace(ctx context.Context) (*Namespace, error)

func (*Mirror) QueryActivities added in v0.6.6

func (m *Mirror) QueryActivities() *MirrorActivityQuery

QueryActivities queries the "activities" edge of the Mirror entity.

func (*Mirror) QueryInode added in v0.6.6

func (m *Mirror) QueryInode() *InodeQuery

QueryInode queries the "inode" edge of the Mirror entity.

func (*Mirror) QueryNamespace added in v0.6.6

func (m *Mirror) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the Mirror entity.

func (*Mirror) String added in v0.6.6

func (m *Mirror) String() string

String implements the fmt.Stringer.

func (*Mirror) Unwrap added in v0.6.6

func (m *Mirror) Unwrap() *Mirror

Unwrap unwraps the Mirror 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 (*Mirror) Update added in v0.6.6

func (m *Mirror) Update() *MirrorUpdateOne

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

type MirrorActivities added in v0.6.6

type MirrorActivities []*MirrorActivity

MirrorActivities is a parsable slice of MirrorActivity.

type MirrorActivity added in v0.6.6

type MirrorActivity struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Type holds the value of the "type" field.
	Type string `json:"type,omitempty"`
	// Status holds the value of the "status" field.
	Status string `json:"status,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// EndAt holds the value of the "end_at" field.
	EndAt time.Time `json:"end_at,omitempty"`
	// Controller holds the value of the "controller" field.
	Controller string `json:"controller,omitempty"`
	// Deadline holds the value of the "deadline" field.
	Deadline time.Time `json:"deadline,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the MirrorActivityQuery when eager-loading is set.
	Edges MirrorActivityEdges `json:"edges"`
	// contains filtered or unexported fields
}

MirrorActivity is the model entity for the MirrorActivity schema.

func (*MirrorActivity) Logs added in v0.6.6

func (ma *MirrorActivity) Logs(ctx context.Context) ([]*LogMsg, error)

func (*MirrorActivity) Mirror added in v0.6.6

func (ma *MirrorActivity) Mirror(ctx context.Context) (*Mirror, error)

func (*MirrorActivity) Namespace added in v0.6.6

func (ma *MirrorActivity) Namespace(ctx context.Context) (*Namespace, error)

func (*MirrorActivity) QueryLogs added in v0.6.6

func (ma *MirrorActivity) QueryLogs() *LogMsgQuery

QueryLogs queries the "logs" edge of the MirrorActivity entity.

func (*MirrorActivity) QueryMirror added in v0.6.6

func (ma *MirrorActivity) QueryMirror() *MirrorQuery

QueryMirror queries the "mirror" edge of the MirrorActivity entity.

func (*MirrorActivity) QueryNamespace added in v0.6.6

func (ma *MirrorActivity) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the MirrorActivity entity.

func (*MirrorActivity) String added in v0.6.6

func (ma *MirrorActivity) String() string

String implements the fmt.Stringer.

func (*MirrorActivity) Unwrap added in v0.6.6

func (ma *MirrorActivity) Unwrap() *MirrorActivity

Unwrap unwraps the MirrorActivity 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 (*MirrorActivity) Update added in v0.6.6

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

type MirrorActivityClient added in v0.6.6

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

MirrorActivityClient is a client for the MirrorActivity schema.

func NewMirrorActivityClient added in v0.6.6

func NewMirrorActivityClient(c config) *MirrorActivityClient

NewMirrorActivityClient returns a client for the MirrorActivity from the given config.

func (*MirrorActivityClient) Create added in v0.6.6

Create returns a builder for creating a MirrorActivity entity.

func (*MirrorActivityClient) CreateBulk added in v0.6.6

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

func (*MirrorActivityClient) Delete added in v0.6.6

Delete returns a delete builder for MirrorActivity.

func (*MirrorActivityClient) DeleteOne added in v0.6.6

DeleteOne returns a builder for deleting the given entity.

func (*MirrorActivityClient) DeleteOneID added in v0.6.6

DeleteOne returns a builder for deleting the given entity by its id.

func (*MirrorActivityClient) Get added in v0.6.6

Get returns a MirrorActivity entity by its id.

func (*MirrorActivityClient) GetX added in v0.6.6

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

func (*MirrorActivityClient) Hooks added in v0.6.6

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

Hooks returns the client hooks.

func (*MirrorActivityClient) Query added in v0.6.6

Query returns a query builder for MirrorActivity.

func (*MirrorActivityClient) QueryLogs added in v0.6.6

func (c *MirrorActivityClient) QueryLogs(ma *MirrorActivity) *LogMsgQuery

QueryLogs queries the logs edge of a MirrorActivity.

func (*MirrorActivityClient) QueryMirror added in v0.6.6

func (c *MirrorActivityClient) QueryMirror(ma *MirrorActivity) *MirrorQuery

QueryMirror queries the mirror edge of a MirrorActivity.

func (*MirrorActivityClient) QueryNamespace added in v0.6.6

func (c *MirrorActivityClient) QueryNamespace(ma *MirrorActivity) *NamespaceQuery

QueryNamespace queries the namespace edge of a MirrorActivity.

func (*MirrorActivityClient) Update added in v0.6.6

Update returns an update builder for MirrorActivity.

func (*MirrorActivityClient) UpdateOne added in v0.6.6

UpdateOne returns an update builder for the given entity.

func (*MirrorActivityClient) UpdateOneID added in v0.6.6

UpdateOneID returns an update builder for the given id.

func (*MirrorActivityClient) Use added in v0.6.6

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

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

type MirrorActivityCreate added in v0.6.6

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

MirrorActivityCreate is the builder for creating a MirrorActivity entity.

func (*MirrorActivityCreate) AddLogIDs added in v0.6.6

func (mac *MirrorActivityCreate) AddLogIDs(ids ...uuid.UUID) *MirrorActivityCreate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*MirrorActivityCreate) AddLogs added in v0.6.6

func (mac *MirrorActivityCreate) AddLogs(l ...*LogMsg) *MirrorActivityCreate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*MirrorActivityCreate) Exec added in v0.6.6

func (mac *MirrorActivityCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*MirrorActivityCreate) ExecX added in v0.6.6

func (mac *MirrorActivityCreate) ExecX(ctx context.Context)

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

func (*MirrorActivityCreate) Mutation added in v0.6.6

Mutation returns the MirrorActivityMutation object of the builder.

func (*MirrorActivityCreate) Save added in v0.6.6

Save creates the MirrorActivity in the database.

func (*MirrorActivityCreate) SaveX added in v0.6.6

SaveX calls Save and panics if Save returns an error.

func (*MirrorActivityCreate) SetController added in v0.6.6

func (mac *MirrorActivityCreate) SetController(s string) *MirrorActivityCreate

SetController sets the "controller" field.

func (*MirrorActivityCreate) SetCreatedAt added in v0.6.6

func (mac *MirrorActivityCreate) SetCreatedAt(t time.Time) *MirrorActivityCreate

SetCreatedAt sets the "created_at" field.

func (*MirrorActivityCreate) SetDeadline added in v0.6.6

func (mac *MirrorActivityCreate) SetDeadline(t time.Time) *MirrorActivityCreate

SetDeadline sets the "deadline" field.

func (*MirrorActivityCreate) SetEndAt added in v0.6.6

SetEndAt sets the "end_at" field.

func (*MirrorActivityCreate) SetID added in v0.6.6

SetID sets the "id" field.

func (*MirrorActivityCreate) SetMirror added in v0.6.6

func (mac *MirrorActivityCreate) SetMirror(m *Mirror) *MirrorActivityCreate

SetMirror sets the "mirror" edge to the Mirror entity.

func (*MirrorActivityCreate) SetMirrorID added in v0.6.6

func (mac *MirrorActivityCreate) SetMirrorID(id uuid.UUID) *MirrorActivityCreate

SetMirrorID sets the "mirror" edge to the Mirror entity by ID.

func (*MirrorActivityCreate) SetNamespace added in v0.6.6

func (mac *MirrorActivityCreate) SetNamespace(n *Namespace) *MirrorActivityCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*MirrorActivityCreate) SetNamespaceID added in v0.6.6

func (mac *MirrorActivityCreate) SetNamespaceID(id uuid.UUID) *MirrorActivityCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*MirrorActivityCreate) SetNillableController added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableController(s *string) *MirrorActivityCreate

SetNillableController sets the "controller" field if the given value is not nil.

func (*MirrorActivityCreate) SetNillableCreatedAt added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableCreatedAt(t *time.Time) *MirrorActivityCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*MirrorActivityCreate) SetNillableDeadline added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableDeadline(t *time.Time) *MirrorActivityCreate

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*MirrorActivityCreate) SetNillableEndAt added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableEndAt(t *time.Time) *MirrorActivityCreate

SetNillableEndAt sets the "end_at" field if the given value is not nil.

func (*MirrorActivityCreate) SetNillableID added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableID(u *uuid.UUID) *MirrorActivityCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*MirrorActivityCreate) SetNillableMirrorID added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableMirrorID(id *uuid.UUID) *MirrorActivityCreate

SetNillableMirrorID sets the "mirror" edge to the Mirror entity by ID if the given value is not nil.

func (*MirrorActivityCreate) SetNillableUpdatedAt added in v0.6.6

func (mac *MirrorActivityCreate) SetNillableUpdatedAt(t *time.Time) *MirrorActivityCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*MirrorActivityCreate) SetStatus added in v0.6.6

SetStatus sets the "status" field.

func (*MirrorActivityCreate) SetType added in v0.6.6

SetType sets the "type" field.

func (*MirrorActivityCreate) SetUpdatedAt added in v0.6.6

func (mac *MirrorActivityCreate) SetUpdatedAt(t time.Time) *MirrorActivityCreate

SetUpdatedAt sets the "updated_at" field.

type MirrorActivityCreateBulk added in v0.6.6

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

MirrorActivityCreateBulk is the builder for creating many MirrorActivity entities in bulk.

func (*MirrorActivityCreateBulk) Exec added in v0.6.6

Exec executes the query.

func (*MirrorActivityCreateBulk) ExecX added in v0.6.6

func (macb *MirrorActivityCreateBulk) ExecX(ctx context.Context)

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

func (*MirrorActivityCreateBulk) Save added in v0.6.6

Save creates the MirrorActivity entities in the database.

func (*MirrorActivityCreateBulk) SaveX added in v0.6.6

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

type MirrorActivityDelete added in v0.6.6

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

MirrorActivityDelete is the builder for deleting a MirrorActivity entity.

func (*MirrorActivityDelete) Exec added in v0.6.6

func (mad *MirrorActivityDelete) Exec(ctx context.Context) (int, error)

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

func (*MirrorActivityDelete) ExecX added in v0.6.6

func (mad *MirrorActivityDelete) ExecX(ctx context.Context) int

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

func (*MirrorActivityDelete) Where added in v0.6.6

Where appends a list predicates to the MirrorActivityDelete builder.

type MirrorActivityDeleteOne added in v0.6.6

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

MirrorActivityDeleteOne is the builder for deleting a single MirrorActivity entity.

func (*MirrorActivityDeleteOne) Exec added in v0.6.6

func (mado *MirrorActivityDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*MirrorActivityDeleteOne) ExecX added in v0.6.6

func (mado *MirrorActivityDeleteOne) ExecX(ctx context.Context)

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

type MirrorActivityEdges added in v0.6.6

type MirrorActivityEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Mirror holds the value of the mirror edge.
	Mirror *Mirror `json:"mirror,omitempty"`
	// Logs holds the value of the logs edge.
	Logs []*LogMsg `json:"logs,omitempty"`
	// contains filtered or unexported fields
}

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

func (MirrorActivityEdges) LogsOrErr added in v0.6.6

func (e MirrorActivityEdges) LogsOrErr() ([]*LogMsg, error)

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

func (MirrorActivityEdges) MirrorOrErr added in v0.6.6

func (e MirrorActivityEdges) MirrorOrErr() (*Mirror, error)

MirrorOrErr returns the Mirror value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (MirrorActivityEdges) NamespaceOrErr added in v0.6.6

func (e MirrorActivityEdges) 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.

type MirrorActivityGroupBy added in v0.6.6

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

MirrorActivityGroupBy is the group-by builder for MirrorActivity entities.

func (*MirrorActivityGroupBy) Aggregate added in v0.6.6

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

func (*MirrorActivityGroupBy) Bool added in v0.6.6

func (s *MirrorActivityGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*MirrorActivityGroupBy) BoolX added in v0.6.6

func (s *MirrorActivityGroupBy) BoolX(ctx context.Context) bool

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

func (*MirrorActivityGroupBy) Bools added in v0.6.6

func (s *MirrorActivityGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*MirrorActivityGroupBy) BoolsX added in v0.6.6

func (s *MirrorActivityGroupBy) BoolsX(ctx context.Context) []bool

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

func (*MirrorActivityGroupBy) Float64 added in v0.6.6

func (s *MirrorActivityGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*MirrorActivityGroupBy) Float64X added in v0.6.6

func (s *MirrorActivityGroupBy) Float64X(ctx context.Context) float64

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

func (*MirrorActivityGroupBy) Float64s added in v0.6.6

func (s *MirrorActivityGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*MirrorActivityGroupBy) Float64sX added in v0.6.6

func (s *MirrorActivityGroupBy) Float64sX(ctx context.Context) []float64

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

func (*MirrorActivityGroupBy) Int added in v0.6.6

func (s *MirrorActivityGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*MirrorActivityGroupBy) IntX added in v0.6.6

func (s *MirrorActivityGroupBy) IntX(ctx context.Context) int

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

func (*MirrorActivityGroupBy) Ints added in v0.6.6

func (s *MirrorActivityGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*MirrorActivityGroupBy) IntsX added in v0.6.6

func (s *MirrorActivityGroupBy) IntsX(ctx context.Context) []int

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

func (*MirrorActivityGroupBy) Scan added in v0.6.6

func (magb *MirrorActivityGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*MirrorActivityGroupBy) ScanX added in v0.6.6

func (s *MirrorActivityGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*MirrorActivityGroupBy) String added in v0.6.6

func (s *MirrorActivityGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*MirrorActivityGroupBy) StringX added in v0.6.6

func (s *MirrorActivityGroupBy) StringX(ctx context.Context) string

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

func (*MirrorActivityGroupBy) Strings added in v0.6.6

func (s *MirrorActivityGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*MirrorActivityGroupBy) StringsX added in v0.6.6

func (s *MirrorActivityGroupBy) StringsX(ctx context.Context) []string

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

type MirrorActivityMutation added in v0.6.6

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

MirrorActivityMutation represents an operation that mutates the MirrorActivity nodes in the graph.

func (*MirrorActivityMutation) AddField added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) AddLogIDs added in v0.6.6

func (m *MirrorActivityMutation) AddLogIDs(ids ...uuid.UUID)

AddLogIDs adds the "logs" edge to the LogMsg entity by ids.

func (*MirrorActivityMutation) AddedEdges added in v0.6.6

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

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

func (*MirrorActivityMutation) AddedField added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) AddedFields added in v0.6.6

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

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

func (*MirrorActivityMutation) AddedIDs added in v0.6.6

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

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

func (*MirrorActivityMutation) ClearController added in v0.6.6

func (m *MirrorActivityMutation) ClearController()

ClearController clears the value of the "controller" field.

func (*MirrorActivityMutation) ClearDeadline added in v0.6.6

func (m *MirrorActivityMutation) ClearDeadline()

ClearDeadline clears the value of the "deadline" field.

func (*MirrorActivityMutation) ClearEdge added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) ClearEndAt added in v0.6.6

func (m *MirrorActivityMutation) ClearEndAt()

ClearEndAt clears the value of the "end_at" field.

func (*MirrorActivityMutation) ClearField added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) ClearLogs added in v0.6.6

func (m *MirrorActivityMutation) ClearLogs()

ClearLogs clears the "logs" edge to the LogMsg entity.

func (*MirrorActivityMutation) ClearMirror added in v0.6.6

func (m *MirrorActivityMutation) ClearMirror()

ClearMirror clears the "mirror" edge to the Mirror entity.

func (*MirrorActivityMutation) ClearNamespace added in v0.6.6

func (m *MirrorActivityMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*MirrorActivityMutation) ClearedEdges added in v0.6.6

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

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

func (*MirrorActivityMutation) ClearedFields added in v0.6.6

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

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

func (MirrorActivityMutation) Client added in v0.6.6

func (m MirrorActivityMutation) 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 (*MirrorActivityMutation) Controller added in v0.6.6

func (m *MirrorActivityMutation) Controller() (r string, exists bool)

Controller returns the value of the "controller" field in the mutation.

func (*MirrorActivityMutation) ControllerCleared added in v0.6.6

func (m *MirrorActivityMutation) ControllerCleared() bool

ControllerCleared returns if the "controller" field was cleared in this mutation.

func (*MirrorActivityMutation) CreatedAt added in v0.6.6

func (m *MirrorActivityMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*MirrorActivityMutation) Deadline added in v0.6.6

func (m *MirrorActivityMutation) Deadline() (r time.Time, exists bool)

Deadline returns the value of the "deadline" field in the mutation.

func (*MirrorActivityMutation) DeadlineCleared added in v0.6.6

func (m *MirrorActivityMutation) DeadlineCleared() bool

DeadlineCleared returns if the "deadline" field was cleared in this mutation.

func (*MirrorActivityMutation) EdgeCleared added in v0.6.6

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

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

func (*MirrorActivityMutation) EndAt added in v0.6.6

func (m *MirrorActivityMutation) EndAt() (r time.Time, exists bool)

EndAt returns the value of the "end_at" field in the mutation.

func (*MirrorActivityMutation) EndAtCleared added in v0.6.6

func (m *MirrorActivityMutation) EndAtCleared() bool

EndAtCleared returns if the "end_at" field was cleared in this mutation.

func (*MirrorActivityMutation) Field added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) FieldCleared added in v0.6.6

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

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

func (*MirrorActivityMutation) Fields added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) GetType added in v0.6.6

func (m *MirrorActivityMutation) GetType() (r string, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*MirrorActivityMutation) ID added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) IDs added in v0.6.6

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*MirrorActivityMutation) LogsCleared added in v0.6.6

func (m *MirrorActivityMutation) LogsCleared() bool

LogsCleared reports if the "logs" edge to the LogMsg entity was cleared.

func (*MirrorActivityMutation) LogsIDs added in v0.6.6

func (m *MirrorActivityMutation) LogsIDs() (ids []uuid.UUID)

LogsIDs returns the "logs" edge IDs in the mutation.

func (*MirrorActivityMutation) MirrorCleared added in v0.6.6

func (m *MirrorActivityMutation) MirrorCleared() bool

MirrorCleared reports if the "mirror" edge to the Mirror entity was cleared.

func (*MirrorActivityMutation) MirrorID added in v0.6.6

func (m *MirrorActivityMutation) MirrorID() (id uuid.UUID, exists bool)

MirrorID returns the "mirror" edge ID in the mutation.

func (*MirrorActivityMutation) MirrorIDs added in v0.6.6

func (m *MirrorActivityMutation) MirrorIDs() (ids []uuid.UUID)

MirrorIDs returns the "mirror" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use MirrorID instead. It exists only for internal usage by the builders.

func (*MirrorActivityMutation) NamespaceCleared added in v0.6.6

func (m *MirrorActivityMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*MirrorActivityMutation) NamespaceID added in v0.6.6

func (m *MirrorActivityMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*MirrorActivityMutation) NamespaceIDs added in v0.6.6

func (m *MirrorActivityMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*MirrorActivityMutation) OldController added in v0.6.6

func (m *MirrorActivityMutation) OldController(ctx context.Context) (v string, err error)

OldController returns the old "controller" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) OldCreatedAt added in v0.6.6

func (m *MirrorActivityMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) OldDeadline added in v0.6.6

func (m *MirrorActivityMutation) OldDeadline(ctx context.Context) (v time.Time, err error)

OldDeadline returns the old "deadline" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) OldEndAt added in v0.6.6

func (m *MirrorActivityMutation) OldEndAt(ctx context.Context) (v time.Time, err error)

OldEndAt returns the old "end_at" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) OldField added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) OldStatus added in v0.6.6

func (m *MirrorActivityMutation) OldStatus(ctx context.Context) (v string, err error)

OldStatus returns the old "status" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) OldType added in v0.6.6

func (m *MirrorActivityMutation) OldType(ctx context.Context) (v string, err error)

OldType returns the old "type" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) OldUpdatedAt added in v0.6.6

func (m *MirrorActivityMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the MirrorActivity entity. If the MirrorActivity 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 (*MirrorActivityMutation) Op added in v0.6.6

func (m *MirrorActivityMutation) Op() Op

Op returns the operation name.

func (*MirrorActivityMutation) RemoveLogIDs added in v0.6.6

func (m *MirrorActivityMutation) RemoveLogIDs(ids ...uuid.UUID)

RemoveLogIDs removes the "logs" edge to the LogMsg entity by IDs.

func (*MirrorActivityMutation) RemovedEdges added in v0.6.6

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

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

func (*MirrorActivityMutation) RemovedIDs added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) RemovedLogsIDs added in v0.6.6

func (m *MirrorActivityMutation) RemovedLogsIDs() (ids []uuid.UUID)

RemovedLogs returns the removed IDs of the "logs" edge to the LogMsg entity.

func (*MirrorActivityMutation) ResetController added in v0.6.6

func (m *MirrorActivityMutation) ResetController()

ResetController resets all changes to the "controller" field.

func (*MirrorActivityMutation) ResetCreatedAt added in v0.6.6

func (m *MirrorActivityMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*MirrorActivityMutation) ResetDeadline added in v0.6.6

func (m *MirrorActivityMutation) ResetDeadline()

ResetDeadline resets all changes to the "deadline" field.

func (*MirrorActivityMutation) ResetEdge added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) ResetEndAt added in v0.6.6

func (m *MirrorActivityMutation) ResetEndAt()

ResetEndAt resets all changes to the "end_at" field.

func (*MirrorActivityMutation) ResetField added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) ResetLogs added in v0.6.6

func (m *MirrorActivityMutation) ResetLogs()

ResetLogs resets all changes to the "logs" edge.

func (*MirrorActivityMutation) ResetMirror added in v0.6.6

func (m *MirrorActivityMutation) ResetMirror()

ResetMirror resets all changes to the "mirror" edge.

func (*MirrorActivityMutation) ResetNamespace added in v0.6.6

func (m *MirrorActivityMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*MirrorActivityMutation) ResetStatus added in v0.6.6

func (m *MirrorActivityMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*MirrorActivityMutation) ResetType added in v0.6.6

func (m *MirrorActivityMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*MirrorActivityMutation) ResetUpdatedAt added in v0.6.6

func (m *MirrorActivityMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*MirrorActivityMutation) SetController added in v0.6.6

func (m *MirrorActivityMutation) SetController(s string)

SetController sets the "controller" field.

func (*MirrorActivityMutation) SetCreatedAt added in v0.6.6

func (m *MirrorActivityMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*MirrorActivityMutation) SetDeadline added in v0.6.6

func (m *MirrorActivityMutation) SetDeadline(t time.Time)

SetDeadline sets the "deadline" field.

func (*MirrorActivityMutation) SetEndAt added in v0.6.6

func (m *MirrorActivityMutation) SetEndAt(t time.Time)

SetEndAt sets the "end_at" field.

func (*MirrorActivityMutation) SetField added in v0.6.6

func (m *MirrorActivityMutation) 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 (*MirrorActivityMutation) SetID added in v0.6.6

func (m *MirrorActivityMutation) SetID(id uuid.UUID)

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

func (*MirrorActivityMutation) SetMirrorID added in v0.6.6

func (m *MirrorActivityMutation) SetMirrorID(id uuid.UUID)

SetMirrorID sets the "mirror" edge to the Mirror entity by id.

func (*MirrorActivityMutation) SetNamespaceID added in v0.6.6

func (m *MirrorActivityMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*MirrorActivityMutation) SetStatus added in v0.6.6

func (m *MirrorActivityMutation) SetStatus(s string)

SetStatus sets the "status" field.

func (*MirrorActivityMutation) SetType added in v0.6.6

func (m *MirrorActivityMutation) SetType(s string)

SetType sets the "type" field.

func (*MirrorActivityMutation) SetUpdatedAt added in v0.6.6

func (m *MirrorActivityMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*MirrorActivityMutation) Status added in v0.6.6

func (m *MirrorActivityMutation) Status() (r string, exists bool)

Status returns the value of the "status" field in the mutation.

func (MirrorActivityMutation) Tx added in v0.6.6

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

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

func (*MirrorActivityMutation) Type added in v0.6.6

func (m *MirrorActivityMutation) Type() string

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

func (*MirrorActivityMutation) UpdatedAt added in v0.6.6

func (m *MirrorActivityMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*MirrorActivityMutation) Where added in v0.6.6

Where appends a list predicates to the MirrorActivityMutation builder.

type MirrorActivityQuery added in v0.6.6

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

MirrorActivityQuery is the builder for querying MirrorActivity entities.

func (*MirrorActivityQuery) All added in v0.6.6

All executes the query and returns a list of MirrorActivities.

func (*MirrorActivityQuery) AllX added in v0.6.6

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

func (*MirrorActivityQuery) Clone added in v0.6.6

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

func (*MirrorActivityQuery) CollectFields added in v0.6.6

func (ma *MirrorActivityQuery) CollectFields(ctx context.Context, satisfies ...string) *MirrorActivityQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*MirrorActivityQuery) Count added in v0.6.6

func (maq *MirrorActivityQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*MirrorActivityQuery) CountX added in v0.6.6

func (maq *MirrorActivityQuery) CountX(ctx context.Context) int

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

func (*MirrorActivityQuery) Exist added in v0.6.6

func (maq *MirrorActivityQuery) Exist(ctx context.Context) (bool, error)

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

func (*MirrorActivityQuery) ExistX added in v0.6.6

func (maq *MirrorActivityQuery) ExistX(ctx context.Context) bool

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

func (*MirrorActivityQuery) First added in v0.6.6

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

func (*MirrorActivityQuery) FirstID added in v0.6.6

func (maq *MirrorActivityQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*MirrorActivityQuery) FirstIDX added in v0.6.6

func (maq *MirrorActivityQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*MirrorActivityQuery) FirstX added in v0.6.6

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

func (*MirrorActivityQuery) GroupBy added in v0.6.6

func (maq *MirrorActivityQuery) GroupBy(field string, fields ...string) *MirrorActivityGroupBy

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 {
	Type string `json:"type,omitempty"`
	Count int `json:"count,omitempty"`
}

client.MirrorActivity.Query().
	GroupBy(mirroractivity.FieldType).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*MirrorActivityQuery) IDs added in v0.6.6

func (maq *MirrorActivityQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

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

func (*MirrorActivityQuery) IDsX added in v0.6.6

func (maq *MirrorActivityQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*MirrorActivityQuery) Limit added in v0.6.6

func (maq *MirrorActivityQuery) Limit(limit int) *MirrorActivityQuery

Limit adds a limit step to the query.

func (*MirrorActivityQuery) Offset added in v0.6.6

func (maq *MirrorActivityQuery) Offset(offset int) *MirrorActivityQuery

Offset adds an offset step to the query.

func (*MirrorActivityQuery) Only added in v0.6.6

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

func (*MirrorActivityQuery) OnlyID added in v0.6.6

func (maq *MirrorActivityQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*MirrorActivityQuery) OnlyIDX added in v0.6.6

func (maq *MirrorActivityQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*MirrorActivityQuery) OnlyX added in v0.6.6

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

func (*MirrorActivityQuery) Order added in v0.6.6

Order adds an order step to the query.

func (*MirrorActivityQuery) QueryLogs added in v0.6.6

func (maq *MirrorActivityQuery) QueryLogs() *LogMsgQuery

QueryLogs chains the current query on the "logs" edge.

func (*MirrorActivityQuery) QueryMirror added in v0.6.6

func (maq *MirrorActivityQuery) QueryMirror() *MirrorQuery

QueryMirror chains the current query on the "mirror" edge.

func (*MirrorActivityQuery) QueryNamespace added in v0.6.6

func (maq *MirrorActivityQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*MirrorActivityQuery) Select added in v0.6.6

func (maq *MirrorActivityQuery) Select(fields ...string) *MirrorActivitySelect

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 {
	Type string `json:"type,omitempty"`
}

client.MirrorActivity.Query().
	Select(mirroractivity.FieldType).
	Scan(ctx, &v)

func (*MirrorActivityQuery) Unique added in v0.6.6

func (maq *MirrorActivityQuery) Unique(unique bool) *MirrorActivityQuery

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 (*MirrorActivityQuery) Where added in v0.6.6

Where adds a new predicate for the MirrorActivityQuery builder.

func (*MirrorActivityQuery) WithLogs added in v0.6.6

func (maq *MirrorActivityQuery) WithLogs(opts ...func(*LogMsgQuery)) *MirrorActivityQuery

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

func (*MirrorActivityQuery) WithMirror added in v0.6.6

func (maq *MirrorActivityQuery) WithMirror(opts ...func(*MirrorQuery)) *MirrorActivityQuery

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

func (*MirrorActivityQuery) WithNamespace added in v0.6.6

func (maq *MirrorActivityQuery) WithNamespace(opts ...func(*NamespaceQuery)) *MirrorActivityQuery

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.

type MirrorActivitySelect added in v0.6.6

type MirrorActivitySelect struct {
	*MirrorActivityQuery
	// contains filtered or unexported fields
}

MirrorActivitySelect is the builder for selecting fields of MirrorActivity entities.

func (*MirrorActivitySelect) Bool added in v0.6.6

func (s *MirrorActivitySelect) Bool(ctx context.Context) (_ bool, err error)

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

func (*MirrorActivitySelect) BoolX added in v0.6.6

func (s *MirrorActivitySelect) BoolX(ctx context.Context) bool

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

func (*MirrorActivitySelect) Bools added in v0.6.6

func (s *MirrorActivitySelect) Bools(ctx context.Context) ([]bool, error)

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

func (*MirrorActivitySelect) BoolsX added in v0.6.6

func (s *MirrorActivitySelect) BoolsX(ctx context.Context) []bool

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

func (*MirrorActivitySelect) Float64 added in v0.6.6

func (s *MirrorActivitySelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*MirrorActivitySelect) Float64X added in v0.6.6

func (s *MirrorActivitySelect) Float64X(ctx context.Context) float64

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

func (*MirrorActivitySelect) Float64s added in v0.6.6

func (s *MirrorActivitySelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*MirrorActivitySelect) Float64sX added in v0.6.6

func (s *MirrorActivitySelect) Float64sX(ctx context.Context) []float64

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

func (*MirrorActivitySelect) Int added in v0.6.6

func (s *MirrorActivitySelect) Int(ctx context.Context) (_ int, err error)

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

func (*MirrorActivitySelect) IntX added in v0.6.6

func (s *MirrorActivitySelect) IntX(ctx context.Context) int

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

func (*MirrorActivitySelect) Ints added in v0.6.6

func (s *MirrorActivitySelect) Ints(ctx context.Context) ([]int, error)

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

func (*MirrorActivitySelect) IntsX added in v0.6.6

func (s *MirrorActivitySelect) IntsX(ctx context.Context) []int

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

func (*MirrorActivitySelect) Scan added in v0.6.6

func (mas *MirrorActivitySelect) Scan(ctx context.Context, v interface{}) error

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

func (*MirrorActivitySelect) ScanX added in v0.6.6

func (s *MirrorActivitySelect) ScanX(ctx context.Context, v interface{})

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

func (*MirrorActivitySelect) String added in v0.6.6

func (s *MirrorActivitySelect) String(ctx context.Context) (_ string, err error)

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

func (*MirrorActivitySelect) StringX added in v0.6.6

func (s *MirrorActivitySelect) StringX(ctx context.Context) string

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

func (*MirrorActivitySelect) Strings added in v0.6.6

func (s *MirrorActivitySelect) Strings(ctx context.Context) ([]string, error)

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

func (*MirrorActivitySelect) StringsX added in v0.6.6

func (s *MirrorActivitySelect) StringsX(ctx context.Context) []string

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

type MirrorActivityUpdate added in v0.6.6

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

MirrorActivityUpdate is the builder for updating MirrorActivity entities.

func (*MirrorActivityUpdate) AddLogIDs added in v0.6.6

func (mau *MirrorActivityUpdate) AddLogIDs(ids ...uuid.UUID) *MirrorActivityUpdate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*MirrorActivityUpdate) AddLogs added in v0.6.6

func (mau *MirrorActivityUpdate) AddLogs(l ...*LogMsg) *MirrorActivityUpdate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*MirrorActivityUpdate) ClearController added in v0.6.6

func (mau *MirrorActivityUpdate) ClearController() *MirrorActivityUpdate

ClearController clears the value of the "controller" field.

func (*MirrorActivityUpdate) ClearDeadline added in v0.6.6

func (mau *MirrorActivityUpdate) ClearDeadline() *MirrorActivityUpdate

ClearDeadline clears the value of the "deadline" field.

func (*MirrorActivityUpdate) ClearEndAt added in v0.6.6

func (mau *MirrorActivityUpdate) ClearEndAt() *MirrorActivityUpdate

ClearEndAt clears the value of the "end_at" field.

func (*MirrorActivityUpdate) ClearLogs added in v0.6.6

func (mau *MirrorActivityUpdate) ClearLogs() *MirrorActivityUpdate

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*MirrorActivityUpdate) ClearMirror added in v0.6.6

func (mau *MirrorActivityUpdate) ClearMirror() *MirrorActivityUpdate

ClearMirror clears the "mirror" edge to the Mirror entity.

func (*MirrorActivityUpdate) ClearNamespace added in v0.6.6

func (mau *MirrorActivityUpdate) ClearNamespace() *MirrorActivityUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*MirrorActivityUpdate) Exec added in v0.6.6

func (mau *MirrorActivityUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*MirrorActivityUpdate) ExecX added in v0.6.6

func (mau *MirrorActivityUpdate) ExecX(ctx context.Context)

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

func (*MirrorActivityUpdate) Mutation added in v0.6.6

Mutation returns the MirrorActivityMutation object of the builder.

func (*MirrorActivityUpdate) RemoveLogIDs added in v0.6.6

func (mau *MirrorActivityUpdate) RemoveLogIDs(ids ...uuid.UUID) *MirrorActivityUpdate

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*MirrorActivityUpdate) RemoveLogs added in v0.6.6

func (mau *MirrorActivityUpdate) RemoveLogs(l ...*LogMsg) *MirrorActivityUpdate

RemoveLogs removes "logs" edges to LogMsg entities.

func (*MirrorActivityUpdate) Save added in v0.6.6

func (mau *MirrorActivityUpdate) Save(ctx context.Context) (int, error)

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

func (*MirrorActivityUpdate) SaveX added in v0.6.6

func (mau *MirrorActivityUpdate) SaveX(ctx context.Context) int

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

func (*MirrorActivityUpdate) SetController added in v0.6.6

func (mau *MirrorActivityUpdate) SetController(s string) *MirrorActivityUpdate

SetController sets the "controller" field.

func (*MirrorActivityUpdate) SetDeadline added in v0.6.6

func (mau *MirrorActivityUpdate) SetDeadline(t time.Time) *MirrorActivityUpdate

SetDeadline sets the "deadline" field.

func (*MirrorActivityUpdate) SetEndAt added in v0.6.6

SetEndAt sets the "end_at" field.

func (*MirrorActivityUpdate) SetMirror added in v0.6.6

func (mau *MirrorActivityUpdate) SetMirror(m *Mirror) *MirrorActivityUpdate

SetMirror sets the "mirror" edge to the Mirror entity.

func (*MirrorActivityUpdate) SetMirrorID added in v0.6.6

func (mau *MirrorActivityUpdate) SetMirrorID(id uuid.UUID) *MirrorActivityUpdate

SetMirrorID sets the "mirror" edge to the Mirror entity by ID.

func (*MirrorActivityUpdate) SetNamespace added in v0.6.6

func (mau *MirrorActivityUpdate) SetNamespace(n *Namespace) *MirrorActivityUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*MirrorActivityUpdate) SetNamespaceID added in v0.6.6

func (mau *MirrorActivityUpdate) SetNamespaceID(id uuid.UUID) *MirrorActivityUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*MirrorActivityUpdate) SetNillableController added in v0.6.6

func (mau *MirrorActivityUpdate) SetNillableController(s *string) *MirrorActivityUpdate

SetNillableController sets the "controller" field if the given value is not nil.

func (*MirrorActivityUpdate) SetNillableDeadline added in v0.6.6

func (mau *MirrorActivityUpdate) SetNillableDeadline(t *time.Time) *MirrorActivityUpdate

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*MirrorActivityUpdate) SetNillableEndAt added in v0.6.6

func (mau *MirrorActivityUpdate) SetNillableEndAt(t *time.Time) *MirrorActivityUpdate

SetNillableEndAt sets the "end_at" field if the given value is not nil.

func (*MirrorActivityUpdate) SetNillableMirrorID added in v0.6.6

func (mau *MirrorActivityUpdate) SetNillableMirrorID(id *uuid.UUID) *MirrorActivityUpdate

SetNillableMirrorID sets the "mirror" edge to the Mirror entity by ID if the given value is not nil.

func (*MirrorActivityUpdate) SetStatus added in v0.6.6

SetStatus sets the "status" field.

func (*MirrorActivityUpdate) SetType added in v0.6.6

SetType sets the "type" field.

func (*MirrorActivityUpdate) SetUpdatedAt added in v0.6.6

func (mau *MirrorActivityUpdate) SetUpdatedAt(t time.Time) *MirrorActivityUpdate

SetUpdatedAt sets the "updated_at" field.

func (*MirrorActivityUpdate) Where added in v0.6.6

Where appends a list predicates to the MirrorActivityUpdate builder.

type MirrorActivityUpdateOne added in v0.6.6

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

MirrorActivityUpdateOne is the builder for updating a single MirrorActivity entity.

func (*MirrorActivityUpdateOne) AddLogIDs added in v0.6.6

func (mauo *MirrorActivityUpdateOne) AddLogIDs(ids ...uuid.UUID) *MirrorActivityUpdateOne

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*MirrorActivityUpdateOne) AddLogs added in v0.6.6

AddLogs adds the "logs" edges to the LogMsg entity.

func (*MirrorActivityUpdateOne) ClearController added in v0.6.6

func (mauo *MirrorActivityUpdateOne) ClearController() *MirrorActivityUpdateOne

ClearController clears the value of the "controller" field.

func (*MirrorActivityUpdateOne) ClearDeadline added in v0.6.6

func (mauo *MirrorActivityUpdateOne) ClearDeadline() *MirrorActivityUpdateOne

ClearDeadline clears the value of the "deadline" field.

func (*MirrorActivityUpdateOne) ClearEndAt added in v0.6.6

ClearEndAt clears the value of the "end_at" field.

func (*MirrorActivityUpdateOne) ClearLogs added in v0.6.6

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*MirrorActivityUpdateOne) ClearMirror added in v0.6.6

func (mauo *MirrorActivityUpdateOne) ClearMirror() *MirrorActivityUpdateOne

ClearMirror clears the "mirror" edge to the Mirror entity.

func (*MirrorActivityUpdateOne) ClearNamespace added in v0.6.6

func (mauo *MirrorActivityUpdateOne) ClearNamespace() *MirrorActivityUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*MirrorActivityUpdateOne) Exec added in v0.6.6

func (mauo *MirrorActivityUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*MirrorActivityUpdateOne) ExecX added in v0.6.6

func (mauo *MirrorActivityUpdateOne) ExecX(ctx context.Context)

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

func (*MirrorActivityUpdateOne) Mutation added in v0.6.6

Mutation returns the MirrorActivityMutation object of the builder.

func (*MirrorActivityUpdateOne) RemoveLogIDs added in v0.6.6

func (mauo *MirrorActivityUpdateOne) RemoveLogIDs(ids ...uuid.UUID) *MirrorActivityUpdateOne

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*MirrorActivityUpdateOne) RemoveLogs added in v0.6.6

func (mauo *MirrorActivityUpdateOne) RemoveLogs(l ...*LogMsg) *MirrorActivityUpdateOne

RemoveLogs removes "logs" edges to LogMsg entities.

func (*MirrorActivityUpdateOne) Save added in v0.6.6

Save executes the query and returns the updated MirrorActivity entity.

func (*MirrorActivityUpdateOne) SaveX added in v0.6.6

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

func (*MirrorActivityUpdateOne) Select added in v0.6.6

func (mauo *MirrorActivityUpdateOne) Select(field string, fields ...string) *MirrorActivityUpdateOne

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

func (*MirrorActivityUpdateOne) SetController added in v0.6.6

func (mauo *MirrorActivityUpdateOne) SetController(s string) *MirrorActivityUpdateOne

SetController sets the "controller" field.

func (*MirrorActivityUpdateOne) SetDeadline added in v0.6.6

SetDeadline sets the "deadline" field.

func (*MirrorActivityUpdateOne) SetEndAt added in v0.6.6

SetEndAt sets the "end_at" field.

func (*MirrorActivityUpdateOne) SetMirror added in v0.6.6

SetMirror sets the "mirror" edge to the Mirror entity.

func (*MirrorActivityUpdateOne) SetMirrorID added in v0.6.6

SetMirrorID sets the "mirror" edge to the Mirror entity by ID.

func (*MirrorActivityUpdateOne) SetNamespace added in v0.6.6

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*MirrorActivityUpdateOne) SetNamespaceID added in v0.6.6

func (mauo *MirrorActivityUpdateOne) SetNamespaceID(id uuid.UUID) *MirrorActivityUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*MirrorActivityUpdateOne) SetNillableController added in v0.6.6

func (mauo *MirrorActivityUpdateOne) SetNillableController(s *string) *MirrorActivityUpdateOne

SetNillableController sets the "controller" field if the given value is not nil.

func (*MirrorActivityUpdateOne) SetNillableDeadline added in v0.6.6

func (mauo *MirrorActivityUpdateOne) SetNillableDeadline(t *time.Time) *MirrorActivityUpdateOne

SetNillableDeadline sets the "deadline" field if the given value is not nil.

func (*MirrorActivityUpdateOne) SetNillableEndAt added in v0.6.6

func (mauo *MirrorActivityUpdateOne) SetNillableEndAt(t *time.Time) *MirrorActivityUpdateOne

SetNillableEndAt sets the "end_at" field if the given value is not nil.

func (*MirrorActivityUpdateOne) SetNillableMirrorID added in v0.6.6

func (mauo *MirrorActivityUpdateOne) SetNillableMirrorID(id *uuid.UUID) *MirrorActivityUpdateOne

SetNillableMirrorID sets the "mirror" edge to the Mirror entity by ID if the given value is not nil.

func (*MirrorActivityUpdateOne) SetStatus added in v0.6.6

SetStatus sets the "status" field.

func (*MirrorActivityUpdateOne) SetType added in v0.6.6

SetType sets the "type" field.

func (*MirrorActivityUpdateOne) SetUpdatedAt added in v0.6.6

SetUpdatedAt sets the "updated_at" field.

type MirrorClient added in v0.6.6

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

MirrorClient is a client for the Mirror schema.

func NewMirrorClient added in v0.6.6

func NewMirrorClient(c config) *MirrorClient

NewMirrorClient returns a client for the Mirror from the given config.

func (*MirrorClient) Create added in v0.6.6

func (c *MirrorClient) Create() *MirrorCreate

Create returns a builder for creating a Mirror entity.

func (*MirrorClient) CreateBulk added in v0.6.6

func (c *MirrorClient) CreateBulk(builders ...*MirrorCreate) *MirrorCreateBulk

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

func (*MirrorClient) Delete added in v0.6.6

func (c *MirrorClient) Delete() *MirrorDelete

Delete returns a delete builder for Mirror.

func (*MirrorClient) DeleteOne added in v0.6.6

func (c *MirrorClient) DeleteOne(m *Mirror) *MirrorDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*MirrorClient) DeleteOneID added in v0.6.6

func (c *MirrorClient) DeleteOneID(id uuid.UUID) *MirrorDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*MirrorClient) Get added in v0.6.6

func (c *MirrorClient) Get(ctx context.Context, id uuid.UUID) (*Mirror, error)

Get returns a Mirror entity by its id.

func (*MirrorClient) GetX added in v0.6.6

func (c *MirrorClient) GetX(ctx context.Context, id uuid.UUID) *Mirror

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

func (*MirrorClient) Hooks added in v0.6.6

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

Hooks returns the client hooks.

func (*MirrorClient) Query added in v0.6.6

func (c *MirrorClient) Query() *MirrorQuery

Query returns a query builder for Mirror.

func (*MirrorClient) QueryActivities added in v0.6.6

func (c *MirrorClient) QueryActivities(m *Mirror) *MirrorActivityQuery

QueryActivities queries the activities edge of a Mirror.

func (*MirrorClient) QueryInode added in v0.6.6

func (c *MirrorClient) QueryInode(m *Mirror) *InodeQuery

QueryInode queries the inode edge of a Mirror.

func (*MirrorClient) QueryNamespace added in v0.6.6

func (c *MirrorClient) QueryNamespace(m *Mirror) *NamespaceQuery

QueryNamespace queries the namespace edge of a Mirror.

func (*MirrorClient) Update added in v0.6.6

func (c *MirrorClient) Update() *MirrorUpdate

Update returns an update builder for Mirror.

func (*MirrorClient) UpdateOne added in v0.6.6

func (c *MirrorClient) UpdateOne(m *Mirror) *MirrorUpdateOne

UpdateOne returns an update builder for the given entity.

func (*MirrorClient) UpdateOneID added in v0.6.6

func (c *MirrorClient) UpdateOneID(id uuid.UUID) *MirrorUpdateOne

UpdateOneID returns an update builder for the given id.

func (*MirrorClient) Use added in v0.6.6

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

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

type MirrorCreate added in v0.6.6

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

MirrorCreate is the builder for creating a Mirror entity.

func (*MirrorCreate) AddActivities added in v0.6.6

func (mc *MirrorCreate) AddActivities(m ...*MirrorActivity) *MirrorCreate

AddActivities adds the "activities" edges to the MirrorActivity entity.

func (*MirrorCreate) AddActivityIDs added in v0.6.6

func (mc *MirrorCreate) AddActivityIDs(ids ...uuid.UUID) *MirrorCreate

AddActivityIDs adds the "activities" edge to the MirrorActivity entity by IDs.

func (*MirrorCreate) Exec added in v0.6.6

func (mc *MirrorCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*MirrorCreate) ExecX added in v0.6.6

func (mc *MirrorCreate) ExecX(ctx context.Context)

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

func (*MirrorCreate) Mutation added in v0.6.6

func (mc *MirrorCreate) Mutation() *MirrorMutation

Mutation returns the MirrorMutation object of the builder.

func (*MirrorCreate) Save added in v0.6.6

func (mc *MirrorCreate) Save(ctx context.Context) (*Mirror, error)

Save creates the Mirror in the database.

func (*MirrorCreate) SaveX added in v0.6.6

func (mc *MirrorCreate) SaveX(ctx context.Context) *Mirror

SaveX calls Save and panics if Save returns an error.

func (*MirrorCreate) SetCommit added in v0.6.6

func (mc *MirrorCreate) SetCommit(s string) *MirrorCreate

SetCommit sets the "commit" field.

func (*MirrorCreate) SetCron added in v0.6.6

func (mc *MirrorCreate) SetCron(s string) *MirrorCreate

SetCron sets the "cron" field.

func (*MirrorCreate) SetID added in v0.6.6

func (mc *MirrorCreate) SetID(u uuid.UUID) *MirrorCreate

SetID sets the "id" field.

func (*MirrorCreate) SetInode added in v0.6.6

func (mc *MirrorCreate) SetInode(i *Inode) *MirrorCreate

SetInode sets the "inode" edge to the Inode entity.

func (*MirrorCreate) SetInodeID added in v0.6.6

func (mc *MirrorCreate) SetInodeID(id uuid.UUID) *MirrorCreate

SetInodeID sets the "inode" edge to the Inode entity by ID.

func (*MirrorCreate) SetLastSync added in v0.6.6

func (mc *MirrorCreate) SetLastSync(t time.Time) *MirrorCreate

SetLastSync sets the "last_sync" field.

func (*MirrorCreate) SetNamespace added in v0.6.6

func (mc *MirrorCreate) SetNamespace(n *Namespace) *MirrorCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*MirrorCreate) SetNamespaceID added in v0.6.6

func (mc *MirrorCreate) SetNamespaceID(id uuid.UUID) *MirrorCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*MirrorCreate) SetNillableID added in v0.6.6

func (mc *MirrorCreate) SetNillableID(u *uuid.UUID) *MirrorCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*MirrorCreate) SetNillableInodeID added in v0.6.6

func (mc *MirrorCreate) SetNillableInodeID(id *uuid.UUID) *MirrorCreate

SetNillableInodeID sets the "inode" edge to the Inode entity by ID if the given value is not nil.

func (*MirrorCreate) SetNillableLastSync added in v0.6.6

func (mc *MirrorCreate) SetNillableLastSync(t *time.Time) *MirrorCreate

SetNillableLastSync sets the "last_sync" field if the given value is not nil.

func (*MirrorCreate) SetNillableUpdatedAt added in v0.6.6

func (mc *MirrorCreate) SetNillableUpdatedAt(t *time.Time) *MirrorCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*MirrorCreate) SetPassphrase added in v0.6.6

func (mc *MirrorCreate) SetPassphrase(s string) *MirrorCreate

SetPassphrase sets the "passphrase" field.

func (*MirrorCreate) SetPrivateKey added in v0.6.6

func (mc *MirrorCreate) SetPrivateKey(s string) *MirrorCreate

SetPrivateKey sets the "private_key" field.

func (*MirrorCreate) SetPublicKey added in v0.6.6

func (mc *MirrorCreate) SetPublicKey(s string) *MirrorCreate

SetPublicKey sets the "public_key" field.

func (*MirrorCreate) SetRef added in v0.6.6

func (mc *MirrorCreate) SetRef(s string) *MirrorCreate

SetRef sets the "ref" field.

func (*MirrorCreate) SetURL added in v0.6.6

func (mc *MirrorCreate) SetURL(s string) *MirrorCreate

SetURL sets the "url" field.

func (*MirrorCreate) SetUpdatedAt added in v0.6.6

func (mc *MirrorCreate) SetUpdatedAt(t time.Time) *MirrorCreate

SetUpdatedAt sets the "updated_at" field.

type MirrorCreateBulk added in v0.6.6

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

MirrorCreateBulk is the builder for creating many Mirror entities in bulk.

func (*MirrorCreateBulk) Exec added in v0.6.6

func (mcb *MirrorCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*MirrorCreateBulk) ExecX added in v0.6.6

func (mcb *MirrorCreateBulk) ExecX(ctx context.Context)

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

func (*MirrorCreateBulk) Save added in v0.6.6

func (mcb *MirrorCreateBulk) Save(ctx context.Context) ([]*Mirror, error)

Save creates the Mirror entities in the database.

func (*MirrorCreateBulk) SaveX added in v0.6.6

func (mcb *MirrorCreateBulk) SaveX(ctx context.Context) []*Mirror

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

type MirrorDelete added in v0.6.6

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

MirrorDelete is the builder for deleting a Mirror entity.

func (*MirrorDelete) Exec added in v0.6.6

func (md *MirrorDelete) Exec(ctx context.Context) (int, error)

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

func (*MirrorDelete) ExecX added in v0.6.6

func (md *MirrorDelete) ExecX(ctx context.Context) int

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

func (*MirrorDelete) Where added in v0.6.6

func (md *MirrorDelete) Where(ps ...predicate.Mirror) *MirrorDelete

Where appends a list predicates to the MirrorDelete builder.

type MirrorDeleteOne added in v0.6.6

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

MirrorDeleteOne is the builder for deleting a single Mirror entity.

func (*MirrorDeleteOne) Exec added in v0.6.6

func (mdo *MirrorDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*MirrorDeleteOne) ExecX added in v0.6.6

func (mdo *MirrorDeleteOne) ExecX(ctx context.Context)

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

type MirrorEdges added in v0.6.6

type MirrorEdges struct {
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Inode holds the value of the inode edge.
	Inode *Inode `json:"inode,omitempty"`
	// Activities holds the value of the activities edge.
	Activities []*MirrorActivity `json:"activities,omitempty"`
	// contains filtered or unexported fields
}

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

func (MirrorEdges) ActivitiesOrErr added in v0.6.6

func (e MirrorEdges) ActivitiesOrErr() ([]*MirrorActivity, error)

ActivitiesOrErr returns the Activities value or an error if the edge was not loaded in eager-loading.

func (MirrorEdges) InodeOrErr added in v0.6.6

func (e MirrorEdges) InodeOrErr() (*Inode, error)

InodeOrErr returns the Inode value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (MirrorEdges) NamespaceOrErr added in v0.6.6

func (e MirrorEdges) 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.

type MirrorGroupBy added in v0.6.6

type MirrorGroupBy struct {
	// contains filtered or unexported fields
}

MirrorGroupBy is the group-by builder for Mirror entities.

func (*MirrorGroupBy) Aggregate added in v0.6.6

func (mgb *MirrorGroupBy) Aggregate(fns ...AggregateFunc) *MirrorGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*MirrorGroupBy) Bool added in v0.6.6

func (s *MirrorGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) BoolX added in v0.6.6

func (s *MirrorGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*MirrorGroupBy) Bools added in v0.6.6

func (s *MirrorGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) BoolsX added in v0.6.6

func (s *MirrorGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*MirrorGroupBy) Float64 added in v0.6.6

func (s *MirrorGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) Float64X added in v0.6.6

func (s *MirrorGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*MirrorGroupBy) Float64s added in v0.6.6

func (s *MirrorGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) Float64sX added in v0.6.6

func (s *MirrorGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*MirrorGroupBy) Int added in v0.6.6

func (s *MirrorGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) IntX added in v0.6.6

func (s *MirrorGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*MirrorGroupBy) Ints added in v0.6.6

func (s *MirrorGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) IntsX added in v0.6.6

func (s *MirrorGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*MirrorGroupBy) Scan added in v0.6.6

func (mgb *MirrorGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*MirrorGroupBy) ScanX added in v0.6.6

func (s *MirrorGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*MirrorGroupBy) String added in v0.6.6

func (s *MirrorGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) StringX added in v0.6.6

func (s *MirrorGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*MirrorGroupBy) Strings added in v0.6.6

func (s *MirrorGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*MirrorGroupBy) StringsX added in v0.6.6

func (s *MirrorGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type MirrorMutation added in v0.6.6

type MirrorMutation struct {
	// contains filtered or unexported fields
}

MirrorMutation represents an operation that mutates the Mirror nodes in the graph.

func (*MirrorMutation) ActivitiesCleared added in v0.6.6

func (m *MirrorMutation) ActivitiesCleared() bool

ActivitiesCleared reports if the "activities" edge to the MirrorActivity entity was cleared.

func (*MirrorMutation) ActivitiesIDs added in v0.6.6

func (m *MirrorMutation) ActivitiesIDs() (ids []uuid.UUID)

ActivitiesIDs returns the "activities" edge IDs in the mutation.

func (*MirrorMutation) AddActivityIDs added in v0.6.6

func (m *MirrorMutation) AddActivityIDs(ids ...uuid.UUID)

AddActivityIDs adds the "activities" edge to the MirrorActivity entity by ids.

func (*MirrorMutation) AddField added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) AddedEdges added in v0.6.6

func (m *MirrorMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*MirrorMutation) AddedField added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) AddedFields added in v0.6.6

func (m *MirrorMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*MirrorMutation) AddedIDs added in v0.6.6

func (m *MirrorMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*MirrorMutation) ClearActivities added in v0.6.6

func (m *MirrorMutation) ClearActivities()

ClearActivities clears the "activities" edge to the MirrorActivity entity.

func (*MirrorMutation) ClearEdge added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) ClearField added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) ClearInode added in v0.6.6

func (m *MirrorMutation) ClearInode()

ClearInode clears the "inode" edge to the Inode entity.

func (*MirrorMutation) ClearLastSync added in v0.6.6

func (m *MirrorMutation) ClearLastSync()

ClearLastSync clears the value of the "last_sync" field.

func (*MirrorMutation) ClearNamespace added in v0.6.6

func (m *MirrorMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*MirrorMutation) ClearUpdatedAt added in v0.6.6

func (m *MirrorMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*MirrorMutation) ClearedEdges added in v0.6.6

func (m *MirrorMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*MirrorMutation) ClearedFields added in v0.6.6

func (m *MirrorMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (MirrorMutation) Client added in v0.6.6

func (m MirrorMutation) 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 (*MirrorMutation) Commit added in v0.6.6

func (m *MirrorMutation) Commit() (r string, exists bool)

Commit returns the value of the "commit" field in the mutation.

func (*MirrorMutation) Cron added in v0.6.6

func (m *MirrorMutation) Cron() (r string, exists bool)

Cron returns the value of the "cron" field in the mutation.

func (*MirrorMutation) EdgeCleared added in v0.6.6

func (m *MirrorMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*MirrorMutation) Field added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) FieldCleared added in v0.6.6

func (m *MirrorMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*MirrorMutation) Fields added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) ID added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) IDs added in v0.6.6

func (m *MirrorMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*MirrorMutation) InodeCleared added in v0.6.6

func (m *MirrorMutation) InodeCleared() bool

InodeCleared reports if the "inode" edge to the Inode entity was cleared.

func (*MirrorMutation) InodeID added in v0.6.6

func (m *MirrorMutation) InodeID() (id uuid.UUID, exists bool)

InodeID returns the "inode" edge ID in the mutation.

func (*MirrorMutation) InodeIDs added in v0.6.6

func (m *MirrorMutation) InodeIDs() (ids []uuid.UUID)

InodeIDs returns the "inode" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use InodeID instead. It exists only for internal usage by the builders.

func (*MirrorMutation) LastSync added in v0.6.6

func (m *MirrorMutation) LastSync() (r time.Time, exists bool)

LastSync returns the value of the "last_sync" field in the mutation.

func (*MirrorMutation) LastSyncCleared added in v0.6.6

func (m *MirrorMutation) LastSyncCleared() bool

LastSyncCleared returns if the "last_sync" field was cleared in this mutation.

func (*MirrorMutation) NamespaceCleared added in v0.6.6

func (m *MirrorMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*MirrorMutation) NamespaceID added in v0.6.6

func (m *MirrorMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*MirrorMutation) NamespaceIDs added in v0.6.6

func (m *MirrorMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*MirrorMutation) OldCommit added in v0.6.6

func (m *MirrorMutation) OldCommit(ctx context.Context) (v string, err error)

OldCommit returns the old "commit" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldCron added in v0.6.6

func (m *MirrorMutation) OldCron(ctx context.Context) (v string, err error)

OldCron returns the old "cron" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldField added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) OldLastSync added in v0.6.6

func (m *MirrorMutation) OldLastSync(ctx context.Context) (v *time.Time, err error)

OldLastSync returns the old "last_sync" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldPassphrase added in v0.6.6

func (m *MirrorMutation) OldPassphrase(ctx context.Context) (v string, err error)

OldPassphrase returns the old "passphrase" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldPrivateKey added in v0.6.6

func (m *MirrorMutation) OldPrivateKey(ctx context.Context) (v string, err error)

OldPrivateKey returns the old "private_key" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldPublicKey added in v0.6.6

func (m *MirrorMutation) OldPublicKey(ctx context.Context) (v string, err error)

OldPublicKey returns the old "public_key" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldRef added in v0.6.6

func (m *MirrorMutation) OldRef(ctx context.Context) (v string, err error)

OldRef returns the old "ref" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldURL added in v0.6.6

func (m *MirrorMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) OldUpdatedAt added in v0.6.6

func (m *MirrorMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Mirror entity. If the Mirror 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 (*MirrorMutation) Op added in v0.6.6

func (m *MirrorMutation) Op() Op

Op returns the operation name.

func (*MirrorMutation) Passphrase added in v0.6.6

func (m *MirrorMutation) Passphrase() (r string, exists bool)

Passphrase returns the value of the "passphrase" field in the mutation.

func (*MirrorMutation) PrivateKey added in v0.6.6

func (m *MirrorMutation) PrivateKey() (r string, exists bool)

PrivateKey returns the value of the "private_key" field in the mutation.

func (*MirrorMutation) PublicKey added in v0.6.6

func (m *MirrorMutation) PublicKey() (r string, exists bool)

PublicKey returns the value of the "public_key" field in the mutation.

func (*MirrorMutation) Ref added in v0.6.6

func (m *MirrorMutation) Ref() (r string, exists bool)

Ref returns the value of the "ref" field in the mutation.

func (*MirrorMutation) RemoveActivityIDs added in v0.6.6

func (m *MirrorMutation) RemoveActivityIDs(ids ...uuid.UUID)

RemoveActivityIDs removes the "activities" edge to the MirrorActivity entity by IDs.

func (*MirrorMutation) RemovedActivitiesIDs added in v0.6.6

func (m *MirrorMutation) RemovedActivitiesIDs() (ids []uuid.UUID)

RemovedActivities returns the removed IDs of the "activities" edge to the MirrorActivity entity.

func (*MirrorMutation) RemovedEdges added in v0.6.6

func (m *MirrorMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*MirrorMutation) RemovedIDs added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) ResetActivities added in v0.6.6

func (m *MirrorMutation) ResetActivities()

ResetActivities resets all changes to the "activities" edge.

func (*MirrorMutation) ResetCommit added in v0.6.6

func (m *MirrorMutation) ResetCommit()

ResetCommit resets all changes to the "commit" field.

func (*MirrorMutation) ResetCron added in v0.6.6

func (m *MirrorMutation) ResetCron()

ResetCron resets all changes to the "cron" field.

func (*MirrorMutation) ResetEdge added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) ResetField added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) ResetInode added in v0.6.6

func (m *MirrorMutation) ResetInode()

ResetInode resets all changes to the "inode" edge.

func (*MirrorMutation) ResetLastSync added in v0.6.6

func (m *MirrorMutation) ResetLastSync()

ResetLastSync resets all changes to the "last_sync" field.

func (*MirrorMutation) ResetNamespace added in v0.6.6

func (m *MirrorMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*MirrorMutation) ResetPassphrase added in v0.6.6

func (m *MirrorMutation) ResetPassphrase()

ResetPassphrase resets all changes to the "passphrase" field.

func (*MirrorMutation) ResetPrivateKey added in v0.6.6

func (m *MirrorMutation) ResetPrivateKey()

ResetPrivateKey resets all changes to the "private_key" field.

func (*MirrorMutation) ResetPublicKey added in v0.6.6

func (m *MirrorMutation) ResetPublicKey()

ResetPublicKey resets all changes to the "public_key" field.

func (*MirrorMutation) ResetRef added in v0.6.6

func (m *MirrorMutation) ResetRef()

ResetRef resets all changes to the "ref" field.

func (*MirrorMutation) ResetURL added in v0.6.6

func (m *MirrorMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*MirrorMutation) ResetUpdatedAt added in v0.6.6

func (m *MirrorMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*MirrorMutation) SetCommit added in v0.6.6

func (m *MirrorMutation) SetCommit(s string)

SetCommit sets the "commit" field.

func (*MirrorMutation) SetCron added in v0.6.6

func (m *MirrorMutation) SetCron(s string)

SetCron sets the "cron" field.

func (*MirrorMutation) SetField added in v0.6.6

func (m *MirrorMutation) 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 (*MirrorMutation) SetID added in v0.6.6

func (m *MirrorMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Mirror entities.

func (*MirrorMutation) SetInodeID added in v0.6.6

func (m *MirrorMutation) SetInodeID(id uuid.UUID)

SetInodeID sets the "inode" edge to the Inode entity by id.

func (*MirrorMutation) SetLastSync added in v0.6.6

func (m *MirrorMutation) SetLastSync(t time.Time)

SetLastSync sets the "last_sync" field.

func (*MirrorMutation) SetNamespaceID added in v0.6.6

func (m *MirrorMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*MirrorMutation) SetPassphrase added in v0.6.6

func (m *MirrorMutation) SetPassphrase(s string)

SetPassphrase sets the "passphrase" field.

func (*MirrorMutation) SetPrivateKey added in v0.6.6

func (m *MirrorMutation) SetPrivateKey(s string)

SetPrivateKey sets the "private_key" field.

func (*MirrorMutation) SetPublicKey added in v0.6.6

func (m *MirrorMutation) SetPublicKey(s string)

SetPublicKey sets the "public_key" field.

func (*MirrorMutation) SetRef added in v0.6.6

func (m *MirrorMutation) SetRef(s string)

SetRef sets the "ref" field.

func (*MirrorMutation) SetURL added in v0.6.6

func (m *MirrorMutation) SetURL(s string)

SetURL sets the "url" field.

func (*MirrorMutation) SetUpdatedAt added in v0.6.6

func (m *MirrorMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (MirrorMutation) Tx added in v0.6.6

func (m MirrorMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*MirrorMutation) Type added in v0.6.6

func (m *MirrorMutation) Type() string

Type returns the node type of this mutation (Mirror).

func (*MirrorMutation) URL added in v0.6.6

func (m *MirrorMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*MirrorMutation) UpdatedAt added in v0.6.6

func (m *MirrorMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*MirrorMutation) UpdatedAtCleared added in v0.6.6

func (m *MirrorMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*MirrorMutation) Where added in v0.6.6

func (m *MirrorMutation) Where(ps ...predicate.Mirror)

Where appends a list predicates to the MirrorMutation builder.

type MirrorQuery added in v0.6.6

type MirrorQuery struct {
	// contains filtered or unexported fields
}

MirrorQuery is the builder for querying Mirror entities.

func (*MirrorQuery) All added in v0.6.6

func (mq *MirrorQuery) All(ctx context.Context) ([]*Mirror, error)

All executes the query and returns a list of Mirrors.

func (*MirrorQuery) AllX added in v0.6.6

func (mq *MirrorQuery) AllX(ctx context.Context) []*Mirror

AllX is like All, but panics if an error occurs.

func (*MirrorQuery) Clone added in v0.6.6

func (mq *MirrorQuery) Clone() *MirrorQuery

Clone returns a duplicate of the MirrorQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*MirrorQuery) CollectFields added in v0.6.6

func (m *MirrorQuery) CollectFields(ctx context.Context, satisfies ...string) *MirrorQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*MirrorQuery) Count added in v0.6.6

func (mq *MirrorQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*MirrorQuery) CountX added in v0.6.6

func (mq *MirrorQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*MirrorQuery) Exist added in v0.6.6

func (mq *MirrorQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*MirrorQuery) ExistX added in v0.6.6

func (mq *MirrorQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*MirrorQuery) First added in v0.6.6

func (mq *MirrorQuery) First(ctx context.Context) (*Mirror, error)

First returns the first Mirror entity from the query. Returns a *NotFoundError when no Mirror was found.

func (*MirrorQuery) FirstID added in v0.6.6

func (mq *MirrorQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first Mirror ID from the query. Returns a *NotFoundError when no Mirror ID was found.

func (*MirrorQuery) FirstIDX added in v0.6.6

func (mq *MirrorQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*MirrorQuery) FirstX added in v0.6.6

func (mq *MirrorQuery) FirstX(ctx context.Context) *Mirror

FirstX is like First, but panics if an error occurs.

func (*MirrorQuery) GroupBy added in v0.6.6

func (mq *MirrorQuery) GroupBy(field string, fields ...string) *MirrorGroupBy

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 {
	URL string `json:"url,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Mirror.Query().
	GroupBy(mirror.FieldURL).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*MirrorQuery) IDs added in v0.6.6

func (mq *MirrorQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of Mirror IDs.

func (*MirrorQuery) IDsX added in v0.6.6

func (mq *MirrorQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*MirrorQuery) Limit added in v0.6.6

func (mq *MirrorQuery) Limit(limit int) *MirrorQuery

Limit adds a limit step to the query.

func (*MirrorQuery) Offset added in v0.6.6

func (mq *MirrorQuery) Offset(offset int) *MirrorQuery

Offset adds an offset step to the query.

func (*MirrorQuery) Only added in v0.6.6

func (mq *MirrorQuery) Only(ctx context.Context) (*Mirror, error)

Only returns a single Mirror entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Mirror entity is found. Returns a *NotFoundError when no Mirror entities are found.

func (*MirrorQuery) OnlyID added in v0.6.6

func (mq *MirrorQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Mirror ID in the query. Returns a *NotSingularError when more than one Mirror ID is found. Returns a *NotFoundError when no entities are found.

func (*MirrorQuery) OnlyIDX added in v0.6.6

func (mq *MirrorQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*MirrorQuery) OnlyX added in v0.6.6

func (mq *MirrorQuery) OnlyX(ctx context.Context) *Mirror

OnlyX is like Only, but panics if an error occurs.

func (*MirrorQuery) Order added in v0.6.6

func (mq *MirrorQuery) Order(o ...OrderFunc) *MirrorQuery

Order adds an order step to the query.

func (*MirrorQuery) QueryActivities added in v0.6.6

func (mq *MirrorQuery) QueryActivities() *MirrorActivityQuery

QueryActivities chains the current query on the "activities" edge.

func (*MirrorQuery) QueryInode added in v0.6.6

func (mq *MirrorQuery) QueryInode() *InodeQuery

QueryInode chains the current query on the "inode" edge.

func (*MirrorQuery) QueryNamespace added in v0.6.6

func (mq *MirrorQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*MirrorQuery) Select added in v0.6.6

func (mq *MirrorQuery) Select(fields ...string) *MirrorSelect

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 {
	URL string `json:"url,omitempty"`
}

client.Mirror.Query().
	Select(mirror.FieldURL).
	Scan(ctx, &v)

func (*MirrorQuery) Unique added in v0.6.6

func (mq *MirrorQuery) Unique(unique bool) *MirrorQuery

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 (*MirrorQuery) Where added in v0.6.6

func (mq *MirrorQuery) Where(ps ...predicate.Mirror) *MirrorQuery

Where adds a new predicate for the MirrorQuery builder.

func (*MirrorQuery) WithActivities added in v0.6.6

func (mq *MirrorQuery) WithActivities(opts ...func(*MirrorActivityQuery)) *MirrorQuery

WithActivities tells the query-builder to eager-load the nodes that are connected to the "activities" edge. The optional arguments are used to configure the query builder of the edge.

func (*MirrorQuery) WithInode added in v0.6.6

func (mq *MirrorQuery) WithInode(opts ...func(*InodeQuery)) *MirrorQuery

WithInode tells the query-builder to eager-load the nodes that are connected to the "inode" edge. The optional arguments are used to configure the query builder of the edge.

func (*MirrorQuery) WithNamespace added in v0.6.6

func (mq *MirrorQuery) WithNamespace(opts ...func(*NamespaceQuery)) *MirrorQuery

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.

type MirrorSelect added in v0.6.6

type MirrorSelect struct {
	*MirrorQuery
	// contains filtered or unexported fields
}

MirrorSelect is the builder for selecting fields of Mirror entities.

func (*MirrorSelect) Bool added in v0.6.6

func (s *MirrorSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) BoolX added in v0.6.6

func (s *MirrorSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*MirrorSelect) Bools added in v0.6.6

func (s *MirrorSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) BoolsX added in v0.6.6

func (s *MirrorSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*MirrorSelect) Float64 added in v0.6.6

func (s *MirrorSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) Float64X added in v0.6.6

func (s *MirrorSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*MirrorSelect) Float64s added in v0.6.6

func (s *MirrorSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) Float64sX added in v0.6.6

func (s *MirrorSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*MirrorSelect) Int added in v0.6.6

func (s *MirrorSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) IntX added in v0.6.6

func (s *MirrorSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*MirrorSelect) Ints added in v0.6.6

func (s *MirrorSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) IntsX added in v0.6.6

func (s *MirrorSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*MirrorSelect) Scan added in v0.6.6

func (ms *MirrorSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*MirrorSelect) ScanX added in v0.6.6

func (s *MirrorSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*MirrorSelect) String added in v0.6.6

func (s *MirrorSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) StringX added in v0.6.6

func (s *MirrorSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*MirrorSelect) Strings added in v0.6.6

func (s *MirrorSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*MirrorSelect) StringsX added in v0.6.6

func (s *MirrorSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type MirrorUpdate added in v0.6.6

type MirrorUpdate struct {
	// contains filtered or unexported fields
}

MirrorUpdate is the builder for updating Mirror entities.

func (*MirrorUpdate) AddActivities added in v0.6.6

func (mu *MirrorUpdate) AddActivities(m ...*MirrorActivity) *MirrorUpdate

AddActivities adds the "activities" edges to the MirrorActivity entity.

func (*MirrorUpdate) AddActivityIDs added in v0.6.6

func (mu *MirrorUpdate) AddActivityIDs(ids ...uuid.UUID) *MirrorUpdate

AddActivityIDs adds the "activities" edge to the MirrorActivity entity by IDs.

func (*MirrorUpdate) ClearActivities added in v0.6.6

func (mu *MirrorUpdate) ClearActivities() *MirrorUpdate

ClearActivities clears all "activities" edges to the MirrorActivity entity.

func (*MirrorUpdate) ClearInode added in v0.6.6

func (mu *MirrorUpdate) ClearInode() *MirrorUpdate

ClearInode clears the "inode" edge to the Inode entity.

func (*MirrorUpdate) ClearLastSync added in v0.6.6

func (mu *MirrorUpdate) ClearLastSync() *MirrorUpdate

ClearLastSync clears the value of the "last_sync" field.

func (*MirrorUpdate) ClearNamespace added in v0.6.6

func (mu *MirrorUpdate) ClearNamespace() *MirrorUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*MirrorUpdate) ClearUpdatedAt added in v0.6.6

func (mu *MirrorUpdate) ClearUpdatedAt() *MirrorUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*MirrorUpdate) Exec added in v0.6.6

func (mu *MirrorUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*MirrorUpdate) ExecX added in v0.6.6

func (mu *MirrorUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*MirrorUpdate) Mutation added in v0.6.6

func (mu *MirrorUpdate) Mutation() *MirrorMutation

Mutation returns the MirrorMutation object of the builder.

func (*MirrorUpdate) RemoveActivities added in v0.6.6

func (mu *MirrorUpdate) RemoveActivities(m ...*MirrorActivity) *MirrorUpdate

RemoveActivities removes "activities" edges to MirrorActivity entities.

func (*MirrorUpdate) RemoveActivityIDs added in v0.6.6

func (mu *MirrorUpdate) RemoveActivityIDs(ids ...uuid.UUID) *MirrorUpdate

RemoveActivityIDs removes the "activities" edge to MirrorActivity entities by IDs.

func (*MirrorUpdate) Save added in v0.6.6

func (mu *MirrorUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*MirrorUpdate) SaveX added in v0.6.6

func (mu *MirrorUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*MirrorUpdate) SetCommit added in v0.6.6

func (mu *MirrorUpdate) SetCommit(s string) *MirrorUpdate

SetCommit sets the "commit" field.

func (*MirrorUpdate) SetCron added in v0.6.6

func (mu *MirrorUpdate) SetCron(s string) *MirrorUpdate

SetCron sets the "cron" field.

func (*MirrorUpdate) SetInode added in v0.6.6

func (mu *MirrorUpdate) SetInode(i *Inode) *MirrorUpdate

SetInode sets the "inode" edge to the Inode entity.

func (*MirrorUpdate) SetInodeID added in v0.6.6

func (mu *MirrorUpdate) SetInodeID(id uuid.UUID) *MirrorUpdate

SetInodeID sets the "inode" edge to the Inode entity by ID.

func (*MirrorUpdate) SetLastSync added in v0.6.6

func (mu *MirrorUpdate) SetLastSync(t time.Time) *MirrorUpdate

SetLastSync sets the "last_sync" field.

func (*MirrorUpdate) SetNamespace added in v0.6.6

func (mu *MirrorUpdate) SetNamespace(n *Namespace) *MirrorUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*MirrorUpdate) SetNamespaceID added in v0.6.6

func (mu *MirrorUpdate) SetNamespaceID(id uuid.UUID) *MirrorUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*MirrorUpdate) SetNillableInodeID added in v0.6.6

func (mu *MirrorUpdate) SetNillableInodeID(id *uuid.UUID) *MirrorUpdate

SetNillableInodeID sets the "inode" edge to the Inode entity by ID if the given value is not nil.

func (*MirrorUpdate) SetNillableLastSync added in v0.6.6

func (mu *MirrorUpdate) SetNillableLastSync(t *time.Time) *MirrorUpdate

SetNillableLastSync sets the "last_sync" field if the given value is not nil.

func (*MirrorUpdate) SetPassphrase added in v0.6.6

func (mu *MirrorUpdate) SetPassphrase(s string) *MirrorUpdate

SetPassphrase sets the "passphrase" field.

func (*MirrorUpdate) SetPrivateKey added in v0.6.6

func (mu *MirrorUpdate) SetPrivateKey(s string) *MirrorUpdate

SetPrivateKey sets the "private_key" field.

func (*MirrorUpdate) SetPublicKey added in v0.6.6

func (mu *MirrorUpdate) SetPublicKey(s string) *MirrorUpdate

SetPublicKey sets the "public_key" field.

func (*MirrorUpdate) SetRef added in v0.6.6

func (mu *MirrorUpdate) SetRef(s string) *MirrorUpdate

SetRef sets the "ref" field.

func (*MirrorUpdate) SetURL added in v0.6.6

func (mu *MirrorUpdate) SetURL(s string) *MirrorUpdate

SetURL sets the "url" field.

func (*MirrorUpdate) SetUpdatedAt added in v0.6.6

func (mu *MirrorUpdate) SetUpdatedAt(t time.Time) *MirrorUpdate

SetUpdatedAt sets the "updated_at" field.

func (*MirrorUpdate) Where added in v0.6.6

func (mu *MirrorUpdate) Where(ps ...predicate.Mirror) *MirrorUpdate

Where appends a list predicates to the MirrorUpdate builder.

type MirrorUpdateOne added in v0.6.6

type MirrorUpdateOne struct {
	// contains filtered or unexported fields
}

MirrorUpdateOne is the builder for updating a single Mirror entity.

func (*MirrorUpdateOne) AddActivities added in v0.6.6

func (muo *MirrorUpdateOne) AddActivities(m ...*MirrorActivity) *MirrorUpdateOne

AddActivities adds the "activities" edges to the MirrorActivity entity.

func (*MirrorUpdateOne) AddActivityIDs added in v0.6.6

func (muo *MirrorUpdateOne) AddActivityIDs(ids ...uuid.UUID) *MirrorUpdateOne

AddActivityIDs adds the "activities" edge to the MirrorActivity entity by IDs.

func (*MirrorUpdateOne) ClearActivities added in v0.6.6

func (muo *MirrorUpdateOne) ClearActivities() *MirrorUpdateOne

ClearActivities clears all "activities" edges to the MirrorActivity entity.

func (*MirrorUpdateOne) ClearInode added in v0.6.6

func (muo *MirrorUpdateOne) ClearInode() *MirrorUpdateOne

ClearInode clears the "inode" edge to the Inode entity.

func (*MirrorUpdateOne) ClearLastSync added in v0.6.6

func (muo *MirrorUpdateOne) ClearLastSync() *MirrorUpdateOne

ClearLastSync clears the value of the "last_sync" field.

func (*MirrorUpdateOne) ClearNamespace added in v0.6.6

func (muo *MirrorUpdateOne) ClearNamespace() *MirrorUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*MirrorUpdateOne) ClearUpdatedAt added in v0.6.6

func (muo *MirrorUpdateOne) ClearUpdatedAt() *MirrorUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*MirrorUpdateOne) Exec added in v0.6.6

func (muo *MirrorUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*MirrorUpdateOne) ExecX added in v0.6.6

func (muo *MirrorUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*MirrorUpdateOne) Mutation added in v0.6.6

func (muo *MirrorUpdateOne) Mutation() *MirrorMutation

Mutation returns the MirrorMutation object of the builder.

func (*MirrorUpdateOne) RemoveActivities added in v0.6.6

func (muo *MirrorUpdateOne) RemoveActivities(m ...*MirrorActivity) *MirrorUpdateOne

RemoveActivities removes "activities" edges to MirrorActivity entities.

func (*MirrorUpdateOne) RemoveActivityIDs added in v0.6.6

func (muo *MirrorUpdateOne) RemoveActivityIDs(ids ...uuid.UUID) *MirrorUpdateOne

RemoveActivityIDs removes the "activities" edge to MirrorActivity entities by IDs.

func (*MirrorUpdateOne) Save added in v0.6.6

func (muo *MirrorUpdateOne) Save(ctx context.Context) (*Mirror, error)

Save executes the query and returns the updated Mirror entity.

func (*MirrorUpdateOne) SaveX added in v0.6.6

func (muo *MirrorUpdateOne) SaveX(ctx context.Context) *Mirror

SaveX is like Save, but panics if an error occurs.

func (*MirrorUpdateOne) Select added in v0.6.6

func (muo *MirrorUpdateOne) Select(field string, fields ...string) *MirrorUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*MirrorUpdateOne) SetCommit added in v0.6.6

func (muo *MirrorUpdateOne) SetCommit(s string) *MirrorUpdateOne

SetCommit sets the "commit" field.

func (*MirrorUpdateOne) SetCron added in v0.6.6

func (muo *MirrorUpdateOne) SetCron(s string) *MirrorUpdateOne

SetCron sets the "cron" field.

func (*MirrorUpdateOne) SetInode added in v0.6.6

func (muo *MirrorUpdateOne) SetInode(i *Inode) *MirrorUpdateOne

SetInode sets the "inode" edge to the Inode entity.

func (*MirrorUpdateOne) SetInodeID added in v0.6.6

func (muo *MirrorUpdateOne) SetInodeID(id uuid.UUID) *MirrorUpdateOne

SetInodeID sets the "inode" edge to the Inode entity by ID.

func (*MirrorUpdateOne) SetLastSync added in v0.6.6

func (muo *MirrorUpdateOne) SetLastSync(t time.Time) *MirrorUpdateOne

SetLastSync sets the "last_sync" field.

func (*MirrorUpdateOne) SetNamespace added in v0.6.6

func (muo *MirrorUpdateOne) SetNamespace(n *Namespace) *MirrorUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*MirrorUpdateOne) SetNamespaceID added in v0.6.6

func (muo *MirrorUpdateOne) SetNamespaceID(id uuid.UUID) *MirrorUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*MirrorUpdateOne) SetNillableInodeID added in v0.6.6

func (muo *MirrorUpdateOne) SetNillableInodeID(id *uuid.UUID) *MirrorUpdateOne

SetNillableInodeID sets the "inode" edge to the Inode entity by ID if the given value is not nil.

func (*MirrorUpdateOne) SetNillableLastSync added in v0.6.6

func (muo *MirrorUpdateOne) SetNillableLastSync(t *time.Time) *MirrorUpdateOne

SetNillableLastSync sets the "last_sync" field if the given value is not nil.

func (*MirrorUpdateOne) SetPassphrase added in v0.6.6

func (muo *MirrorUpdateOne) SetPassphrase(s string) *MirrorUpdateOne

SetPassphrase sets the "passphrase" field.

func (*MirrorUpdateOne) SetPrivateKey added in v0.6.6

func (muo *MirrorUpdateOne) SetPrivateKey(s string) *MirrorUpdateOne

SetPrivateKey sets the "private_key" field.

func (*MirrorUpdateOne) SetPublicKey added in v0.6.6

func (muo *MirrorUpdateOne) SetPublicKey(s string) *MirrorUpdateOne

SetPublicKey sets the "public_key" field.

func (*MirrorUpdateOne) SetRef added in v0.6.6

func (muo *MirrorUpdateOne) SetRef(s string) *MirrorUpdateOne

SetRef sets the "ref" field.

func (*MirrorUpdateOne) SetURL added in v0.6.6

func (muo *MirrorUpdateOne) SetURL(s string) *MirrorUpdateOne

SetURL sets the "url" field.

func (*MirrorUpdateOne) SetUpdatedAt added in v0.6.6

func (muo *MirrorUpdateOne) SetUpdatedAt(t time.Time) *MirrorUpdateOne

SetUpdatedAt sets the "updated_at" field.

type Mirrors added in v0.6.6

type Mirrors []*Mirror

Mirrors is a parsable slice of Mirror.

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 uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Config holds the value of the "config" field.
	Config string `json:"config,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,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) Cloudevents

func (n *Namespace) Cloudevents(ctx context.Context) ([]*CloudEvents, error)

func (*Namespace) Inodes

func (n *Namespace) Inodes(ctx context.Context) ([]*Inode, error)

func (*Namespace) Instances

func (n *Namespace) Instances(ctx context.Context) ([]*Instance, error)

func (*Namespace) Logs

func (n *Namespace) Logs(ctx context.Context) ([]*LogMsg, error)

func (*Namespace) MirrorActivities added in v0.6.6

func (n *Namespace) MirrorActivities(ctx context.Context) ([]*MirrorActivity, error)

func (*Namespace) Mirrors added in v0.6.6

func (n *Namespace) Mirrors(ctx context.Context) ([]*Mirror, error)

func (*Namespace) Namespacelisteners added in v0.6.0

func (n *Namespace) Namespacelisteners(ctx context.Context) ([]*Events, error)

func (*Namespace) QueryCloudevents

func (n *Namespace) QueryCloudevents() *CloudEventsQuery

QueryCloudevents queries the "cloudevents" edge of the Namespace entity.

func (*Namespace) QueryInodes

func (n *Namespace) QueryInodes() *InodeQuery

QueryInodes queries the "inodes" edge of the Namespace entity.

func (*Namespace) QueryInstances

func (n *Namespace) QueryInstances() *InstanceQuery

QueryInstances queries the "instances" edge of the Namespace entity.

func (*Namespace) QueryLogs

func (n *Namespace) QueryLogs() *LogMsgQuery

QueryLogs queries the "logs" edge of the Namespace entity.

func (*Namespace) QueryMirrorActivities added in v0.6.6

func (n *Namespace) QueryMirrorActivities() *MirrorActivityQuery

QueryMirrorActivities queries the "mirror_activities" edge of the Namespace entity.

func (*Namespace) QueryMirrors added in v0.6.6

func (n *Namespace) QueryMirrors() *MirrorQuery

QueryMirrors queries the "mirrors" edge of the Namespace entity.

func (*Namespace) QueryNamespacelisteners added in v0.6.0

func (n *Namespace) QueryNamespacelisteners() *EventsQuery

QueryNamespacelisteners queries the "namespacelisteners" edge of the Namespace entity.

func (*Namespace) QueryVars

func (n *Namespace) QueryVars() *VarRefQuery

QueryVars queries the "vars" edge of the Namespace entity.

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.

func (*Namespace) Vars

func (n *Namespace) Vars(ctx context.Context) ([]*VarRef, error)

func (*Namespace) Workflows

func (n *Namespace) Workflows(ctx context.Context) ([]*Workflow, error)

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 builder for creating a Namespace entity.

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 builder for deleting the given entity.

func (*NamespaceClient) DeleteOneID

func (c *NamespaceClient) DeleteOneID(id uuid.UUID) *NamespaceDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*NamespaceClient) Get

func (c *NamespaceClient) Get(ctx context.Context, id uuid.UUID) (*Namespace, error)

Get returns a Namespace entity by its id.

func (*NamespaceClient) GetX

func (c *NamespaceClient) GetX(ctx context.Context, id uuid.UUID) *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) QueryCloudevents

func (c *NamespaceClient) QueryCloudevents(n *Namespace) *CloudEventsQuery

QueryCloudevents queries the cloudevents edge of a Namespace.

func (*NamespaceClient) QueryInodes

func (c *NamespaceClient) QueryInodes(n *Namespace) *InodeQuery

QueryInodes queries the inodes edge of a Namespace.

func (*NamespaceClient) QueryInstances

func (c *NamespaceClient) QueryInstances(n *Namespace) *InstanceQuery

QueryInstances queries the instances edge of a Namespace.

func (*NamespaceClient) QueryLogs

func (c *NamespaceClient) QueryLogs(n *Namespace) *LogMsgQuery

QueryLogs queries the logs edge of a Namespace.

func (*NamespaceClient) QueryMirrorActivities added in v0.6.6

func (c *NamespaceClient) QueryMirrorActivities(n *Namespace) *MirrorActivityQuery

QueryMirrorActivities queries the mirror_activities edge of a Namespace.

func (*NamespaceClient) QueryMirrors added in v0.6.6

func (c *NamespaceClient) QueryMirrors(n *Namespace) *MirrorQuery

QueryMirrors queries the mirrors edge of a Namespace.

func (*NamespaceClient) QueryNamespacelisteners added in v0.6.0

func (c *NamespaceClient) QueryNamespacelisteners(n *Namespace) *EventsQuery

QueryNamespacelisteners queries the namespacelisteners edge of a Namespace.

func (*NamespaceClient) QueryVars

func (c *NamespaceClient) QueryVars(n *Namespace) *VarRefQuery

QueryVars queries the vars edge of a 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 uuid.UUID) *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) AddCloudeventIDs

func (nc *NamespaceCreate) AddCloudeventIDs(ids ...uuid.UUID) *NamespaceCreate

AddCloudeventIDs adds the "cloudevents" edge to the CloudEvents entity by IDs.

func (*NamespaceCreate) AddCloudevents

func (nc *NamespaceCreate) AddCloudevents(c ...*CloudEvents) *NamespaceCreate

AddCloudevents adds the "cloudevents" edges to the CloudEvents entity.

func (*NamespaceCreate) AddInodeIDs

func (nc *NamespaceCreate) AddInodeIDs(ids ...uuid.UUID) *NamespaceCreate

AddInodeIDs adds the "inodes" edge to the Inode entity by IDs.

func (*NamespaceCreate) AddInodes

func (nc *NamespaceCreate) AddInodes(i ...*Inode) *NamespaceCreate

AddInodes adds the "inodes" edges to the Inode entity.

func (*NamespaceCreate) AddInstanceIDs

func (nc *NamespaceCreate) AddInstanceIDs(ids ...uuid.UUID) *NamespaceCreate

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*NamespaceCreate) AddInstances

func (nc *NamespaceCreate) AddInstances(i ...*Instance) *NamespaceCreate

AddInstances adds the "instances" edges to the Instance entity.

func (*NamespaceCreate) AddLogIDs

func (nc *NamespaceCreate) AddLogIDs(ids ...uuid.UUID) *NamespaceCreate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*NamespaceCreate) AddLogs

func (nc *NamespaceCreate) AddLogs(l ...*LogMsg) *NamespaceCreate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*NamespaceCreate) AddMirrorActivities added in v0.6.6

func (nc *NamespaceCreate) AddMirrorActivities(m ...*MirrorActivity) *NamespaceCreate

AddMirrorActivities adds the "mirror_activities" edges to the MirrorActivity entity.

func (*NamespaceCreate) AddMirrorActivityIDs added in v0.6.6

func (nc *NamespaceCreate) AddMirrorActivityIDs(ids ...uuid.UUID) *NamespaceCreate

AddMirrorActivityIDs adds the "mirror_activities" edge to the MirrorActivity entity by IDs.

func (*NamespaceCreate) AddMirrorIDs added in v0.6.6

func (nc *NamespaceCreate) AddMirrorIDs(ids ...uuid.UUID) *NamespaceCreate

AddMirrorIDs adds the "mirrors" edge to the Mirror entity by IDs.

func (*NamespaceCreate) AddMirrors added in v0.6.6

func (nc *NamespaceCreate) AddMirrors(m ...*Mirror) *NamespaceCreate

AddMirrors adds the "mirrors" edges to the Mirror entity.

func (*NamespaceCreate) AddNamespacelistenerIDs added in v0.6.0

func (nc *NamespaceCreate) AddNamespacelistenerIDs(ids ...uuid.UUID) *NamespaceCreate

AddNamespacelistenerIDs adds the "namespacelisteners" edge to the Events entity by IDs.

func (*NamespaceCreate) AddNamespacelisteners added in v0.6.0

func (nc *NamespaceCreate) AddNamespacelisteners(e ...*Events) *NamespaceCreate

AddNamespacelisteners adds the "namespacelisteners" edges to the Events entity.

func (*NamespaceCreate) AddVarIDs

func (nc *NamespaceCreate) AddVarIDs(ids ...uuid.UUID) *NamespaceCreate

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*NamespaceCreate) AddVars

func (nc *NamespaceCreate) AddVars(v ...*VarRef) *NamespaceCreate

AddVars adds the "vars" edges to the VarRef 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) SetConfig

func (nc *NamespaceCreate) SetConfig(s string) *NamespaceCreate

SetConfig sets the "config" field.

func (*NamespaceCreate) SetCreatedAt

func (nc *NamespaceCreate) SetCreatedAt(t time.Time) *NamespaceCreate

SetCreatedAt sets the "created_at" field.

func (*NamespaceCreate) SetID

func (nc *NamespaceCreate) SetID(u uuid.UUID) *NamespaceCreate

SetID sets the "id" field.

func (*NamespaceCreate) SetName

func (nc *NamespaceCreate) SetName(s string) *NamespaceCreate

SetName sets the "name" field.

func (*NamespaceCreate) SetNillableConfig

func (nc *NamespaceCreate) SetNillableConfig(s *string) *NamespaceCreate

SetNillableConfig sets the "config" field if the given value is not nil.

func (*NamespaceCreate) SetNillableCreatedAt

func (nc *NamespaceCreate) SetNillableCreatedAt(t *time.Time) *NamespaceCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*NamespaceCreate) SetNillableID added in v0.6.1

func (nc *NamespaceCreate) SetNillableID(u *uuid.UUID) *NamespaceCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*NamespaceCreate) SetNillableUpdatedAt

func (nc *NamespaceCreate) SetNillableUpdatedAt(t *time.Time) *NamespaceCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*NamespaceCreate) SetUpdatedAt

func (nc *NamespaceCreate) SetUpdatedAt(t time.Time) *NamespaceCreate

SetUpdatedAt sets the "updated_at" field.

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 {
	// Inodes holds the value of the inodes edge.
	Inodes []*Inode `json:"inodes,omitempty"`
	// Workflows holds the value of the workflows edge.
	Workflows []*Workflow `json:"workflows,omitempty"`
	// Mirrors holds the value of the mirrors edge.
	Mirrors []*Mirror `json:"mirrors,omitempty"`
	// MirrorActivities holds the value of the mirror_activities edge.
	MirrorActivities []*MirrorActivity `json:"mirror_activities,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*Instance `json:"instances,omitempty"`
	// Logs holds the value of the logs edge.
	Logs []*LogMsg `json:"logs,omitempty"`
	// Vars holds the value of the vars edge.
	Vars []*VarRef `json:"vars,omitempty"`
	// Cloudevents holds the value of the cloudevents edge.
	Cloudevents []*CloudEvents `json:"cloudevents,omitempty"`
	// Namespacelisteners holds the value of the namespacelisteners edge.
	Namespacelisteners []*Events `json:"namespacelisteners,omitempty"`
	// contains filtered or unexported fields
}

NamespaceEdges holds the relations/edges for other nodes in the graph.

func (NamespaceEdges) CloudeventsOrErr

func (e NamespaceEdges) CloudeventsOrErr() ([]*CloudEvents, error)

CloudeventsOrErr returns the Cloudevents value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) InodesOrErr

func (e NamespaceEdges) InodesOrErr() ([]*Inode, error)

InodesOrErr returns the Inodes value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) InstancesOrErr

func (e NamespaceEdges) InstancesOrErr() ([]*Instance, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) LogsOrErr

func (e NamespaceEdges) LogsOrErr() ([]*LogMsg, error)

LogsOrErr returns the Logs value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) MirrorActivitiesOrErr added in v0.6.6

func (e NamespaceEdges) MirrorActivitiesOrErr() ([]*MirrorActivity, error)

MirrorActivitiesOrErr returns the MirrorActivities value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) MirrorsOrErr added in v0.6.6

func (e NamespaceEdges) MirrorsOrErr() ([]*Mirror, error)

MirrorsOrErr returns the Mirrors value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) NamespacelistenersOrErr added in v0.6.0

func (e NamespaceEdges) NamespacelistenersOrErr() ([]*Events, error)

NamespacelistenersOrErr returns the Namespacelisteners value or an error if the edge was not loaded in eager-loading.

func (NamespaceEdges) VarsOrErr

func (e NamespaceEdges) VarsOrErr() ([]*VarRef, error)

VarsOrErr returns the Vars value or an error if the edge was not loaded in eager-loading.

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 (s *NamespaceGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) BoolX

func (s *NamespaceGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*NamespaceGroupBy) Bools

func (s *NamespaceGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) BoolsX

func (s *NamespaceGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*NamespaceGroupBy) Float64

func (s *NamespaceGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) Float64X

func (s *NamespaceGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*NamespaceGroupBy) Float64s

func (s *NamespaceGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) Float64sX

func (s *NamespaceGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*NamespaceGroupBy) Int

func (s *NamespaceGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) IntX

func (s *NamespaceGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*NamespaceGroupBy) Ints

func (s *NamespaceGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) IntsX

func (s *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 (s *NamespaceGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*NamespaceGroupBy) String

func (s *NamespaceGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) StringX

func (s *NamespaceGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*NamespaceGroupBy) Strings

func (s *NamespaceGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*NamespaceGroupBy) StringsX

func (s *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) AddCloudeventIDs

func (m *NamespaceMutation) AddCloudeventIDs(ids ...uuid.UUID)

AddCloudeventIDs adds the "cloudevents" edge to the CloudEvents entity by ids.

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) AddInodeIDs

func (m *NamespaceMutation) AddInodeIDs(ids ...uuid.UUID)

AddInodeIDs adds the "inodes" edge to the Inode entity by ids.

func (*NamespaceMutation) AddInstanceIDs

func (m *NamespaceMutation) AddInstanceIDs(ids ...uuid.UUID)

AddInstanceIDs adds the "instances" edge to the Instance entity by ids.

func (*NamespaceMutation) AddLogIDs

func (m *NamespaceMutation) AddLogIDs(ids ...uuid.UUID)

AddLogIDs adds the "logs" edge to the LogMsg entity by ids.

func (*NamespaceMutation) AddMirrorActivityIDs added in v0.6.6

func (m *NamespaceMutation) AddMirrorActivityIDs(ids ...uuid.UUID)

AddMirrorActivityIDs adds the "mirror_activities" edge to the MirrorActivity entity by ids.

func (*NamespaceMutation) AddMirrorIDs added in v0.6.6

func (m *NamespaceMutation) AddMirrorIDs(ids ...uuid.UUID)

AddMirrorIDs adds the "mirrors" edge to the Mirror entity by ids.

func (*NamespaceMutation) AddNamespacelistenerIDs added in v0.6.0

func (m *NamespaceMutation) AddNamespacelistenerIDs(ids ...uuid.UUID)

AddNamespacelistenerIDs adds the "namespacelisteners" edge to the Events entity by ids.

func (*NamespaceMutation) AddVarIDs

func (m *NamespaceMutation) AddVarIDs(ids ...uuid.UUID)

AddVarIDs adds the "vars" edge to the VarRef entity by ids.

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) ClearCloudevents

func (m *NamespaceMutation) ClearCloudevents()

ClearCloudevents clears the "cloudevents" edge to the CloudEvents entity.

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) ClearInodes

func (m *NamespaceMutation) ClearInodes()

ClearInodes clears the "inodes" edge to the Inode entity.

func (*NamespaceMutation) ClearInstances

func (m *NamespaceMutation) ClearInstances()

ClearInstances clears the "instances" edge to the Instance entity.

func (*NamespaceMutation) ClearLogs

func (m *NamespaceMutation) ClearLogs()

ClearLogs clears the "logs" edge to the LogMsg entity.

func (*NamespaceMutation) ClearMirrorActivities added in v0.6.6

func (m *NamespaceMutation) ClearMirrorActivities()

ClearMirrorActivities clears the "mirror_activities" edge to the MirrorActivity entity.

func (*NamespaceMutation) ClearMirrors added in v0.6.6

func (m *NamespaceMutation) ClearMirrors()

ClearMirrors clears the "mirrors" edge to the Mirror entity.

func (*NamespaceMutation) ClearNamespacelisteners added in v0.6.0

func (m *NamespaceMutation) ClearNamespacelisteners()

ClearNamespacelisteners clears the "namespacelisteners" edge to the Events entity.

func (*NamespaceMutation) ClearVars

func (m *NamespaceMutation) ClearVars()

ClearVars clears the "vars" edge to the VarRef entity.

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) CloudeventsCleared

func (m *NamespaceMutation) CloudeventsCleared() bool

CloudeventsCleared reports if the "cloudevents" edge to the CloudEvents entity was cleared.

func (*NamespaceMutation) CloudeventsIDs

func (m *NamespaceMutation) CloudeventsIDs() (ids []uuid.UUID)

CloudeventsIDs returns the "cloudevents" edge IDs in the mutation.

func (*NamespaceMutation) Config

func (m *NamespaceMutation) Config() (r string, exists bool)

Config returns the value of the "config" field in the mutation.

func (*NamespaceMutation) CreatedAt

func (m *NamespaceMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" 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 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 (*NamespaceMutation) IDs added in v0.6.1

func (m *NamespaceMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*NamespaceMutation) InodesCleared

func (m *NamespaceMutation) InodesCleared() bool

InodesCleared reports if the "inodes" edge to the Inode entity was cleared.

func (*NamespaceMutation) InodesIDs

func (m *NamespaceMutation) InodesIDs() (ids []uuid.UUID)

InodesIDs returns the "inodes" edge IDs in the mutation.

func (*NamespaceMutation) InstancesCleared

func (m *NamespaceMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the Instance entity was cleared.

func (*NamespaceMutation) InstancesIDs

func (m *NamespaceMutation) InstancesIDs() (ids []uuid.UUID)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*NamespaceMutation) LogsCleared

func (m *NamespaceMutation) LogsCleared() bool

LogsCleared reports if the "logs" edge to the LogMsg entity was cleared.

func (*NamespaceMutation) LogsIDs

func (m *NamespaceMutation) LogsIDs() (ids []uuid.UUID)

LogsIDs returns the "logs" edge IDs in the mutation.

func (*NamespaceMutation) MirrorActivitiesCleared added in v0.6.6

func (m *NamespaceMutation) MirrorActivitiesCleared() bool

MirrorActivitiesCleared reports if the "mirror_activities" edge to the MirrorActivity entity was cleared.

func (*NamespaceMutation) MirrorActivitiesIDs added in v0.6.6

func (m *NamespaceMutation) MirrorActivitiesIDs() (ids []uuid.UUID)

MirrorActivitiesIDs returns the "mirror_activities" edge IDs in the mutation.

func (*NamespaceMutation) MirrorsCleared added in v0.6.6

func (m *NamespaceMutation) MirrorsCleared() bool

MirrorsCleared reports if the "mirrors" edge to the Mirror entity was cleared.

func (*NamespaceMutation) MirrorsIDs added in v0.6.6

func (m *NamespaceMutation) MirrorsIDs() (ids []uuid.UUID)

MirrorsIDs returns the "mirrors" edge IDs in the mutation.

func (*NamespaceMutation) Name

func (m *NamespaceMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*NamespaceMutation) NamespacelistenersCleared added in v0.6.0

func (m *NamespaceMutation) NamespacelistenersCleared() bool

NamespacelistenersCleared reports if the "namespacelisteners" edge to the Events entity was cleared.

func (*NamespaceMutation) NamespacelistenersIDs added in v0.6.0

func (m *NamespaceMutation) NamespacelistenersIDs() (ids []uuid.UUID)

NamespacelistenersIDs returns the "namespacelisteners" edge IDs in the mutation.

func (*NamespaceMutation) OldConfig

func (m *NamespaceMutation) OldConfig(ctx context.Context) (v string, err error)

OldConfig returns the old "config" 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) OldCreatedAt

func (m *NamespaceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" 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) OldName

func (m *NamespaceMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" 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) OldUpdatedAt

func (m *NamespaceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" 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) Op

func (m *NamespaceMutation) Op() Op

Op returns the operation name.

func (*NamespaceMutation) RemoveCloudeventIDs

func (m *NamespaceMutation) RemoveCloudeventIDs(ids ...uuid.UUID)

RemoveCloudeventIDs removes the "cloudevents" edge to the CloudEvents entity by IDs.

func (*NamespaceMutation) RemoveInodeIDs

func (m *NamespaceMutation) RemoveInodeIDs(ids ...uuid.UUID)

RemoveInodeIDs removes the "inodes" edge to the Inode entity by IDs.

func (*NamespaceMutation) RemoveInstanceIDs

func (m *NamespaceMutation) RemoveInstanceIDs(ids ...uuid.UUID)

RemoveInstanceIDs removes the "instances" edge to the Instance entity by IDs.

func (*NamespaceMutation) RemoveLogIDs

func (m *NamespaceMutation) RemoveLogIDs(ids ...uuid.UUID)

RemoveLogIDs removes the "logs" edge to the LogMsg entity by IDs.

func (*NamespaceMutation) RemoveMirrorActivityIDs added in v0.6.6

func (m *NamespaceMutation) RemoveMirrorActivityIDs(ids ...uuid.UUID)

RemoveMirrorActivityIDs removes the "mirror_activities" edge to the MirrorActivity entity by IDs.

func (*NamespaceMutation) RemoveMirrorIDs added in v0.6.6

func (m *NamespaceMutation) RemoveMirrorIDs(ids ...uuid.UUID)

RemoveMirrorIDs removes the "mirrors" edge to the Mirror entity by IDs.

func (*NamespaceMutation) RemoveNamespacelistenerIDs added in v0.6.0

func (m *NamespaceMutation) RemoveNamespacelistenerIDs(ids ...uuid.UUID)

RemoveNamespacelistenerIDs removes the "namespacelisteners" edge to the Events entity by IDs.

func (*NamespaceMutation) RemoveVarIDs

func (m *NamespaceMutation) RemoveVarIDs(ids ...uuid.UUID)

RemoveVarIDs removes the "vars" edge to the VarRef entity by IDs.

func (*NamespaceMutation) RemoveWorkflowIDs

func (m *NamespaceMutation) RemoveWorkflowIDs(ids ...uuid.UUID)

RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.

func (*NamespaceMutation) RemovedCloudeventsIDs

func (m *NamespaceMutation) RemovedCloudeventsIDs() (ids []uuid.UUID)

RemovedCloudevents returns the removed IDs of the "cloudevents" edge to the CloudEvents entity.

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) RemovedInodesIDs

func (m *NamespaceMutation) RemovedInodesIDs() (ids []uuid.UUID)

RemovedInodes returns the removed IDs of the "inodes" edge to the Inode entity.

func (*NamespaceMutation) RemovedInstancesIDs

func (m *NamespaceMutation) RemovedInstancesIDs() (ids []uuid.UUID)

RemovedInstances returns the removed IDs of the "instances" edge to the Instance entity.

func (*NamespaceMutation) RemovedLogsIDs

func (m *NamespaceMutation) RemovedLogsIDs() (ids []uuid.UUID)

RemovedLogs returns the removed IDs of the "logs" edge to the LogMsg entity.

func (*NamespaceMutation) RemovedMirrorActivitiesIDs added in v0.6.6

func (m *NamespaceMutation) RemovedMirrorActivitiesIDs() (ids []uuid.UUID)

RemovedMirrorActivities returns the removed IDs of the "mirror_activities" edge to the MirrorActivity entity.

func (*NamespaceMutation) RemovedMirrorsIDs added in v0.6.6

func (m *NamespaceMutation) RemovedMirrorsIDs() (ids []uuid.UUID)

RemovedMirrors returns the removed IDs of the "mirrors" edge to the Mirror entity.

func (*NamespaceMutation) RemovedNamespacelistenersIDs added in v0.6.0

func (m *NamespaceMutation) RemovedNamespacelistenersIDs() (ids []uuid.UUID)

RemovedNamespacelisteners returns the removed IDs of the "namespacelisteners" edge to the Events entity.

func (*NamespaceMutation) RemovedVarsIDs

func (m *NamespaceMutation) RemovedVarsIDs() (ids []uuid.UUID)

RemovedVars returns the removed IDs of the "vars" edge to the VarRef entity.

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) ResetCloudevents

func (m *NamespaceMutation) ResetCloudevents()

ResetCloudevents resets all changes to the "cloudevents" edge.

func (*NamespaceMutation) ResetConfig

func (m *NamespaceMutation) ResetConfig()

ResetConfig resets all changes to the "config" field.

func (*NamespaceMutation) ResetCreatedAt

func (m *NamespaceMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" 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) ResetInodes

func (m *NamespaceMutation) ResetInodes()

ResetInodes resets all changes to the "inodes" edge.

func (*NamespaceMutation) ResetInstances

func (m *NamespaceMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*NamespaceMutation) ResetLogs

func (m *NamespaceMutation) ResetLogs()

ResetLogs resets all changes to the "logs" edge.

func (*NamespaceMutation) ResetMirrorActivities added in v0.6.6

func (m *NamespaceMutation) ResetMirrorActivities()

ResetMirrorActivities resets all changes to the "mirror_activities" edge.

func (*NamespaceMutation) ResetMirrors added in v0.6.6

func (m *NamespaceMutation) ResetMirrors()

ResetMirrors resets all changes to the "mirrors" edge.

func (*NamespaceMutation) ResetName

func (m *NamespaceMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*NamespaceMutation) ResetNamespacelisteners added in v0.6.0

func (m *NamespaceMutation) ResetNamespacelisteners()

ResetNamespacelisteners resets all changes to the "namespacelisteners" edge.

func (*NamespaceMutation) ResetUpdatedAt

func (m *NamespaceMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*NamespaceMutation) ResetVars

func (m *NamespaceMutation) ResetVars()

ResetVars resets all changes to the "vars" edge.

func (*NamespaceMutation) ResetWorkflows

func (m *NamespaceMutation) ResetWorkflows()

ResetWorkflows resets all changes to the "workflows" edge.

func (*NamespaceMutation) SetConfig

func (m *NamespaceMutation) SetConfig(s string)

SetConfig sets the "config" field.

func (*NamespaceMutation) SetCreatedAt

func (m *NamespaceMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" 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 uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Namespace entities.

func (*NamespaceMutation) SetName

func (m *NamespaceMutation) SetName(s string)

SetName sets the "name" field.

func (*NamespaceMutation) SetUpdatedAt

func (m *NamespaceMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

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) UpdatedAt

func (m *NamespaceMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*NamespaceMutation) VarsCleared

func (m *NamespaceMutation) VarsCleared() bool

VarsCleared reports if the "vars" edge to the VarRef entity was cleared.

func (*NamespaceMutation) VarsIDs

func (m *NamespaceMutation) VarsIDs() (ids []uuid.UUID)

VarsIDs returns the "vars" edge IDs in the mutation.

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) CollectFields

func (n *NamespaceQuery) CollectFields(ctx context.Context, satisfies ...string) *NamespaceQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

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 uuid.UUID, 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) uuid.UUID

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Namespace.Query().
	GroupBy(namespace.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*NamespaceQuery) IDs

func (nq *NamespaceQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of Namespace IDs.

func (*NamespaceQuery) IDsX

func (nq *NamespaceQuery) IDsX(ctx context.Context) []uuid.UUID

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 more than one Namespace entity is found. Returns a *NotFoundError when no Namespace entities are found.

func (*NamespaceQuery) OnlyID

func (nq *NamespaceQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Namespace ID in the query. Returns a *NotSingularError when more than one Namespace ID is found. Returns a *NotFoundError when no entities are found.

func (*NamespaceQuery) OnlyIDX

func (nq *NamespaceQuery) OnlyIDX(ctx context.Context) uuid.UUID

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) QueryCloudevents

func (nq *NamespaceQuery) QueryCloudevents() *CloudEventsQuery

QueryCloudevents chains the current query on the "cloudevents" edge.

func (*NamespaceQuery) QueryInodes

func (nq *NamespaceQuery) QueryInodes() *InodeQuery

QueryInodes chains the current query on the "inodes" edge.

func (*NamespaceQuery) QueryInstances

func (nq *NamespaceQuery) QueryInstances() *InstanceQuery

QueryInstances chains the current query on the "instances" edge.

func (*NamespaceQuery) QueryLogs

func (nq *NamespaceQuery) QueryLogs() *LogMsgQuery

QueryLogs chains the current query on the "logs" edge.

func (*NamespaceQuery) QueryMirrorActivities added in v0.6.6

func (nq *NamespaceQuery) QueryMirrorActivities() *MirrorActivityQuery

QueryMirrorActivities chains the current query on the "mirror_activities" edge.

func (*NamespaceQuery) QueryMirrors added in v0.6.6

func (nq *NamespaceQuery) QueryMirrors() *MirrorQuery

QueryMirrors chains the current query on the "mirrors" edge.

func (*NamespaceQuery) QueryNamespacelisteners added in v0.6.0

func (nq *NamespaceQuery) QueryNamespacelisteners() *EventsQuery

QueryNamespacelisteners chains the current query on the "namespacelisteners" edge.

func (*NamespaceQuery) QueryVars

func (nq *NamespaceQuery) QueryVars() *VarRefQuery

QueryVars chains the current query on the "vars" edge.

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Namespace.Query().
	Select(namespace.FieldCreatedAt).
	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) WithCloudevents

func (nq *NamespaceQuery) WithCloudevents(opts ...func(*CloudEventsQuery)) *NamespaceQuery

WithCloudevents tells the query-builder to eager-load the nodes that are connected to the "cloudevents" edge. The optional arguments are used to configure the query builder of the edge.

func (*NamespaceQuery) WithInodes

func (nq *NamespaceQuery) WithInodes(opts ...func(*InodeQuery)) *NamespaceQuery

WithInodes tells the query-builder to eager-load the nodes that are connected to the "inodes" edge. The optional arguments are used to configure the query builder of the edge.

func (*NamespaceQuery) WithInstances

func (nq *NamespaceQuery) WithInstances(opts ...func(*InstanceQuery)) *NamespaceQuery

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 (*NamespaceQuery) WithLogs

func (nq *NamespaceQuery) WithLogs(opts ...func(*LogMsgQuery)) *NamespaceQuery

WithLogs tells the query-builder to eager-load the nodes that are connected to the "logs" edge. The optional arguments are used to configure the query builder of the edge.

func (*NamespaceQuery) WithMirrorActivities added in v0.6.6

func (nq *NamespaceQuery) WithMirrorActivities(opts ...func(*MirrorActivityQuery)) *NamespaceQuery

WithMirrorActivities tells the query-builder to eager-load the nodes that are connected to the "mirror_activities" edge. The optional arguments are used to configure the query builder of the edge.

func (*NamespaceQuery) WithMirrors added in v0.6.6

func (nq *NamespaceQuery) WithMirrors(opts ...func(*MirrorQuery)) *NamespaceQuery

WithMirrors tells the query-builder to eager-load the nodes that are connected to the "mirrors" edge. The optional arguments are used to configure the query builder of the edge.

func (*NamespaceQuery) WithNamespacelisteners added in v0.6.0

func (nq *NamespaceQuery) WithNamespacelisteners(opts ...func(*EventsQuery)) *NamespaceQuery

WithNamespacelisteners tells the query-builder to eager-load the nodes that are connected to the "namespacelisteners" edge. The optional arguments are used to configure the query builder of the edge.

func (*NamespaceQuery) WithVars

func (nq *NamespaceQuery) WithVars(opts ...func(*VarRefQuery)) *NamespaceQuery

WithVars tells the query-builder to eager-load the nodes that are connected to the "vars" edge. The optional arguments are used to configure the query builder of the edge.

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 (s *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 (s *NamespaceSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*NamespaceSelect) Bools

func (s *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 (s *NamespaceSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*NamespaceSelect) Float64

func (s *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 (s *NamespaceSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*NamespaceSelect) Float64s

func (s *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 (s *NamespaceSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*NamespaceSelect) Int

func (s *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 (s *NamespaceSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*NamespaceSelect) Ints

func (s *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 (s *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 (s *NamespaceSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*NamespaceSelect) String

func (s *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 (s *NamespaceSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*NamespaceSelect) Strings

func (s *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 (s *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) AddCloudeventIDs

func (nu *NamespaceUpdate) AddCloudeventIDs(ids ...uuid.UUID) *NamespaceUpdate

AddCloudeventIDs adds the "cloudevents" edge to the CloudEvents entity by IDs.

func (*NamespaceUpdate) AddCloudevents

func (nu *NamespaceUpdate) AddCloudevents(c ...*CloudEvents) *NamespaceUpdate

AddCloudevents adds the "cloudevents" edges to the CloudEvents entity.

func (*NamespaceUpdate) AddInodeIDs

func (nu *NamespaceUpdate) AddInodeIDs(ids ...uuid.UUID) *NamespaceUpdate

AddInodeIDs adds the "inodes" edge to the Inode entity by IDs.

func (*NamespaceUpdate) AddInodes

func (nu *NamespaceUpdate) AddInodes(i ...*Inode) *NamespaceUpdate

AddInodes adds the "inodes" edges to the Inode entity.

func (*NamespaceUpdate) AddInstanceIDs

func (nu *NamespaceUpdate) AddInstanceIDs(ids ...uuid.UUID) *NamespaceUpdate

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*NamespaceUpdate) AddInstances

func (nu *NamespaceUpdate) AddInstances(i ...*Instance) *NamespaceUpdate

AddInstances adds the "instances" edges to the Instance entity.

func (*NamespaceUpdate) AddLogIDs

func (nu *NamespaceUpdate) AddLogIDs(ids ...uuid.UUID) *NamespaceUpdate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*NamespaceUpdate) AddLogs

func (nu *NamespaceUpdate) AddLogs(l ...*LogMsg) *NamespaceUpdate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*NamespaceUpdate) AddMirrorActivities added in v0.6.6

func (nu *NamespaceUpdate) AddMirrorActivities(m ...*MirrorActivity) *NamespaceUpdate

AddMirrorActivities adds the "mirror_activities" edges to the MirrorActivity entity.

func (*NamespaceUpdate) AddMirrorActivityIDs added in v0.6.6

func (nu *NamespaceUpdate) AddMirrorActivityIDs(ids ...uuid.UUID) *NamespaceUpdate

AddMirrorActivityIDs adds the "mirror_activities" edge to the MirrorActivity entity by IDs.

func (*NamespaceUpdate) AddMirrorIDs added in v0.6.6

func (nu *NamespaceUpdate) AddMirrorIDs(ids ...uuid.UUID) *NamespaceUpdate

AddMirrorIDs adds the "mirrors" edge to the Mirror entity by IDs.

func (*NamespaceUpdate) AddMirrors added in v0.6.6

func (nu *NamespaceUpdate) AddMirrors(m ...*Mirror) *NamespaceUpdate

AddMirrors adds the "mirrors" edges to the Mirror entity.

func (*NamespaceUpdate) AddNamespacelistenerIDs added in v0.6.0

func (nu *NamespaceUpdate) AddNamespacelistenerIDs(ids ...uuid.UUID) *NamespaceUpdate

AddNamespacelistenerIDs adds the "namespacelisteners" edge to the Events entity by IDs.

func (*NamespaceUpdate) AddNamespacelisteners added in v0.6.0

func (nu *NamespaceUpdate) AddNamespacelisteners(e ...*Events) *NamespaceUpdate

AddNamespacelisteners adds the "namespacelisteners" edges to the Events entity.

func (*NamespaceUpdate) AddVarIDs

func (nu *NamespaceUpdate) AddVarIDs(ids ...uuid.UUID) *NamespaceUpdate

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*NamespaceUpdate) AddVars

func (nu *NamespaceUpdate) AddVars(v ...*VarRef) *NamespaceUpdate

AddVars adds the "vars" edges to the VarRef entity.

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) ClearCloudevents

func (nu *NamespaceUpdate) ClearCloudevents() *NamespaceUpdate

ClearCloudevents clears all "cloudevents" edges to the CloudEvents entity.

func (*NamespaceUpdate) ClearInodes

func (nu *NamespaceUpdate) ClearInodes() *NamespaceUpdate

ClearInodes clears all "inodes" edges to the Inode entity.

func (*NamespaceUpdate) ClearInstances

func (nu *NamespaceUpdate) ClearInstances() *NamespaceUpdate

ClearInstances clears all "instances" edges to the Instance entity.

func (*NamespaceUpdate) ClearLogs

func (nu *NamespaceUpdate) ClearLogs() *NamespaceUpdate

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*NamespaceUpdate) ClearMirrorActivities added in v0.6.6

func (nu *NamespaceUpdate) ClearMirrorActivities() *NamespaceUpdate

ClearMirrorActivities clears all "mirror_activities" edges to the MirrorActivity entity.

func (*NamespaceUpdate) ClearMirrors added in v0.6.6

func (nu *NamespaceUpdate) ClearMirrors() *NamespaceUpdate

ClearMirrors clears all "mirrors" edges to the Mirror entity.

func (*NamespaceUpdate) ClearNamespacelisteners added in v0.6.0

func (nu *NamespaceUpdate) ClearNamespacelisteners() *NamespaceUpdate

ClearNamespacelisteners clears all "namespacelisteners" edges to the Events entity.

func (*NamespaceUpdate) ClearVars

func (nu *NamespaceUpdate) ClearVars() *NamespaceUpdate

ClearVars clears all "vars" edges to the VarRef 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) RemoveCloudeventIDs

func (nu *NamespaceUpdate) RemoveCloudeventIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveCloudeventIDs removes the "cloudevents" edge to CloudEvents entities by IDs.

func (*NamespaceUpdate) RemoveCloudevents

func (nu *NamespaceUpdate) RemoveCloudevents(c ...*CloudEvents) *NamespaceUpdate

RemoveCloudevents removes "cloudevents" edges to CloudEvents entities.

func (*NamespaceUpdate) RemoveInodeIDs

func (nu *NamespaceUpdate) RemoveInodeIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveInodeIDs removes the "inodes" edge to Inode entities by IDs.

func (*NamespaceUpdate) RemoveInodes

func (nu *NamespaceUpdate) RemoveInodes(i ...*Inode) *NamespaceUpdate

RemoveInodes removes "inodes" edges to Inode entities.

func (*NamespaceUpdate) RemoveInstanceIDs

func (nu *NamespaceUpdate) RemoveInstanceIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveInstanceIDs removes the "instances" edge to Instance entities by IDs.

func (*NamespaceUpdate) RemoveInstances

func (nu *NamespaceUpdate) RemoveInstances(i ...*Instance) *NamespaceUpdate

RemoveInstances removes "instances" edges to Instance entities.

func (*NamespaceUpdate) RemoveLogIDs

func (nu *NamespaceUpdate) RemoveLogIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*NamespaceUpdate) RemoveLogs

func (nu *NamespaceUpdate) RemoveLogs(l ...*LogMsg) *NamespaceUpdate

RemoveLogs removes "logs" edges to LogMsg entities.

func (*NamespaceUpdate) RemoveMirrorActivities added in v0.6.6

func (nu *NamespaceUpdate) RemoveMirrorActivities(m ...*MirrorActivity) *NamespaceUpdate

RemoveMirrorActivities removes "mirror_activities" edges to MirrorActivity entities.

func (*NamespaceUpdate) RemoveMirrorActivityIDs added in v0.6.6

func (nu *NamespaceUpdate) RemoveMirrorActivityIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveMirrorActivityIDs removes the "mirror_activities" edge to MirrorActivity entities by IDs.

func (*NamespaceUpdate) RemoveMirrorIDs added in v0.6.6

func (nu *NamespaceUpdate) RemoveMirrorIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveMirrorIDs removes the "mirrors" edge to Mirror entities by IDs.

func (*NamespaceUpdate) RemoveMirrors added in v0.6.6

func (nu *NamespaceUpdate) RemoveMirrors(m ...*Mirror) *NamespaceUpdate

RemoveMirrors removes "mirrors" edges to Mirror entities.

func (*NamespaceUpdate) RemoveNamespacelistenerIDs added in v0.6.0

func (nu *NamespaceUpdate) RemoveNamespacelistenerIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveNamespacelistenerIDs removes the "namespacelisteners" edge to Events entities by IDs.

func (*NamespaceUpdate) RemoveNamespacelisteners added in v0.6.0

func (nu *NamespaceUpdate) RemoveNamespacelisteners(e ...*Events) *NamespaceUpdate

RemoveNamespacelisteners removes "namespacelisteners" edges to Events entities.

func (*NamespaceUpdate) RemoveVarIDs

func (nu *NamespaceUpdate) RemoveVarIDs(ids ...uuid.UUID) *NamespaceUpdate

RemoveVarIDs removes the "vars" edge to VarRef entities by IDs.

func (*NamespaceUpdate) RemoveVars

func (nu *NamespaceUpdate) RemoveVars(v ...*VarRef) *NamespaceUpdate

RemoveVars removes "vars" edges to VarRef entities.

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) SetConfig

func (nu *NamespaceUpdate) SetConfig(s string) *NamespaceUpdate

SetConfig sets the "config" field.

func (*NamespaceUpdate) SetName

func (nu *NamespaceUpdate) SetName(s string) *NamespaceUpdate

SetName sets the "name" field.

func (*NamespaceUpdate) SetNillableConfig

func (nu *NamespaceUpdate) SetNillableConfig(s *string) *NamespaceUpdate

SetNillableConfig sets the "config" field if the given value is not nil.

func (*NamespaceUpdate) SetUpdatedAt

func (nu *NamespaceUpdate) SetUpdatedAt(t time.Time) *NamespaceUpdate

SetUpdatedAt sets the "updated_at" field.

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) AddCloudeventIDs

func (nuo *NamespaceUpdateOne) AddCloudeventIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddCloudeventIDs adds the "cloudevents" edge to the CloudEvents entity by IDs.

func (*NamespaceUpdateOne) AddCloudevents

func (nuo *NamespaceUpdateOne) AddCloudevents(c ...*CloudEvents) *NamespaceUpdateOne

AddCloudevents adds the "cloudevents" edges to the CloudEvents entity.

func (*NamespaceUpdateOne) AddInodeIDs

func (nuo *NamespaceUpdateOne) AddInodeIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddInodeIDs adds the "inodes" edge to the Inode entity by IDs.

func (*NamespaceUpdateOne) AddInodes

func (nuo *NamespaceUpdateOne) AddInodes(i ...*Inode) *NamespaceUpdateOne

AddInodes adds the "inodes" edges to the Inode entity.

func (*NamespaceUpdateOne) AddInstanceIDs

func (nuo *NamespaceUpdateOne) AddInstanceIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*NamespaceUpdateOne) AddInstances

func (nuo *NamespaceUpdateOne) AddInstances(i ...*Instance) *NamespaceUpdateOne

AddInstances adds the "instances" edges to the Instance entity.

func (*NamespaceUpdateOne) AddLogIDs

func (nuo *NamespaceUpdateOne) AddLogIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*NamespaceUpdateOne) AddLogs

func (nuo *NamespaceUpdateOne) AddLogs(l ...*LogMsg) *NamespaceUpdateOne

AddLogs adds the "logs" edges to the LogMsg entity.

func (*NamespaceUpdateOne) AddMirrorActivities added in v0.6.6

func (nuo *NamespaceUpdateOne) AddMirrorActivities(m ...*MirrorActivity) *NamespaceUpdateOne

AddMirrorActivities adds the "mirror_activities" edges to the MirrorActivity entity.

func (*NamespaceUpdateOne) AddMirrorActivityIDs added in v0.6.6

func (nuo *NamespaceUpdateOne) AddMirrorActivityIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddMirrorActivityIDs adds the "mirror_activities" edge to the MirrorActivity entity by IDs.

func (*NamespaceUpdateOne) AddMirrorIDs added in v0.6.6

func (nuo *NamespaceUpdateOne) AddMirrorIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddMirrorIDs adds the "mirrors" edge to the Mirror entity by IDs.

func (*NamespaceUpdateOne) AddMirrors added in v0.6.6

func (nuo *NamespaceUpdateOne) AddMirrors(m ...*Mirror) *NamespaceUpdateOne

AddMirrors adds the "mirrors" edges to the Mirror entity.

func (*NamespaceUpdateOne) AddNamespacelistenerIDs added in v0.6.0

func (nuo *NamespaceUpdateOne) AddNamespacelistenerIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddNamespacelistenerIDs adds the "namespacelisteners" edge to the Events entity by IDs.

func (*NamespaceUpdateOne) AddNamespacelisteners added in v0.6.0

func (nuo *NamespaceUpdateOne) AddNamespacelisteners(e ...*Events) *NamespaceUpdateOne

AddNamespacelisteners adds the "namespacelisteners" edges to the Events entity.

func (*NamespaceUpdateOne) AddVarIDs

func (nuo *NamespaceUpdateOne) AddVarIDs(ids ...uuid.UUID) *NamespaceUpdateOne

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*NamespaceUpdateOne) AddVars

func (nuo *NamespaceUpdateOne) AddVars(v ...*VarRef) *NamespaceUpdateOne

AddVars adds the "vars" edges to the VarRef 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) ClearCloudevents

func (nuo *NamespaceUpdateOne) ClearCloudevents() *NamespaceUpdateOne

ClearCloudevents clears all "cloudevents" edges to the CloudEvents entity.

func (*NamespaceUpdateOne) ClearInodes

func (nuo *NamespaceUpdateOne) ClearInodes() *NamespaceUpdateOne

ClearInodes clears all "inodes" edges to the Inode entity.

func (*NamespaceUpdateOne) ClearInstances

func (nuo *NamespaceUpdateOne) ClearInstances() *NamespaceUpdateOne

ClearInstances clears all "instances" edges to the Instance entity.

func (*NamespaceUpdateOne) ClearLogs

func (nuo *NamespaceUpdateOne) ClearLogs() *NamespaceUpdateOne

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*NamespaceUpdateOne) ClearMirrorActivities added in v0.6.6

func (nuo *NamespaceUpdateOne) ClearMirrorActivities() *NamespaceUpdateOne

ClearMirrorActivities clears all "mirror_activities" edges to the MirrorActivity entity.

func (*NamespaceUpdateOne) ClearMirrors added in v0.6.6

func (nuo *NamespaceUpdateOne) ClearMirrors() *NamespaceUpdateOne

ClearMirrors clears all "mirrors" edges to the Mirror entity.

func (*NamespaceUpdateOne) ClearNamespacelisteners added in v0.6.0

func (nuo *NamespaceUpdateOne) ClearNamespacelisteners() *NamespaceUpdateOne

ClearNamespacelisteners clears all "namespacelisteners" edges to the Events entity.

func (*NamespaceUpdateOne) ClearVars

func (nuo *NamespaceUpdateOne) ClearVars() *NamespaceUpdateOne

ClearVars clears all "vars" edges to the VarRef 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) RemoveCloudeventIDs

func (nuo *NamespaceUpdateOne) RemoveCloudeventIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveCloudeventIDs removes the "cloudevents" edge to CloudEvents entities by IDs.

func (*NamespaceUpdateOne) RemoveCloudevents

func (nuo *NamespaceUpdateOne) RemoveCloudevents(c ...*CloudEvents) *NamespaceUpdateOne

RemoveCloudevents removes "cloudevents" edges to CloudEvents entities.

func (*NamespaceUpdateOne) RemoveInodeIDs

func (nuo *NamespaceUpdateOne) RemoveInodeIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveInodeIDs removes the "inodes" edge to Inode entities by IDs.

func (*NamespaceUpdateOne) RemoveInodes

func (nuo *NamespaceUpdateOne) RemoveInodes(i ...*Inode) *NamespaceUpdateOne

RemoveInodes removes "inodes" edges to Inode entities.

func (*NamespaceUpdateOne) RemoveInstanceIDs

func (nuo *NamespaceUpdateOne) RemoveInstanceIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveInstanceIDs removes the "instances" edge to Instance entities by IDs.

func (*NamespaceUpdateOne) RemoveInstances

func (nuo *NamespaceUpdateOne) RemoveInstances(i ...*Instance) *NamespaceUpdateOne

RemoveInstances removes "instances" edges to Instance entities.

func (*NamespaceUpdateOne) RemoveLogIDs

func (nuo *NamespaceUpdateOne) RemoveLogIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*NamespaceUpdateOne) RemoveLogs

func (nuo *NamespaceUpdateOne) RemoveLogs(l ...*LogMsg) *NamespaceUpdateOne

RemoveLogs removes "logs" edges to LogMsg entities.

func (*NamespaceUpdateOne) RemoveMirrorActivities added in v0.6.6

func (nuo *NamespaceUpdateOne) RemoveMirrorActivities(m ...*MirrorActivity) *NamespaceUpdateOne

RemoveMirrorActivities removes "mirror_activities" edges to MirrorActivity entities.

func (*NamespaceUpdateOne) RemoveMirrorActivityIDs added in v0.6.6

func (nuo *NamespaceUpdateOne) RemoveMirrorActivityIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveMirrorActivityIDs removes the "mirror_activities" edge to MirrorActivity entities by IDs.

func (*NamespaceUpdateOne) RemoveMirrorIDs added in v0.6.6

func (nuo *NamespaceUpdateOne) RemoveMirrorIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveMirrorIDs removes the "mirrors" edge to Mirror entities by IDs.

func (*NamespaceUpdateOne) RemoveMirrors added in v0.6.6

func (nuo *NamespaceUpdateOne) RemoveMirrors(m ...*Mirror) *NamespaceUpdateOne

RemoveMirrors removes "mirrors" edges to Mirror entities.

func (*NamespaceUpdateOne) RemoveNamespacelistenerIDs added in v0.6.0

func (nuo *NamespaceUpdateOne) RemoveNamespacelistenerIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveNamespacelistenerIDs removes the "namespacelisteners" edge to Events entities by IDs.

func (*NamespaceUpdateOne) RemoveNamespacelisteners added in v0.6.0

func (nuo *NamespaceUpdateOne) RemoveNamespacelisteners(e ...*Events) *NamespaceUpdateOne

RemoveNamespacelisteners removes "namespacelisteners" edges to Events entities.

func (*NamespaceUpdateOne) RemoveVarIDs

func (nuo *NamespaceUpdateOne) RemoveVarIDs(ids ...uuid.UUID) *NamespaceUpdateOne

RemoveVarIDs removes the "vars" edge to VarRef entities by IDs.

func (*NamespaceUpdateOne) RemoveVars

func (nuo *NamespaceUpdateOne) RemoveVars(v ...*VarRef) *NamespaceUpdateOne

RemoveVars removes "vars" edges to VarRef entities.

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.

func (*NamespaceUpdateOne) SetConfig

func (nuo *NamespaceUpdateOne) SetConfig(s string) *NamespaceUpdateOne

SetConfig sets the "config" field.

func (*NamespaceUpdateOne) SetName

func (nuo *NamespaceUpdateOne) SetName(s string) *NamespaceUpdateOne

SetName sets the "name" field.

func (*NamespaceUpdateOne) SetNillableConfig

func (nuo *NamespaceUpdateOne) SetNillableConfig(s *string) *NamespaceUpdateOne

SetNillableConfig sets the "config" field if the given value is not nil.

func (*NamespaceUpdateOne) SetUpdatedAt

func (nuo *NamespaceUpdateOne) SetUpdatedAt(t time.Time) *NamespaceUpdateOne

SetUpdatedAt sets the "updated_at" field.

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 Ref

type Ref struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// Immutable holds the value of the "immutable" field.
	Immutable bool `json:"immutable,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RefQuery when eager-loading is set.
	Edges RefEdges `json:"edges"`
	// contains filtered or unexported fields
}

Ref is the model entity for the Ref schema.

func (*Ref) QueryRevision

func (r *Ref) QueryRevision() *RevisionQuery

QueryRevision queries the "revision" edge of the Ref entity.

func (*Ref) QueryRoutes

func (r *Ref) QueryRoutes() *RouteQuery

QueryRoutes queries the "routes" edge of the Ref entity.

func (*Ref) QueryWorkflow

func (r *Ref) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the Ref entity.

func (*Ref) Revision

func (r *Ref) Revision(ctx context.Context) (*Revision, error)

func (*Ref) Routes

func (r *Ref) Routes(ctx context.Context) ([]*Route, error)

func (*Ref) String

func (r *Ref) String() string

String implements the fmt.Stringer.

func (*Ref) Unwrap

func (r *Ref) Unwrap() *Ref

Unwrap unwraps the Ref 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 (*Ref) Update

func (r *Ref) Update() *RefUpdateOne

Update returns a builder for updating this Ref. Note that you need to call Ref.Unwrap() before calling this method if this Ref was returned from a transaction, and the transaction was committed or rolled back.

func (*Ref) Workflow

func (r *Ref) Workflow(ctx context.Context) (*Workflow, error)

type RefClient

type RefClient struct {
	// contains filtered or unexported fields
}

RefClient is a client for the Ref schema.

func NewRefClient

func NewRefClient(c config) *RefClient

NewRefClient returns a client for the Ref from the given config.

func (*RefClient) Create

func (c *RefClient) Create() *RefCreate

Create returns a builder for creating a Ref entity.

func (*RefClient) CreateBulk

func (c *RefClient) CreateBulk(builders ...*RefCreate) *RefCreateBulk

CreateBulk returns a builder for creating a bulk of Ref entities.

func (*RefClient) Delete

func (c *RefClient) Delete() *RefDelete

Delete returns a delete builder for Ref.

func (*RefClient) DeleteOne

func (c *RefClient) DeleteOne(r *Ref) *RefDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*RefClient) DeleteOneID

func (c *RefClient) DeleteOneID(id uuid.UUID) *RefDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*RefClient) Get

func (c *RefClient) Get(ctx context.Context, id uuid.UUID) (*Ref, error)

Get returns a Ref entity by its id.

func (*RefClient) GetX

func (c *RefClient) GetX(ctx context.Context, id uuid.UUID) *Ref

GetX is like Get, but panics if an error occurs.

func (*RefClient) Hooks

func (c *RefClient) Hooks() []Hook

Hooks returns the client hooks.

func (*RefClient) Query

func (c *RefClient) Query() *RefQuery

Query returns a query builder for Ref.

func (*RefClient) QueryRevision

func (c *RefClient) QueryRevision(r *Ref) *RevisionQuery

QueryRevision queries the revision edge of a Ref.

func (*RefClient) QueryRoutes

func (c *RefClient) QueryRoutes(r *Ref) *RouteQuery

QueryRoutes queries the routes edge of a Ref.

func (*RefClient) QueryWorkflow

func (c *RefClient) QueryWorkflow(r *Ref) *WorkflowQuery

QueryWorkflow queries the workflow edge of a Ref.

func (*RefClient) Update

func (c *RefClient) Update() *RefUpdate

Update returns an update builder for Ref.

func (*RefClient) UpdateOne

func (c *RefClient) UpdateOne(r *Ref) *RefUpdateOne

UpdateOne returns an update builder for the given entity.

func (*RefClient) UpdateOneID

func (c *RefClient) UpdateOneID(id uuid.UUID) *RefUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RefClient) Use

func (c *RefClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `ref.Hooks(f(g(h())))`.

type RefCreate

type RefCreate struct {
	// contains filtered or unexported fields
}

RefCreate is the builder for creating a Ref entity.

func (*RefCreate) AddRouteIDs

func (rc *RefCreate) AddRouteIDs(ids ...uuid.UUID) *RefCreate

AddRouteIDs adds the "routes" edge to the Route entity by IDs.

func (*RefCreate) AddRoutes

func (rc *RefCreate) AddRoutes(r ...*Route) *RefCreate

AddRoutes adds the "routes" edges to the Route entity.

func (*RefCreate) Exec

func (rc *RefCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*RefCreate) ExecX

func (rc *RefCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RefCreate) Mutation

func (rc *RefCreate) Mutation() *RefMutation

Mutation returns the RefMutation object of the builder.

func (*RefCreate) Save

func (rc *RefCreate) Save(ctx context.Context) (*Ref, error)

Save creates the Ref in the database.

func (*RefCreate) SaveX

func (rc *RefCreate) SaveX(ctx context.Context) *Ref

SaveX calls Save and panics if Save returns an error.

func (*RefCreate) SetCreatedAt added in v0.6.0

func (rc *RefCreate) SetCreatedAt(t time.Time) *RefCreate

SetCreatedAt sets the "created_at" field.

func (*RefCreate) SetID

func (rc *RefCreate) SetID(u uuid.UUID) *RefCreate

SetID sets the "id" field.

func (*RefCreate) SetImmutable

func (rc *RefCreate) SetImmutable(b bool) *RefCreate

SetImmutable sets the "immutable" field.

func (*RefCreate) SetName

func (rc *RefCreate) SetName(s string) *RefCreate

SetName sets the "name" field.

func (*RefCreate) SetNillableCreatedAt added in v0.6.0

func (rc *RefCreate) SetNillableCreatedAt(t *time.Time) *RefCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*RefCreate) SetNillableID added in v0.6.1

func (rc *RefCreate) SetNillableID(u *uuid.UUID) *RefCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*RefCreate) SetNillableImmutable

func (rc *RefCreate) SetNillableImmutable(b *bool) *RefCreate

SetNillableImmutable sets the "immutable" field if the given value is not nil.

func (*RefCreate) SetRevision

func (rc *RefCreate) SetRevision(r *Revision) *RefCreate

SetRevision sets the "revision" edge to the Revision entity.

func (*RefCreate) SetRevisionID

func (rc *RefCreate) SetRevisionID(id uuid.UUID) *RefCreate

SetRevisionID sets the "revision" edge to the Revision entity by ID.

func (*RefCreate) SetWorkflow

func (rc *RefCreate) SetWorkflow(w *Workflow) *RefCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RefCreate) SetWorkflowID

func (rc *RefCreate) SetWorkflowID(id uuid.UUID) *RefCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type RefCreateBulk

type RefCreateBulk struct {
	// contains filtered or unexported fields
}

RefCreateBulk is the builder for creating many Ref entities in bulk.

func (*RefCreateBulk) Exec

func (rcb *RefCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*RefCreateBulk) ExecX

func (rcb *RefCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RefCreateBulk) Save

func (rcb *RefCreateBulk) Save(ctx context.Context) ([]*Ref, error)

Save creates the Ref entities in the database.

func (*RefCreateBulk) SaveX

func (rcb *RefCreateBulk) SaveX(ctx context.Context) []*Ref

SaveX is like Save, but panics if an error occurs.

type RefDelete

type RefDelete struct {
	// contains filtered or unexported fields
}

RefDelete is the builder for deleting a Ref entity.

func (*RefDelete) Exec

func (rd *RefDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*RefDelete) ExecX

func (rd *RefDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*RefDelete) Where

func (rd *RefDelete) Where(ps ...predicate.Ref) *RefDelete

Where appends a list predicates to the RefDelete builder.

type RefDeleteOne

type RefDeleteOne struct {
	// contains filtered or unexported fields
}

RefDeleteOne is the builder for deleting a single Ref entity.

func (*RefDeleteOne) Exec

func (rdo *RefDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*RefDeleteOne) ExecX

func (rdo *RefDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type RefEdges

type RefEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Revision holds the value of the revision edge.
	Revision *Revision `json:"revision,omitempty"`
	// Routes holds the value of the routes edge.
	Routes []*Route `json:"routes,omitempty"`
	// contains filtered or unexported fields
}

RefEdges holds the relations/edges for other nodes in the graph.

func (RefEdges) RevisionOrErr

func (e RefEdges) RevisionOrErr() (*Revision, error)

RevisionOrErr returns the Revision value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (RefEdges) RoutesOrErr

func (e RefEdges) RoutesOrErr() ([]*Route, error)

RoutesOrErr returns the Routes value or an error if the edge was not loaded in eager-loading.

func (RefEdges) WorkflowOrErr

func (e RefEdges) 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 RefGroupBy

type RefGroupBy struct {
	// contains filtered or unexported fields
}

RefGroupBy is the group-by builder for Ref entities.

func (*RefGroupBy) Aggregate

func (rgb *RefGroupBy) Aggregate(fns ...AggregateFunc) *RefGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*RefGroupBy) Bool

func (s *RefGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) BoolX

func (s *RefGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RefGroupBy) Bools

func (s *RefGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) BoolsX

func (s *RefGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RefGroupBy) Float64

func (s *RefGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) Float64X

func (s *RefGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RefGroupBy) Float64s

func (s *RefGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) Float64sX

func (s *RefGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RefGroupBy) Int

func (s *RefGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) IntX

func (s *RefGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RefGroupBy) Ints

func (s *RefGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) IntsX

func (s *RefGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RefGroupBy) Scan

func (rgb *RefGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*RefGroupBy) ScanX

func (s *RefGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RefGroupBy) String

func (s *RefGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) StringX

func (s *RefGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RefGroupBy) Strings

func (s *RefGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RefGroupBy) StringsX

func (s *RefGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RefMutation

type RefMutation struct {
	// contains filtered or unexported fields
}

RefMutation represents an operation that mutates the Ref nodes in the graph.

func (*RefMutation) AddField

func (m *RefMutation) 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 (*RefMutation) AddRouteIDs

func (m *RefMutation) AddRouteIDs(ids ...uuid.UUID)

AddRouteIDs adds the "routes" edge to the Route entity by ids.

func (*RefMutation) AddedEdges

func (m *RefMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*RefMutation) AddedField

func (m *RefMutation) 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 (*RefMutation) AddedFields

func (m *RefMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*RefMutation) AddedIDs

func (m *RefMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*RefMutation) ClearEdge

func (m *RefMutation) 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 (*RefMutation) ClearField

func (m *RefMutation) 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 (*RefMutation) ClearRevision

func (m *RefMutation) ClearRevision()

ClearRevision clears the "revision" edge to the Revision entity.

func (*RefMutation) ClearRoutes

func (m *RefMutation) ClearRoutes()

ClearRoutes clears the "routes" edge to the Route entity.

func (*RefMutation) ClearWorkflow

func (m *RefMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RefMutation) ClearedEdges

func (m *RefMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*RefMutation) ClearedFields

func (m *RefMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (RefMutation) Client

func (m RefMutation) 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 (*RefMutation) CreatedAt added in v0.6.0

func (m *RefMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*RefMutation) EdgeCleared

func (m *RefMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*RefMutation) Field

func (m *RefMutation) 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 (*RefMutation) FieldCleared

func (m *RefMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*RefMutation) Fields

func (m *RefMutation) 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 (*RefMutation) ID

func (m *RefMutation) 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 (*RefMutation) IDs added in v0.6.1

func (m *RefMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*RefMutation) Immutable

func (m *RefMutation) Immutable() (r bool, exists bool)

Immutable returns the value of the "immutable" field in the mutation.

func (*RefMutation) Name

func (m *RefMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*RefMutation) OldCreatedAt added in v0.6.0

func (m *RefMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Ref entity. If the Ref 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 (*RefMutation) OldField

func (m *RefMutation) 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 (*RefMutation) OldImmutable

func (m *RefMutation) OldImmutable(ctx context.Context) (v bool, err error)

OldImmutable returns the old "immutable" field's value of the Ref entity. If the Ref 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 (*RefMutation) OldName

func (m *RefMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Ref entity. If the Ref 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 (*RefMutation) Op

func (m *RefMutation) Op() Op

Op returns the operation name.

func (*RefMutation) RemoveRouteIDs

func (m *RefMutation) RemoveRouteIDs(ids ...uuid.UUID)

RemoveRouteIDs removes the "routes" edge to the Route entity by IDs.

func (*RefMutation) RemovedEdges

func (m *RefMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*RefMutation) RemovedIDs

func (m *RefMutation) 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 (*RefMutation) RemovedRoutesIDs

func (m *RefMutation) RemovedRoutesIDs() (ids []uuid.UUID)

RemovedRoutes returns the removed IDs of the "routes" edge to the Route entity.

func (*RefMutation) ResetCreatedAt added in v0.6.0

func (m *RefMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*RefMutation) ResetEdge

func (m *RefMutation) 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 (*RefMutation) ResetField

func (m *RefMutation) 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 (*RefMutation) ResetImmutable

func (m *RefMutation) ResetImmutable()

ResetImmutable resets all changes to the "immutable" field.

func (*RefMutation) ResetName

func (m *RefMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*RefMutation) ResetRevision

func (m *RefMutation) ResetRevision()

ResetRevision resets all changes to the "revision" edge.

func (*RefMutation) ResetRoutes

func (m *RefMutation) ResetRoutes()

ResetRoutes resets all changes to the "routes" edge.

func (*RefMutation) ResetWorkflow

func (m *RefMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*RefMutation) RevisionCleared

func (m *RefMutation) RevisionCleared() bool

RevisionCleared reports if the "revision" edge to the Revision entity was cleared.

func (*RefMutation) RevisionID

func (m *RefMutation) RevisionID() (id uuid.UUID, exists bool)

RevisionID returns the "revision" edge ID in the mutation.

func (*RefMutation) RevisionIDs

func (m *RefMutation) RevisionIDs() (ids []uuid.UUID)

RevisionIDs returns the "revision" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RevisionID instead. It exists only for internal usage by the builders.

func (*RefMutation) RoutesCleared

func (m *RefMutation) RoutesCleared() bool

RoutesCleared reports if the "routes" edge to the Route entity was cleared.

func (*RefMutation) RoutesIDs

func (m *RefMutation) RoutesIDs() (ids []uuid.UUID)

RoutesIDs returns the "routes" edge IDs in the mutation.

func (*RefMutation) SetCreatedAt added in v0.6.0

func (m *RefMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*RefMutation) SetField

func (m *RefMutation) 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 (*RefMutation) SetID

func (m *RefMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Ref entities.

func (*RefMutation) SetImmutable

func (m *RefMutation) SetImmutable(b bool)

SetImmutable sets the "immutable" field.

func (*RefMutation) SetName

func (m *RefMutation) SetName(s string)

SetName sets the "name" field.

func (*RefMutation) SetRevisionID

func (m *RefMutation) SetRevisionID(id uuid.UUID)

SetRevisionID sets the "revision" edge to the Revision entity by id.

func (*RefMutation) SetWorkflowID

func (m *RefMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (RefMutation) Tx

func (m RefMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*RefMutation) Type

func (m *RefMutation) Type() string

Type returns the node type of this mutation (Ref).

func (*RefMutation) Where

func (m *RefMutation) Where(ps ...predicate.Ref)

Where appends a list predicates to the RefMutation builder.

func (*RefMutation) WorkflowCleared

func (m *RefMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*RefMutation) WorkflowID

func (m *RefMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*RefMutation) WorkflowIDs

func (m *RefMutation) 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 RefQuery

type RefQuery struct {
	// contains filtered or unexported fields
}

RefQuery is the builder for querying Ref entities.

func (*RefQuery) All

func (rq *RefQuery) All(ctx context.Context) ([]*Ref, error)

All executes the query and returns a list of Refs.

func (*RefQuery) AllX

func (rq *RefQuery) AllX(ctx context.Context) []*Ref

AllX is like All, but panics if an error occurs.

func (*RefQuery) Clone

func (rq *RefQuery) Clone() *RefQuery

Clone returns a duplicate of the RefQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*RefQuery) CollectFields

func (r *RefQuery) CollectFields(ctx context.Context, satisfies ...string) *RefQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*RefQuery) Count

func (rq *RefQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RefQuery) CountX

func (rq *RefQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*RefQuery) Exist

func (rq *RefQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*RefQuery) ExistX

func (rq *RefQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*RefQuery) First

func (rq *RefQuery) First(ctx context.Context) (*Ref, error)

First returns the first Ref entity from the query. Returns a *NotFoundError when no Ref was found.

func (*RefQuery) FirstID

func (rq *RefQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first Ref ID from the query. Returns a *NotFoundError when no Ref ID was found.

func (*RefQuery) FirstIDX

func (rq *RefQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*RefQuery) FirstX

func (rq *RefQuery) FirstX(ctx context.Context) *Ref

FirstX is like First, but panics if an error occurs.

func (*RefQuery) GroupBy

func (rq *RefQuery) GroupBy(field string, fields ...string) *RefGroupBy

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 {
	Immutable bool `json:"immutable,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Ref.Query().
	GroupBy(ref.FieldImmutable).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*RefQuery) IDs

func (rq *RefQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of Ref IDs.

func (*RefQuery) IDsX

func (rq *RefQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*RefQuery) Limit

func (rq *RefQuery) Limit(limit int) *RefQuery

Limit adds a limit step to the query.

func (*RefQuery) Offset

func (rq *RefQuery) Offset(offset int) *RefQuery

Offset adds an offset step to the query.

func (*RefQuery) Only

func (rq *RefQuery) Only(ctx context.Context) (*Ref, error)

Only returns a single Ref entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Ref entity is found. Returns a *NotFoundError when no Ref entities are found.

func (*RefQuery) OnlyID

func (rq *RefQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Ref ID in the query. Returns a *NotSingularError when more than one Ref ID is found. Returns a *NotFoundError when no entities are found.

func (*RefQuery) OnlyIDX

func (rq *RefQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*RefQuery) OnlyX

func (rq *RefQuery) OnlyX(ctx context.Context) *Ref

OnlyX is like Only, but panics if an error occurs.

func (*RefQuery) Order

func (rq *RefQuery) Order(o ...OrderFunc) *RefQuery

Order adds an order step to the query.

func (*RefQuery) QueryRevision

func (rq *RefQuery) QueryRevision() *RevisionQuery

QueryRevision chains the current query on the "revision" edge.

func (*RefQuery) QueryRoutes

func (rq *RefQuery) QueryRoutes() *RouteQuery

QueryRoutes chains the current query on the "routes" edge.

func (*RefQuery) QueryWorkflow

func (rq *RefQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*RefQuery) Select

func (rq *RefQuery) Select(fields ...string) *RefSelect

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 {
	Immutable bool `json:"immutable,omitempty"`
}

client.Ref.Query().
	Select(ref.FieldImmutable).
	Scan(ctx, &v)

func (*RefQuery) Unique

func (rq *RefQuery) Unique(unique bool) *RefQuery

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 (*RefQuery) Where

func (rq *RefQuery) Where(ps ...predicate.Ref) *RefQuery

Where adds a new predicate for the RefQuery builder.

func (*RefQuery) WithRevision

func (rq *RefQuery) WithRevision(opts ...func(*RevisionQuery)) *RefQuery

WithRevision tells the query-builder to eager-load the nodes that are connected to the "revision" edge. The optional arguments are used to configure the query builder of the edge.

func (*RefQuery) WithRoutes

func (rq *RefQuery) WithRoutes(opts ...func(*RouteQuery)) *RefQuery

WithRoutes tells the query-builder to eager-load the nodes that are connected to the "routes" edge. The optional arguments are used to configure the query builder of the edge.

func (*RefQuery) WithWorkflow

func (rq *RefQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *RefQuery

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 RefSelect

type RefSelect struct {
	*RefQuery
	// contains filtered or unexported fields
}

RefSelect is the builder for selecting fields of Ref entities.

func (*RefSelect) Bool

func (s *RefSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RefSelect) BoolX

func (s *RefSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RefSelect) Bools

func (s *RefSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RefSelect) BoolsX

func (s *RefSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RefSelect) Float64

func (s *RefSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RefSelect) Float64X

func (s *RefSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RefSelect) Float64s

func (s *RefSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RefSelect) Float64sX

func (s *RefSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RefSelect) Int

func (s *RefSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RefSelect) IntX

func (s *RefSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RefSelect) Ints

func (s *RefSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RefSelect) IntsX

func (s *RefSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RefSelect) Scan

func (rs *RefSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*RefSelect) ScanX

func (s *RefSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RefSelect) String

func (s *RefSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RefSelect) StringX

func (s *RefSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RefSelect) Strings

func (s *RefSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RefSelect) StringsX

func (s *RefSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RefUpdate

type RefUpdate struct {
	// contains filtered or unexported fields
}

RefUpdate is the builder for updating Ref entities.

func (*RefUpdate) AddRouteIDs

func (ru *RefUpdate) AddRouteIDs(ids ...uuid.UUID) *RefUpdate

AddRouteIDs adds the "routes" edge to the Route entity by IDs.

func (*RefUpdate) AddRoutes

func (ru *RefUpdate) AddRoutes(r ...*Route) *RefUpdate

AddRoutes adds the "routes" edges to the Route entity.

func (*RefUpdate) ClearRevision

func (ru *RefUpdate) ClearRevision() *RefUpdate

ClearRevision clears the "revision" edge to the Revision entity.

func (*RefUpdate) ClearRoutes

func (ru *RefUpdate) ClearRoutes() *RefUpdate

ClearRoutes clears all "routes" edges to the Route entity.

func (*RefUpdate) ClearWorkflow

func (ru *RefUpdate) ClearWorkflow() *RefUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RefUpdate) Exec

func (ru *RefUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RefUpdate) ExecX

func (ru *RefUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RefUpdate) Mutation

func (ru *RefUpdate) Mutation() *RefMutation

Mutation returns the RefMutation object of the builder.

func (*RefUpdate) RemoveRouteIDs

func (ru *RefUpdate) RemoveRouteIDs(ids ...uuid.UUID) *RefUpdate

RemoveRouteIDs removes the "routes" edge to Route entities by IDs.

func (*RefUpdate) RemoveRoutes

func (ru *RefUpdate) RemoveRoutes(r ...*Route) *RefUpdate

RemoveRoutes removes "routes" edges to Route entities.

func (*RefUpdate) Save

func (ru *RefUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*RefUpdate) SaveX

func (ru *RefUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*RefUpdate) SetRevision

func (ru *RefUpdate) SetRevision(r *Revision) *RefUpdate

SetRevision sets the "revision" edge to the Revision entity.

func (*RefUpdate) SetRevisionID

func (ru *RefUpdate) SetRevisionID(id uuid.UUID) *RefUpdate

SetRevisionID sets the "revision" edge to the Revision entity by ID.

func (*RefUpdate) SetWorkflow

func (ru *RefUpdate) SetWorkflow(w *Workflow) *RefUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RefUpdate) SetWorkflowID

func (ru *RefUpdate) SetWorkflowID(id uuid.UUID) *RefUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*RefUpdate) Where

func (ru *RefUpdate) Where(ps ...predicate.Ref) *RefUpdate

Where appends a list predicates to the RefUpdate builder.

type RefUpdateOne

type RefUpdateOne struct {
	// contains filtered or unexported fields
}

RefUpdateOne is the builder for updating a single Ref entity.

func (*RefUpdateOne) AddRouteIDs

func (ruo *RefUpdateOne) AddRouteIDs(ids ...uuid.UUID) *RefUpdateOne

AddRouteIDs adds the "routes" edge to the Route entity by IDs.

func (*RefUpdateOne) AddRoutes

func (ruo *RefUpdateOne) AddRoutes(r ...*Route) *RefUpdateOne

AddRoutes adds the "routes" edges to the Route entity.

func (*RefUpdateOne) ClearRevision

func (ruo *RefUpdateOne) ClearRevision() *RefUpdateOne

ClearRevision clears the "revision" edge to the Revision entity.

func (*RefUpdateOne) ClearRoutes

func (ruo *RefUpdateOne) ClearRoutes() *RefUpdateOne

ClearRoutes clears all "routes" edges to the Route entity.

func (*RefUpdateOne) ClearWorkflow

func (ruo *RefUpdateOne) ClearWorkflow() *RefUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RefUpdateOne) Exec

func (ruo *RefUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RefUpdateOne) ExecX

func (ruo *RefUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RefUpdateOne) Mutation

func (ruo *RefUpdateOne) Mutation() *RefMutation

Mutation returns the RefMutation object of the builder.

func (*RefUpdateOne) RemoveRouteIDs

func (ruo *RefUpdateOne) RemoveRouteIDs(ids ...uuid.UUID) *RefUpdateOne

RemoveRouteIDs removes the "routes" edge to Route entities by IDs.

func (*RefUpdateOne) RemoveRoutes

func (ruo *RefUpdateOne) RemoveRoutes(r ...*Route) *RefUpdateOne

RemoveRoutes removes "routes" edges to Route entities.

func (*RefUpdateOne) Save

func (ruo *RefUpdateOne) Save(ctx context.Context) (*Ref, error)

Save executes the query and returns the updated Ref entity.

func (*RefUpdateOne) SaveX

func (ruo *RefUpdateOne) SaveX(ctx context.Context) *Ref

SaveX is like Save, but panics if an error occurs.

func (*RefUpdateOne) Select

func (ruo *RefUpdateOne) Select(field string, fields ...string) *RefUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*RefUpdateOne) SetRevision

func (ruo *RefUpdateOne) SetRevision(r *Revision) *RefUpdateOne

SetRevision sets the "revision" edge to the Revision entity.

func (*RefUpdateOne) SetRevisionID

func (ruo *RefUpdateOne) SetRevisionID(id uuid.UUID) *RefUpdateOne

SetRevisionID sets the "revision" edge to the Revision entity by ID.

func (*RefUpdateOne) SetWorkflow

func (ruo *RefUpdateOne) SetWorkflow(w *Workflow) *RefUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RefUpdateOne) SetWorkflowID

func (ruo *RefUpdateOne) SetWorkflowID(id uuid.UUID) *RefUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type Refs

type Refs []*Ref

Refs is a parsable slice of Ref.

type Revision

type Revision struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Hash holds the value of the "hash" field.
	Hash string `json:"hash,omitempty"`
	// Source holds the value of the "source" field.
	Source []byte `json:"source,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata map[string]interface{} `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RevisionQuery when eager-loading is set.
	Edges RevisionEdges `json:"edges"`
	// contains filtered or unexported fields
}

Revision is the model entity for the Revision schema.

func (*Revision) Instances

func (r *Revision) Instances(ctx context.Context) ([]*Instance, error)

func (*Revision) QueryInstances

func (r *Revision) QueryInstances() *InstanceQuery

QueryInstances queries the "instances" edge of the Revision entity.

func (*Revision) QueryRefs

func (r *Revision) QueryRefs() *RefQuery

QueryRefs queries the "refs" edge of the Revision entity.

func (*Revision) QueryWorkflow

func (r *Revision) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the Revision entity.

func (*Revision) Refs

func (r *Revision) Refs(ctx context.Context) ([]*Ref, error)

func (*Revision) String

func (r *Revision) String() string

String implements the fmt.Stringer.

func (*Revision) Unwrap

func (r *Revision) Unwrap() *Revision

Unwrap unwraps the Revision 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 (*Revision) Update

func (r *Revision) Update() *RevisionUpdateOne

Update returns a builder for updating this Revision. Note that you need to call Revision.Unwrap() before calling this method if this Revision was returned from a transaction, and the transaction was committed or rolled back.

func (*Revision) Workflow

func (r *Revision) Workflow(ctx context.Context) (*Workflow, error)

type RevisionClient

type RevisionClient struct {
	// contains filtered or unexported fields
}

RevisionClient is a client for the Revision schema.

func NewRevisionClient

func NewRevisionClient(c config) *RevisionClient

NewRevisionClient returns a client for the Revision from the given config.

func (*RevisionClient) Create

func (c *RevisionClient) Create() *RevisionCreate

Create returns a builder for creating a Revision entity.

func (*RevisionClient) CreateBulk

func (c *RevisionClient) CreateBulk(builders ...*RevisionCreate) *RevisionCreateBulk

CreateBulk returns a builder for creating a bulk of Revision entities.

func (*RevisionClient) Delete

func (c *RevisionClient) Delete() *RevisionDelete

Delete returns a delete builder for Revision.

func (*RevisionClient) DeleteOne

func (c *RevisionClient) DeleteOne(r *Revision) *RevisionDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*RevisionClient) DeleteOneID

func (c *RevisionClient) DeleteOneID(id uuid.UUID) *RevisionDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*RevisionClient) Get

func (c *RevisionClient) Get(ctx context.Context, id uuid.UUID) (*Revision, error)

Get returns a Revision entity by its id.

func (*RevisionClient) GetX

func (c *RevisionClient) GetX(ctx context.Context, id uuid.UUID) *Revision

GetX is like Get, but panics if an error occurs.

func (*RevisionClient) Hooks

func (c *RevisionClient) Hooks() []Hook

Hooks returns the client hooks.

func (*RevisionClient) Query

func (c *RevisionClient) Query() *RevisionQuery

Query returns a query builder for Revision.

func (*RevisionClient) QueryInstances

func (c *RevisionClient) QueryInstances(r *Revision) *InstanceQuery

QueryInstances queries the instances edge of a Revision.

func (*RevisionClient) QueryRefs

func (c *RevisionClient) QueryRefs(r *Revision) *RefQuery

QueryRefs queries the refs edge of a Revision.

func (*RevisionClient) QueryWorkflow

func (c *RevisionClient) QueryWorkflow(r *Revision) *WorkflowQuery

QueryWorkflow queries the workflow edge of a Revision.

func (*RevisionClient) Update

func (c *RevisionClient) Update() *RevisionUpdate

Update returns an update builder for Revision.

func (*RevisionClient) UpdateOne

func (c *RevisionClient) UpdateOne(r *Revision) *RevisionUpdateOne

UpdateOne returns an update builder for the given entity.

func (*RevisionClient) UpdateOneID

func (c *RevisionClient) UpdateOneID(id uuid.UUID) *RevisionUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RevisionClient) Use

func (c *RevisionClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `revision.Hooks(f(g(h())))`.

type RevisionCreate

type RevisionCreate struct {
	// contains filtered or unexported fields
}

RevisionCreate is the builder for creating a Revision entity.

func (*RevisionCreate) AddInstanceIDs

func (rc *RevisionCreate) AddInstanceIDs(ids ...uuid.UUID) *RevisionCreate

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*RevisionCreate) AddInstances

func (rc *RevisionCreate) AddInstances(i ...*Instance) *RevisionCreate

AddInstances adds the "instances" edges to the Instance entity.

func (*RevisionCreate) AddRefIDs

func (rc *RevisionCreate) AddRefIDs(ids ...uuid.UUID) *RevisionCreate

AddRefIDs adds the "refs" edge to the Ref entity by IDs.

func (*RevisionCreate) AddRefs

func (rc *RevisionCreate) AddRefs(r ...*Ref) *RevisionCreate

AddRefs adds the "refs" edges to the Ref entity.

func (*RevisionCreate) Exec

func (rc *RevisionCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*RevisionCreate) ExecX

func (rc *RevisionCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RevisionCreate) Mutation

func (rc *RevisionCreate) Mutation() *RevisionMutation

Mutation returns the RevisionMutation object of the builder.

func (*RevisionCreate) Save

func (rc *RevisionCreate) Save(ctx context.Context) (*Revision, error)

Save creates the Revision in the database.

func (*RevisionCreate) SaveX

func (rc *RevisionCreate) SaveX(ctx context.Context) *Revision

SaveX calls Save and panics if Save returns an error.

func (*RevisionCreate) SetCreatedAt

func (rc *RevisionCreate) SetCreatedAt(t time.Time) *RevisionCreate

SetCreatedAt sets the "created_at" field.

func (*RevisionCreate) SetHash

func (rc *RevisionCreate) SetHash(s string) *RevisionCreate

SetHash sets the "hash" field.

func (*RevisionCreate) SetID

func (rc *RevisionCreate) SetID(u uuid.UUID) *RevisionCreate

SetID sets the "id" field.

func (*RevisionCreate) SetMetadata added in v0.6.0

func (rc *RevisionCreate) SetMetadata(m map[string]interface{}) *RevisionCreate

SetMetadata sets the "metadata" field.

func (*RevisionCreate) SetNillableCreatedAt

func (rc *RevisionCreate) SetNillableCreatedAt(t *time.Time) *RevisionCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*RevisionCreate) SetNillableID added in v0.6.1

func (rc *RevisionCreate) SetNillableID(u *uuid.UUID) *RevisionCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*RevisionCreate) SetSource

func (rc *RevisionCreate) SetSource(b []byte) *RevisionCreate

SetSource sets the "source" field.

func (*RevisionCreate) SetWorkflow

func (rc *RevisionCreate) SetWorkflow(w *Workflow) *RevisionCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RevisionCreate) SetWorkflowID

func (rc *RevisionCreate) SetWorkflowID(id uuid.UUID) *RevisionCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type RevisionCreateBulk

type RevisionCreateBulk struct {
	// contains filtered or unexported fields
}

RevisionCreateBulk is the builder for creating many Revision entities in bulk.

func (*RevisionCreateBulk) Exec

func (rcb *RevisionCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*RevisionCreateBulk) ExecX

func (rcb *RevisionCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RevisionCreateBulk) Save

func (rcb *RevisionCreateBulk) Save(ctx context.Context) ([]*Revision, error)

Save creates the Revision entities in the database.

func (*RevisionCreateBulk) SaveX

func (rcb *RevisionCreateBulk) SaveX(ctx context.Context) []*Revision

SaveX is like Save, but panics if an error occurs.

type RevisionDelete

type RevisionDelete struct {
	// contains filtered or unexported fields
}

RevisionDelete is the builder for deleting a Revision entity.

func (*RevisionDelete) Exec

func (rd *RevisionDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*RevisionDelete) ExecX

func (rd *RevisionDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*RevisionDelete) Where

func (rd *RevisionDelete) Where(ps ...predicate.Revision) *RevisionDelete

Where appends a list predicates to the RevisionDelete builder.

type RevisionDeleteOne

type RevisionDeleteOne struct {
	// contains filtered or unexported fields
}

RevisionDeleteOne is the builder for deleting a single Revision entity.

func (*RevisionDeleteOne) Exec

func (rdo *RevisionDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*RevisionDeleteOne) ExecX

func (rdo *RevisionDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type RevisionEdges

type RevisionEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Refs holds the value of the refs edge.
	Refs []*Ref `json:"refs,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*Instance `json:"instances,omitempty"`
	// contains filtered or unexported fields
}

RevisionEdges holds the relations/edges for other nodes in the graph.

func (RevisionEdges) InstancesOrErr

func (e RevisionEdges) InstancesOrErr() ([]*Instance, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (RevisionEdges) RefsOrErr

func (e RevisionEdges) RefsOrErr() ([]*Ref, error)

RefsOrErr returns the Refs value or an error if the edge was not loaded in eager-loading.

func (RevisionEdges) WorkflowOrErr

func (e RevisionEdges) 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 RevisionGroupBy

type RevisionGroupBy struct {
	// contains filtered or unexported fields
}

RevisionGroupBy is the group-by builder for Revision entities.

func (*RevisionGroupBy) Aggregate

func (rgb *RevisionGroupBy) Aggregate(fns ...AggregateFunc) *RevisionGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*RevisionGroupBy) Bool

func (s *RevisionGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) BoolX

func (s *RevisionGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RevisionGroupBy) Bools

func (s *RevisionGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) BoolsX

func (s *RevisionGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RevisionGroupBy) Float64

func (s *RevisionGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) Float64X

func (s *RevisionGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RevisionGroupBy) Float64s

func (s *RevisionGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) Float64sX

func (s *RevisionGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RevisionGroupBy) Int

func (s *RevisionGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) IntX

func (s *RevisionGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RevisionGroupBy) Ints

func (s *RevisionGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) IntsX

func (s *RevisionGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RevisionGroupBy) Scan

func (rgb *RevisionGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*RevisionGroupBy) ScanX

func (s *RevisionGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RevisionGroupBy) String

func (s *RevisionGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) StringX

func (s *RevisionGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RevisionGroupBy) Strings

func (s *RevisionGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RevisionGroupBy) StringsX

func (s *RevisionGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RevisionMutation

type RevisionMutation struct {
	// contains filtered or unexported fields
}

RevisionMutation represents an operation that mutates the Revision nodes in the graph.

func (*RevisionMutation) AddField

func (m *RevisionMutation) 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 (*RevisionMutation) AddInstanceIDs

func (m *RevisionMutation) AddInstanceIDs(ids ...uuid.UUID)

AddInstanceIDs adds the "instances" edge to the Instance entity by ids.

func (*RevisionMutation) AddRefIDs

func (m *RevisionMutation) AddRefIDs(ids ...uuid.UUID)

AddRefIDs adds the "refs" edge to the Ref entity by ids.

func (*RevisionMutation) AddedEdges

func (m *RevisionMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*RevisionMutation) AddedField

func (m *RevisionMutation) 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 (*RevisionMutation) AddedFields

func (m *RevisionMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*RevisionMutation) AddedIDs

func (m *RevisionMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*RevisionMutation) ClearEdge

func (m *RevisionMutation) 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 (*RevisionMutation) ClearField

func (m *RevisionMutation) 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 (*RevisionMutation) ClearInstances

func (m *RevisionMutation) ClearInstances()

ClearInstances clears the "instances" edge to the Instance entity.

func (*RevisionMutation) ClearRefs

func (m *RevisionMutation) ClearRefs()

ClearRefs clears the "refs" edge to the Ref entity.

func (*RevisionMutation) ClearWorkflow

func (m *RevisionMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RevisionMutation) ClearedEdges

func (m *RevisionMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*RevisionMutation) ClearedFields

func (m *RevisionMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (RevisionMutation) Client

func (m RevisionMutation) 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 (*RevisionMutation) CreatedAt

func (m *RevisionMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*RevisionMutation) EdgeCleared

func (m *RevisionMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*RevisionMutation) Field

func (m *RevisionMutation) 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 (*RevisionMutation) FieldCleared

func (m *RevisionMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*RevisionMutation) Fields

func (m *RevisionMutation) 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 (*RevisionMutation) Hash

func (m *RevisionMutation) Hash() (r string, exists bool)

Hash returns the value of the "hash" field in the mutation.

func (*RevisionMutation) ID

func (m *RevisionMutation) 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 (*RevisionMutation) IDs added in v0.6.1

func (m *RevisionMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*RevisionMutation) InstancesCleared

func (m *RevisionMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the Instance entity was cleared.

func (*RevisionMutation) InstancesIDs

func (m *RevisionMutation) InstancesIDs() (ids []uuid.UUID)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*RevisionMutation) Metadata added in v0.6.0

func (m *RevisionMutation) Metadata() (r map[string]interface{}, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*RevisionMutation) OldCreatedAt

func (m *RevisionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Revision entity. If the Revision 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 (*RevisionMutation) OldField

func (m *RevisionMutation) 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 (*RevisionMutation) OldHash

func (m *RevisionMutation) OldHash(ctx context.Context) (v string, err error)

OldHash returns the old "hash" field's value of the Revision entity. If the Revision 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 (*RevisionMutation) OldMetadata added in v0.6.0

func (m *RevisionMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)

OldMetadata returns the old "metadata" field's value of the Revision entity. If the Revision 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 (*RevisionMutation) OldSource

func (m *RevisionMutation) OldSource(ctx context.Context) (v []byte, err error)

OldSource returns the old "source" field's value of the Revision entity. If the Revision 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 (*RevisionMutation) Op

func (m *RevisionMutation) Op() Op

Op returns the operation name.

func (*RevisionMutation) RefsCleared

func (m *RevisionMutation) RefsCleared() bool

RefsCleared reports if the "refs" edge to the Ref entity was cleared.

func (*RevisionMutation) RefsIDs

func (m *RevisionMutation) RefsIDs() (ids []uuid.UUID)

RefsIDs returns the "refs" edge IDs in the mutation.

func (*RevisionMutation) RemoveInstanceIDs

func (m *RevisionMutation) RemoveInstanceIDs(ids ...uuid.UUID)

RemoveInstanceIDs removes the "instances" edge to the Instance entity by IDs.

func (*RevisionMutation) RemoveRefIDs

func (m *RevisionMutation) RemoveRefIDs(ids ...uuid.UUID)

RemoveRefIDs removes the "refs" edge to the Ref entity by IDs.

func (*RevisionMutation) RemovedEdges

func (m *RevisionMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*RevisionMutation) RemovedIDs

func (m *RevisionMutation) 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 (*RevisionMutation) RemovedInstancesIDs

func (m *RevisionMutation) RemovedInstancesIDs() (ids []uuid.UUID)

RemovedInstances returns the removed IDs of the "instances" edge to the Instance entity.

func (*RevisionMutation) RemovedRefsIDs

func (m *RevisionMutation) RemovedRefsIDs() (ids []uuid.UUID)

RemovedRefs returns the removed IDs of the "refs" edge to the Ref entity.

func (*RevisionMutation) ResetCreatedAt

func (m *RevisionMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*RevisionMutation) ResetEdge

func (m *RevisionMutation) 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 (*RevisionMutation) ResetField

func (m *RevisionMutation) 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 (*RevisionMutation) ResetHash

func (m *RevisionMutation) ResetHash()

ResetHash resets all changes to the "hash" field.

func (*RevisionMutation) ResetInstances

func (m *RevisionMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*RevisionMutation) ResetMetadata added in v0.6.0

func (m *RevisionMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*RevisionMutation) ResetRefs

func (m *RevisionMutation) ResetRefs()

ResetRefs resets all changes to the "refs" edge.

func (*RevisionMutation) ResetSource

func (m *RevisionMutation) ResetSource()

ResetSource resets all changes to the "source" field.

func (*RevisionMutation) ResetWorkflow

func (m *RevisionMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*RevisionMutation) SetCreatedAt

func (m *RevisionMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*RevisionMutation) SetField

func (m *RevisionMutation) 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 (*RevisionMutation) SetHash

func (m *RevisionMutation) SetHash(s string)

SetHash sets the "hash" field.

func (*RevisionMutation) SetID

func (m *RevisionMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Revision entities.

func (*RevisionMutation) SetMetadata added in v0.6.0

func (m *RevisionMutation) SetMetadata(value map[string]interface{})

SetMetadata sets the "metadata" field.

func (*RevisionMutation) SetSource

func (m *RevisionMutation) SetSource(b []byte)

SetSource sets the "source" field.

func (*RevisionMutation) SetWorkflowID

func (m *RevisionMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*RevisionMutation) Source

func (m *RevisionMutation) Source() (r []byte, exists bool)

Source returns the value of the "source" field in the mutation.

func (RevisionMutation) Tx

func (m RevisionMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*RevisionMutation) Type

func (m *RevisionMutation) Type() string

Type returns the node type of this mutation (Revision).

func (*RevisionMutation) Where

func (m *RevisionMutation) Where(ps ...predicate.Revision)

Where appends a list predicates to the RevisionMutation builder.

func (*RevisionMutation) WorkflowCleared

func (m *RevisionMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*RevisionMutation) WorkflowID

func (m *RevisionMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*RevisionMutation) WorkflowIDs

func (m *RevisionMutation) 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 RevisionQuery

type RevisionQuery struct {
	// contains filtered or unexported fields
}

RevisionQuery is the builder for querying Revision entities.

func (*RevisionQuery) All

func (rq *RevisionQuery) All(ctx context.Context) ([]*Revision, error)

All executes the query and returns a list of Revisions.

func (*RevisionQuery) AllX

func (rq *RevisionQuery) AllX(ctx context.Context) []*Revision

AllX is like All, but panics if an error occurs.

func (*RevisionQuery) Clone

func (rq *RevisionQuery) Clone() *RevisionQuery

Clone returns a duplicate of the RevisionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*RevisionQuery) CollectFields

func (r *RevisionQuery) CollectFields(ctx context.Context, satisfies ...string) *RevisionQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*RevisionQuery) Count

func (rq *RevisionQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RevisionQuery) CountX

func (rq *RevisionQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*RevisionQuery) Exist

func (rq *RevisionQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*RevisionQuery) ExistX

func (rq *RevisionQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*RevisionQuery) First

func (rq *RevisionQuery) First(ctx context.Context) (*Revision, error)

First returns the first Revision entity from the query. Returns a *NotFoundError when no Revision was found.

func (*RevisionQuery) FirstID

func (rq *RevisionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first Revision ID from the query. Returns a *NotFoundError when no Revision ID was found.

func (*RevisionQuery) FirstIDX

func (rq *RevisionQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*RevisionQuery) FirstX

func (rq *RevisionQuery) FirstX(ctx context.Context) *Revision

FirstX is like First, but panics if an error occurs.

func (*RevisionQuery) GroupBy

func (rq *RevisionQuery) GroupBy(field string, fields ...string) *RevisionGroupBy

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Revision.Query().
	GroupBy(revision.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*RevisionQuery) IDs

func (rq *RevisionQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of Revision IDs.

func (*RevisionQuery) IDsX

func (rq *RevisionQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*RevisionQuery) Limit

func (rq *RevisionQuery) Limit(limit int) *RevisionQuery

Limit adds a limit step to the query.

func (*RevisionQuery) Offset

func (rq *RevisionQuery) Offset(offset int) *RevisionQuery

Offset adds an offset step to the query.

func (*RevisionQuery) Only

func (rq *RevisionQuery) Only(ctx context.Context) (*Revision, error)

Only returns a single Revision entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Revision entity is found. Returns a *NotFoundError when no Revision entities are found.

func (*RevisionQuery) OnlyID

func (rq *RevisionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Revision ID in the query. Returns a *NotSingularError when more than one Revision ID is found. Returns a *NotFoundError when no entities are found.

func (*RevisionQuery) OnlyIDX

func (rq *RevisionQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*RevisionQuery) OnlyX

func (rq *RevisionQuery) OnlyX(ctx context.Context) *Revision

OnlyX is like Only, but panics if an error occurs.

func (*RevisionQuery) Order

func (rq *RevisionQuery) Order(o ...OrderFunc) *RevisionQuery

Order adds an order step to the query.

func (*RevisionQuery) QueryInstances

func (rq *RevisionQuery) QueryInstances() *InstanceQuery

QueryInstances chains the current query on the "instances" edge.

func (*RevisionQuery) QueryRefs

func (rq *RevisionQuery) QueryRefs() *RefQuery

QueryRefs chains the current query on the "refs" edge.

func (*RevisionQuery) QueryWorkflow

func (rq *RevisionQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*RevisionQuery) Select

func (rq *RevisionQuery) Select(fields ...string) *RevisionSelect

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Revision.Query().
	Select(revision.FieldCreatedAt).
	Scan(ctx, &v)

func (*RevisionQuery) Unique

func (rq *RevisionQuery) Unique(unique bool) *RevisionQuery

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 (*RevisionQuery) Where

func (rq *RevisionQuery) Where(ps ...predicate.Revision) *RevisionQuery

Where adds a new predicate for the RevisionQuery builder.

func (*RevisionQuery) WithInstances

func (rq *RevisionQuery) WithInstances(opts ...func(*InstanceQuery)) *RevisionQuery

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 (*RevisionQuery) WithRefs

func (rq *RevisionQuery) WithRefs(opts ...func(*RefQuery)) *RevisionQuery

WithRefs tells the query-builder to eager-load the nodes that are connected to the "refs" edge. The optional arguments are used to configure the query builder of the edge.

func (*RevisionQuery) WithWorkflow

func (rq *RevisionQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *RevisionQuery

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 RevisionSelect

type RevisionSelect struct {
	*RevisionQuery
	// contains filtered or unexported fields
}

RevisionSelect is the builder for selecting fields of Revision entities.

func (*RevisionSelect) Bool

func (s *RevisionSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) BoolX

func (s *RevisionSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RevisionSelect) Bools

func (s *RevisionSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) BoolsX

func (s *RevisionSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RevisionSelect) Float64

func (s *RevisionSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) Float64X

func (s *RevisionSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RevisionSelect) Float64s

func (s *RevisionSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) Float64sX

func (s *RevisionSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RevisionSelect) Int

func (s *RevisionSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) IntX

func (s *RevisionSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RevisionSelect) Ints

func (s *RevisionSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) IntsX

func (s *RevisionSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RevisionSelect) Scan

func (rs *RevisionSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*RevisionSelect) ScanX

func (s *RevisionSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RevisionSelect) String

func (s *RevisionSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) StringX

func (s *RevisionSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RevisionSelect) Strings

func (s *RevisionSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RevisionSelect) StringsX

func (s *RevisionSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RevisionUpdate

type RevisionUpdate struct {
	// contains filtered or unexported fields
}

RevisionUpdate is the builder for updating Revision entities.

func (*RevisionUpdate) AddInstanceIDs

func (ru *RevisionUpdate) AddInstanceIDs(ids ...uuid.UUID) *RevisionUpdate

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*RevisionUpdate) AddInstances

func (ru *RevisionUpdate) AddInstances(i ...*Instance) *RevisionUpdate

AddInstances adds the "instances" edges to the Instance entity.

func (*RevisionUpdate) AddRefIDs

func (ru *RevisionUpdate) AddRefIDs(ids ...uuid.UUID) *RevisionUpdate

AddRefIDs adds the "refs" edge to the Ref entity by IDs.

func (*RevisionUpdate) AddRefs

func (ru *RevisionUpdate) AddRefs(r ...*Ref) *RevisionUpdate

AddRefs adds the "refs" edges to the Ref entity.

func (*RevisionUpdate) ClearInstances

func (ru *RevisionUpdate) ClearInstances() *RevisionUpdate

ClearInstances clears all "instances" edges to the Instance entity.

func (*RevisionUpdate) ClearRefs

func (ru *RevisionUpdate) ClearRefs() *RevisionUpdate

ClearRefs clears all "refs" edges to the Ref entity.

func (*RevisionUpdate) ClearWorkflow

func (ru *RevisionUpdate) ClearWorkflow() *RevisionUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RevisionUpdate) Exec

func (ru *RevisionUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RevisionUpdate) ExecX

func (ru *RevisionUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RevisionUpdate) Mutation

func (ru *RevisionUpdate) Mutation() *RevisionMutation

Mutation returns the RevisionMutation object of the builder.

func (*RevisionUpdate) RemoveInstanceIDs

func (ru *RevisionUpdate) RemoveInstanceIDs(ids ...uuid.UUID) *RevisionUpdate

RemoveInstanceIDs removes the "instances" edge to Instance entities by IDs.

func (*RevisionUpdate) RemoveInstances

func (ru *RevisionUpdate) RemoveInstances(i ...*Instance) *RevisionUpdate

RemoveInstances removes "instances" edges to Instance entities.

func (*RevisionUpdate) RemoveRefIDs

func (ru *RevisionUpdate) RemoveRefIDs(ids ...uuid.UUID) *RevisionUpdate

RemoveRefIDs removes the "refs" edge to Ref entities by IDs.

func (*RevisionUpdate) RemoveRefs

func (ru *RevisionUpdate) RemoveRefs(r ...*Ref) *RevisionUpdate

RemoveRefs removes "refs" edges to Ref entities.

func (*RevisionUpdate) Save

func (ru *RevisionUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*RevisionUpdate) SaveX

func (ru *RevisionUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*RevisionUpdate) SetMetadata added in v0.6.0

func (ru *RevisionUpdate) SetMetadata(m map[string]interface{}) *RevisionUpdate

SetMetadata sets the "metadata" field.

func (*RevisionUpdate) SetWorkflow

func (ru *RevisionUpdate) SetWorkflow(w *Workflow) *RevisionUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RevisionUpdate) SetWorkflowID

func (ru *RevisionUpdate) SetWorkflowID(id uuid.UUID) *RevisionUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*RevisionUpdate) Where

func (ru *RevisionUpdate) Where(ps ...predicate.Revision) *RevisionUpdate

Where appends a list predicates to the RevisionUpdate builder.

type RevisionUpdateOne

type RevisionUpdateOne struct {
	// contains filtered or unexported fields
}

RevisionUpdateOne is the builder for updating a single Revision entity.

func (*RevisionUpdateOne) AddInstanceIDs

func (ruo *RevisionUpdateOne) AddInstanceIDs(ids ...uuid.UUID) *RevisionUpdateOne

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*RevisionUpdateOne) AddInstances

func (ruo *RevisionUpdateOne) AddInstances(i ...*Instance) *RevisionUpdateOne

AddInstances adds the "instances" edges to the Instance entity.

func (*RevisionUpdateOne) AddRefIDs

func (ruo *RevisionUpdateOne) AddRefIDs(ids ...uuid.UUID) *RevisionUpdateOne

AddRefIDs adds the "refs" edge to the Ref entity by IDs.

func (*RevisionUpdateOne) AddRefs

func (ruo *RevisionUpdateOne) AddRefs(r ...*Ref) *RevisionUpdateOne

AddRefs adds the "refs" edges to the Ref entity.

func (*RevisionUpdateOne) ClearInstances

func (ruo *RevisionUpdateOne) ClearInstances() *RevisionUpdateOne

ClearInstances clears all "instances" edges to the Instance entity.

func (*RevisionUpdateOne) ClearRefs

func (ruo *RevisionUpdateOne) ClearRefs() *RevisionUpdateOne

ClearRefs clears all "refs" edges to the Ref entity.

func (*RevisionUpdateOne) ClearWorkflow

func (ruo *RevisionUpdateOne) ClearWorkflow() *RevisionUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RevisionUpdateOne) Exec

func (ruo *RevisionUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RevisionUpdateOne) ExecX

func (ruo *RevisionUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RevisionUpdateOne) Mutation

func (ruo *RevisionUpdateOne) Mutation() *RevisionMutation

Mutation returns the RevisionMutation object of the builder.

func (*RevisionUpdateOne) RemoveInstanceIDs

func (ruo *RevisionUpdateOne) RemoveInstanceIDs(ids ...uuid.UUID) *RevisionUpdateOne

RemoveInstanceIDs removes the "instances" edge to Instance entities by IDs.

func (*RevisionUpdateOne) RemoveInstances

func (ruo *RevisionUpdateOne) RemoveInstances(i ...*Instance) *RevisionUpdateOne

RemoveInstances removes "instances" edges to Instance entities.

func (*RevisionUpdateOne) RemoveRefIDs

func (ruo *RevisionUpdateOne) RemoveRefIDs(ids ...uuid.UUID) *RevisionUpdateOne

RemoveRefIDs removes the "refs" edge to Ref entities by IDs.

func (*RevisionUpdateOne) RemoveRefs

func (ruo *RevisionUpdateOne) RemoveRefs(r ...*Ref) *RevisionUpdateOne

RemoveRefs removes "refs" edges to Ref entities.

func (*RevisionUpdateOne) Save

func (ruo *RevisionUpdateOne) Save(ctx context.Context) (*Revision, error)

Save executes the query and returns the updated Revision entity.

func (*RevisionUpdateOne) SaveX

func (ruo *RevisionUpdateOne) SaveX(ctx context.Context) *Revision

SaveX is like Save, but panics if an error occurs.

func (*RevisionUpdateOne) Select

func (ruo *RevisionUpdateOne) Select(field string, fields ...string) *RevisionUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*RevisionUpdateOne) SetMetadata added in v0.6.0

func (ruo *RevisionUpdateOne) SetMetadata(m map[string]interface{}) *RevisionUpdateOne

SetMetadata sets the "metadata" field.

func (*RevisionUpdateOne) SetWorkflow

func (ruo *RevisionUpdateOne) SetWorkflow(w *Workflow) *RevisionUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RevisionUpdateOne) SetWorkflowID

func (ruo *RevisionUpdateOne) SetWorkflowID(id uuid.UUID) *RevisionUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type Revisions

type Revisions []*Revision

Revisions is a parsable slice of Revision.

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(ctx 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 Rollback method.

type Route

type Route struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// Weight holds the value of the "weight" field.
	Weight int `json:"weight,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RouteQuery when eager-loading is set.
	Edges RouteEdges `json:"edges"`
	// contains filtered or unexported fields
}

Route is the model entity for the Route schema.

func (*Route) QueryRef

func (r *Route) QueryRef() *RefQuery

QueryRef queries the "ref" edge of the Route entity.

func (*Route) QueryWorkflow

func (r *Route) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the Route entity.

func (*Route) Ref

func (r *Route) Ref(ctx context.Context) (*Ref, error)

func (*Route) String

func (r *Route) String() string

String implements the fmt.Stringer.

func (*Route) Unwrap

func (r *Route) Unwrap() *Route

Unwrap unwraps the Route 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 (*Route) Update

func (r *Route) Update() *RouteUpdateOne

Update returns a builder for updating this Route. Note that you need to call Route.Unwrap() before calling this method if this Route was returned from a transaction, and the transaction was committed or rolled back.

func (*Route) Workflow

func (r *Route) Workflow(ctx context.Context) (*Workflow, error)

type RouteClient

type RouteClient struct {
	// contains filtered or unexported fields
}

RouteClient is a client for the Route schema.

func NewRouteClient

func NewRouteClient(c config) *RouteClient

NewRouteClient returns a client for the Route from the given config.

func (*RouteClient) Create

func (c *RouteClient) Create() *RouteCreate

Create returns a builder for creating a Route entity.

func (*RouteClient) CreateBulk

func (c *RouteClient) CreateBulk(builders ...*RouteCreate) *RouteCreateBulk

CreateBulk returns a builder for creating a bulk of Route entities.

func (*RouteClient) Delete

func (c *RouteClient) Delete() *RouteDelete

Delete returns a delete builder for Route.

func (*RouteClient) DeleteOne

func (c *RouteClient) DeleteOne(r *Route) *RouteDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*RouteClient) DeleteOneID

func (c *RouteClient) DeleteOneID(id uuid.UUID) *RouteDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*RouteClient) Get

func (c *RouteClient) Get(ctx context.Context, id uuid.UUID) (*Route, error)

Get returns a Route entity by its id.

func (*RouteClient) GetX

func (c *RouteClient) GetX(ctx context.Context, id uuid.UUID) *Route

GetX is like Get, but panics if an error occurs.

func (*RouteClient) Hooks

func (c *RouteClient) Hooks() []Hook

Hooks returns the client hooks.

func (*RouteClient) Query

func (c *RouteClient) Query() *RouteQuery

Query returns a query builder for Route.

func (*RouteClient) QueryRef

func (c *RouteClient) QueryRef(r *Route) *RefQuery

QueryRef queries the ref edge of a Route.

func (*RouteClient) QueryWorkflow

func (c *RouteClient) QueryWorkflow(r *Route) *WorkflowQuery

QueryWorkflow queries the workflow edge of a Route.

func (*RouteClient) Update

func (c *RouteClient) Update() *RouteUpdate

Update returns an update builder for Route.

func (*RouteClient) UpdateOne

func (c *RouteClient) UpdateOne(r *Route) *RouteUpdateOne

UpdateOne returns an update builder for the given entity.

func (*RouteClient) UpdateOneID

func (c *RouteClient) UpdateOneID(id uuid.UUID) *RouteUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RouteClient) Use

func (c *RouteClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `route.Hooks(f(g(h())))`.

type RouteCreate

type RouteCreate struct {
	// contains filtered or unexported fields
}

RouteCreate is the builder for creating a Route entity.

func (*RouteCreate) Exec

func (rc *RouteCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*RouteCreate) ExecX

func (rc *RouteCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RouteCreate) Mutation

func (rc *RouteCreate) Mutation() *RouteMutation

Mutation returns the RouteMutation object of the builder.

func (*RouteCreate) Save

func (rc *RouteCreate) Save(ctx context.Context) (*Route, error)

Save creates the Route in the database.

func (*RouteCreate) SaveX

func (rc *RouteCreate) SaveX(ctx context.Context) *Route

SaveX calls Save and panics if Save returns an error.

func (*RouteCreate) SetID

func (rc *RouteCreate) SetID(u uuid.UUID) *RouteCreate

SetID sets the "id" field.

func (*RouteCreate) SetNillableID added in v0.6.1

func (rc *RouteCreate) SetNillableID(u *uuid.UUID) *RouteCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*RouteCreate) SetRef

func (rc *RouteCreate) SetRef(r *Ref) *RouteCreate

SetRef sets the "ref" edge to the Ref entity.

func (*RouteCreate) SetRefID

func (rc *RouteCreate) SetRefID(id uuid.UUID) *RouteCreate

SetRefID sets the "ref" edge to the Ref entity by ID.

func (*RouteCreate) SetWeight

func (rc *RouteCreate) SetWeight(i int) *RouteCreate

SetWeight sets the "weight" field.

func (*RouteCreate) SetWorkflow

func (rc *RouteCreate) SetWorkflow(w *Workflow) *RouteCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RouteCreate) SetWorkflowID

func (rc *RouteCreate) SetWorkflowID(id uuid.UUID) *RouteCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type RouteCreateBulk

type RouteCreateBulk struct {
	// contains filtered or unexported fields
}

RouteCreateBulk is the builder for creating many Route entities in bulk.

func (*RouteCreateBulk) Exec

func (rcb *RouteCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*RouteCreateBulk) ExecX

func (rcb *RouteCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RouteCreateBulk) Save

func (rcb *RouteCreateBulk) Save(ctx context.Context) ([]*Route, error)

Save creates the Route entities in the database.

func (*RouteCreateBulk) SaveX

func (rcb *RouteCreateBulk) SaveX(ctx context.Context) []*Route

SaveX is like Save, but panics if an error occurs.

type RouteDelete

type RouteDelete struct {
	// contains filtered or unexported fields
}

RouteDelete is the builder for deleting a Route entity.

func (*RouteDelete) Exec

func (rd *RouteDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*RouteDelete) ExecX

func (rd *RouteDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*RouteDelete) Where

func (rd *RouteDelete) Where(ps ...predicate.Route) *RouteDelete

Where appends a list predicates to the RouteDelete builder.

type RouteDeleteOne

type RouteDeleteOne struct {
	// contains filtered or unexported fields
}

RouteDeleteOne is the builder for deleting a single Route entity.

func (*RouteDeleteOne) Exec

func (rdo *RouteDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*RouteDeleteOne) ExecX

func (rdo *RouteDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type RouteEdges

type RouteEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Ref holds the value of the ref edge.
	Ref *Ref `json:"ref,omitempty"`
	// contains filtered or unexported fields
}

RouteEdges holds the relations/edges for other nodes in the graph.

func (RouteEdges) RefOrErr

func (e RouteEdges) RefOrErr() (*Ref, error)

RefOrErr returns the Ref value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (RouteEdges) WorkflowOrErr

func (e RouteEdges) 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 RouteGroupBy

type RouteGroupBy struct {
	// contains filtered or unexported fields
}

RouteGroupBy is the group-by builder for Route entities.

func (*RouteGroupBy) Aggregate

func (rgb *RouteGroupBy) Aggregate(fns ...AggregateFunc) *RouteGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*RouteGroupBy) Bool

func (s *RouteGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) BoolX

func (s *RouteGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RouteGroupBy) Bools

func (s *RouteGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) BoolsX

func (s *RouteGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RouteGroupBy) Float64

func (s *RouteGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) Float64X

func (s *RouteGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RouteGroupBy) Float64s

func (s *RouteGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) Float64sX

func (s *RouteGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RouteGroupBy) Int

func (s *RouteGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) IntX

func (s *RouteGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RouteGroupBy) Ints

func (s *RouteGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) IntsX

func (s *RouteGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RouteGroupBy) Scan

func (rgb *RouteGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*RouteGroupBy) ScanX

func (s *RouteGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RouteGroupBy) String

func (s *RouteGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) StringX

func (s *RouteGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RouteGroupBy) Strings

func (s *RouteGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RouteGroupBy) StringsX

func (s *RouteGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RouteMutation

type RouteMutation struct {
	// contains filtered or unexported fields
}

RouteMutation represents an operation that mutates the Route nodes in the graph.

func (*RouteMutation) AddField

func (m *RouteMutation) 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 (*RouteMutation) AddWeight

func (m *RouteMutation) AddWeight(i int)

AddWeight adds i to the "weight" field.

func (*RouteMutation) AddedEdges

func (m *RouteMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*RouteMutation) AddedField

func (m *RouteMutation) 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 (*RouteMutation) AddedFields

func (m *RouteMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*RouteMutation) AddedIDs

func (m *RouteMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*RouteMutation) AddedWeight

func (m *RouteMutation) AddedWeight() (r int, exists bool)

AddedWeight returns the value that was added to the "weight" field in this mutation.

func (*RouteMutation) ClearEdge

func (m *RouteMutation) 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 (*RouteMutation) ClearField

func (m *RouteMutation) 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 (*RouteMutation) ClearRef

func (m *RouteMutation) ClearRef()

ClearRef clears the "ref" edge to the Ref entity.

func (*RouteMutation) ClearWorkflow

func (m *RouteMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RouteMutation) ClearedEdges

func (m *RouteMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*RouteMutation) ClearedFields

func (m *RouteMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (RouteMutation) Client

func (m RouteMutation) 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 (*RouteMutation) EdgeCleared

func (m *RouteMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*RouteMutation) Field

func (m *RouteMutation) 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 (*RouteMutation) FieldCleared

func (m *RouteMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*RouteMutation) Fields

func (m *RouteMutation) 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 (*RouteMutation) ID

func (m *RouteMutation) 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 (*RouteMutation) IDs added in v0.6.1

func (m *RouteMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*RouteMutation) OldField

func (m *RouteMutation) 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 (*RouteMutation) OldWeight

func (m *RouteMutation) OldWeight(ctx context.Context) (v int, err error)

OldWeight returns the old "weight" field's value of the Route entity. If the Route 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 (*RouteMutation) Op

func (m *RouteMutation) Op() Op

Op returns the operation name.

func (*RouteMutation) RefCleared

func (m *RouteMutation) RefCleared() bool

RefCleared reports if the "ref" edge to the Ref entity was cleared.

func (*RouteMutation) RefID

func (m *RouteMutation) RefID() (id uuid.UUID, exists bool)

RefID returns the "ref" edge ID in the mutation.

func (*RouteMutation) RefIDs

func (m *RouteMutation) RefIDs() (ids []uuid.UUID)

RefIDs returns the "ref" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RefID instead. It exists only for internal usage by the builders.

func (*RouteMutation) RemovedEdges

func (m *RouteMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*RouteMutation) RemovedIDs

func (m *RouteMutation) 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 (*RouteMutation) ResetEdge

func (m *RouteMutation) 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 (*RouteMutation) ResetField

func (m *RouteMutation) 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 (*RouteMutation) ResetRef

func (m *RouteMutation) ResetRef()

ResetRef resets all changes to the "ref" edge.

func (*RouteMutation) ResetWeight

func (m *RouteMutation) ResetWeight()

ResetWeight resets all changes to the "weight" field.

func (*RouteMutation) ResetWorkflow

func (m *RouteMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*RouteMutation) SetField

func (m *RouteMutation) 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 (*RouteMutation) SetID

func (m *RouteMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Route entities.

func (*RouteMutation) SetRefID

func (m *RouteMutation) SetRefID(id uuid.UUID)

SetRefID sets the "ref" edge to the Ref entity by id.

func (*RouteMutation) SetWeight

func (m *RouteMutation) SetWeight(i int)

SetWeight sets the "weight" field.

func (*RouteMutation) SetWorkflowID

func (m *RouteMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (RouteMutation) Tx

func (m RouteMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*RouteMutation) Type

func (m *RouteMutation) Type() string

Type returns the node type of this mutation (Route).

func (*RouteMutation) Weight

func (m *RouteMutation) Weight() (r int, exists bool)

Weight returns the value of the "weight" field in the mutation.

func (*RouteMutation) Where

func (m *RouteMutation) Where(ps ...predicate.Route)

Where appends a list predicates to the RouteMutation builder.

func (*RouteMutation) WorkflowCleared

func (m *RouteMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*RouteMutation) WorkflowID

func (m *RouteMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*RouteMutation) WorkflowIDs

func (m *RouteMutation) 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 RouteQuery

type RouteQuery struct {
	// contains filtered or unexported fields
}

RouteQuery is the builder for querying Route entities.

func (*RouteQuery) All

func (rq *RouteQuery) All(ctx context.Context) ([]*Route, error)

All executes the query and returns a list of Routes.

func (*RouteQuery) AllX

func (rq *RouteQuery) AllX(ctx context.Context) []*Route

AllX is like All, but panics if an error occurs.

func (*RouteQuery) Clone

func (rq *RouteQuery) Clone() *RouteQuery

Clone returns a duplicate of the RouteQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*RouteQuery) CollectFields

func (r *RouteQuery) CollectFields(ctx context.Context, satisfies ...string) *RouteQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*RouteQuery) Count

func (rq *RouteQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RouteQuery) CountX

func (rq *RouteQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*RouteQuery) Exist

func (rq *RouteQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*RouteQuery) ExistX

func (rq *RouteQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*RouteQuery) First

func (rq *RouteQuery) First(ctx context.Context) (*Route, error)

First returns the first Route entity from the query. Returns a *NotFoundError when no Route was found.

func (*RouteQuery) FirstID

func (rq *RouteQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first Route ID from the query. Returns a *NotFoundError when no Route ID was found.

func (*RouteQuery) FirstIDX

func (rq *RouteQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*RouteQuery) FirstX

func (rq *RouteQuery) FirstX(ctx context.Context) *Route

FirstX is like First, but panics if an error occurs.

func (*RouteQuery) GroupBy

func (rq *RouteQuery) GroupBy(field string, fields ...string) *RouteGroupBy

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 {
	Weight int `json:"weight,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Route.Query().
	GroupBy(route.FieldWeight).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*RouteQuery) IDs

func (rq *RouteQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of Route IDs.

func (*RouteQuery) IDsX

func (rq *RouteQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*RouteQuery) Limit

func (rq *RouteQuery) Limit(limit int) *RouteQuery

Limit adds a limit step to the query.

func (*RouteQuery) Offset

func (rq *RouteQuery) Offset(offset int) *RouteQuery

Offset adds an offset step to the query.

func (*RouteQuery) Only

func (rq *RouteQuery) Only(ctx context.Context) (*Route, error)

Only returns a single Route entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Route entity is found. Returns a *NotFoundError when no Route entities are found.

func (*RouteQuery) OnlyID

func (rq *RouteQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Route ID in the query. Returns a *NotSingularError when more than one Route ID is found. Returns a *NotFoundError when no entities are found.

func (*RouteQuery) OnlyIDX

func (rq *RouteQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*RouteQuery) OnlyX

func (rq *RouteQuery) OnlyX(ctx context.Context) *Route

OnlyX is like Only, but panics if an error occurs.

func (*RouteQuery) Order

func (rq *RouteQuery) Order(o ...OrderFunc) *RouteQuery

Order adds an order step to the query.

func (*RouteQuery) QueryRef

func (rq *RouteQuery) QueryRef() *RefQuery

QueryRef chains the current query on the "ref" edge.

func (*RouteQuery) QueryWorkflow

func (rq *RouteQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*RouteQuery) Select

func (rq *RouteQuery) Select(fields ...string) *RouteSelect

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 {
	Weight int `json:"weight,omitempty"`
}

client.Route.Query().
	Select(route.FieldWeight).
	Scan(ctx, &v)

func (*RouteQuery) Unique

func (rq *RouteQuery) Unique(unique bool) *RouteQuery

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 (*RouteQuery) Where

func (rq *RouteQuery) Where(ps ...predicate.Route) *RouteQuery

Where adds a new predicate for the RouteQuery builder.

func (*RouteQuery) WithRef

func (rq *RouteQuery) WithRef(opts ...func(*RefQuery)) *RouteQuery

WithRef tells the query-builder to eager-load the nodes that are connected to the "ref" edge. The optional arguments are used to configure the query builder of the edge.

func (*RouteQuery) WithWorkflow

func (rq *RouteQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *RouteQuery

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 RouteSelect

type RouteSelect struct {
	*RouteQuery
	// contains filtered or unexported fields
}

RouteSelect is the builder for selecting fields of Route entities.

func (*RouteSelect) Bool

func (s *RouteSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RouteSelect) BoolX

func (s *RouteSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RouteSelect) Bools

func (s *RouteSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RouteSelect) BoolsX

func (s *RouteSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RouteSelect) Float64

func (s *RouteSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RouteSelect) Float64X

func (s *RouteSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RouteSelect) Float64s

func (s *RouteSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RouteSelect) Float64sX

func (s *RouteSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RouteSelect) Int

func (s *RouteSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RouteSelect) IntX

func (s *RouteSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RouteSelect) Ints

func (s *RouteSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RouteSelect) IntsX

func (s *RouteSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RouteSelect) Scan

func (rs *RouteSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*RouteSelect) ScanX

func (s *RouteSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RouteSelect) String

func (s *RouteSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RouteSelect) StringX

func (s *RouteSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RouteSelect) Strings

func (s *RouteSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RouteSelect) StringsX

func (s *RouteSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RouteUpdate

type RouteUpdate struct {
	// contains filtered or unexported fields
}

RouteUpdate is the builder for updating Route entities.

func (*RouteUpdate) ClearRef

func (ru *RouteUpdate) ClearRef() *RouteUpdate

ClearRef clears the "ref" edge to the Ref entity.

func (*RouteUpdate) ClearWorkflow

func (ru *RouteUpdate) ClearWorkflow() *RouteUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RouteUpdate) Exec

func (ru *RouteUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RouteUpdate) ExecX

func (ru *RouteUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RouteUpdate) Mutation

func (ru *RouteUpdate) Mutation() *RouteMutation

Mutation returns the RouteMutation object of the builder.

func (*RouteUpdate) Save

func (ru *RouteUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*RouteUpdate) SaveX

func (ru *RouteUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*RouteUpdate) SetRef

func (ru *RouteUpdate) SetRef(r *Ref) *RouteUpdate

SetRef sets the "ref" edge to the Ref entity.

func (*RouteUpdate) SetRefID

func (ru *RouteUpdate) SetRefID(id uuid.UUID) *RouteUpdate

SetRefID sets the "ref" edge to the Ref entity by ID.

func (*RouteUpdate) SetWorkflow

func (ru *RouteUpdate) SetWorkflow(w *Workflow) *RouteUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RouteUpdate) SetWorkflowID

func (ru *RouteUpdate) SetWorkflowID(id uuid.UUID) *RouteUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*RouteUpdate) Where

func (ru *RouteUpdate) Where(ps ...predicate.Route) *RouteUpdate

Where appends a list predicates to the RouteUpdate builder.

type RouteUpdateOne

type RouteUpdateOne struct {
	// contains filtered or unexported fields
}

RouteUpdateOne is the builder for updating a single Route entity.

func (*RouteUpdateOne) ClearRef

func (ruo *RouteUpdateOne) ClearRef() *RouteUpdateOne

ClearRef clears the "ref" edge to the Ref entity.

func (*RouteUpdateOne) ClearWorkflow

func (ruo *RouteUpdateOne) ClearWorkflow() *RouteUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RouteUpdateOne) Exec

func (ruo *RouteUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RouteUpdateOne) ExecX

func (ruo *RouteUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RouteUpdateOne) Mutation

func (ruo *RouteUpdateOne) Mutation() *RouteMutation

Mutation returns the RouteMutation object of the builder.

func (*RouteUpdateOne) Save

func (ruo *RouteUpdateOne) Save(ctx context.Context) (*Route, error)

Save executes the query and returns the updated Route entity.

func (*RouteUpdateOne) SaveX

func (ruo *RouteUpdateOne) SaveX(ctx context.Context) *Route

SaveX is like Save, but panics if an error occurs.

func (*RouteUpdateOne) Select

func (ruo *RouteUpdateOne) Select(field string, fields ...string) *RouteUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*RouteUpdateOne) SetRef

func (ruo *RouteUpdateOne) SetRef(r *Ref) *RouteUpdateOne

SetRef sets the "ref" edge to the Ref entity.

func (*RouteUpdateOne) SetRefID

func (ruo *RouteUpdateOne) SetRefID(id uuid.UUID) *RouteUpdateOne

SetRefID sets the "ref" edge to the Ref entity by ID.

func (*RouteUpdateOne) SetWorkflow

func (ruo *RouteUpdateOne) SetWorkflow(w *Workflow) *RouteUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RouteUpdateOne) SetWorkflowID

func (ruo *RouteUpdateOne) SetWorkflowID(id uuid.UUID) *RouteUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type Routes

type Routes []*Route

Routes is a parsable slice of Route.

type Tx

type Tx struct {

	// CloudEvents is the client for interacting with the CloudEvents builders.
	CloudEvents *CloudEventsClient
	// Events is the client for interacting with the Events builders.
	Events *EventsClient
	// EventsWait is the client for interacting with the EventsWait builders.
	EventsWait *EventsWaitClient
	// Inode is the client for interacting with the Inode builders.
	Inode *InodeClient
	// Instance is the client for interacting with the Instance builders.
	Instance *InstanceClient
	// InstanceRuntime is the client for interacting with the InstanceRuntime builders.
	InstanceRuntime *InstanceRuntimeClient
	// LogMsg is the client for interacting with the LogMsg builders.
	LogMsg *LogMsgClient
	// Mirror is the client for interacting with the Mirror builders.
	Mirror *MirrorClient
	// MirrorActivity is the client for interacting with the MirrorActivity builders.
	MirrorActivity *MirrorActivityClient
	// Namespace is the client for interacting with the Namespace builders.
	Namespace *NamespaceClient
	// Ref is the client for interacting with the Ref builders.
	Ref *RefClient
	// Revision is the client for interacting with the Revision builders.
	Revision *RevisionClient
	// Route is the client for interacting with the Route builders.
	Route *RouteClient
	// VarData is the client for interacting with the VarData builders.
	VarData *VarDataClient
	// VarRef is the client for interacting with the VarRef builders.
	VarRef *VarRefClient
	// Workflow is the client for interacting with the Workflow builders.
	Workflow *WorkflowClient
	// 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 or edge 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 VarData

type VarData struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Size holds the value of the "size" field.
	Size int `json:"size,omitempty"`
	// Hash holds the value of the "hash" field.
	Hash string `json:"hash,omitempty"`
	// Data holds the value of the "data" field.
	Data []byte `json:"data,omitempty"`
	// MimeType holds the value of the "mime_type" field.
	MimeType string `json:"mime_type,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the VarDataQuery when eager-loading is set.
	Edges VarDataEdges `json:"edges"`
	// contains filtered or unexported fields
}

VarData is the model entity for the VarData schema.

func (*VarData) QueryVarrefs

func (vd *VarData) QueryVarrefs() *VarRefQuery

QueryVarrefs queries the "varrefs" edge of the VarData entity.

func (*VarData) String

func (vd *VarData) String() string

String implements the fmt.Stringer.

func (*VarData) Unwrap

func (vd *VarData) Unwrap() *VarData

Unwrap unwraps the VarData 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 (*VarData) Update

func (vd *VarData) Update() *VarDataUpdateOne

Update returns a builder for updating this VarData. Note that you need to call VarData.Unwrap() before calling this method if this VarData was returned from a transaction, and the transaction was committed or rolled back.

func (*VarData) Varrefs

func (vd *VarData) Varrefs(ctx context.Context) ([]*VarRef, error)

type VarDataClient

type VarDataClient struct {
	// contains filtered or unexported fields
}

VarDataClient is a client for the VarData schema.

func NewVarDataClient

func NewVarDataClient(c config) *VarDataClient

NewVarDataClient returns a client for the VarData from the given config.

func (*VarDataClient) Create

func (c *VarDataClient) Create() *VarDataCreate

Create returns a builder for creating a VarData entity.

func (*VarDataClient) CreateBulk

func (c *VarDataClient) CreateBulk(builders ...*VarDataCreate) *VarDataCreateBulk

CreateBulk returns a builder for creating a bulk of VarData entities.

func (*VarDataClient) Delete

func (c *VarDataClient) Delete() *VarDataDelete

Delete returns a delete builder for VarData.

func (*VarDataClient) DeleteOne

func (c *VarDataClient) DeleteOne(vd *VarData) *VarDataDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*VarDataClient) DeleteOneID

func (c *VarDataClient) DeleteOneID(id uuid.UUID) *VarDataDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*VarDataClient) Get

func (c *VarDataClient) Get(ctx context.Context, id uuid.UUID) (*VarData, error)

Get returns a VarData entity by its id.

func (*VarDataClient) GetX

func (c *VarDataClient) GetX(ctx context.Context, id uuid.UUID) *VarData

GetX is like Get, but panics if an error occurs.

func (*VarDataClient) Hooks

func (c *VarDataClient) Hooks() []Hook

Hooks returns the client hooks.

func (*VarDataClient) Query

func (c *VarDataClient) Query() *VarDataQuery

Query returns a query builder for VarData.

func (*VarDataClient) QueryVarrefs

func (c *VarDataClient) QueryVarrefs(vd *VarData) *VarRefQuery

QueryVarrefs queries the varrefs edge of a VarData.

func (*VarDataClient) Update

func (c *VarDataClient) Update() *VarDataUpdate

Update returns an update builder for VarData.

func (*VarDataClient) UpdateOne

func (c *VarDataClient) UpdateOne(vd *VarData) *VarDataUpdateOne

UpdateOne returns an update builder for the given entity.

func (*VarDataClient) UpdateOneID

func (c *VarDataClient) UpdateOneID(id uuid.UUID) *VarDataUpdateOne

UpdateOneID returns an update builder for the given id.

func (*VarDataClient) Use

func (c *VarDataClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `vardata.Hooks(f(g(h())))`.

type VarDataCreate

type VarDataCreate struct {
	// contains filtered or unexported fields
}

VarDataCreate is the builder for creating a VarData entity.

func (*VarDataCreate) AddVarrefIDs

func (vdc *VarDataCreate) AddVarrefIDs(ids ...uuid.UUID) *VarDataCreate

AddVarrefIDs adds the "varrefs" edge to the VarRef entity by IDs.

func (*VarDataCreate) AddVarrefs

func (vdc *VarDataCreate) AddVarrefs(v ...*VarRef) *VarDataCreate

AddVarrefs adds the "varrefs" edges to the VarRef entity.

func (*VarDataCreate) Exec

func (vdc *VarDataCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*VarDataCreate) ExecX

func (vdc *VarDataCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarDataCreate) Mutation

func (vdc *VarDataCreate) Mutation() *VarDataMutation

Mutation returns the VarDataMutation object of the builder.

func (*VarDataCreate) Save

func (vdc *VarDataCreate) Save(ctx context.Context) (*VarData, error)

Save creates the VarData in the database.

func (*VarDataCreate) SaveX

func (vdc *VarDataCreate) SaveX(ctx context.Context) *VarData

SaveX calls Save and panics if Save returns an error.

func (*VarDataCreate) SetCreatedAt

func (vdc *VarDataCreate) SetCreatedAt(t time.Time) *VarDataCreate

SetCreatedAt sets the "created_at" field.

func (*VarDataCreate) SetData

func (vdc *VarDataCreate) SetData(b []byte) *VarDataCreate

SetData sets the "data" field.

func (*VarDataCreate) SetHash

func (vdc *VarDataCreate) SetHash(s string) *VarDataCreate

SetHash sets the "hash" field.

func (*VarDataCreate) SetID

func (vdc *VarDataCreate) SetID(u uuid.UUID) *VarDataCreate

SetID sets the "id" field.

func (*VarDataCreate) SetMimeType added in v0.5.9

func (vdc *VarDataCreate) SetMimeType(s string) *VarDataCreate

SetMimeType sets the "mime_type" field.

func (*VarDataCreate) SetNillableCreatedAt

func (vdc *VarDataCreate) SetNillableCreatedAt(t *time.Time) *VarDataCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*VarDataCreate) SetNillableID added in v0.6.1

func (vdc *VarDataCreate) SetNillableID(u *uuid.UUID) *VarDataCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*VarDataCreate) SetNillableMimeType added in v0.5.9

func (vdc *VarDataCreate) SetNillableMimeType(s *string) *VarDataCreate

SetNillableMimeType sets the "mime_type" field if the given value is not nil.

func (*VarDataCreate) SetNillableUpdatedAt

func (vdc *VarDataCreate) SetNillableUpdatedAt(t *time.Time) *VarDataCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*VarDataCreate) SetSize

func (vdc *VarDataCreate) SetSize(i int) *VarDataCreate

SetSize sets the "size" field.

func (*VarDataCreate) SetUpdatedAt

func (vdc *VarDataCreate) SetUpdatedAt(t time.Time) *VarDataCreate

SetUpdatedAt sets the "updated_at" field.

type VarDataCreateBulk

type VarDataCreateBulk struct {
	// contains filtered or unexported fields
}

VarDataCreateBulk is the builder for creating many VarData entities in bulk.

func (*VarDataCreateBulk) Exec

func (vdcb *VarDataCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*VarDataCreateBulk) ExecX

func (vdcb *VarDataCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarDataCreateBulk) Save

func (vdcb *VarDataCreateBulk) Save(ctx context.Context) ([]*VarData, error)

Save creates the VarData entities in the database.

func (*VarDataCreateBulk) SaveX

func (vdcb *VarDataCreateBulk) SaveX(ctx context.Context) []*VarData

SaveX is like Save, but panics if an error occurs.

type VarDataDelete

type VarDataDelete struct {
	// contains filtered or unexported fields
}

VarDataDelete is the builder for deleting a VarData entity.

func (*VarDataDelete) Exec

func (vdd *VarDataDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*VarDataDelete) ExecX

func (vdd *VarDataDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*VarDataDelete) Where

func (vdd *VarDataDelete) Where(ps ...predicate.VarData) *VarDataDelete

Where appends a list predicates to the VarDataDelete builder.

type VarDataDeleteOne

type VarDataDeleteOne struct {
	// contains filtered or unexported fields
}

VarDataDeleteOne is the builder for deleting a single VarData entity.

func (*VarDataDeleteOne) Exec

func (vddo *VarDataDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*VarDataDeleteOne) ExecX

func (vddo *VarDataDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type VarDataEdges

type VarDataEdges struct {
	// Varrefs holds the value of the varrefs edge.
	Varrefs []*VarRef `json:"varrefs,omitempty"`
	// contains filtered or unexported fields
}

VarDataEdges holds the relations/edges for other nodes in the graph.

func (VarDataEdges) VarrefsOrErr

func (e VarDataEdges) VarrefsOrErr() ([]*VarRef, error)

VarrefsOrErr returns the Varrefs value or an error if the edge was not loaded in eager-loading.

type VarDataGroupBy

type VarDataGroupBy struct {
	// contains filtered or unexported fields
}

VarDataGroupBy is the group-by builder for VarData entities.

func (*VarDataGroupBy) Aggregate

func (vdgb *VarDataGroupBy) Aggregate(fns ...AggregateFunc) *VarDataGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*VarDataGroupBy) Bool

func (s *VarDataGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) BoolX

func (s *VarDataGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VarDataGroupBy) Bools

func (s *VarDataGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) BoolsX

func (s *VarDataGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VarDataGroupBy) Float64

func (s *VarDataGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) Float64X

func (s *VarDataGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VarDataGroupBy) Float64s

func (s *VarDataGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) Float64sX

func (s *VarDataGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VarDataGroupBy) Int

func (s *VarDataGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) IntX

func (s *VarDataGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VarDataGroupBy) Ints

func (s *VarDataGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) IntsX

func (s *VarDataGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VarDataGroupBy) Scan

func (vdgb *VarDataGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*VarDataGroupBy) ScanX

func (s *VarDataGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VarDataGroupBy) String

func (s *VarDataGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) StringX

func (s *VarDataGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VarDataGroupBy) Strings

func (s *VarDataGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VarDataGroupBy) StringsX

func (s *VarDataGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VarDataMutation

type VarDataMutation struct {
	// contains filtered or unexported fields
}

VarDataMutation represents an operation that mutates the VarData nodes in the graph.

func (*VarDataMutation) AddField

func (m *VarDataMutation) 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 (*VarDataMutation) AddSize

func (m *VarDataMutation) AddSize(i int)

AddSize adds i to the "size" field.

func (*VarDataMutation) AddVarrefIDs

func (m *VarDataMutation) AddVarrefIDs(ids ...uuid.UUID)

AddVarrefIDs adds the "varrefs" edge to the VarRef entity by ids.

func (*VarDataMutation) AddedEdges

func (m *VarDataMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*VarDataMutation) AddedField

func (m *VarDataMutation) 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 (*VarDataMutation) AddedFields

func (m *VarDataMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*VarDataMutation) AddedIDs

func (m *VarDataMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*VarDataMutation) AddedSize

func (m *VarDataMutation) AddedSize() (r int, exists bool)

AddedSize returns the value that was added to the "size" field in this mutation.

func (*VarDataMutation) ClearEdge

func (m *VarDataMutation) 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 (*VarDataMutation) ClearField

func (m *VarDataMutation) 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 (*VarDataMutation) ClearVarrefs

func (m *VarDataMutation) ClearVarrefs()

ClearVarrefs clears the "varrefs" edge to the VarRef entity.

func (*VarDataMutation) ClearedEdges

func (m *VarDataMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*VarDataMutation) ClearedFields

func (m *VarDataMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (VarDataMutation) Client

func (m VarDataMutation) 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 (*VarDataMutation) CreatedAt

func (m *VarDataMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*VarDataMutation) Data

func (m *VarDataMutation) Data() (r []byte, exists bool)

Data returns the value of the "data" field in the mutation.

func (*VarDataMutation) EdgeCleared

func (m *VarDataMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*VarDataMutation) Field

func (m *VarDataMutation) 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 (*VarDataMutation) FieldCleared

func (m *VarDataMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*VarDataMutation) Fields

func (m *VarDataMutation) 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 (*VarDataMutation) Hash

func (m *VarDataMutation) Hash() (r string, exists bool)

Hash returns the value of the "hash" field in the mutation.

func (*VarDataMutation) ID

func (m *VarDataMutation) 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 (*VarDataMutation) IDs added in v0.6.1

func (m *VarDataMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*VarDataMutation) MimeType added in v0.5.9

func (m *VarDataMutation) MimeType() (r string, exists bool)

MimeType returns the value of the "mime_type" field in the mutation.

func (*VarDataMutation) OldCreatedAt

func (m *VarDataMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the VarData entity. If the VarData 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 (*VarDataMutation) OldData

func (m *VarDataMutation) OldData(ctx context.Context) (v []byte, err error)

OldData returns the old "data" field's value of the VarData entity. If the VarData 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 (*VarDataMutation) OldField

func (m *VarDataMutation) 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 (*VarDataMutation) OldHash

func (m *VarDataMutation) OldHash(ctx context.Context) (v string, err error)

OldHash returns the old "hash" field's value of the VarData entity. If the VarData 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 (*VarDataMutation) OldMimeType added in v0.5.9

func (m *VarDataMutation) OldMimeType(ctx context.Context) (v string, err error)

OldMimeType returns the old "mime_type" field's value of the VarData entity. If the VarData 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 (*VarDataMutation) OldSize

func (m *VarDataMutation) OldSize(ctx context.Context) (v int, err error)

OldSize returns the old "size" field's value of the VarData entity. If the VarData 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 (*VarDataMutation) OldUpdatedAt

func (m *VarDataMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the VarData entity. If the VarData 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 (*VarDataMutation) Op

func (m *VarDataMutation) Op() Op

Op returns the operation name.

func (*VarDataMutation) RemoveVarrefIDs

func (m *VarDataMutation) RemoveVarrefIDs(ids ...uuid.UUID)

RemoveVarrefIDs removes the "varrefs" edge to the VarRef entity by IDs.

func (*VarDataMutation) RemovedEdges

func (m *VarDataMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*VarDataMutation) RemovedIDs

func (m *VarDataMutation) 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 (*VarDataMutation) RemovedVarrefsIDs

func (m *VarDataMutation) RemovedVarrefsIDs() (ids []uuid.UUID)

RemovedVarrefs returns the removed IDs of the "varrefs" edge to the VarRef entity.

func (*VarDataMutation) ResetCreatedAt

func (m *VarDataMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*VarDataMutation) ResetData

func (m *VarDataMutation) ResetData()

ResetData resets all changes to the "data" field.

func (*VarDataMutation) ResetEdge

func (m *VarDataMutation) 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 (*VarDataMutation) ResetField

func (m *VarDataMutation) 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 (*VarDataMutation) ResetHash

func (m *VarDataMutation) ResetHash()

ResetHash resets all changes to the "hash" field.

func (*VarDataMutation) ResetMimeType added in v0.5.9

func (m *VarDataMutation) ResetMimeType()

ResetMimeType resets all changes to the "mime_type" field.

func (*VarDataMutation) ResetSize

func (m *VarDataMutation) ResetSize()

ResetSize resets all changes to the "size" field.

func (*VarDataMutation) ResetUpdatedAt

func (m *VarDataMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*VarDataMutation) ResetVarrefs

func (m *VarDataMutation) ResetVarrefs()

ResetVarrefs resets all changes to the "varrefs" edge.

func (*VarDataMutation) SetCreatedAt

func (m *VarDataMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*VarDataMutation) SetData

func (m *VarDataMutation) SetData(b []byte)

SetData sets the "data" field.

func (*VarDataMutation) SetField

func (m *VarDataMutation) 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 (*VarDataMutation) SetHash

func (m *VarDataMutation) SetHash(s string)

SetHash sets the "hash" field.

func (*VarDataMutation) SetID

func (m *VarDataMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of VarData entities.

func (*VarDataMutation) SetMimeType added in v0.5.9

func (m *VarDataMutation) SetMimeType(s string)

SetMimeType sets the "mime_type" field.

func (*VarDataMutation) SetSize

func (m *VarDataMutation) SetSize(i int)

SetSize sets the "size" field.

func (*VarDataMutation) SetUpdatedAt

func (m *VarDataMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*VarDataMutation) Size

func (m *VarDataMutation) Size() (r int, exists bool)

Size returns the value of the "size" field in the mutation.

func (VarDataMutation) Tx

func (m VarDataMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*VarDataMutation) Type

func (m *VarDataMutation) Type() string

Type returns the node type of this mutation (VarData).

func (*VarDataMutation) UpdatedAt

func (m *VarDataMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*VarDataMutation) VarrefsCleared

func (m *VarDataMutation) VarrefsCleared() bool

VarrefsCleared reports if the "varrefs" edge to the VarRef entity was cleared.

func (*VarDataMutation) VarrefsIDs

func (m *VarDataMutation) VarrefsIDs() (ids []uuid.UUID)

VarrefsIDs returns the "varrefs" edge IDs in the mutation.

func (*VarDataMutation) Where

func (m *VarDataMutation) Where(ps ...predicate.VarData)

Where appends a list predicates to the VarDataMutation builder.

type VarDataQuery

type VarDataQuery struct {
	// contains filtered or unexported fields
}

VarDataQuery is the builder for querying VarData entities.

func (*VarDataQuery) All

func (vdq *VarDataQuery) All(ctx context.Context) ([]*VarData, error)

All executes the query and returns a list of VarDataSlice.

func (*VarDataQuery) AllX

func (vdq *VarDataQuery) AllX(ctx context.Context) []*VarData

AllX is like All, but panics if an error occurs.

func (*VarDataQuery) Clone

func (vdq *VarDataQuery) Clone() *VarDataQuery

Clone returns a duplicate of the VarDataQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*VarDataQuery) CollectFields

func (vd *VarDataQuery) CollectFields(ctx context.Context, satisfies ...string) *VarDataQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*VarDataQuery) Count

func (vdq *VarDataQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*VarDataQuery) CountX

func (vdq *VarDataQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*VarDataQuery) Exist

func (vdq *VarDataQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*VarDataQuery) ExistX

func (vdq *VarDataQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*VarDataQuery) First

func (vdq *VarDataQuery) First(ctx context.Context) (*VarData, error)

First returns the first VarData entity from the query. Returns a *NotFoundError when no VarData was found.

func (*VarDataQuery) FirstID

func (vdq *VarDataQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first VarData ID from the query. Returns a *NotFoundError when no VarData ID was found.

func (*VarDataQuery) FirstIDX

func (vdq *VarDataQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*VarDataQuery) FirstX

func (vdq *VarDataQuery) FirstX(ctx context.Context) *VarData

FirstX is like First, but panics if an error occurs.

func (*VarDataQuery) GroupBy

func (vdq *VarDataQuery) GroupBy(field string, fields ...string) *VarDataGroupBy

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.VarData.Query().
	GroupBy(vardata.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*VarDataQuery) IDs

func (vdq *VarDataQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of VarData IDs.

func (*VarDataQuery) IDsX

func (vdq *VarDataQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*VarDataQuery) Limit

func (vdq *VarDataQuery) Limit(limit int) *VarDataQuery

Limit adds a limit step to the query.

func (*VarDataQuery) Offset

func (vdq *VarDataQuery) Offset(offset int) *VarDataQuery

Offset adds an offset step to the query.

func (*VarDataQuery) Only

func (vdq *VarDataQuery) Only(ctx context.Context) (*VarData, error)

Only returns a single VarData entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one VarData entity is found. Returns a *NotFoundError when no VarData entities are found.

func (*VarDataQuery) OnlyID

func (vdq *VarDataQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only VarData ID in the query. Returns a *NotSingularError when more than one VarData ID is found. Returns a *NotFoundError when no entities are found.

func (*VarDataQuery) OnlyIDX

func (vdq *VarDataQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*VarDataQuery) OnlyX

func (vdq *VarDataQuery) OnlyX(ctx context.Context) *VarData

OnlyX is like Only, but panics if an error occurs.

func (*VarDataQuery) Order

func (vdq *VarDataQuery) Order(o ...OrderFunc) *VarDataQuery

Order adds an order step to the query.

func (*VarDataQuery) QueryVarrefs

func (vdq *VarDataQuery) QueryVarrefs() *VarRefQuery

QueryVarrefs chains the current query on the "varrefs" edge.

func (*VarDataQuery) Select

func (vdq *VarDataQuery) Select(fields ...string) *VarDataSelect

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 {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.VarData.Query().
	Select(vardata.FieldCreatedAt).
	Scan(ctx, &v)

func (*VarDataQuery) Unique

func (vdq *VarDataQuery) Unique(unique bool) *VarDataQuery

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 (*VarDataQuery) Where

func (vdq *VarDataQuery) Where(ps ...predicate.VarData) *VarDataQuery

Where adds a new predicate for the VarDataQuery builder.

func (*VarDataQuery) WithVarrefs

func (vdq *VarDataQuery) WithVarrefs(opts ...func(*VarRefQuery)) *VarDataQuery

WithVarrefs tells the query-builder to eager-load the nodes that are connected to the "varrefs" edge. The optional arguments are used to configure the query builder of the edge.

type VarDataSelect

type VarDataSelect struct {
	*VarDataQuery
	// contains filtered or unexported fields
}

VarDataSelect is the builder for selecting fields of VarData entities.

func (*VarDataSelect) Bool

func (s *VarDataSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) BoolX

func (s *VarDataSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VarDataSelect) Bools

func (s *VarDataSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) BoolsX

func (s *VarDataSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VarDataSelect) Float64

func (s *VarDataSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) Float64X

func (s *VarDataSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VarDataSelect) Float64s

func (s *VarDataSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) Float64sX

func (s *VarDataSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VarDataSelect) Int

func (s *VarDataSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) IntX

func (s *VarDataSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VarDataSelect) Ints

func (s *VarDataSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) IntsX

func (s *VarDataSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VarDataSelect) Scan

func (vds *VarDataSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*VarDataSelect) ScanX

func (s *VarDataSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VarDataSelect) String

func (s *VarDataSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) StringX

func (s *VarDataSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VarDataSelect) Strings

func (s *VarDataSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VarDataSelect) StringsX

func (s *VarDataSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VarDataSlice

type VarDataSlice []*VarData

VarDataSlice is a parsable slice of VarData.

type VarDataUpdate

type VarDataUpdate struct {
	// contains filtered or unexported fields
}

VarDataUpdate is the builder for updating VarData entities.

func (*VarDataUpdate) AddSize

func (vdu *VarDataUpdate) AddSize(i int) *VarDataUpdate

AddSize adds i to the "size" field.

func (*VarDataUpdate) AddVarrefIDs

func (vdu *VarDataUpdate) AddVarrefIDs(ids ...uuid.UUID) *VarDataUpdate

AddVarrefIDs adds the "varrefs" edge to the VarRef entity by IDs.

func (*VarDataUpdate) AddVarrefs

func (vdu *VarDataUpdate) AddVarrefs(v ...*VarRef) *VarDataUpdate

AddVarrefs adds the "varrefs" edges to the VarRef entity.

func (*VarDataUpdate) ClearVarrefs

func (vdu *VarDataUpdate) ClearVarrefs() *VarDataUpdate

ClearVarrefs clears all "varrefs" edges to the VarRef entity.

func (*VarDataUpdate) Exec

func (vdu *VarDataUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*VarDataUpdate) ExecX

func (vdu *VarDataUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarDataUpdate) Mutation

func (vdu *VarDataUpdate) Mutation() *VarDataMutation

Mutation returns the VarDataMutation object of the builder.

func (*VarDataUpdate) RemoveVarrefIDs

func (vdu *VarDataUpdate) RemoveVarrefIDs(ids ...uuid.UUID) *VarDataUpdate

RemoveVarrefIDs removes the "varrefs" edge to VarRef entities by IDs.

func (*VarDataUpdate) RemoveVarrefs

func (vdu *VarDataUpdate) RemoveVarrefs(v ...*VarRef) *VarDataUpdate

RemoveVarrefs removes "varrefs" edges to VarRef entities.

func (*VarDataUpdate) Save

func (vdu *VarDataUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*VarDataUpdate) SaveX

func (vdu *VarDataUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*VarDataUpdate) SetData

func (vdu *VarDataUpdate) SetData(b []byte) *VarDataUpdate

SetData sets the "data" field.

func (*VarDataUpdate) SetHash

func (vdu *VarDataUpdate) SetHash(s string) *VarDataUpdate

SetHash sets the "hash" field.

func (*VarDataUpdate) SetMimeType added in v0.5.9

func (vdu *VarDataUpdate) SetMimeType(s string) *VarDataUpdate

SetMimeType sets the "mime_type" field.

func (*VarDataUpdate) SetNillableMimeType added in v0.5.9

func (vdu *VarDataUpdate) SetNillableMimeType(s *string) *VarDataUpdate

SetNillableMimeType sets the "mime_type" field if the given value is not nil.

func (*VarDataUpdate) SetSize

func (vdu *VarDataUpdate) SetSize(i int) *VarDataUpdate

SetSize sets the "size" field.

func (*VarDataUpdate) SetUpdatedAt

func (vdu *VarDataUpdate) SetUpdatedAt(t time.Time) *VarDataUpdate

SetUpdatedAt sets the "updated_at" field.

func (*VarDataUpdate) Where

func (vdu *VarDataUpdate) Where(ps ...predicate.VarData) *VarDataUpdate

Where appends a list predicates to the VarDataUpdate builder.

type VarDataUpdateOne

type VarDataUpdateOne struct {
	// contains filtered or unexported fields
}

VarDataUpdateOne is the builder for updating a single VarData entity.

func (*VarDataUpdateOne) AddSize

func (vduo *VarDataUpdateOne) AddSize(i int) *VarDataUpdateOne

AddSize adds i to the "size" field.

func (*VarDataUpdateOne) AddVarrefIDs

func (vduo *VarDataUpdateOne) AddVarrefIDs(ids ...uuid.UUID) *VarDataUpdateOne

AddVarrefIDs adds the "varrefs" edge to the VarRef entity by IDs.

func (*VarDataUpdateOne) AddVarrefs

func (vduo *VarDataUpdateOne) AddVarrefs(v ...*VarRef) *VarDataUpdateOne

AddVarrefs adds the "varrefs" edges to the VarRef entity.

func (*VarDataUpdateOne) ClearVarrefs

func (vduo *VarDataUpdateOne) ClearVarrefs() *VarDataUpdateOne

ClearVarrefs clears all "varrefs" edges to the VarRef entity.

func (*VarDataUpdateOne) Exec

func (vduo *VarDataUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*VarDataUpdateOne) ExecX

func (vduo *VarDataUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarDataUpdateOne) Mutation

func (vduo *VarDataUpdateOne) Mutation() *VarDataMutation

Mutation returns the VarDataMutation object of the builder.

func (*VarDataUpdateOne) RemoveVarrefIDs

func (vduo *VarDataUpdateOne) RemoveVarrefIDs(ids ...uuid.UUID) *VarDataUpdateOne

RemoveVarrefIDs removes the "varrefs" edge to VarRef entities by IDs.

func (*VarDataUpdateOne) RemoveVarrefs

func (vduo *VarDataUpdateOne) RemoveVarrefs(v ...*VarRef) *VarDataUpdateOne

RemoveVarrefs removes "varrefs" edges to VarRef entities.

func (*VarDataUpdateOne) Save

func (vduo *VarDataUpdateOne) Save(ctx context.Context) (*VarData, error)

Save executes the query and returns the updated VarData entity.

func (*VarDataUpdateOne) SaveX

func (vduo *VarDataUpdateOne) SaveX(ctx context.Context) *VarData

SaveX is like Save, but panics if an error occurs.

func (*VarDataUpdateOne) Select

func (vduo *VarDataUpdateOne) Select(field string, fields ...string) *VarDataUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*VarDataUpdateOne) SetData

func (vduo *VarDataUpdateOne) SetData(b []byte) *VarDataUpdateOne

SetData sets the "data" field.

func (*VarDataUpdateOne) SetHash

func (vduo *VarDataUpdateOne) SetHash(s string) *VarDataUpdateOne

SetHash sets the "hash" field.

func (*VarDataUpdateOne) SetMimeType added in v0.5.9

func (vduo *VarDataUpdateOne) SetMimeType(s string) *VarDataUpdateOne

SetMimeType sets the "mime_type" field.

func (*VarDataUpdateOne) SetNillableMimeType added in v0.5.9

func (vduo *VarDataUpdateOne) SetNillableMimeType(s *string) *VarDataUpdateOne

SetNillableMimeType sets the "mime_type" field if the given value is not nil.

func (*VarDataUpdateOne) SetSize

func (vduo *VarDataUpdateOne) SetSize(i int) *VarDataUpdateOne

SetSize sets the "size" field.

func (*VarDataUpdateOne) SetUpdatedAt

func (vduo *VarDataUpdateOne) SetUpdatedAt(t time.Time) *VarDataUpdateOne

SetUpdatedAt sets the "updated_at" field.

type VarRef

type VarRef struct {

	// ID of the ent.
	ID uuid.UUID `json:"-"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Behaviour holds the value of the "behaviour" field.
	Behaviour string `json:"behaviour,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the VarRefQuery when eager-loading is set.
	Edges VarRefEdges `json:"edges"`
	// contains filtered or unexported fields
}

VarRef is the model entity for the VarRef schema.

func (*VarRef) Instance

func (vr *VarRef) Instance(ctx context.Context) (*Instance, error)

func (*VarRef) Namespace

func (vr *VarRef) Namespace(ctx context.Context) (*Namespace, error)

func (*VarRef) QueryInstance

func (vr *VarRef) QueryInstance() *InstanceQuery

QueryInstance queries the "instance" edge of the VarRef entity.

func (*VarRef) QueryNamespace

func (vr *VarRef) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the VarRef entity.

func (*VarRef) QueryVardata

func (vr *VarRef) QueryVardata() *VarDataQuery

QueryVardata queries the "vardata" edge of the VarRef entity.

func (*VarRef) QueryWorkflow

func (vr *VarRef) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the VarRef entity.

func (*VarRef) String

func (vr *VarRef) String() string

String implements the fmt.Stringer.

func (*VarRef) Unwrap

func (vr *VarRef) Unwrap() *VarRef

Unwrap unwraps the VarRef 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 (*VarRef) Update

func (vr *VarRef) Update() *VarRefUpdateOne

Update returns a builder for updating this VarRef. Note that you need to call VarRef.Unwrap() before calling this method if this VarRef was returned from a transaction, and the transaction was committed or rolled back.

func (*VarRef) Vardata

func (vr *VarRef) Vardata(ctx context.Context) (*VarData, error)

func (*VarRef) Workflow

func (vr *VarRef) Workflow(ctx context.Context) (*Workflow, error)

type VarRefClient

type VarRefClient struct {
	// contains filtered or unexported fields
}

VarRefClient is a client for the VarRef schema.

func NewVarRefClient

func NewVarRefClient(c config) *VarRefClient

NewVarRefClient returns a client for the VarRef from the given config.

func (*VarRefClient) Create

func (c *VarRefClient) Create() *VarRefCreate

Create returns a builder for creating a VarRef entity.

func (*VarRefClient) CreateBulk

func (c *VarRefClient) CreateBulk(builders ...*VarRefCreate) *VarRefCreateBulk

CreateBulk returns a builder for creating a bulk of VarRef entities.

func (*VarRefClient) Delete

func (c *VarRefClient) Delete() *VarRefDelete

Delete returns a delete builder for VarRef.

func (*VarRefClient) DeleteOne

func (c *VarRefClient) DeleteOne(vr *VarRef) *VarRefDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*VarRefClient) DeleteOneID

func (c *VarRefClient) DeleteOneID(id uuid.UUID) *VarRefDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*VarRefClient) Get

func (c *VarRefClient) Get(ctx context.Context, id uuid.UUID) (*VarRef, error)

Get returns a VarRef entity by its id.

func (*VarRefClient) GetX

func (c *VarRefClient) GetX(ctx context.Context, id uuid.UUID) *VarRef

GetX is like Get, but panics if an error occurs.

func (*VarRefClient) Hooks

func (c *VarRefClient) Hooks() []Hook

Hooks returns the client hooks.

func (*VarRefClient) Query

func (c *VarRefClient) Query() *VarRefQuery

Query returns a query builder for VarRef.

func (*VarRefClient) QueryInstance

func (c *VarRefClient) QueryInstance(vr *VarRef) *InstanceQuery

QueryInstance queries the instance edge of a VarRef.

func (*VarRefClient) QueryNamespace

func (c *VarRefClient) QueryNamespace(vr *VarRef) *NamespaceQuery

QueryNamespace queries the namespace edge of a VarRef.

func (*VarRefClient) QueryVardata

func (c *VarRefClient) QueryVardata(vr *VarRef) *VarDataQuery

QueryVardata queries the vardata edge of a VarRef.

func (*VarRefClient) QueryWorkflow

func (c *VarRefClient) QueryWorkflow(vr *VarRef) *WorkflowQuery

QueryWorkflow queries the workflow edge of a VarRef.

func (*VarRefClient) Update

func (c *VarRefClient) Update() *VarRefUpdate

Update returns an update builder for VarRef.

func (*VarRefClient) UpdateOne

func (c *VarRefClient) UpdateOne(vr *VarRef) *VarRefUpdateOne

UpdateOne returns an update builder for the given entity.

func (*VarRefClient) UpdateOneID

func (c *VarRefClient) UpdateOneID(id uuid.UUID) *VarRefUpdateOne

UpdateOneID returns an update builder for the given id.

func (*VarRefClient) Use

func (c *VarRefClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `varref.Hooks(f(g(h())))`.

type VarRefCreate

type VarRefCreate struct {
	// contains filtered or unexported fields
}

VarRefCreate is the builder for creating a VarRef entity.

func (*VarRefCreate) Exec

func (vrc *VarRefCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*VarRefCreate) ExecX

func (vrc *VarRefCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarRefCreate) Mutation

func (vrc *VarRefCreate) Mutation() *VarRefMutation

Mutation returns the VarRefMutation object of the builder.

func (*VarRefCreate) Save

func (vrc *VarRefCreate) Save(ctx context.Context) (*VarRef, error)

Save creates the VarRef in the database.

func (*VarRefCreate) SaveX

func (vrc *VarRefCreate) SaveX(ctx context.Context) *VarRef

SaveX calls Save and panics if Save returns an error.

func (*VarRefCreate) SetBehaviour added in v0.6.0

func (vrc *VarRefCreate) SetBehaviour(s string) *VarRefCreate

SetBehaviour sets the "behaviour" field.

func (*VarRefCreate) SetID

func (vrc *VarRefCreate) SetID(u uuid.UUID) *VarRefCreate

SetID sets the "id" field.

func (*VarRefCreate) SetInstance

func (vrc *VarRefCreate) SetInstance(i *Instance) *VarRefCreate

SetInstance sets the "instance" edge to the Instance entity.

func (*VarRefCreate) SetInstanceID

func (vrc *VarRefCreate) SetInstanceID(id uuid.UUID) *VarRefCreate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*VarRefCreate) SetName

func (vrc *VarRefCreate) SetName(s string) *VarRefCreate

SetName sets the "name" field.

func (*VarRefCreate) SetNamespace

func (vrc *VarRefCreate) SetNamespace(n *Namespace) *VarRefCreate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*VarRefCreate) SetNamespaceID

func (vrc *VarRefCreate) SetNamespaceID(id uuid.UUID) *VarRefCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*VarRefCreate) SetNillableBehaviour added in v0.6.0

func (vrc *VarRefCreate) SetNillableBehaviour(s *string) *VarRefCreate

SetNillableBehaviour sets the "behaviour" field if the given value is not nil.

func (*VarRefCreate) SetNillableID added in v0.6.1

func (vrc *VarRefCreate) SetNillableID(u *uuid.UUID) *VarRefCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*VarRefCreate) SetNillableInstanceID

func (vrc *VarRefCreate) SetNillableInstanceID(id *uuid.UUID) *VarRefCreate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*VarRefCreate) SetNillableName

func (vrc *VarRefCreate) SetNillableName(s *string) *VarRefCreate

SetNillableName sets the "name" field if the given value is not nil.

func (*VarRefCreate) SetNillableNamespaceID

func (vrc *VarRefCreate) SetNillableNamespaceID(id *uuid.UUID) *VarRefCreate

SetNillableNamespaceID sets the "namespace" edge to the Namespace entity by ID if the given value is not nil.

func (*VarRefCreate) SetNillableWorkflowID

func (vrc *VarRefCreate) SetNillableWorkflowID(id *uuid.UUID) *VarRefCreate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*VarRefCreate) SetVardata

func (vrc *VarRefCreate) SetVardata(v *VarData) *VarRefCreate

SetVardata sets the "vardata" edge to the VarData entity.

func (*VarRefCreate) SetVardataID

func (vrc *VarRefCreate) SetVardataID(id uuid.UUID) *VarRefCreate

SetVardataID sets the "vardata" edge to the VarData entity by ID.

func (*VarRefCreate) SetWorkflow

func (vrc *VarRefCreate) SetWorkflow(w *Workflow) *VarRefCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*VarRefCreate) SetWorkflowID

func (vrc *VarRefCreate) SetWorkflowID(id uuid.UUID) *VarRefCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type VarRefCreateBulk

type VarRefCreateBulk struct {
	// contains filtered or unexported fields
}

VarRefCreateBulk is the builder for creating many VarRef entities in bulk.

func (*VarRefCreateBulk) Exec

func (vrcb *VarRefCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*VarRefCreateBulk) ExecX

func (vrcb *VarRefCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarRefCreateBulk) Save

func (vrcb *VarRefCreateBulk) Save(ctx context.Context) ([]*VarRef, error)

Save creates the VarRef entities in the database.

func (*VarRefCreateBulk) SaveX

func (vrcb *VarRefCreateBulk) SaveX(ctx context.Context) []*VarRef

SaveX is like Save, but panics if an error occurs.

type VarRefDelete

type VarRefDelete struct {
	// contains filtered or unexported fields
}

VarRefDelete is the builder for deleting a VarRef entity.

func (*VarRefDelete) Exec

func (vrd *VarRefDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*VarRefDelete) ExecX

func (vrd *VarRefDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*VarRefDelete) Where

func (vrd *VarRefDelete) Where(ps ...predicate.VarRef) *VarRefDelete

Where appends a list predicates to the VarRefDelete builder.

type VarRefDeleteOne

type VarRefDeleteOne struct {
	// contains filtered or unexported fields
}

VarRefDeleteOne is the builder for deleting a single VarRef entity.

func (*VarRefDeleteOne) Exec

func (vrdo *VarRefDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*VarRefDeleteOne) ExecX

func (vrdo *VarRefDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type VarRefEdges

type VarRefEdges struct {
	// Vardata holds the value of the vardata edge.
	Vardata *VarData `json:"vardata,omitempty"`
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Instance holds the value of the instance edge.
	Instance *Instance `json:"instance,omitempty"`
	// contains filtered or unexported fields
}

VarRefEdges holds the relations/edges for other nodes in the graph.

func (VarRefEdges) InstanceOrErr

func (e VarRefEdges) InstanceOrErr() (*Instance, error)

InstanceOrErr returns the Instance value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (VarRefEdges) NamespaceOrErr

func (e VarRefEdges) 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 (VarRefEdges) VardataOrErr

func (e VarRefEdges) VardataOrErr() (*VarData, error)

VardataOrErr returns the Vardata value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (VarRefEdges) WorkflowOrErr

func (e VarRefEdges) 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 VarRefGroupBy

type VarRefGroupBy struct {
	// contains filtered or unexported fields
}

VarRefGroupBy is the group-by builder for VarRef entities.

func (*VarRefGroupBy) Aggregate

func (vrgb *VarRefGroupBy) Aggregate(fns ...AggregateFunc) *VarRefGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*VarRefGroupBy) Bool

func (s *VarRefGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) BoolX

func (s *VarRefGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VarRefGroupBy) Bools

func (s *VarRefGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) BoolsX

func (s *VarRefGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VarRefGroupBy) Float64

func (s *VarRefGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) Float64X

func (s *VarRefGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VarRefGroupBy) Float64s

func (s *VarRefGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) Float64sX

func (s *VarRefGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VarRefGroupBy) Int

func (s *VarRefGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) IntX

func (s *VarRefGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VarRefGroupBy) Ints

func (s *VarRefGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) IntsX

func (s *VarRefGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VarRefGroupBy) Scan

func (vrgb *VarRefGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*VarRefGroupBy) ScanX

func (s *VarRefGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VarRefGroupBy) String

func (s *VarRefGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) StringX

func (s *VarRefGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VarRefGroupBy) Strings

func (s *VarRefGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VarRefGroupBy) StringsX

func (s *VarRefGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VarRefMutation

type VarRefMutation struct {
	// contains filtered or unexported fields
}

VarRefMutation represents an operation that mutates the VarRef nodes in the graph.

func (*VarRefMutation) AddField

func (m *VarRefMutation) 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 (*VarRefMutation) AddedEdges

func (m *VarRefMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*VarRefMutation) AddedField

func (m *VarRefMutation) 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 (*VarRefMutation) AddedFields

func (m *VarRefMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*VarRefMutation) AddedIDs

func (m *VarRefMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*VarRefMutation) Behaviour added in v0.6.0

func (m *VarRefMutation) Behaviour() (r string, exists bool)

Behaviour returns the value of the "behaviour" field in the mutation.

func (*VarRefMutation) BehaviourCleared added in v0.6.0

func (m *VarRefMutation) BehaviourCleared() bool

BehaviourCleared returns if the "behaviour" field was cleared in this mutation.

func (*VarRefMutation) ClearBehaviour added in v0.6.0

func (m *VarRefMutation) ClearBehaviour()

ClearBehaviour clears the value of the "behaviour" field.

func (*VarRefMutation) ClearEdge

func (m *VarRefMutation) 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 (*VarRefMutation) ClearField

func (m *VarRefMutation) 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 (*VarRefMutation) ClearInstance

func (m *VarRefMutation) ClearInstance()

ClearInstance clears the "instance" edge to the Instance entity.

func (*VarRefMutation) ClearName

func (m *VarRefMutation) ClearName()

ClearName clears the value of the "name" field.

func (*VarRefMutation) ClearNamespace

func (m *VarRefMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*VarRefMutation) ClearVardata

func (m *VarRefMutation) ClearVardata()

ClearVardata clears the "vardata" edge to the VarData entity.

func (*VarRefMutation) ClearWorkflow

func (m *VarRefMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*VarRefMutation) ClearedEdges

func (m *VarRefMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*VarRefMutation) ClearedFields

func (m *VarRefMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (VarRefMutation) Client

func (m VarRefMutation) 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 (*VarRefMutation) EdgeCleared

func (m *VarRefMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*VarRefMutation) Field

func (m *VarRefMutation) 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 (*VarRefMutation) FieldCleared

func (m *VarRefMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*VarRefMutation) Fields

func (m *VarRefMutation) 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 (*VarRefMutation) ID

func (m *VarRefMutation) 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 (*VarRefMutation) IDs added in v0.6.1

func (m *VarRefMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*VarRefMutation) InstanceCleared

func (m *VarRefMutation) InstanceCleared() bool

InstanceCleared reports if the "instance" edge to the Instance entity was cleared.

func (*VarRefMutation) InstanceID

func (m *VarRefMutation) InstanceID() (id uuid.UUID, exists bool)

InstanceID returns the "instance" edge ID in the mutation.

func (*VarRefMutation) InstanceIDs

func (m *VarRefMutation) InstanceIDs() (ids []uuid.UUID)

InstanceIDs returns the "instance" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use InstanceID instead. It exists only for internal usage by the builders.

func (*VarRefMutation) Name

func (m *VarRefMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*VarRefMutation) NameCleared

func (m *VarRefMutation) NameCleared() bool

NameCleared returns if the "name" field was cleared in this mutation.

func (*VarRefMutation) NamespaceCleared

func (m *VarRefMutation) NamespaceCleared() bool

NamespaceCleared reports if the "namespace" edge to the Namespace entity was cleared.

func (*VarRefMutation) NamespaceID

func (m *VarRefMutation) NamespaceID() (id uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*VarRefMutation) NamespaceIDs

func (m *VarRefMutation) NamespaceIDs() (ids []uuid.UUID)

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 (*VarRefMutation) OldBehaviour added in v0.6.0

func (m *VarRefMutation) OldBehaviour(ctx context.Context) (v string, err error)

OldBehaviour returns the old "behaviour" field's value of the VarRef entity. If the VarRef 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 (*VarRefMutation) OldField

func (m *VarRefMutation) 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 (*VarRefMutation) OldName

func (m *VarRefMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the VarRef entity. If the VarRef 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 (*VarRefMutation) Op

func (m *VarRefMutation) Op() Op

Op returns the operation name.

func (*VarRefMutation) RemovedEdges

func (m *VarRefMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*VarRefMutation) RemovedIDs

func (m *VarRefMutation) 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 (*VarRefMutation) ResetBehaviour added in v0.6.0

func (m *VarRefMutation) ResetBehaviour()

ResetBehaviour resets all changes to the "behaviour" field.

func (*VarRefMutation) ResetEdge

func (m *VarRefMutation) 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 (*VarRefMutation) ResetField

func (m *VarRefMutation) 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 (*VarRefMutation) ResetInstance

func (m *VarRefMutation) ResetInstance()

ResetInstance resets all changes to the "instance" edge.

func (*VarRefMutation) ResetName

func (m *VarRefMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*VarRefMutation) ResetNamespace

func (m *VarRefMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*VarRefMutation) ResetVardata

func (m *VarRefMutation) ResetVardata()

ResetVardata resets all changes to the "vardata" edge.

func (*VarRefMutation) ResetWorkflow

func (m *VarRefMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*VarRefMutation) SetBehaviour added in v0.6.0

func (m *VarRefMutation) SetBehaviour(s string)

SetBehaviour sets the "behaviour" field.

func (*VarRefMutation) SetField

func (m *VarRefMutation) 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 (*VarRefMutation) SetID

func (m *VarRefMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of VarRef entities.

func (*VarRefMutation) SetInstanceID

func (m *VarRefMutation) SetInstanceID(id uuid.UUID)

SetInstanceID sets the "instance" edge to the Instance entity by id.

func (*VarRefMutation) SetName

func (m *VarRefMutation) SetName(s string)

SetName sets the "name" field.

func (*VarRefMutation) SetNamespaceID

func (m *VarRefMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*VarRefMutation) SetVardataID

func (m *VarRefMutation) SetVardataID(id uuid.UUID)

SetVardataID sets the "vardata" edge to the VarData entity by id.

func (*VarRefMutation) SetWorkflowID

func (m *VarRefMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (VarRefMutation) Tx

func (m VarRefMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*VarRefMutation) Type

func (m *VarRefMutation) Type() string

Type returns the node type of this mutation (VarRef).

func (*VarRefMutation) VardataCleared

func (m *VarRefMutation) VardataCleared() bool

VardataCleared reports if the "vardata" edge to the VarData entity was cleared.

func (*VarRefMutation) VardataID

func (m *VarRefMutation) VardataID() (id uuid.UUID, exists bool)

VardataID returns the "vardata" edge ID in the mutation.

func (*VarRefMutation) VardataIDs

func (m *VarRefMutation) VardataIDs() (ids []uuid.UUID)

VardataIDs returns the "vardata" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use VardataID instead. It exists only for internal usage by the builders.

func (*VarRefMutation) Where

func (m *VarRefMutation) Where(ps ...predicate.VarRef)

Where appends a list predicates to the VarRefMutation builder.

func (*VarRefMutation) WorkflowCleared

func (m *VarRefMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*VarRefMutation) WorkflowID

func (m *VarRefMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*VarRefMutation) WorkflowIDs

func (m *VarRefMutation) 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 VarRefQuery

type VarRefQuery struct {
	// contains filtered or unexported fields
}

VarRefQuery is the builder for querying VarRef entities.

func (*VarRefQuery) All

func (vrq *VarRefQuery) All(ctx context.Context) ([]*VarRef, error)

All executes the query and returns a list of VarRefs.

func (*VarRefQuery) AllX

func (vrq *VarRefQuery) AllX(ctx context.Context) []*VarRef

AllX is like All, but panics if an error occurs.

func (*VarRefQuery) Clone

func (vrq *VarRefQuery) Clone() *VarRefQuery

Clone returns a duplicate of the VarRefQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*VarRefQuery) CollectFields

func (vr *VarRefQuery) CollectFields(ctx context.Context, satisfies ...string) *VarRefQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*VarRefQuery) Count

func (vrq *VarRefQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*VarRefQuery) CountX

func (vrq *VarRefQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*VarRefQuery) Exist

func (vrq *VarRefQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*VarRefQuery) ExistX

func (vrq *VarRefQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*VarRefQuery) First

func (vrq *VarRefQuery) First(ctx context.Context) (*VarRef, error)

First returns the first VarRef entity from the query. Returns a *NotFoundError when no VarRef was found.

func (*VarRefQuery) FirstID

func (vrq *VarRefQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first VarRef ID from the query. Returns a *NotFoundError when no VarRef ID was found.

func (*VarRefQuery) FirstIDX

func (vrq *VarRefQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*VarRefQuery) FirstX

func (vrq *VarRefQuery) FirstX(ctx context.Context) *VarRef

FirstX is like First, but panics if an error occurs.

func (*VarRefQuery) GroupBy

func (vrq *VarRefQuery) GroupBy(field string, fields ...string) *VarRefGroupBy

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.VarRef.Query().
	GroupBy(varref.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*VarRefQuery) IDs

func (vrq *VarRefQuery) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs executes the query and returns a list of VarRef IDs.

func (*VarRefQuery) IDsX

func (vrq *VarRefQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*VarRefQuery) Limit

func (vrq *VarRefQuery) Limit(limit int) *VarRefQuery

Limit adds a limit step to the query.

func (*VarRefQuery) Offset

func (vrq *VarRefQuery) Offset(offset int) *VarRefQuery

Offset adds an offset step to the query.

func (*VarRefQuery) Only

func (vrq *VarRefQuery) Only(ctx context.Context) (*VarRef, error)

Only returns a single VarRef entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one VarRef entity is found. Returns a *NotFoundError when no VarRef entities are found.

func (*VarRefQuery) OnlyID

func (vrq *VarRefQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only VarRef ID in the query. Returns a *NotSingularError when more than one VarRef ID is found. Returns a *NotFoundError when no entities are found.

func (*VarRefQuery) OnlyIDX

func (vrq *VarRefQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*VarRefQuery) OnlyX

func (vrq *VarRefQuery) OnlyX(ctx context.Context) *VarRef

OnlyX is like Only, but panics if an error occurs.

func (*VarRefQuery) Order

func (vrq *VarRefQuery) Order(o ...OrderFunc) *VarRefQuery

Order adds an order step to the query.

func (*VarRefQuery) QueryInstance

func (vrq *VarRefQuery) QueryInstance() *InstanceQuery

QueryInstance chains the current query on the "instance" edge.

func (*VarRefQuery) QueryNamespace

func (vrq *VarRefQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*VarRefQuery) QueryVardata

func (vrq *VarRefQuery) QueryVardata() *VarDataQuery

QueryVardata chains the current query on the "vardata" edge.

func (*VarRefQuery) QueryWorkflow

func (vrq *VarRefQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*VarRefQuery) Select

func (vrq *VarRefQuery) Select(fields ...string) *VarRefSelect

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.VarRef.Query().
	Select(varref.FieldName).
	Scan(ctx, &v)

func (*VarRefQuery) Unique

func (vrq *VarRefQuery) Unique(unique bool) *VarRefQuery

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 (*VarRefQuery) Where

func (vrq *VarRefQuery) Where(ps ...predicate.VarRef) *VarRefQuery

Where adds a new predicate for the VarRefQuery builder.

func (*VarRefQuery) WithInstance

func (vrq *VarRefQuery) WithInstance(opts ...func(*InstanceQuery)) *VarRefQuery

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 (*VarRefQuery) WithNamespace

func (vrq *VarRefQuery) WithNamespace(opts ...func(*NamespaceQuery)) *VarRefQuery

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 (*VarRefQuery) WithVardata

func (vrq *VarRefQuery) WithVardata(opts ...func(*VarDataQuery)) *VarRefQuery

WithVardata tells the query-builder to eager-load the nodes that are connected to the "vardata" edge. The optional arguments are used to configure the query builder of the edge.

func (*VarRefQuery) WithWorkflow

func (vrq *VarRefQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *VarRefQuery

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 VarRefSelect

type VarRefSelect struct {
	*VarRefQuery
	// contains filtered or unexported fields
}

VarRefSelect is the builder for selecting fields of VarRef entities.

func (*VarRefSelect) Bool

func (s *VarRefSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) BoolX

func (s *VarRefSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VarRefSelect) Bools

func (s *VarRefSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) BoolsX

func (s *VarRefSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VarRefSelect) Float64

func (s *VarRefSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) Float64X

func (s *VarRefSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VarRefSelect) Float64s

func (s *VarRefSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) Float64sX

func (s *VarRefSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VarRefSelect) Int

func (s *VarRefSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) IntX

func (s *VarRefSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VarRefSelect) Ints

func (s *VarRefSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) IntsX

func (s *VarRefSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VarRefSelect) Scan

func (vrs *VarRefSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*VarRefSelect) ScanX

func (s *VarRefSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VarRefSelect) String

func (s *VarRefSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) StringX

func (s *VarRefSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VarRefSelect) Strings

func (s *VarRefSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VarRefSelect) StringsX

func (s *VarRefSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VarRefUpdate

type VarRefUpdate struct {
	// contains filtered or unexported fields
}

VarRefUpdate is the builder for updating VarRef entities.

func (*VarRefUpdate) ClearBehaviour added in v0.6.0

func (vru *VarRefUpdate) ClearBehaviour() *VarRefUpdate

ClearBehaviour clears the value of the "behaviour" field.

func (*VarRefUpdate) ClearInstance

func (vru *VarRefUpdate) ClearInstance() *VarRefUpdate

ClearInstance clears the "instance" edge to the Instance entity.

func (*VarRefUpdate) ClearName

func (vru *VarRefUpdate) ClearName() *VarRefUpdate

ClearName clears the value of the "name" field.

func (*VarRefUpdate) ClearNamespace

func (vru *VarRefUpdate) ClearNamespace() *VarRefUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*VarRefUpdate) ClearVardata

func (vru *VarRefUpdate) ClearVardata() *VarRefUpdate

ClearVardata clears the "vardata" edge to the VarData entity.

func (*VarRefUpdate) ClearWorkflow

func (vru *VarRefUpdate) ClearWorkflow() *VarRefUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*VarRefUpdate) Exec

func (vru *VarRefUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*VarRefUpdate) ExecX

func (vru *VarRefUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarRefUpdate) Mutation

func (vru *VarRefUpdate) Mutation() *VarRefMutation

Mutation returns the VarRefMutation object of the builder.

func (*VarRefUpdate) Save

func (vru *VarRefUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*VarRefUpdate) SaveX

func (vru *VarRefUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*VarRefUpdate) SetBehaviour added in v0.6.0

func (vru *VarRefUpdate) SetBehaviour(s string) *VarRefUpdate

SetBehaviour sets the "behaviour" field.

func (*VarRefUpdate) SetInstance

func (vru *VarRefUpdate) SetInstance(i *Instance) *VarRefUpdate

SetInstance sets the "instance" edge to the Instance entity.

func (*VarRefUpdate) SetInstanceID

func (vru *VarRefUpdate) SetInstanceID(id uuid.UUID) *VarRefUpdate

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*VarRefUpdate) SetName

func (vru *VarRefUpdate) SetName(s string) *VarRefUpdate

SetName sets the "name" field.

func (*VarRefUpdate) SetNamespace

func (vru *VarRefUpdate) SetNamespace(n *Namespace) *VarRefUpdate

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*VarRefUpdate) SetNamespaceID

func (vru *VarRefUpdate) SetNamespaceID(id uuid.UUID) *VarRefUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*VarRefUpdate) SetNillableBehaviour added in v0.6.0

func (vru *VarRefUpdate) SetNillableBehaviour(s *string) *VarRefUpdate

SetNillableBehaviour sets the "behaviour" field if the given value is not nil.

func (*VarRefUpdate) SetNillableInstanceID

func (vru *VarRefUpdate) SetNillableInstanceID(id *uuid.UUID) *VarRefUpdate

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*VarRefUpdate) SetNillableName

func (vru *VarRefUpdate) SetNillableName(s *string) *VarRefUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*VarRefUpdate) SetNillableNamespaceID

func (vru *VarRefUpdate) SetNillableNamespaceID(id *uuid.UUID) *VarRefUpdate

SetNillableNamespaceID sets the "namespace" edge to the Namespace entity by ID if the given value is not nil.

func (*VarRefUpdate) SetNillableWorkflowID

func (vru *VarRefUpdate) SetNillableWorkflowID(id *uuid.UUID) *VarRefUpdate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*VarRefUpdate) SetVardata

func (vru *VarRefUpdate) SetVardata(v *VarData) *VarRefUpdate

SetVardata sets the "vardata" edge to the VarData entity.

func (*VarRefUpdate) SetVardataID

func (vru *VarRefUpdate) SetVardataID(id uuid.UUID) *VarRefUpdate

SetVardataID sets the "vardata" edge to the VarData entity by ID.

func (*VarRefUpdate) SetWorkflow

func (vru *VarRefUpdate) SetWorkflow(w *Workflow) *VarRefUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*VarRefUpdate) SetWorkflowID

func (vru *VarRefUpdate) SetWorkflowID(id uuid.UUID) *VarRefUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*VarRefUpdate) Where

func (vru *VarRefUpdate) Where(ps ...predicate.VarRef) *VarRefUpdate

Where appends a list predicates to the VarRefUpdate builder.

type VarRefUpdateOne

type VarRefUpdateOne struct {
	// contains filtered or unexported fields
}

VarRefUpdateOne is the builder for updating a single VarRef entity.

func (*VarRefUpdateOne) ClearBehaviour added in v0.6.0

func (vruo *VarRefUpdateOne) ClearBehaviour() *VarRefUpdateOne

ClearBehaviour clears the value of the "behaviour" field.

func (*VarRefUpdateOne) ClearInstance

func (vruo *VarRefUpdateOne) ClearInstance() *VarRefUpdateOne

ClearInstance clears the "instance" edge to the Instance entity.

func (*VarRefUpdateOne) ClearName

func (vruo *VarRefUpdateOne) ClearName() *VarRefUpdateOne

ClearName clears the value of the "name" field.

func (*VarRefUpdateOne) ClearNamespace

func (vruo *VarRefUpdateOne) ClearNamespace() *VarRefUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*VarRefUpdateOne) ClearVardata

func (vruo *VarRefUpdateOne) ClearVardata() *VarRefUpdateOne

ClearVardata clears the "vardata" edge to the VarData entity.

func (*VarRefUpdateOne) ClearWorkflow

func (vruo *VarRefUpdateOne) ClearWorkflow() *VarRefUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*VarRefUpdateOne) Exec

func (vruo *VarRefUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*VarRefUpdateOne) ExecX

func (vruo *VarRefUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VarRefUpdateOne) Mutation

func (vruo *VarRefUpdateOne) Mutation() *VarRefMutation

Mutation returns the VarRefMutation object of the builder.

func (*VarRefUpdateOne) Save

func (vruo *VarRefUpdateOne) Save(ctx context.Context) (*VarRef, error)

Save executes the query and returns the updated VarRef entity.

func (*VarRefUpdateOne) SaveX

func (vruo *VarRefUpdateOne) SaveX(ctx context.Context) *VarRef

SaveX is like Save, but panics if an error occurs.

func (*VarRefUpdateOne) Select

func (vruo *VarRefUpdateOne) Select(field string, fields ...string) *VarRefUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*VarRefUpdateOne) SetBehaviour added in v0.6.0

func (vruo *VarRefUpdateOne) SetBehaviour(s string) *VarRefUpdateOne

SetBehaviour sets the "behaviour" field.

func (*VarRefUpdateOne) SetInstance

func (vruo *VarRefUpdateOne) SetInstance(i *Instance) *VarRefUpdateOne

SetInstance sets the "instance" edge to the Instance entity.

func (*VarRefUpdateOne) SetInstanceID

func (vruo *VarRefUpdateOne) SetInstanceID(id uuid.UUID) *VarRefUpdateOne

SetInstanceID sets the "instance" edge to the Instance entity by ID.

func (*VarRefUpdateOne) SetName

func (vruo *VarRefUpdateOne) SetName(s string) *VarRefUpdateOne

SetName sets the "name" field.

func (*VarRefUpdateOne) SetNamespace

func (vruo *VarRefUpdateOne) SetNamespace(n *Namespace) *VarRefUpdateOne

SetNamespace sets the "namespace" edge to the Namespace entity.

func (*VarRefUpdateOne) SetNamespaceID

func (vruo *VarRefUpdateOne) SetNamespaceID(id uuid.UUID) *VarRefUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*VarRefUpdateOne) SetNillableBehaviour added in v0.6.0

func (vruo *VarRefUpdateOne) SetNillableBehaviour(s *string) *VarRefUpdateOne

SetNillableBehaviour sets the "behaviour" field if the given value is not nil.

func (*VarRefUpdateOne) SetNillableInstanceID

func (vruo *VarRefUpdateOne) SetNillableInstanceID(id *uuid.UUID) *VarRefUpdateOne

SetNillableInstanceID sets the "instance" edge to the Instance entity by ID if the given value is not nil.

func (*VarRefUpdateOne) SetNillableName

func (vruo *VarRefUpdateOne) SetNillableName(s *string) *VarRefUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*VarRefUpdateOne) SetNillableNamespaceID

func (vruo *VarRefUpdateOne) SetNillableNamespaceID(id *uuid.UUID) *VarRefUpdateOne

SetNillableNamespaceID sets the "namespace" edge to the Namespace entity by ID if the given value is not nil.

func (*VarRefUpdateOne) SetNillableWorkflowID

func (vruo *VarRefUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *VarRefUpdateOne

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*VarRefUpdateOne) SetVardata

func (vruo *VarRefUpdateOne) SetVardata(v *VarData) *VarRefUpdateOne

SetVardata sets the "vardata" edge to the VarData entity.

func (*VarRefUpdateOne) SetVardataID

func (vruo *VarRefUpdateOne) SetVardataID(id uuid.UUID) *VarRefUpdateOne

SetVardataID sets the "vardata" edge to the VarData entity by ID.

func (*VarRefUpdateOne) SetWorkflow

func (vruo *VarRefUpdateOne) SetWorkflow(w *Workflow) *VarRefUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*VarRefUpdateOne) SetWorkflowID

func (vruo *VarRefUpdateOne) SetWorkflowID(id uuid.UUID) *VarRefUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type VarRefs

type VarRefs []*VarRef

VarRefs is a parsable slice of VarRef.

type Workflow

type Workflow struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Live holds the value of the "live" field.
	Live bool `json:"live,omitempty"`
	// LogToEvents holds the value of the "logToEvents" field.
	LogToEvents string `json:"logToEvents,omitempty"`
	// ReadOnly holds the value of the "readOnly" field.
	ReadOnly bool `json:"readOnly,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,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) Inode

func (w *Workflow) Inode(ctx context.Context) (*Inode, error)

func (*Workflow) Instances

func (w *Workflow) Instances(ctx context.Context) ([]*Instance, error)

func (*Workflow) Logs

func (w *Workflow) Logs(ctx context.Context) ([]*LogMsg, error)

func (*Workflow) Namespace

func (w *Workflow) Namespace(ctx context.Context) (*Namespace, error)

func (*Workflow) QueryInode

func (w *Workflow) QueryInode() *InodeQuery

QueryInode queries the "inode" edge of the Workflow entity.

func (*Workflow) QueryInstances

func (w *Workflow) QueryInstances() *InstanceQuery

QueryInstances queries the "instances" edge of the Workflow entity.

func (*Workflow) QueryLogs

func (w *Workflow) QueryLogs() *LogMsgQuery

QueryLogs queries the "logs" edge of the Workflow entity.

func (*Workflow) QueryNamespace

func (w *Workflow) QueryNamespace() *NamespaceQuery

QueryNamespace queries the "namespace" edge of the Workflow entity.

func (*Workflow) QueryRefs

func (w *Workflow) QueryRefs() *RefQuery

QueryRefs queries the "refs" edge of the Workflow entity.

func (*Workflow) QueryRevisions

func (w *Workflow) QueryRevisions() *RevisionQuery

QueryRevisions queries the "revisions" edge of the Workflow entity.

func (*Workflow) QueryRoutes

func (w *Workflow) QueryRoutes() *RouteQuery

QueryRoutes queries the "routes" edge of the Workflow entity.

func (*Workflow) QueryVars

func (w *Workflow) QueryVars() *VarRefQuery

QueryVars queries the "vars" edge of the Workflow entity.

func (*Workflow) QueryWfevents

func (w *Workflow) QueryWfevents() *EventsQuery

QueryWfevents queries the "wfevents" edge of the Workflow entity.

func (*Workflow) Refs

func (w *Workflow) Refs(ctx context.Context) ([]*Ref, error)

func (*Workflow) Revisions

func (w *Workflow) Revisions(ctx context.Context) ([]*Revision, error)

func (*Workflow) Routes

func (w *Workflow) Routes(ctx context.Context) ([]*Route, error)

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.

func (*Workflow) Vars

func (w *Workflow) Vars(ctx context.Context) ([]*VarRef, error)

func (*Workflow) Wfevents

func (w *Workflow) Wfevents(ctx context.Context) ([]*Events, error)

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 builder for creating a Workflow entity.

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 builder for deleting the given entity.

func (*WorkflowClient) DeleteOneID

func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne

DeleteOne returns a builder for deleting the given entity by its 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) QueryInode

func (c *WorkflowClient) QueryInode(w *Workflow) *InodeQuery

QueryInode queries the inode edge of a Workflow.

func (*WorkflowClient) QueryInstances

func (c *WorkflowClient) QueryInstances(w *Workflow) *InstanceQuery

QueryInstances queries the instances edge of a Workflow.

func (*WorkflowClient) QueryLogs

func (c *WorkflowClient) QueryLogs(w *Workflow) *LogMsgQuery

QueryLogs queries the logs edge of a Workflow.

func (*WorkflowClient) QueryNamespace

func (c *WorkflowClient) QueryNamespace(w *Workflow) *NamespaceQuery

QueryNamespace queries the namespace edge of a Workflow.

func (*WorkflowClient) QueryRefs

func (c *WorkflowClient) QueryRefs(w *Workflow) *RefQuery

QueryRefs queries the refs edge of a Workflow.

func (*WorkflowClient) QueryRevisions

func (c *WorkflowClient) QueryRevisions(w *Workflow) *RevisionQuery

QueryRevisions queries the revisions edge of a Workflow.

func (*WorkflowClient) QueryRoutes

func (c *WorkflowClient) QueryRoutes(w *Workflow) *RouteQuery

QueryRoutes queries the routes edge of a Workflow.

func (*WorkflowClient) QueryVars

func (c *WorkflowClient) QueryVars(w *Workflow) *VarRefQuery

QueryVars queries the vars edge of a Workflow.

func (*WorkflowClient) QueryWfevents

func (c *WorkflowClient) QueryWfevents(w *Workflow) *EventsQuery

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 ...uuid.UUID) *WorkflowCreate

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*WorkflowCreate) AddInstances

func (wc *WorkflowCreate) AddInstances(i ...*Instance) *WorkflowCreate

AddInstances adds the "instances" edges to the Instance entity.

func (*WorkflowCreate) AddLogIDs

func (wc *WorkflowCreate) AddLogIDs(ids ...uuid.UUID) *WorkflowCreate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*WorkflowCreate) AddLogs

func (wc *WorkflowCreate) AddLogs(l ...*LogMsg) *WorkflowCreate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*WorkflowCreate) AddRefIDs

func (wc *WorkflowCreate) AddRefIDs(ids ...uuid.UUID) *WorkflowCreate

AddRefIDs adds the "refs" edge to the Ref entity by IDs.

func (*WorkflowCreate) AddRefs

func (wc *WorkflowCreate) AddRefs(r ...*Ref) *WorkflowCreate

AddRefs adds the "refs" edges to the Ref entity.

func (*WorkflowCreate) AddRevisionIDs

func (wc *WorkflowCreate) AddRevisionIDs(ids ...uuid.UUID) *WorkflowCreate

AddRevisionIDs adds the "revisions" edge to the Revision entity by IDs.

func (*WorkflowCreate) AddRevisions

func (wc *WorkflowCreate) AddRevisions(r ...*Revision) *WorkflowCreate

AddRevisions adds the "revisions" edges to the Revision entity.

func (*WorkflowCreate) AddRouteIDs

func (wc *WorkflowCreate) AddRouteIDs(ids ...uuid.UUID) *WorkflowCreate

AddRouteIDs adds the "routes" edge to the Route entity by IDs.

func (*WorkflowCreate) AddRoutes

func (wc *WorkflowCreate) AddRoutes(r ...*Route) *WorkflowCreate

AddRoutes adds the "routes" edges to the Route entity.

func (*WorkflowCreate) AddVarIDs

func (wc *WorkflowCreate) AddVarIDs(ids ...uuid.UUID) *WorkflowCreate

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*WorkflowCreate) AddVars

func (wc *WorkflowCreate) AddVars(v ...*VarRef) *WorkflowCreate

AddVars adds the "vars" edges to the VarRef entity.

func (*WorkflowCreate) AddWfeventIDs

func (wc *WorkflowCreate) AddWfeventIDs(ids ...uuid.UUID) *WorkflowCreate

AddWfeventIDs adds the "wfevents" edge to the Events entity by IDs.

func (*WorkflowCreate) AddWfevents

func (wc *WorkflowCreate) AddWfevents(e ...*Events) *WorkflowCreate

AddWfevents adds the "wfevents" edges to the Events 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) SetID

func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate

SetID sets the "id" field.

func (*WorkflowCreate) SetInode

func (wc *WorkflowCreate) SetInode(i *Inode) *WorkflowCreate

SetInode sets the "inode" edge to the Inode entity.

func (*WorkflowCreate) SetInodeID

func (wc *WorkflowCreate) SetInodeID(id uuid.UUID) *WorkflowCreate

SetInodeID sets the "inode" edge to the Inode entity by ID.

func (*WorkflowCreate) SetLive

func (wc *WorkflowCreate) SetLive(b bool) *WorkflowCreate

SetLive sets the "live" field.

func (*WorkflowCreate) SetLogToEvents

func (wc *WorkflowCreate) SetLogToEvents(s string) *WorkflowCreate

SetLogToEvents sets the "logToEvents" 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 uuid.UUID) *WorkflowCreate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*WorkflowCreate) SetNillableID added in v0.6.1

func (wc *WorkflowCreate) SetNillableID(u *uuid.UUID) *WorkflowCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*WorkflowCreate) SetNillableInodeID

func (wc *WorkflowCreate) SetNillableInodeID(id *uuid.UUID) *WorkflowCreate

SetNillableInodeID sets the "inode" edge to the Inode entity by ID if the given value is not nil.

func (*WorkflowCreate) SetNillableLive

func (wc *WorkflowCreate) SetNillableLive(b *bool) *WorkflowCreate

SetNillableLive sets the "live" 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) SetNillableReadOnly added in v0.6.6

func (wc *WorkflowCreate) SetNillableReadOnly(b *bool) *WorkflowCreate

SetNillableReadOnly sets the "readOnly" field if the given value is not nil.

func (*WorkflowCreate) SetNillableUpdatedAt added in v0.6.6

func (wc *WorkflowCreate) SetNillableUpdatedAt(t *time.Time) *WorkflowCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*WorkflowCreate) SetReadOnly added in v0.6.6

func (wc *WorkflowCreate) SetReadOnly(b bool) *WorkflowCreate

SetReadOnly sets the "readOnly" field.

func (*WorkflowCreate) SetUpdatedAt added in v0.6.6

func (wc *WorkflowCreate) SetUpdatedAt(t time.Time) *WorkflowCreate

SetUpdatedAt sets the "updated_at" 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 {
	// Inode holds the value of the inode edge.
	Inode *Inode `json:"inode,omitempty"`
	// Namespace holds the value of the namespace edge.
	Namespace *Namespace `json:"namespace,omitempty"`
	// Revisions holds the value of the revisions edge.
	Revisions []*Revision `json:"revisions,omitempty"`
	// Refs holds the value of the refs edge.
	Refs []*Ref `json:"refs,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*Instance `json:"instances,omitempty"`
	// Routes holds the value of the routes edge.
	Routes []*Route `json:"routes,omitempty"`
	// Logs holds the value of the logs edge.
	Logs []*LogMsg `json:"logs,omitempty"`
	// Vars holds the value of the vars edge.
	Vars []*VarRef `json:"vars,omitempty"`
	// Wfevents holds the value of the wfevents edge.
	Wfevents []*Events `json:"wfevents,omitempty"`
	// contains filtered or unexported fields
}

WorkflowEdges holds the relations/edges for other nodes in the graph.

func (WorkflowEdges) InodeOrErr

func (e WorkflowEdges) InodeOrErr() (*Inode, error)

InodeOrErr returns the Inode value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowEdges) InstancesOrErr

func (e WorkflowEdges) InstancesOrErr() ([]*Instance, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) LogsOrErr

func (e WorkflowEdges) LogsOrErr() ([]*LogMsg, error)

LogsOrErr returns the Logs 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) RefsOrErr

func (e WorkflowEdges) RefsOrErr() ([]*Ref, error)

RefsOrErr returns the Refs value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) RevisionsOrErr

func (e WorkflowEdges) RevisionsOrErr() ([]*Revision, error)

RevisionsOrErr returns the Revisions value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) RoutesOrErr

func (e WorkflowEdges) RoutesOrErr() ([]*Route, error)

RoutesOrErr returns the Routes value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) VarsOrErr

func (e WorkflowEdges) VarsOrErr() ([]*VarRef, error)

VarsOrErr returns the Vars value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) WfeventsOrErr

func (e WorkflowEdges) WfeventsOrErr() ([]*Events, error)

WfeventsOrErr returns the Wfevents value or an error if the edge was not loaded in eager-loading.

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 (s *WorkflowGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) BoolX

func (s *WorkflowGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowGroupBy) Bools

func (s *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) BoolsX

func (s *WorkflowGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowGroupBy) Float64

func (s *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) Float64X

func (s *WorkflowGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowGroupBy) Float64s

func (s *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) Float64sX

func (s *WorkflowGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowGroupBy) Int

func (s *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) IntX

func (s *WorkflowGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowGroupBy) Ints

func (s *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) IntsX

func (s *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 (s *WorkflowGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowGroupBy) String

func (s *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) StringX

func (s *WorkflowGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowGroupBy) Strings

func (s *WorkflowGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) StringsX

func (s *WorkflowGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowMutation

type WorkflowMutation struct {
	// contains filtered or unexported fields
}

WorkflowMutation represents an operation that mutates the Workflow nodes in the graph.

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 ...uuid.UUID)

AddInstanceIDs adds the "instances" edge to the Instance entity by ids.

func (*WorkflowMutation) AddLogIDs

func (m *WorkflowMutation) AddLogIDs(ids ...uuid.UUID)

AddLogIDs adds the "logs" edge to the LogMsg entity by ids.

func (*WorkflowMutation) AddRefIDs

func (m *WorkflowMutation) AddRefIDs(ids ...uuid.UUID)

AddRefIDs adds the "refs" edge to the Ref entity by ids.

func (*WorkflowMutation) AddRevisionIDs

func (m *WorkflowMutation) AddRevisionIDs(ids ...uuid.UUID)

AddRevisionIDs adds the "revisions" edge to the Revision entity by ids.

func (*WorkflowMutation) AddRouteIDs

func (m *WorkflowMutation) AddRouteIDs(ids ...uuid.UUID)

AddRouteIDs adds the "routes" edge to the Route entity by ids.

func (*WorkflowMutation) AddVarIDs

func (m *WorkflowMutation) AddVarIDs(ids ...uuid.UUID)

AddVarIDs adds the "vars" edge to the VarRef entity by ids.

func (*WorkflowMutation) AddWfeventIDs

func (m *WorkflowMutation) AddWfeventIDs(ids ...uuid.UUID)

AddWfeventIDs adds the "wfevents" edge to the Events 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) 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) ClearInode

func (m *WorkflowMutation) ClearInode()

ClearInode clears the "inode" edge to the Inode entity.

func (*WorkflowMutation) ClearInstances

func (m *WorkflowMutation) ClearInstances()

ClearInstances clears the "instances" edge to the Instance entity.

func (*WorkflowMutation) ClearLogToEvents

func (m *WorkflowMutation) ClearLogToEvents()

ClearLogToEvents clears the value of the "logToEvents" field.

func (*WorkflowMutation) ClearLogs

func (m *WorkflowMutation) ClearLogs()

ClearLogs clears the "logs" edge to the LogMsg entity.

func (*WorkflowMutation) ClearNamespace

func (m *WorkflowMutation) ClearNamespace()

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*WorkflowMutation) ClearReadOnly added in v0.6.6

func (m *WorkflowMutation) ClearReadOnly()

ClearReadOnly clears the value of the "readOnly" field.

func (*WorkflowMutation) ClearRefs

func (m *WorkflowMutation) ClearRefs()

ClearRefs clears the "refs" edge to the Ref entity.

func (*WorkflowMutation) ClearRevisions

func (m *WorkflowMutation) ClearRevisions()

ClearRevisions clears the "revisions" edge to the Revision entity.

func (*WorkflowMutation) ClearRoutes

func (m *WorkflowMutation) ClearRoutes()

ClearRoutes clears the "routes" edge to the Route entity.

func (*WorkflowMutation) ClearUpdatedAt added in v0.6.6

func (m *WorkflowMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*WorkflowMutation) ClearVars

func (m *WorkflowMutation) ClearVars()

ClearVars clears the "vars" edge to the VarRef entity.

func (*WorkflowMutation) ClearWfevents

func (m *WorkflowMutation) ClearWfevents()

ClearWfevents clears the "wfevents" edge to the Events 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) 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) IDs added in v0.6.1

func (m *WorkflowMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*WorkflowMutation) InodeCleared

func (m *WorkflowMutation) InodeCleared() bool

InodeCleared reports if the "inode" edge to the Inode entity was cleared.

func (*WorkflowMutation) InodeID

func (m *WorkflowMutation) InodeID() (id uuid.UUID, exists bool)

InodeID returns the "inode" edge ID in the mutation.

func (*WorkflowMutation) InodeIDs

func (m *WorkflowMutation) InodeIDs() (ids []uuid.UUID)

InodeIDs returns the "inode" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use InodeID instead. It exists only for internal usage by the builders.

func (*WorkflowMutation) InstancesCleared

func (m *WorkflowMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the Instance entity was cleared.

func (*WorkflowMutation) InstancesIDs

func (m *WorkflowMutation) InstancesIDs() (ids []uuid.UUID)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*WorkflowMutation) Live

func (m *WorkflowMutation) Live() (r bool, exists bool)

Live returns the value of the "live" field 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) LogsCleared

func (m *WorkflowMutation) LogsCleared() bool

LogsCleared reports if the "logs" edge to the LogMsg entity was cleared.

func (*WorkflowMutation) LogsIDs

func (m *WorkflowMutation) LogsIDs() (ids []uuid.UUID)

LogsIDs returns the "logs" edge IDs 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 uuid.UUID, exists bool)

NamespaceID returns the "namespace" edge ID in the mutation.

func (*WorkflowMutation) NamespaceIDs

func (m *WorkflowMutation) NamespaceIDs() (ids []uuid.UUID)

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) 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) OldLive

func (m *WorkflowMutation) OldLive(ctx context.Context) (v bool, err error)

OldLive returns the old "live" 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) 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) OldReadOnly added in v0.6.6

func (m *WorkflowMutation) OldReadOnly(ctx context.Context) (v bool, err error)

OldReadOnly returns the old "readOnly" 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) OldUpdatedAt added in v0.6.6

func (m *WorkflowMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" 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) ReadOnly added in v0.6.6

func (m *WorkflowMutation) ReadOnly() (r bool, exists bool)

ReadOnly returns the value of the "readOnly" field in the mutation.

func (*WorkflowMutation) ReadOnlyCleared added in v0.6.6

func (m *WorkflowMutation) ReadOnlyCleared() bool

ReadOnlyCleared returns if the "readOnly" field was cleared in this mutation.

func (*WorkflowMutation) RefsCleared

func (m *WorkflowMutation) RefsCleared() bool

RefsCleared reports if the "refs" edge to the Ref entity was cleared.

func (*WorkflowMutation) RefsIDs

func (m *WorkflowMutation) RefsIDs() (ids []uuid.UUID)

RefsIDs returns the "refs" edge IDs in the mutation.

func (*WorkflowMutation) RemoveInstanceIDs

func (m *WorkflowMutation) RemoveInstanceIDs(ids ...uuid.UUID)

RemoveInstanceIDs removes the "instances" edge to the Instance entity by IDs.

func (*WorkflowMutation) RemoveLogIDs

func (m *WorkflowMutation) RemoveLogIDs(ids ...uuid.UUID)

RemoveLogIDs removes the "logs" edge to the LogMsg entity by IDs.

func (*WorkflowMutation) RemoveRefIDs

func (m *WorkflowMutation) RemoveRefIDs(ids ...uuid.UUID)

RemoveRefIDs removes the "refs" edge to the Ref entity by IDs.

func (*WorkflowMutation) RemoveRevisionIDs

func (m *WorkflowMutation) RemoveRevisionIDs(ids ...uuid.UUID)

RemoveRevisionIDs removes the "revisions" edge to the Revision entity by IDs.

func (*WorkflowMutation) RemoveRouteIDs

func (m *WorkflowMutation) RemoveRouteIDs(ids ...uuid.UUID)

RemoveRouteIDs removes the "routes" edge to the Route entity by IDs.

func (*WorkflowMutation) RemoveVarIDs

func (m *WorkflowMutation) RemoveVarIDs(ids ...uuid.UUID)

RemoveVarIDs removes the "vars" edge to the VarRef entity by IDs.

func (*WorkflowMutation) RemoveWfeventIDs

func (m *WorkflowMutation) RemoveWfeventIDs(ids ...uuid.UUID)

RemoveWfeventIDs removes the "wfevents" edge to the Events 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 []uuid.UUID)

RemovedInstances returns the removed IDs of the "instances" edge to the Instance entity.

func (*WorkflowMutation) RemovedLogsIDs

func (m *WorkflowMutation) RemovedLogsIDs() (ids []uuid.UUID)

RemovedLogs returns the removed IDs of the "logs" edge to the LogMsg entity.

func (*WorkflowMutation) RemovedRefsIDs

func (m *WorkflowMutation) RemovedRefsIDs() (ids []uuid.UUID)

RemovedRefs returns the removed IDs of the "refs" edge to the Ref entity.

func (*WorkflowMutation) RemovedRevisionsIDs

func (m *WorkflowMutation) RemovedRevisionsIDs() (ids []uuid.UUID)

RemovedRevisions returns the removed IDs of the "revisions" edge to the Revision entity.

func (*WorkflowMutation) RemovedRoutesIDs

func (m *WorkflowMutation) RemovedRoutesIDs() (ids []uuid.UUID)

RemovedRoutes returns the removed IDs of the "routes" edge to the Route entity.

func (*WorkflowMutation) RemovedVarsIDs

func (m *WorkflowMutation) RemovedVarsIDs() (ids []uuid.UUID)

RemovedVars returns the removed IDs of the "vars" edge to the VarRef entity.

func (*WorkflowMutation) RemovedWfeventsIDs

func (m *WorkflowMutation) RemovedWfeventsIDs() (ids []uuid.UUID)

RemovedWfevents returns the removed IDs of the "wfevents" edge to the Events entity.

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) ResetInode

func (m *WorkflowMutation) ResetInode()

ResetInode resets all changes to the "inode" edge.

func (*WorkflowMutation) ResetInstances

func (m *WorkflowMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*WorkflowMutation) ResetLive

func (m *WorkflowMutation) ResetLive()

ResetLive resets all changes to the "live" field.

func (*WorkflowMutation) ResetLogToEvents

func (m *WorkflowMutation) ResetLogToEvents()

ResetLogToEvents resets all changes to the "logToEvents" field.

func (*WorkflowMutation) ResetLogs

func (m *WorkflowMutation) ResetLogs()

ResetLogs resets all changes to the "logs" edge.

func (*WorkflowMutation) ResetNamespace

func (m *WorkflowMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" edge.

func (*WorkflowMutation) ResetReadOnly added in v0.6.6

func (m *WorkflowMutation) ResetReadOnly()

ResetReadOnly resets all changes to the "readOnly" field.

func (*WorkflowMutation) ResetRefs

func (m *WorkflowMutation) ResetRefs()

ResetRefs resets all changes to the "refs" edge.

func (*WorkflowMutation) ResetRevisions

func (m *WorkflowMutation) ResetRevisions()

ResetRevisions resets all changes to the "revisions" edge.

func (*WorkflowMutation) ResetRoutes

func (m *WorkflowMutation) ResetRoutes()

ResetRoutes resets all changes to the "routes" edge.

func (*WorkflowMutation) ResetUpdatedAt added in v0.6.6

func (m *WorkflowMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*WorkflowMutation) ResetVars

func (m *WorkflowMutation) ResetVars()

ResetVars resets all changes to the "vars" edge.

func (*WorkflowMutation) ResetWfevents

func (m *WorkflowMutation) ResetWfevents()

ResetWfevents resets all changes to the "wfevents" edge.

func (*WorkflowMutation) RevisionsCleared

func (m *WorkflowMutation) RevisionsCleared() bool

RevisionsCleared reports if the "revisions" edge to the Revision entity was cleared.

func (*WorkflowMutation) RevisionsIDs

func (m *WorkflowMutation) RevisionsIDs() (ids []uuid.UUID)

RevisionsIDs returns the "revisions" edge IDs in the mutation.

func (*WorkflowMutation) RoutesCleared

func (m *WorkflowMutation) RoutesCleared() bool

RoutesCleared reports if the "routes" edge to the Route entity was cleared.

func (*WorkflowMutation) RoutesIDs

func (m *WorkflowMutation) RoutesIDs() (ids []uuid.UUID)

RoutesIDs returns the "routes" edge IDs in the mutation.

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) SetInodeID

func (m *WorkflowMutation) SetInodeID(id uuid.UUID)

SetInodeID sets the "inode" edge to the Inode entity by id.

func (*WorkflowMutation) SetLive

func (m *WorkflowMutation) SetLive(b bool)

SetLive sets the "live" field.

func (*WorkflowMutation) SetLogToEvents

func (m *WorkflowMutation) SetLogToEvents(s string)

SetLogToEvents sets the "logToEvents" field.

func (*WorkflowMutation) SetNamespaceID

func (m *WorkflowMutation) SetNamespaceID(id uuid.UUID)

SetNamespaceID sets the "namespace" edge to the Namespace entity by id.

func (*WorkflowMutation) SetReadOnly added in v0.6.6

func (m *WorkflowMutation) SetReadOnly(b bool)

SetReadOnly sets the "readOnly" field.

func (*WorkflowMutation) SetUpdatedAt added in v0.6.6

func (m *WorkflowMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" 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) UpdatedAt added in v0.6.6

func (m *WorkflowMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*WorkflowMutation) UpdatedAtCleared added in v0.6.6

func (m *WorkflowMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*WorkflowMutation) VarsCleared

func (m *WorkflowMutation) VarsCleared() bool

VarsCleared reports if the "vars" edge to the VarRef entity was cleared.

func (*WorkflowMutation) VarsIDs

func (m *WorkflowMutation) VarsIDs() (ids []uuid.UUID)

VarsIDs returns the "vars" edge IDs in the mutation.

func (*WorkflowMutation) WfeventsCleared

func (m *WorkflowMutation) WfeventsCleared() bool

WfeventsCleared reports if the "wfevents" edge to the Events entity was cleared.

func (*WorkflowMutation) WfeventsIDs

func (m *WorkflowMutation) WfeventsIDs() (ids []uuid.UUID)

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.

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) CollectFields

func (w *WorkflowQuery) CollectFields(ctx context.Context, satisfies ...string) *WorkflowQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

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 {
	Live bool `json:"live,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Workflow.Query().
	GroupBy(workflow.FieldLive).
	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 more than one Workflow entity is 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 more than one Workflow ID is 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) QueryInode

func (wq *WorkflowQuery) QueryInode() *InodeQuery

QueryInode chains the current query on the "inode" edge.

func (*WorkflowQuery) QueryInstances

func (wq *WorkflowQuery) QueryInstances() *InstanceQuery

QueryInstances chains the current query on the "instances" edge.

func (*WorkflowQuery) QueryLogs

func (wq *WorkflowQuery) QueryLogs() *LogMsgQuery

QueryLogs chains the current query on the "logs" edge.

func (*WorkflowQuery) QueryNamespace

func (wq *WorkflowQuery) QueryNamespace() *NamespaceQuery

QueryNamespace chains the current query on the "namespace" edge.

func (*WorkflowQuery) QueryRefs

func (wq *WorkflowQuery) QueryRefs() *RefQuery

QueryRefs chains the current query on the "refs" edge.

func (*WorkflowQuery) QueryRevisions

func (wq *WorkflowQuery) QueryRevisions() *RevisionQuery

QueryRevisions chains the current query on the "revisions" edge.

func (*WorkflowQuery) QueryRoutes

func (wq *WorkflowQuery) QueryRoutes() *RouteQuery

QueryRoutes chains the current query on the "routes" edge.

func (*WorkflowQuery) QueryVars

func (wq *WorkflowQuery) QueryVars() *VarRefQuery

QueryVars chains the current query on the "vars" edge.

func (*WorkflowQuery) QueryWfevents

func (wq *WorkflowQuery) QueryWfevents() *EventsQuery

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 {
	Live bool `json:"live,omitempty"`
}

client.Workflow.Query().
	Select(workflow.FieldLive).
	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) WithInode

func (wq *WorkflowQuery) WithInode(opts ...func(*InodeQuery)) *WorkflowQuery

WithInode tells the query-builder to eager-load the nodes that are connected to the "inode" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithInstances

func (wq *WorkflowQuery) WithInstances(opts ...func(*InstanceQuery)) *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) WithLogs

func (wq *WorkflowQuery) WithLogs(opts ...func(*LogMsgQuery)) *WorkflowQuery

WithLogs tells the query-builder to eager-load the nodes that are connected to the "logs" 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) WithRefs

func (wq *WorkflowQuery) WithRefs(opts ...func(*RefQuery)) *WorkflowQuery

WithRefs tells the query-builder to eager-load the nodes that are connected to the "refs" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithRevisions

func (wq *WorkflowQuery) WithRevisions(opts ...func(*RevisionQuery)) *WorkflowQuery

WithRevisions tells the query-builder to eager-load the nodes that are connected to the "revisions" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithRoutes

func (wq *WorkflowQuery) WithRoutes(opts ...func(*RouteQuery)) *WorkflowQuery

WithRoutes tells the query-builder to eager-load the nodes that are connected to the "routes" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithVars

func (wq *WorkflowQuery) WithVars(opts ...func(*VarRefQuery)) *WorkflowQuery

WithVars tells the query-builder to eager-load the nodes that are connected to the "vars" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithWfevents

func (wq *WorkflowQuery) WithWfevents(opts ...func(*EventsQuery)) *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 (s *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 (s *WorkflowSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowSelect) Bools

func (s *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 (s *WorkflowSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowSelect) Float64

func (s *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 (s *WorkflowSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowSelect) Float64s

func (s *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 (s *WorkflowSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowSelect) Int

func (s *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 (s *WorkflowSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowSelect) Ints

func (s *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 (s *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 (s *WorkflowSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowSelect) String

func (s *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 (s *WorkflowSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowSelect) Strings

func (s *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 (s *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 ...uuid.UUID) *WorkflowUpdate

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*WorkflowUpdate) AddInstances

func (wu *WorkflowUpdate) AddInstances(i ...*Instance) *WorkflowUpdate

AddInstances adds the "instances" edges to the Instance entity.

func (*WorkflowUpdate) AddLogIDs

func (wu *WorkflowUpdate) AddLogIDs(ids ...uuid.UUID) *WorkflowUpdate

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*WorkflowUpdate) AddLogs

func (wu *WorkflowUpdate) AddLogs(l ...*LogMsg) *WorkflowUpdate

AddLogs adds the "logs" edges to the LogMsg entity.

func (*WorkflowUpdate) AddRefIDs

func (wu *WorkflowUpdate) AddRefIDs(ids ...uuid.UUID) *WorkflowUpdate

AddRefIDs adds the "refs" edge to the Ref entity by IDs.

func (*WorkflowUpdate) AddRefs

func (wu *WorkflowUpdate) AddRefs(r ...*Ref) *WorkflowUpdate

AddRefs adds the "refs" edges to the Ref entity.

func (*WorkflowUpdate) AddRevisionIDs

func (wu *WorkflowUpdate) AddRevisionIDs(ids ...uuid.UUID) *WorkflowUpdate

AddRevisionIDs adds the "revisions" edge to the Revision entity by IDs.

func (*WorkflowUpdate) AddRevisions

func (wu *WorkflowUpdate) AddRevisions(r ...*Revision) *WorkflowUpdate

AddRevisions adds the "revisions" edges to the Revision entity.

func (*WorkflowUpdate) AddRouteIDs

func (wu *WorkflowUpdate) AddRouteIDs(ids ...uuid.UUID) *WorkflowUpdate

AddRouteIDs adds the "routes" edge to the Route entity by IDs.

func (*WorkflowUpdate) AddRoutes

func (wu *WorkflowUpdate) AddRoutes(r ...*Route) *WorkflowUpdate

AddRoutes adds the "routes" edges to the Route entity.

func (*WorkflowUpdate) AddVarIDs

func (wu *WorkflowUpdate) AddVarIDs(ids ...uuid.UUID) *WorkflowUpdate

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*WorkflowUpdate) AddVars

func (wu *WorkflowUpdate) AddVars(v ...*VarRef) *WorkflowUpdate

AddVars adds the "vars" edges to the VarRef entity.

func (*WorkflowUpdate) AddWfeventIDs

func (wu *WorkflowUpdate) AddWfeventIDs(ids ...uuid.UUID) *WorkflowUpdate

AddWfeventIDs adds the "wfevents" edge to the Events entity by IDs.

func (*WorkflowUpdate) AddWfevents

func (wu *WorkflowUpdate) AddWfevents(e ...*Events) *WorkflowUpdate

AddWfevents adds the "wfevents" edges to the Events entity.

func (*WorkflowUpdate) ClearInode

func (wu *WorkflowUpdate) ClearInode() *WorkflowUpdate

ClearInode clears the "inode" edge to the Inode entity.

func (*WorkflowUpdate) ClearInstances

func (wu *WorkflowUpdate) ClearInstances() *WorkflowUpdate

ClearInstances clears all "instances" edges to the Instance entity.

func (*WorkflowUpdate) ClearLogToEvents

func (wu *WorkflowUpdate) ClearLogToEvents() *WorkflowUpdate

ClearLogToEvents clears the value of the "logToEvents" field.

func (*WorkflowUpdate) ClearLogs

func (wu *WorkflowUpdate) ClearLogs() *WorkflowUpdate

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*WorkflowUpdate) ClearNamespace

func (wu *WorkflowUpdate) ClearNamespace() *WorkflowUpdate

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*WorkflowUpdate) ClearReadOnly added in v0.6.6

func (wu *WorkflowUpdate) ClearReadOnly() *WorkflowUpdate

ClearReadOnly clears the value of the "readOnly" field.

func (*WorkflowUpdate) ClearRefs

func (wu *WorkflowUpdate) ClearRefs() *WorkflowUpdate

ClearRefs clears all "refs" edges to the Ref entity.

func (*WorkflowUpdate) ClearRevisions

func (wu *WorkflowUpdate) ClearRevisions() *WorkflowUpdate

ClearRevisions clears all "revisions" edges to the Revision entity.

func (*WorkflowUpdate) ClearRoutes

func (wu *WorkflowUpdate) ClearRoutes() *WorkflowUpdate

ClearRoutes clears all "routes" edges to the Route entity.

func (*WorkflowUpdate) ClearUpdatedAt added in v0.6.6

func (wu *WorkflowUpdate) ClearUpdatedAt() *WorkflowUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*WorkflowUpdate) ClearVars

func (wu *WorkflowUpdate) ClearVars() *WorkflowUpdate

ClearVars clears all "vars" edges to the VarRef entity.

func (*WorkflowUpdate) ClearWfevents

func (wu *WorkflowUpdate) ClearWfevents() *WorkflowUpdate

ClearWfevents clears all "wfevents" edges to the Events 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 ...uuid.UUID) *WorkflowUpdate

RemoveInstanceIDs removes the "instances" edge to Instance entities by IDs.

func (*WorkflowUpdate) RemoveInstances

func (wu *WorkflowUpdate) RemoveInstances(i ...*Instance) *WorkflowUpdate

RemoveInstances removes "instances" edges to Instance entities.

func (*WorkflowUpdate) RemoveLogIDs

func (wu *WorkflowUpdate) RemoveLogIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*WorkflowUpdate) RemoveLogs

func (wu *WorkflowUpdate) RemoveLogs(l ...*LogMsg) *WorkflowUpdate

RemoveLogs removes "logs" edges to LogMsg entities.

func (*WorkflowUpdate) RemoveRefIDs

func (wu *WorkflowUpdate) RemoveRefIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveRefIDs removes the "refs" edge to Ref entities by IDs.

func (*WorkflowUpdate) RemoveRefs

func (wu *WorkflowUpdate) RemoveRefs(r ...*Ref) *WorkflowUpdate

RemoveRefs removes "refs" edges to Ref entities.

func (*WorkflowUpdate) RemoveRevisionIDs

func (wu *WorkflowUpdate) RemoveRevisionIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveRevisionIDs removes the "revisions" edge to Revision entities by IDs.

func (*WorkflowUpdate) RemoveRevisions

func (wu *WorkflowUpdate) RemoveRevisions(r ...*Revision) *WorkflowUpdate

RemoveRevisions removes "revisions" edges to Revision entities.

func (*WorkflowUpdate) RemoveRouteIDs

func (wu *WorkflowUpdate) RemoveRouteIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveRouteIDs removes the "routes" edge to Route entities by IDs.

func (*WorkflowUpdate) RemoveRoutes

func (wu *WorkflowUpdate) RemoveRoutes(r ...*Route) *WorkflowUpdate

RemoveRoutes removes "routes" edges to Route entities.

func (*WorkflowUpdate) RemoveVarIDs

func (wu *WorkflowUpdate) RemoveVarIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveVarIDs removes the "vars" edge to VarRef entities by IDs.

func (*WorkflowUpdate) RemoveVars

func (wu *WorkflowUpdate) RemoveVars(v ...*VarRef) *WorkflowUpdate

RemoveVars removes "vars" edges to VarRef entities.

func (*WorkflowUpdate) RemoveWfeventIDs

func (wu *WorkflowUpdate) RemoveWfeventIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveWfeventIDs removes the "wfevents" edge to Events entities by IDs.

func (*WorkflowUpdate) RemoveWfevents

func (wu *WorkflowUpdate) RemoveWfevents(e ...*Events) *WorkflowUpdate

RemoveWfevents removes "wfevents" edges to Events 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) SetInode

func (wu *WorkflowUpdate) SetInode(i *Inode) *WorkflowUpdate

SetInode sets the "inode" edge to the Inode entity.

func (*WorkflowUpdate) SetInodeID

func (wu *WorkflowUpdate) SetInodeID(id uuid.UUID) *WorkflowUpdate

SetInodeID sets the "inode" edge to the Inode entity by ID.

func (*WorkflowUpdate) SetLive

func (wu *WorkflowUpdate) SetLive(b bool) *WorkflowUpdate

SetLive sets the "live" field.

func (*WorkflowUpdate) SetLogToEvents

func (wu *WorkflowUpdate) SetLogToEvents(s string) *WorkflowUpdate

SetLogToEvents sets the "logToEvents" 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 uuid.UUID) *WorkflowUpdate

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*WorkflowUpdate) SetNillableInodeID

func (wu *WorkflowUpdate) SetNillableInodeID(id *uuid.UUID) *WorkflowUpdate

SetNillableInodeID sets the "inode" edge to the Inode entity by ID if the given value is not nil.

func (*WorkflowUpdate) SetNillableLive

func (wu *WorkflowUpdate) SetNillableLive(b *bool) *WorkflowUpdate

SetNillableLive sets the "live" 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) SetNillableReadOnly added in v0.6.6

func (wu *WorkflowUpdate) SetNillableReadOnly(b *bool) *WorkflowUpdate

SetNillableReadOnly sets the "readOnly" field if the given value is not nil.

func (*WorkflowUpdate) SetReadOnly added in v0.6.6

func (wu *WorkflowUpdate) SetReadOnly(b bool) *WorkflowUpdate

SetReadOnly sets the "readOnly" field.

func (*WorkflowUpdate) SetUpdatedAt added in v0.6.6

func (wu *WorkflowUpdate) SetUpdatedAt(t time.Time) *WorkflowUpdate

SetUpdatedAt sets the "updated_at" 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 ...uuid.UUID) *WorkflowUpdateOne

AddInstanceIDs adds the "instances" edge to the Instance entity by IDs.

func (*WorkflowUpdateOne) AddInstances

func (wuo *WorkflowUpdateOne) AddInstances(i ...*Instance) *WorkflowUpdateOne

AddInstances adds the "instances" edges to the Instance entity.

func (*WorkflowUpdateOne) AddLogIDs

func (wuo *WorkflowUpdateOne) AddLogIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddLogIDs adds the "logs" edge to the LogMsg entity by IDs.

func (*WorkflowUpdateOne) AddLogs

func (wuo *WorkflowUpdateOne) AddLogs(l ...*LogMsg) *WorkflowUpdateOne

AddLogs adds the "logs" edges to the LogMsg entity.

func (*WorkflowUpdateOne) AddRefIDs

func (wuo *WorkflowUpdateOne) AddRefIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddRefIDs adds the "refs" edge to the Ref entity by IDs.

func (*WorkflowUpdateOne) AddRefs

func (wuo *WorkflowUpdateOne) AddRefs(r ...*Ref) *WorkflowUpdateOne

AddRefs adds the "refs" edges to the Ref entity.

func (*WorkflowUpdateOne) AddRevisionIDs

func (wuo *WorkflowUpdateOne) AddRevisionIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddRevisionIDs adds the "revisions" edge to the Revision entity by IDs.

func (*WorkflowUpdateOne) AddRevisions

func (wuo *WorkflowUpdateOne) AddRevisions(r ...*Revision) *WorkflowUpdateOne

AddRevisions adds the "revisions" edges to the Revision entity.

func (*WorkflowUpdateOne) AddRouteIDs

func (wuo *WorkflowUpdateOne) AddRouteIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddRouteIDs adds the "routes" edge to the Route entity by IDs.

func (*WorkflowUpdateOne) AddRoutes

func (wuo *WorkflowUpdateOne) AddRoutes(r ...*Route) *WorkflowUpdateOne

AddRoutes adds the "routes" edges to the Route entity.

func (*WorkflowUpdateOne) AddVarIDs

func (wuo *WorkflowUpdateOne) AddVarIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddVarIDs adds the "vars" edge to the VarRef entity by IDs.

func (*WorkflowUpdateOne) AddVars

func (wuo *WorkflowUpdateOne) AddVars(v ...*VarRef) *WorkflowUpdateOne

AddVars adds the "vars" edges to the VarRef entity.

func (*WorkflowUpdateOne) AddWfeventIDs

func (wuo *WorkflowUpdateOne) AddWfeventIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddWfeventIDs adds the "wfevents" edge to the Events entity by IDs.

func (*WorkflowUpdateOne) AddWfevents

func (wuo *WorkflowUpdateOne) AddWfevents(e ...*Events) *WorkflowUpdateOne

AddWfevents adds the "wfevents" edges to the Events entity.

func (*WorkflowUpdateOne) ClearInode

func (wuo *WorkflowUpdateOne) ClearInode() *WorkflowUpdateOne

ClearInode clears the "inode" edge to the Inode entity.

func (*WorkflowUpdateOne) ClearInstances

func (wuo *WorkflowUpdateOne) ClearInstances() *WorkflowUpdateOne

ClearInstances clears all "instances" edges to the Instance entity.

func (*WorkflowUpdateOne) ClearLogToEvents

func (wuo *WorkflowUpdateOne) ClearLogToEvents() *WorkflowUpdateOne

ClearLogToEvents clears the value of the "logToEvents" field.

func (*WorkflowUpdateOne) ClearLogs

func (wuo *WorkflowUpdateOne) ClearLogs() *WorkflowUpdateOne

ClearLogs clears all "logs" edges to the LogMsg entity.

func (*WorkflowUpdateOne) ClearNamespace

func (wuo *WorkflowUpdateOne) ClearNamespace() *WorkflowUpdateOne

ClearNamespace clears the "namespace" edge to the Namespace entity.

func (*WorkflowUpdateOne) ClearReadOnly added in v0.6.6

func (wuo *WorkflowUpdateOne) ClearReadOnly() *WorkflowUpdateOne

ClearReadOnly clears the value of the "readOnly" field.

func (*WorkflowUpdateOne) ClearRefs

func (wuo *WorkflowUpdateOne) ClearRefs() *WorkflowUpdateOne

ClearRefs clears all "refs" edges to the Ref entity.

func (*WorkflowUpdateOne) ClearRevisions

func (wuo *WorkflowUpdateOne) ClearRevisions() *WorkflowUpdateOne

ClearRevisions clears all "revisions" edges to the Revision entity.

func (*WorkflowUpdateOne) ClearRoutes

func (wuo *WorkflowUpdateOne) ClearRoutes() *WorkflowUpdateOne

ClearRoutes clears all "routes" edges to the Route entity.

func (*WorkflowUpdateOne) ClearUpdatedAt added in v0.6.6

func (wuo *WorkflowUpdateOne) ClearUpdatedAt() *WorkflowUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*WorkflowUpdateOne) ClearVars

func (wuo *WorkflowUpdateOne) ClearVars() *WorkflowUpdateOne

ClearVars clears all "vars" edges to the VarRef entity.

func (*WorkflowUpdateOne) ClearWfevents

func (wuo *WorkflowUpdateOne) ClearWfevents() *WorkflowUpdateOne

ClearWfevents clears all "wfevents" edges to the Events 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 ...uuid.UUID) *WorkflowUpdateOne

RemoveInstanceIDs removes the "instances" edge to Instance entities by IDs.

func (*WorkflowUpdateOne) RemoveInstances

func (wuo *WorkflowUpdateOne) RemoveInstances(i ...*Instance) *WorkflowUpdateOne

RemoveInstances removes "instances" edges to Instance entities.

func (*WorkflowUpdateOne) RemoveLogIDs

func (wuo *WorkflowUpdateOne) RemoveLogIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveLogIDs removes the "logs" edge to LogMsg entities by IDs.

func (*WorkflowUpdateOne) RemoveLogs

func (wuo *WorkflowUpdateOne) RemoveLogs(l ...*LogMsg) *WorkflowUpdateOne

RemoveLogs removes "logs" edges to LogMsg entities.

func (*WorkflowUpdateOne) RemoveRefIDs

func (wuo *WorkflowUpdateOne) RemoveRefIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveRefIDs removes the "refs" edge to Ref entities by IDs.

func (*WorkflowUpdateOne) RemoveRefs

func (wuo *WorkflowUpdateOne) RemoveRefs(r ...*Ref) *WorkflowUpdateOne

RemoveRefs removes "refs" edges to Ref entities.

func (*WorkflowUpdateOne) RemoveRevisionIDs

func (wuo *WorkflowUpdateOne) RemoveRevisionIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveRevisionIDs removes the "revisions" edge to Revision entities by IDs.

func (*WorkflowUpdateOne) RemoveRevisions

func (wuo *WorkflowUpdateOne) RemoveRevisions(r ...*Revision) *WorkflowUpdateOne

RemoveRevisions removes "revisions" edges to Revision entities.

func (*WorkflowUpdateOne) RemoveRouteIDs

func (wuo *WorkflowUpdateOne) RemoveRouteIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveRouteIDs removes the "routes" edge to Route entities by IDs.

func (*WorkflowUpdateOne) RemoveRoutes

func (wuo *WorkflowUpdateOne) RemoveRoutes(r ...*Route) *WorkflowUpdateOne

RemoveRoutes removes "routes" edges to Route entities.

func (*WorkflowUpdateOne) RemoveVarIDs

func (wuo *WorkflowUpdateOne) RemoveVarIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveVarIDs removes the "vars" edge to VarRef entities by IDs.

func (*WorkflowUpdateOne) RemoveVars

func (wuo *WorkflowUpdateOne) RemoveVars(v ...*VarRef) *WorkflowUpdateOne

RemoveVars removes "vars" edges to VarRef entities.

func (*WorkflowUpdateOne) RemoveWfeventIDs

func (wuo *WorkflowUpdateOne) RemoveWfeventIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveWfeventIDs removes the "wfevents" edge to Events entities by IDs.

func (*WorkflowUpdateOne) RemoveWfevents

func (wuo *WorkflowUpdateOne) RemoveWfevents(e ...*Events) *WorkflowUpdateOne

RemoveWfevents removes "wfevents" edges to Events 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) SetInode

func (wuo *WorkflowUpdateOne) SetInode(i *Inode) *WorkflowUpdateOne

SetInode sets the "inode" edge to the Inode entity.

func (*WorkflowUpdateOne) SetInodeID

func (wuo *WorkflowUpdateOne) SetInodeID(id uuid.UUID) *WorkflowUpdateOne

SetInodeID sets the "inode" edge to the Inode entity by ID.

func (*WorkflowUpdateOne) SetLive

func (wuo *WorkflowUpdateOne) SetLive(b bool) *WorkflowUpdateOne

SetLive sets the "live" field.

func (*WorkflowUpdateOne) SetLogToEvents

func (wuo *WorkflowUpdateOne) SetLogToEvents(s string) *WorkflowUpdateOne

SetLogToEvents sets the "logToEvents" 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 uuid.UUID) *WorkflowUpdateOne

SetNamespaceID sets the "namespace" edge to the Namespace entity by ID.

func (*WorkflowUpdateOne) SetNillableInodeID

func (wuo *WorkflowUpdateOne) SetNillableInodeID(id *uuid.UUID) *WorkflowUpdateOne

SetNillableInodeID sets the "inode" edge to the Inode entity by ID if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableLive

func (wuo *WorkflowUpdateOne) SetNillableLive(b *bool) *WorkflowUpdateOne

SetNillableLive sets the "live" 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) SetNillableReadOnly added in v0.6.6

func (wuo *WorkflowUpdateOne) SetNillableReadOnly(b *bool) *WorkflowUpdateOne

SetNillableReadOnly sets the "readOnly" field if the given value is not nil.

func (*WorkflowUpdateOne) SetReadOnly added in v0.6.6

func (wuo *WorkflowUpdateOne) SetReadOnly(b bool) *WorkflowUpdateOne

SetReadOnly sets the "readOnly" field.

func (*WorkflowUpdateOne) SetUpdatedAt added in v0.6.6

func (wuo *WorkflowUpdateOne) SetUpdatedAt(t time.Time) *WorkflowUpdateOne

SetUpdatedAt sets the "updated_at" field.

type Workflows

type Workflows []*Workflow

Workflows is a parsable slice of Workflow.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL