ent

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 44 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"
	TypeNamespace       = "Namespace"
	TypeRef             = "Ref"
	TypeRevision        = "Revision"
	TypeRoute           = "Route"
	TypeVarData         = "VarData"
	TypeVarRef          = "VarRef"
	TypeWorkflow        = "Workflow"
)

Variables

View Source
var (
	// InstanceOrderFieldCreatedAt orders Instance by created_at.
	InstanceOrderFieldCreatedAt = &InstanceOrderField{
		field: instance.FieldCreatedAt,
		toCursor: func(i *Instance) Cursor {
			return Cursor{
				ID:    i.ID,
				Value: i.CreatedAt,
			}
		},
	}
	// InstanceOrderFieldID orders Instance by id.
	InstanceOrderFieldID = &InstanceOrderField{
		field: instance.FieldID,
		toCursor: func(i *Instance) Cursor {
			return Cursor{
				ID:    i.ID,
				Value: i.ID,
			}
		},
	}
)
View Source
var (
	// CloudEventsOrderFieldID orders CloudEvents by id.
	CloudEventsOrderFieldID = &CloudEventsOrderField{
		field: cloudevents.FieldID,
		toCursor: func(ce *CloudEvents) Cursor {
			return Cursor{
				ID:    ce.ID,
				Value: ce.ID,
			}
		},
	}
)
View Source
var DefaultCloudEventsOrder = &CloudEventsOrder{
	Direction: OrderDirectionAsc,
	Field: &CloudEventsOrderField{
		field: cloudevents.FieldID,
		toCursor: func(ce *CloudEvents) Cursor {
			return Cursor{ID: ce.ID}
		},
	},
}

DefaultCloudEventsOrder is the default ordering of CloudEvents.

View Source
var DefaultEventsOrder = &EventsOrder{
	Direction: OrderDirectionAsc,
	Field: &EventsOrderField{
		field: events.FieldID,
		toCursor: func(e *Events) Cursor {
			return Cursor{ID: e.ID}
		},
	},
}

DefaultEventsOrder is the default ordering of Events.

View Source
var DefaultEventsWaitOrder = &EventsWaitOrder{
	Direction: OrderDirectionAsc,
	Field: &EventsWaitOrderField{
		field: eventswait.FieldID,
		toCursor: func(ew *EventsWait) Cursor {
			return Cursor{ID: ew.ID}
		},
	},
}

DefaultEventsWaitOrder is the default ordering of EventsWait.

View Source
var DefaultInodeOrder = &InodeOrder{
	Direction: OrderDirectionAsc,
	Field: &InodeOrderField{
		field: inode.FieldID,
		toCursor: func(i *Inode) Cursor {
			return Cursor{ID: i.ID}
		},
	},
}

DefaultInodeOrder is the default ordering of Inode.

View Source
var DefaultInstanceOrder = &InstanceOrder{
	Direction: OrderDirectionAsc,
	Field: &InstanceOrderField{
		field: instance.FieldID,
		toCursor: func(i *Instance) Cursor {
			return Cursor{ID: i.ID}
		},
	},
}

DefaultInstanceOrder is the default ordering of Instance.

View Source
var DefaultInstanceRuntimeOrder = &InstanceRuntimeOrder{
	Direction: OrderDirectionAsc,
	Field: &InstanceRuntimeOrderField{
		field: instanceruntime.FieldID,
		toCursor: func(ir *InstanceRuntime) Cursor {
			return Cursor{ID: ir.ID}
		},
	},
}

DefaultInstanceRuntimeOrder is the default ordering of InstanceRuntime.

View Source
var DefaultLogMsgOrder = &LogMsgOrder{
	Direction: OrderDirectionAsc,
	Field: &LogMsgOrderField{
		field: logmsg.FieldID,
		toCursor: func(lm *LogMsg) Cursor {
			return Cursor{ID: lm.ID}
		},
	},
}

DefaultLogMsgOrder is the default ordering of LogMsg.

View Source
var DefaultNamespaceOrder = &NamespaceOrder{
	Direction: OrderDirectionAsc,
	Field: &NamespaceOrderField{
		field: namespace.FieldID,
		toCursor: func(n *Namespace) Cursor {
			return Cursor{ID: n.ID}
		},
	},
}

DefaultNamespaceOrder is the default ordering of Namespace.

View Source
var DefaultRefOrder = &RefOrder{
	Direction: OrderDirectionAsc,
	Field: &RefOrderField{
		field: ref.FieldID,
		toCursor: func(r *Ref) Cursor {
			return Cursor{ID: r.ID}
		},
	},
}

DefaultRefOrder is the default ordering of Ref.

View Source
var DefaultRevisionOrder = &RevisionOrder{
	Direction: OrderDirectionAsc,
	Field: &RevisionOrderField{
		field: revision.FieldID,
		toCursor: func(r *Revision) Cursor {
			return Cursor{ID: r.ID}
		},
	},
}

DefaultRevisionOrder is the default ordering of Revision.

View Source
var DefaultRouteOrder = &RouteOrder{
	Direction: OrderDirectionAsc,
	Field: &RouteOrderField{
		field: route.FieldID,
		toCursor: func(r *Route) Cursor {
			return Cursor{ID: r.ID}
		},
	},
}

DefaultRouteOrder is the default ordering of Route.

View Source
var DefaultVarDataOrder = &VarDataOrder{
	Direction: OrderDirectionAsc,
	Field: &VarDataOrderField{
		field: vardata.FieldID,
		toCursor: func(vd *VarData) Cursor {
			return Cursor{ID: vd.ID}
		},
	},
}

DefaultVarDataOrder is the default ordering of VarData.

View Source
var DefaultVarRefOrder = &VarRefOrder{
	Direction: OrderDirectionAsc,
	Field: &VarRefOrderField{
		field: varref.FieldID,
		toCursor: func(vr *VarRef) Cursor {
			return Cursor{ID: vr.ID}
		},
	},
}

DefaultVarRefOrder is the default ordering of VarRef.

View Source
var DefaultWorkflowOrder = &WorkflowOrder{
	Direction: OrderDirectionAsc,
	Field: &WorkflowOrderField{
		field: workflow.FieldID,
		toCursor: func(w *Workflow) Cursor {
			return Cursor{ID: w.ID}
		},
	},
}

DefaultWorkflowOrder is the default ordering of Workflow.

View Source
var (
	// EventsOrderFieldID orders Events by id.
	EventsOrderFieldID = &EventsOrderField{
		field: events.FieldID,
		toCursor: func(e *Events) Cursor {
			return Cursor{
				ID:    e.ID,
				Value: e.ID,
			}
		},
	}
)
View Source
var (
	// EventsWaitOrderFieldID orders EventsWait by id.
	EventsWaitOrderFieldID = &EventsWaitOrderField{
		field: eventswait.FieldID,
		toCursor: func(ew *EventsWait) Cursor {
			return Cursor{
				ID:    ew.ID,
				Value: ew.ID,
			}
		},
	}
)
View Source
var (
	// InodeOrderFieldName orders Inode by name.
	InodeOrderFieldName = &InodeOrderField{
		field: inode.FieldName,
		toCursor: func(i *Inode) Cursor {
			return Cursor{
				ID:    i.ID,
				Value: i.Name,
			}
		},
	}
)
View Source
var (
	// InstanceRuntimeOrderFieldID orders InstanceRuntime by id.
	InstanceRuntimeOrderFieldID = &InstanceRuntimeOrderField{
		field: instanceruntime.FieldID,
		toCursor: func(ir *InstanceRuntime) Cursor {
			return Cursor{
				ID:    ir.ID,
				Value: ir.ID,
			}
		},
	}
)
View Source
var (
	// LogMsgOrderFieldT orders LogMsg by t.
	LogMsgOrderFieldT = &LogMsgOrderField{
		field: logmsg.FieldT,
		toCursor: func(lm *LogMsg) Cursor {
			return Cursor{
				ID:    lm.ID,
				Value: lm.T,
			}
		},
	}
)
View Source
var (
	// NamespaceOrderFieldName orders Namespace by name.
	NamespaceOrderFieldName = &NamespaceOrderField{
		field: namespace.FieldName,
		toCursor: func(n *Namespace) Cursor {
			return Cursor{
				ID:    n.ID,
				Value: n.Name,
			}
		},
	}
)
View Source
var (
	// RefOrderFieldName orders Ref by name.
	RefOrderFieldName = &RefOrderField{
		field: ref.FieldName,
		toCursor: func(r *Ref) Cursor {
			return Cursor{
				ID:    r.ID,
				Value: r.Name,
			}
		},
	}
)
View Source
var (
	// VarRefOrderFieldName orders VarRef by name.
	VarRefOrderFieldName = &VarRefOrderField{
		field: varref.FieldName,
		toCursor: func(vr *VarRef) Cursor {
			return Cursor{
				ID:    vr.ID,
				Value: vr.Name,
			}
		},
	}
)

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
	// 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) Node

func (c *Client) Node(ctx context.Context, id uuid.UUID) (*Node, error)

func (*Client) Noder

func (c *Client) Noder(ctx context.Context, id uuid.UUID, opts ...NodeOption) (_ Noder, err error)

Noder returns a Node by its id. If the NodeType was not provided, it will be derived from the id value according to the universal-id configuration.

c.Noder(ctx, id)
c.Noder(ctx, id, ent.WithNodeType(pet.Table))

func (*Client) Noders

func (c *Client) Noders(ctx context.Context, ids []uuid.UUID, opts ...NodeOption) ([]Noder, error)

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

func (ce *CloudEvents) Node(ctx context.Context) (node *Node, err 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) ToEdge

func (ce *CloudEvents) ToEdge(order *CloudEventsOrder) *CloudEventsEdge

ToEdge converts CloudEvents into CloudEventsEdge.

func (*CloudEvents) Unwrap

func (ce *CloudEvents) Unwrap() *CloudEvents

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

func (*CloudEvents) Update

func (ce *CloudEvents) Update() *CloudEventsUpdateOne

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

type CloudEventsClient

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

CloudEventsClient is a client for the CloudEvents schema.

func NewCloudEventsClient

func NewCloudEventsClient(c config) *CloudEventsClient

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

func (*CloudEventsClient) Create

func (c *CloudEventsClient) Create() *CloudEventsCreate

Create returns a create builder for CloudEvents.

func (*CloudEventsClient) CreateBulk

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

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

func (*CloudEventsClient) Delete

func (c *CloudEventsClient) Delete() *CloudEventsDelete

Delete returns a delete builder for CloudEvents.

func (*CloudEventsClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*CloudEventsClient) DeleteOneID

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

DeleteOneID returns a delete builder for the given id.

func (*CloudEventsClient) Get

Get returns a CloudEvents entity by its id.

func (*CloudEventsClient) GetX

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

func (*CloudEventsClient) Hooks

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

Hooks returns the client hooks.

func (*CloudEventsClient) Query

func (c *CloudEventsClient) Query() *CloudEventsQuery

Query returns a query builder for CloudEvents.

func (*CloudEventsClient) 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 CloudEventsConnection

type CloudEventsConnection struct {
	Edges      []*CloudEventsEdge `json:"edges"`
	PageInfo   PageInfo           `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

CloudEventsConnection is the connection containing edges to CloudEvents.

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

type CloudEventsEdge struct {
	Node   *CloudEvents `json:"node"`
	Cursor Cursor       `json:"cursor"`
}

CloudEventsEdge is the edge representation of CloudEvents.

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

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

func (*CloudEventsGroupBy) BoolX

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

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

func (*CloudEventsGroupBy) Bools

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

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

func (*CloudEventsGroupBy) BoolsX

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

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

func (*CloudEventsGroupBy) Float64

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

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

func (*CloudEventsGroupBy) Float64X

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

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

func (*CloudEventsGroupBy) Float64s

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

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

func (*CloudEventsGroupBy) Float64sX

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

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

func (*CloudEventsGroupBy) Int

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

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

func (*CloudEventsGroupBy) IntX

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

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

func (*CloudEventsGroupBy) Ints

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

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

func (*CloudEventsGroupBy) IntsX

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

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

func (*CloudEventsGroupBy) Scan

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

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

func (*CloudEventsGroupBy) ScanX

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

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

func (*CloudEventsGroupBy) String

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

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

func (*CloudEventsGroupBy) StringX

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

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

func (*CloudEventsGroupBy) Strings

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

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

func (*CloudEventsGroupBy) StringsX

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

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

type CloudEventsMutation

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

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

func (*CloudEventsMutation) AddField

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

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

func (*CloudEventsMutation) AddedEdges

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

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

func (*CloudEventsMutation) AddedField

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

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

func (*CloudEventsMutation) AddedFields

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

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

func (*CloudEventsMutation) AddedIDs

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

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

func (*CloudEventsMutation) ClearEdge

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

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

func (*CloudEventsMutation) ClearField

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

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

func (*CloudEventsMutation) 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) 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 CloudEventsOrder

type CloudEventsOrder struct {
	Direction OrderDirection         `json:"direction"`
	Field     *CloudEventsOrderField `json:"field"`
}

CloudEventsOrder defines the ordering of CloudEvents.

type CloudEventsOrderField

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

CloudEventsOrderField defines the ordering field of CloudEvents.

func (CloudEventsOrderField) MarshalGQL

func (f CloudEventsOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (CloudEventsOrderField) String

func (f CloudEventsOrderField) String() string

String implement fmt.Stringer interface.

func (*CloudEventsOrderField) UnmarshalGQL

func (f *CloudEventsOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type CloudEventsPaginateOption

type CloudEventsPaginateOption func(*cloudEventsPager) error

CloudEventsPaginateOption enables pagination customization.

func WithCloudEventsFilter

func WithCloudEventsFilter(filter func(*CloudEventsQuery) (*CloudEventsQuery, error)) CloudEventsPaginateOption

WithCloudEventsFilter configures pagination filter.

func WithCloudEventsOrder

func WithCloudEventsOrder(order *CloudEventsOrder) CloudEventsPaginateOption

WithCloudEventsOrder configures pagination ordering.

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

func (*CloudEventsQuery) OnlyID

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

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

func (*CloudEventsQuery) OnlyIDX

func (ceq *CloudEventsQuery) OnlyIDX(ctx context.Context) 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) Paginate

func (ce *CloudEventsQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...CloudEventsPaginateOption,
) (*CloudEventsConnection, error)

Paginate executes the query and returns a relay based cursor connection to CloudEvents.

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

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

func (*CloudEventsSelect) BoolX

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

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

func (*CloudEventsSelect) Bools

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

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

func (*CloudEventsSelect) BoolsX

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

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

func (*CloudEventsSelect) Float64

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

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

func (*CloudEventsSelect) Float64X

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

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

func (*CloudEventsSelect) Float64s

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

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

func (*CloudEventsSelect) Float64sX

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

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

func (*CloudEventsSelect) Int

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

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

func (*CloudEventsSelect) IntX

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

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

func (*CloudEventsSelect) Ints

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

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

func (*CloudEventsSelect) IntsX

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

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

func (*CloudEventsSelect) Scan

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

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

func (*CloudEventsSelect) ScanX

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

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

func (*CloudEventsSelect) String

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

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

func (*CloudEventsSelect) StringX

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

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

func (*CloudEventsSelect) Strings

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

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

func (*CloudEventsSelect) StringsX

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

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

type CloudEventsSlice

type CloudEventsSlice []*CloudEvents

CloudEventsSlice is a parsable slice of CloudEvents.

type CloudEventsUpdate

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

CloudEventsUpdate is the builder for updating CloudEvents entities.

func (*CloudEventsUpdate) 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(context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Committer

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

Committer is the interface that wraps the Committer method.

type ConstraintError

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

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

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Cursor

type Cursor struct {
	ID    uuid.UUID `msgpack:"i"`
	Value Value     `msgpack:"v,omitempty"`
}

Cursor of an edge type.

func (Cursor) MarshalGQL

func (c Cursor) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (*Cursor) UnmarshalGQL

func (c *Cursor) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Edge

type Edge struct {
	Type string      `json:"type,omitempty"` // edge type.
	Name string      `json:"name,omitempty"` // edge name.
	IDs  []uuid.UUID `json:"ids,omitempty"`  // node ids (where this edge point to).
}

Edges between two nodes.

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"`
	// 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) Node

func (e *Events) Node(ctx context.Context) (node *Node, err error)

func (*Events) QueryInstance

func (e *Events) QueryInstance() *InstanceQuery

QueryInstance queries the "instance" 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) ToEdge

func (e *Events) ToEdge(order *EventsOrder) *EventsEdge

ToEdge converts Events into EventsEdge.

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 create builder for Events.

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

func (*EventsClient) DeleteOneID

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

DeleteOneID returns a delete builder for the given 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) 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 EventsConnection

type EventsConnection struct {
	Edges      []*EventsEdge `json:"edges"`
	PageInfo   PageInfo      `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

EventsConnection is the connection containing edges to Events.

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

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

SetSignature sets the "signature" 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 EventsEdge

type EventsEdge struct {
	Node   *Events `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

EventsEdge is the edge representation of Events.

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"`
	// 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) 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 (egb *EventsGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*EventsGroupBy) BoolX

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

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

func (*EventsGroupBy) Bools

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

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

func (*EventsGroupBy) BoolsX

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

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

func (*EventsGroupBy) Float64

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

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

func (*EventsGroupBy) Float64X

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

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

func (*EventsGroupBy) Float64s

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

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

func (*EventsGroupBy) Float64sX

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

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

func (*EventsGroupBy) Int

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

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

func (*EventsGroupBy) IntX

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

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

func (*EventsGroupBy) Ints

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

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

func (*EventsGroupBy) IntsX

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

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

func (*EventsGroupBy) String

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

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

func (*EventsGroupBy) StringX

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

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

func (*EventsGroupBy) Strings

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

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

func (*EventsGroupBy) StringsX

func (egb *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) 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) 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) 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) 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) 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) 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) 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) ResetSignature

func (m *EventsMutation) ResetSignature()

ResetSignature resets all changes to the "signature" 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) 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) SetSignature

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

SetSignature sets the "signature" 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) 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 EventsOrder

type EventsOrder struct {
	Direction OrderDirection    `json:"direction"`
	Field     *EventsOrderField `json:"field"`
}

EventsOrder defines the ordering of Events.

type EventsOrderField

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

EventsOrderField defines the ordering field of Events.

func (EventsOrderField) MarshalGQL

func (f EventsOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (EventsOrderField) String

func (f EventsOrderField) String() string

String implement fmt.Stringer interface.

func (*EventsOrderField) UnmarshalGQL

func (f *EventsOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type EventsPaginateOption

type EventsPaginateOption func(*eventsPager) error

EventsPaginateOption enables pagination customization.

func WithEventsFilter

func WithEventsFilter(filter func(*EventsQuery) (*EventsQuery, error)) EventsPaginateOption

WithEventsFilter configures pagination filter.

func WithEventsOrder

func WithEventsOrder(order *EventsOrder) EventsPaginateOption

WithEventsOrder configures pagination ordering.

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 exactly one Events entity is not 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 exactly one Events ID is not 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) Paginate

func (e *EventsQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...EventsPaginateOption,
) (*EventsConnection, error)

Paginate executes the query and returns a relay based cursor connection to Events.

func (*EventsQuery) QueryInstance

func (eq *EventsQuery) QueryInstance() *InstanceQuery

QueryInstance chains the current query on the "instance" 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) 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 (es *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 (es *EventsSelect) BoolX(ctx context.Context) bool

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

func (*EventsSelect) Bools

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

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

func (*EventsSelect) Float64

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

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

func (*EventsSelect) Float64s

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

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

func (*EventsSelect) Int

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

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

func (*EventsSelect) Ints

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

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

func (*EventsSelect) String

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

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

func (*EventsSelect) Strings

func (es *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 (es *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) 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) 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) 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) 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) 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) 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) Node

func (ew *EventsWait) Node(ctx context.Context) (node *Node, err error)

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

func (ew *EventsWait) ToEdge(order *EventsWaitOrder) *EventsWaitEdge

ToEdge converts EventsWait into EventsWaitEdge.

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 create builder for EventsWait.

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

func (*EventsWaitClient) DeleteOneID

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

DeleteOneID returns a delete builder for the given 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 EventsWaitConnection

type EventsWaitConnection struct {
	Edges      []*EventsWaitEdge `json:"edges"`
	PageInfo   PageInfo          `json:"pageInfo"`
	TotalCount int               `json:"totalCount"`
}

EventsWaitConnection is the connection containing edges to EventsWait.

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

type EventsWaitEdge struct {
	Node   *EventsWait `json:"node"`
	Cursor Cursor      `json:"cursor"`
}

EventsWaitEdge is the edge representation of EventsWait.

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

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

func (*EventsWaitGroupBy) BoolX

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

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

func (*EventsWaitGroupBy) Bools

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

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

func (*EventsWaitGroupBy) BoolsX

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

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

func (*EventsWaitGroupBy) Float64

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

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

func (*EventsWaitGroupBy) Float64X

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

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

func (*EventsWaitGroupBy) Float64s

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

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

func (*EventsWaitGroupBy) Float64sX

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

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

func (*EventsWaitGroupBy) Int

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

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

func (*EventsWaitGroupBy) IntX

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

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

func (*EventsWaitGroupBy) Ints

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

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

func (*EventsWaitGroupBy) IntsX

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

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

func (*EventsWaitGroupBy) String

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

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

func (*EventsWaitGroupBy) StringX

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

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

func (*EventsWaitGroupBy) Strings

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

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

func (*EventsWaitGroupBy) StringsX

func (ewgb *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) 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 EventsWaitOrder

type EventsWaitOrder struct {
	Direction OrderDirection        `json:"direction"`
	Field     *EventsWaitOrderField `json:"field"`
}

EventsWaitOrder defines the ordering of EventsWait.

type EventsWaitOrderField

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

EventsWaitOrderField defines the ordering field of EventsWait.

func (EventsWaitOrderField) MarshalGQL

func (f EventsWaitOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (EventsWaitOrderField) String

func (f EventsWaitOrderField) String() string

String implement fmt.Stringer interface.

func (*EventsWaitOrderField) UnmarshalGQL

func (f *EventsWaitOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type EventsWaitPaginateOption

type EventsWaitPaginateOption func(*eventsWaitPager) error

EventsWaitPaginateOption enables pagination customization.

func WithEventsWaitFilter

func WithEventsWaitFilter(filter func(*EventsWaitQuery) (*EventsWaitQuery, error)) EventsWaitPaginateOption

WithEventsWaitFilter configures pagination filter.

func WithEventsWaitOrder

func WithEventsWaitOrder(order *EventsWaitOrder) EventsWaitPaginateOption

WithEventsWaitOrder configures pagination ordering.

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 exactly one EventsWait entity is not 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 exactly one EventsWait ID is not 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) Paginate

func (ew *EventsWaitQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...EventsWaitPaginateOption,
) (*EventsWaitConnection, error)

Paginate executes the query and returns a relay based cursor connection to EventsWait.

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

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

func (*EventsWaitSelect) Bools

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

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

func (*EventsWaitSelect) Float64

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

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

func (*EventsWaitSelect) Float64s

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

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

func (*EventsWaitSelect) Int

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

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

func (*EventsWaitSelect) Ints

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

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

func (*EventsWaitSelect) String

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

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

func (*EventsWaitSelect) Strings

func (ews *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 (ews *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 Field

type Field struct {
	Type  string `json:"type,omitempty"`  // field type.
	Name  string `json:"name,omitempty"`  // field name (as in struct).
	Value string `json:"value,omitempty"` // stringified value.
}

Field of a node.

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"`
	// 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) Namespace

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

func (*Inode) Node

func (i *Inode) Node(ctx context.Context) (node *Node, err 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) 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) ToEdge

func (i *Inode) ToEdge(order *InodeOrder) *InodeEdge

ToEdge converts Inode into InodeEdge.

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 create builder for Inode.

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

func (*InodeClient) DeleteOneID

func (c *InodeClient) DeleteOneID(id uuid.UUID) *InodeDeleteOne

DeleteOneID returns a delete builder for the given 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) 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 InodeConnection

type InodeConnection struct {
	Edges      []*InodeEdge `json:"edges"`
	PageInfo   PageInfo     `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

InodeConnection is the connection containing edges to Inode.

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

func (ic *InodeCreate) SetID(u uuid.UUID) *InodeCreate

SetID sets the "id" field.

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

type InodeEdge struct {
	Node   *Inode `json:"node"`
	Cursor Cursor `json:"cursor"`
}

InodeEdge is the edge representation of Inode.

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"`
	// 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) 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 (igb *InodeGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*InodeGroupBy) BoolX

func (igb *InodeGroupBy) BoolX(ctx context.Context) bool

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

func (*InodeGroupBy) Bools

func (igb *InodeGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*InodeGroupBy) BoolsX

func (igb *InodeGroupBy) BoolsX(ctx context.Context) []bool

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

func (*InodeGroupBy) Float64

func (igb *InodeGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*InodeGroupBy) Float64X

func (igb *InodeGroupBy) Float64X(ctx context.Context) float64

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

func (*InodeGroupBy) Float64s

func (igb *InodeGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*InodeGroupBy) Float64sX

func (igb *InodeGroupBy) Float64sX(ctx context.Context) []float64

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

func (*InodeGroupBy) Int

func (igb *InodeGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*InodeGroupBy) IntX

func (igb *InodeGroupBy) IntX(ctx context.Context) int

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

func (*InodeGroupBy) Ints

func (igb *InodeGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*InodeGroupBy) IntsX

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

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

func (*InodeGroupBy) String

func (igb *InodeGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*InodeGroupBy) StringX

func (igb *InodeGroupBy) StringX(ctx context.Context) string

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

func (*InodeGroupBy) Strings

func (igb *InodeGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*InodeGroupBy) StringsX

func (igb *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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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 InodeOrder

type InodeOrder struct {
	Direction OrderDirection   `json:"direction"`
	Field     *InodeOrderField `json:"field"`
}

InodeOrder defines the ordering of Inode.

type InodeOrderField

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

InodeOrderField defines the ordering field of Inode.

func (InodeOrderField) MarshalGQL

func (f InodeOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (InodeOrderField) String

func (f InodeOrderField) String() string

String implement fmt.Stringer interface.

func (*InodeOrderField) UnmarshalGQL

func (f *InodeOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type InodePaginateOption

type InodePaginateOption func(*inodePager) error

InodePaginateOption enables pagination customization.

func WithInodeFilter

func WithInodeFilter(filter func(*InodeQuery) (*InodeQuery, error)) InodePaginateOption

WithInodeFilter configures pagination filter.

func WithInodeOrder

func WithInodeOrder(order *InodeOrder) InodePaginateOption

WithInodeOrder configures pagination ordering.

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 exactly one Inode entity is not 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 exactly one Inode ID is not 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) Paginate

func (i *InodeQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...InodePaginateOption,
) (*InodeConnection, error)

Paginate executes the query and returns a relay based cursor connection to Inode.

func (*InodeQuery) QueryChildren

func (iq *InodeQuery) QueryChildren() *InodeQuery

QueryChildren chains the current query on the "children" 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) 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 (is *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 (is *InodeSelect) BoolX(ctx context.Context) bool

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

func (*InodeSelect) Bools

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

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

func (*InodeSelect) Float64

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

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

func (*InodeSelect) Float64s

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

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

func (*InodeSelect) Int

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

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

func (*InodeSelect) Ints

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

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

func (*InodeSelect) String

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

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

func (*InodeSelect) Strings

func (is *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 (is *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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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"`
	// 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) Node

func (i *Instance) Node(ctx context.Context) (node *Node, err 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) ToEdge

func (i *Instance) ToEdge(order *InstanceOrder) *InstanceEdge

ToEdge converts Instance into InstanceEdge.

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 create builder for Instance.

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

func (*InstanceClient) DeleteOneID

func (c *InstanceClient) DeleteOneID(id uuid.UUID) *InstanceDeleteOne

DeleteOneID returns a delete builder for the given 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 InstanceConnection

type InstanceConnection struct {
	Edges      []*InstanceEdge `json:"edges"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

InstanceConnection is the connection containing edges to Instance.

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

func (ic *InstanceCreate) SetNillableUpdatedAt(t *time.Time) *InstanceCreate

SetNillableUpdatedAt sets the "updated_at" field 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 InstanceEdge

type InstanceEdge struct {
	Node   *Instance `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

InstanceEdge is the edge representation of Instance.

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

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

func (*InstanceGroupBy) BoolX

func (igb *InstanceGroupBy) BoolX(ctx context.Context) bool

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

func (*InstanceGroupBy) Bools

func (igb *InstanceGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*InstanceGroupBy) BoolsX

func (igb *InstanceGroupBy) BoolsX(ctx context.Context) []bool

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

func (*InstanceGroupBy) Float64

func (igb *InstanceGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*InstanceGroupBy) Float64X

func (igb *InstanceGroupBy) Float64X(ctx context.Context) float64

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

func (*InstanceGroupBy) Float64s

func (igb *InstanceGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*InstanceGroupBy) Float64sX

func (igb *InstanceGroupBy) Float64sX(ctx context.Context) []float64

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

func (*InstanceGroupBy) Int

func (igb *InstanceGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*InstanceGroupBy) IntX

func (igb *InstanceGroupBy) IntX(ctx context.Context) int

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

func (*InstanceGroupBy) Ints

func (igb *InstanceGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*InstanceGroupBy) IntsX

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

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

func (*InstanceGroupBy) String

func (igb *InstanceGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*InstanceGroupBy) StringX

func (igb *InstanceGroupBy) StringX(ctx context.Context) string

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

func (*InstanceGroupBy) Strings

func (igb *InstanceGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*InstanceGroupBy) StringsX

func (igb *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) 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) 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) 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) 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) 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 InstanceOrder

type InstanceOrder struct {
	Direction OrderDirection      `json:"direction"`
	Field     *InstanceOrderField `json:"field"`
}

InstanceOrder defines the ordering of Instance.

type InstanceOrderField

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

InstanceOrderField defines the ordering field of Instance.

func (InstanceOrderField) MarshalGQL

func (f InstanceOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (InstanceOrderField) String

func (f InstanceOrderField) String() string

String implement fmt.Stringer interface.

func (*InstanceOrderField) UnmarshalGQL

func (f *InstanceOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type InstancePaginateOption

type InstancePaginateOption func(*instancePager) error

InstancePaginateOption enables pagination customization.

func WithInstanceFilter

func WithInstanceFilter(filter func(*InstanceQuery) (*InstanceQuery, error)) InstancePaginateOption

WithInstanceFilter configures pagination filter.

func WithInstanceOrder

func WithInstanceOrder(order *InstanceOrder) InstancePaginateOption

WithInstanceOrder configures pagination ordering.

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 exactly one Instance entity is not 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 exactly one Instance ID is not 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) Paginate

func (i *InstanceQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...InstancePaginateOption,
) (*InstanceConnection, error)

Paginate executes the query and returns a relay based cursor connection to Instance.

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"`
	// 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) Node

func (ir *InstanceRuntime) Node(ctx context.Context) (node *Node, err 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) ToEdge

ToEdge converts InstanceRuntime into InstanceRuntimeEdge.

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 create builder for InstanceRuntime.

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

func (*InstanceRuntimeClient) DeleteOneID

DeleteOneID returns a delete builder for the given 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 InstanceRuntimeConnection

type InstanceRuntimeConnection struct {
	Edges      []*InstanceRuntimeEdge `json:"edges"`
	PageInfo   PageInfo               `json:"pageInfo"`
	TotalCount int                    `json:"totalCount"`
}

InstanceRuntimeConnection is the connection containing edges to InstanceRuntime.

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

type InstanceRuntimeEdge struct {
	Node   *InstanceRuntime `json:"node"`
	Cursor Cursor           `json:"cursor"`
}

InstanceRuntimeEdge is the edge representation of InstanceRuntime.

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

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

func (*InstanceRuntimeGroupBy) BoolX

func (irgb *InstanceRuntimeGroupBy) BoolX(ctx context.Context) bool

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

func (*InstanceRuntimeGroupBy) Bools

func (irgb *InstanceRuntimeGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*InstanceRuntimeGroupBy) BoolsX

func (irgb *InstanceRuntimeGroupBy) BoolsX(ctx context.Context) []bool

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

func (*InstanceRuntimeGroupBy) Float64

func (irgb *InstanceRuntimeGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*InstanceRuntimeGroupBy) Float64X

func (irgb *InstanceRuntimeGroupBy) Float64X(ctx context.Context) float64

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

func (*InstanceRuntimeGroupBy) Float64s

func (irgb *InstanceRuntimeGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*InstanceRuntimeGroupBy) Float64sX

func (irgb *InstanceRuntimeGroupBy) Float64sX(ctx context.Context) []float64

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

func (*InstanceRuntimeGroupBy) Int

func (irgb *InstanceRuntimeGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*InstanceRuntimeGroupBy) IntX

func (irgb *InstanceRuntimeGroupBy) IntX(ctx context.Context) int

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

func (*InstanceRuntimeGroupBy) Ints

func (irgb *InstanceRuntimeGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*InstanceRuntimeGroupBy) IntsX

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

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

func (*InstanceRuntimeGroupBy) String

func (irgb *InstanceRuntimeGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*InstanceRuntimeGroupBy) StringX

func (irgb *InstanceRuntimeGroupBy) StringX(ctx context.Context) string

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

func (*InstanceRuntimeGroupBy) Strings

func (irgb *InstanceRuntimeGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*InstanceRuntimeGroupBy) StringsX

func (irgb *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) 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) 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) 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) 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) 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) 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 InstanceRuntimeOrder

type InstanceRuntimeOrder struct {
	Direction OrderDirection             `json:"direction"`
	Field     *InstanceRuntimeOrderField `json:"field"`
}

InstanceRuntimeOrder defines the ordering of InstanceRuntime.

type InstanceRuntimeOrderField

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

InstanceRuntimeOrderField defines the ordering field of InstanceRuntime.

func (InstanceRuntimeOrderField) MarshalGQL

func (f InstanceRuntimeOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (InstanceRuntimeOrderField) String

func (f InstanceRuntimeOrderField) String() string

String implement fmt.Stringer interface.

func (*InstanceRuntimeOrderField) UnmarshalGQL

func (f *InstanceRuntimeOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type InstanceRuntimePaginateOption

type InstanceRuntimePaginateOption func(*instanceRuntimePager) error

InstanceRuntimePaginateOption enables pagination customization.

func WithInstanceRuntimeFilter

func WithInstanceRuntimeFilter(filter func(*InstanceRuntimeQuery) (*InstanceRuntimeQuery, error)) InstanceRuntimePaginateOption

WithInstanceRuntimeFilter configures pagination filter.

func WithInstanceRuntimeOrder

func WithInstanceRuntimeOrder(order *InstanceRuntimeOrder) InstanceRuntimePaginateOption

WithInstanceRuntimeOrder configures pagination ordering.

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 exactly one InstanceRuntime entity is not 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 exactly one InstanceRuntime ID is not 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) Paginate

func (ir *InstanceRuntimeQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...InstanceRuntimePaginateOption,
) (*InstanceRuntimeConnection, error)

Paginate executes the query and returns a relay based cursor connection to InstanceRuntime.

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

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

func (*InstanceRuntimeSelect) Bools

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

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

func (*InstanceRuntimeSelect) Float64

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

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

func (*InstanceRuntimeSelect) Float64s

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

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

func (*InstanceRuntimeSelect) Int

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

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

func (*InstanceRuntimeSelect) Ints

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

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

func (*InstanceRuntimeSelect) String

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

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

func (*InstanceRuntimeSelect) Strings

func (irs *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 (irs *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) 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) 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) 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) 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) 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) 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 (is *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 (is *InstanceSelect) BoolX(ctx context.Context) bool

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

func (*InstanceSelect) Bools

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

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

func (*InstanceSelect) Float64

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

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

func (*InstanceSelect) Float64s

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

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

func (*InstanceSelect) Int

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

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

func (*InstanceSelect) Ints

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

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

func (*InstanceSelect) String

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

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

func (*InstanceSelect) Strings

func (is *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 (is *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) 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) 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) 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) 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) 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) 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) Instance

func (lm *LogMsg) Instance(ctx context.Context) (*Instance, error)

func (*LogMsg) Namespace

func (lm *LogMsg) Namespace(ctx context.Context) (*Namespace, error)

func (*LogMsg) Node

func (lm *LogMsg) Node(ctx context.Context) (node *Node, err error)

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

func (lm *LogMsg) ToEdge(order *LogMsgOrder) *LogMsgEdge

ToEdge converts LogMsg into LogMsgEdge.

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 create builder for LogMsg.

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

func (*LogMsgClient) DeleteOneID

func (c *LogMsgClient) DeleteOneID(id uuid.UUID) *LogMsgDeleteOne

DeleteOneID returns a delete builder for the given 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) 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 LogMsgConnection

type LogMsgConnection struct {
	Edges      []*LogMsgEdge `json:"edges"`
	PageInfo   PageInfo      `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

LogMsgConnection is the connection containing edges to LogMsg.

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

type LogMsgEdge struct {
	Node   *LogMsg `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

LogMsgEdge is the edge representation of LogMsg.

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"`
	// contains filtered or unexported fields
}

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

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

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

func (*LogMsgGroupBy) BoolX

func (lmgb *LogMsgGroupBy) BoolX(ctx context.Context) bool

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

func (*LogMsgGroupBy) Bools

func (lmgb *LogMsgGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*LogMsgGroupBy) BoolsX

func (lmgb *LogMsgGroupBy) BoolsX(ctx context.Context) []bool

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

func (*LogMsgGroupBy) Float64

func (lmgb *LogMsgGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*LogMsgGroupBy) Float64X

func (lmgb *LogMsgGroupBy) Float64X(ctx context.Context) float64

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

func (*LogMsgGroupBy) Float64s

func (lmgb *LogMsgGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*LogMsgGroupBy) Float64sX

func (lmgb *LogMsgGroupBy) Float64sX(ctx context.Context) []float64

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

func (*LogMsgGroupBy) Int

func (lmgb *LogMsgGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*LogMsgGroupBy) IntX

func (lmgb *LogMsgGroupBy) IntX(ctx context.Context) int

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

func (*LogMsgGroupBy) Ints

func (lmgb *LogMsgGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*LogMsgGroupBy) IntsX

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

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

func (*LogMsgGroupBy) String

func (lmgb *LogMsgGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*LogMsgGroupBy) StringX

func (lmgb *LogMsgGroupBy) StringX(ctx context.Context) string

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

func (*LogMsgGroupBy) Strings

func (lmgb *LogMsgGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*LogMsgGroupBy) StringsX

func (lmgb *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) 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) 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) 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) 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) 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 LogMsgOrder

type LogMsgOrder struct {
	Direction OrderDirection    `json:"direction"`
	Field     *LogMsgOrderField `json:"field"`
}

LogMsgOrder defines the ordering of LogMsg.

type LogMsgOrderField

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

LogMsgOrderField defines the ordering field of LogMsg.

func (LogMsgOrderField) MarshalGQL

func (f LogMsgOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (LogMsgOrderField) String

func (f LogMsgOrderField) String() string

String implement fmt.Stringer interface.

func (*LogMsgOrderField) UnmarshalGQL

func (f *LogMsgOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type LogMsgPaginateOption

type LogMsgPaginateOption func(*logMsgPager) error

LogMsgPaginateOption enables pagination customization.

func WithLogMsgFilter

func WithLogMsgFilter(filter func(*LogMsgQuery) (*LogMsgQuery, error)) LogMsgPaginateOption

WithLogMsgFilter configures pagination filter.

func WithLogMsgOrder

func WithLogMsgOrder(order *LogMsgOrder) LogMsgPaginateOption

WithLogMsgOrder configures pagination ordering.

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 exactly one LogMsg entity is not 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 exactly one LogMsg ID is not 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) Paginate

func (lm *LogMsgQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...LogMsgPaginateOption,
) (*LogMsgConnection, error)

Paginate executes the query and returns a relay based cursor connection to LogMsg.

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

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

func (*LogMsgSelect) Bools

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

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

func (*LogMsgSelect) Float64

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

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

func (*LogMsgSelect) Float64s

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

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

func (*LogMsgSelect) Int

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

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

func (*LogMsgSelect) Ints

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

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

func (*LogMsgSelect) String

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

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

func (*LogMsgSelect) Strings

func (lms *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 (lms *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) 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) 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) 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) 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) 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) 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 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) Node

func (n *Namespace) Node(ctx context.Context) (node *Node, err 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) 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) ToEdge

func (n *Namespace) ToEdge(order *NamespaceOrder) *NamespaceEdge

ToEdge converts Namespace into NamespaceEdge.

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 create builder for Namespace.

func (*NamespaceClient) CreateBulk

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

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

func (*NamespaceClient) Delete

func (c *NamespaceClient) Delete() *NamespaceDelete

Delete returns a delete builder for Namespace.

func (*NamespaceClient) DeleteOne

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

DeleteOne returns a delete builder for the given entity.

func (*NamespaceClient) DeleteOneID

func (c *NamespaceClient) DeleteOneID(id uuid.UUID) *NamespaceDeleteOne

DeleteOneID returns a delete builder for the given 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) 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 NamespaceConnection

type NamespaceConnection struct {
	Edges      []*NamespaceEdge `json:"edges"`
	PageInfo   PageInfo         `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

NamespaceConnection is the connection containing edges to Namespace.

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

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 added in v0.5.5

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

type NamespaceEdge struct {
	Node   *Namespace `json:"node"`
	Cursor Cursor     `json:"cursor"`
}

NamespaceEdge is the edge representation of Namespace.

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"`
	// 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"`
	// 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) 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 (ngb *NamespaceGroupBy) Bool(ctx context.Context) (_ bool, err error)

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

func (*NamespaceGroupBy) BoolX

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

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

func (*NamespaceGroupBy) Bools

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

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

func (*NamespaceGroupBy) BoolsX

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

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

func (*NamespaceGroupBy) Float64

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

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

func (*NamespaceGroupBy) Float64X

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

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

func (*NamespaceGroupBy) Float64s

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

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

func (*NamespaceGroupBy) Float64sX

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

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

func (*NamespaceGroupBy) Int

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

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

func (*NamespaceGroupBy) IntX

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

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

func (*NamespaceGroupBy) Ints

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

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

func (*NamespaceGroupBy) IntsX

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

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

func (*NamespaceGroupBy) Scan

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

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

func (*NamespaceGroupBy) ScanX

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

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

func (*NamespaceGroupBy) String

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

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

func (*NamespaceGroupBy) StringX

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

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

func (*NamespaceGroupBy) Strings

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

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

func (*NamespaceGroupBy) StringsX

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

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

type NamespaceMutation

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

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

func (*NamespaceMutation) 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) 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) 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 added in v0.5.5

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

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

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

func (*NamespaceMutation) OldConfig added in v0.5.5

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

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

func (m *NamespaceMutation) ResetName()

ResetName resets all changes to the "name" field.

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 added in v0.5.5

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 NamespaceOrder

type NamespaceOrder struct {
	Direction OrderDirection       `json:"direction"`
	Field     *NamespaceOrderField `json:"field"`
}

NamespaceOrder defines the ordering of Namespace.

type NamespaceOrderField

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

NamespaceOrderField defines the ordering field of Namespace.

func (NamespaceOrderField) MarshalGQL

func (f NamespaceOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (NamespaceOrderField) String

func (f NamespaceOrderField) String() string

String implement fmt.Stringer interface.

func (*NamespaceOrderField) UnmarshalGQL

func (f *NamespaceOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type NamespacePaginateOption

type NamespacePaginateOption func(*namespacePager) error

NamespacePaginateOption enables pagination customization.

func WithNamespaceFilter

func WithNamespaceFilter(filter func(*NamespaceQuery) (*NamespaceQuery, error)) NamespacePaginateOption

WithNamespaceFilter configures pagination filter.

func WithNamespaceOrder

func WithNamespaceOrder(order *NamespaceOrder) NamespacePaginateOption

WithNamespaceOrder configures pagination ordering.

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 exactly one Namespace entity is not found. Returns a *NotFoundError when no Namespace entities are found.

func (*NamespaceQuery) OnlyID

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

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

func (*NamespaceQuery) OnlyIDX

func (nq *NamespaceQuery) OnlyIDX(ctx context.Context) 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) Paginate

func (n *NamespaceQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...NamespacePaginateOption,
) (*NamespaceConnection, error)

Paginate executes the query and returns a relay based cursor connection to Namespace.

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

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

func (*NamespaceSelect) BoolX

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

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

func (*NamespaceSelect) Bools

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

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

func (*NamespaceSelect) BoolsX

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

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

func (*NamespaceSelect) Float64

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

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

func (*NamespaceSelect) Float64X

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

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

func (*NamespaceSelect) Float64s

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

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

func (*NamespaceSelect) Float64sX

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

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

func (*NamespaceSelect) Int

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

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

func (*NamespaceSelect) IntX

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

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

func (*NamespaceSelect) Ints

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

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

func (*NamespaceSelect) IntsX

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

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

func (*NamespaceSelect) Scan

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

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

func (*NamespaceSelect) ScanX

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

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

func (*NamespaceSelect) String

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

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

func (*NamespaceSelect) StringX

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

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

func (*NamespaceSelect) Strings

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

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

func (*NamespaceSelect) StringsX

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

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

type NamespaceUpdate

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

NamespaceUpdate is the builder for updating Namespace entities.

func (*NamespaceUpdate) 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) 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) 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) 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 added in v0.5.5

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 added in v0.5.5

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

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 added in v0.5.5

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 Node

type Node struct {
	ID     uuid.UUID `json:"id,omitempty"`     // node id.
	Type   string    `json:"type,omitempty"`   // node type.
	Fields []*Field  `json:"fields,omitempty"` // node fields.
	Edges  []*Edge   `json:"edges,omitempty"`  // node edges.
}

Node in the graph.

type NodeOption

type NodeOption func(*nodeOptions)

NodeOption allows configuring the Noder execution using functional options.

func WithFixedNodeType

func WithFixedNodeType(t string) NodeOption

WithFixedNodeType sets the Type of the node to a fixed value.

func WithNodeType

func WithNodeType(f func(context.Context, uuid.UUID) (string, error)) NodeOption

WithNodeType sets the node Type resolver function (i.e. the table to query). If was not provided, the table will be derived from the universal-id configuration as described in: https://entgo.io/docs/migrate/#universal-ids.

type Noder

type Noder interface {
	Node(context.Context) (*Node, error)
}

Noder wraps the basic Node method.

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 OrderDirection

type OrderDirection string

OrderDirection defines the directions in which to order a list of items.

const (
	// OrderDirectionAsc specifies an ascending order.
	OrderDirectionAsc OrderDirection = "ASC"
	// OrderDirectionDesc specifies a descending order.
	OrderDirectionDesc OrderDirection = "DESC"
)

func (OrderDirection) MarshalGQL

func (o OrderDirection) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (OrderDirection) String

func (o OrderDirection) String() string

String implements fmt.Stringer interface.

func (*OrderDirection) UnmarshalGQL

func (o *OrderDirection) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

func (OrderDirection) Validate

func (o OrderDirection) Validate() error

Validate the order direction value.

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 PageInfo

type PageInfo struct {
	HasNextPage     bool    `json:"hasNextPage"`
	HasPreviousPage bool    `json:"hasPreviousPage"`
	StartCursor     *Cursor `json:"startCursor"`
	EndCursor       *Cursor `json:"endCursor"`
}

PageInfo of a connection type.

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"`
	// 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) Node

func (r *Ref) Node(ctx context.Context) (node *Node, err error)

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

func (r *Ref) ToEdge(order *RefOrder) *RefEdge

ToEdge converts Ref into RefEdge.

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 create builder for Ref.

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

func (*RefClient) DeleteOneID

func (c *RefClient) DeleteOneID(id uuid.UUID) *RefDeleteOne

DeleteOneID returns a delete builder for the given 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 RefConnection

type RefConnection struct {
	Edges      []*RefEdge `json:"edges"`
	PageInfo   PageInfo   `json:"pageInfo"`
	TotalCount int        `json:"totalCount"`
}

RefConnection is the connection containing edges to Ref.

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

type RefEdge struct {
	Node   *Ref   `json:"node"`
	Cursor Cursor `json:"cursor"`
}

RefEdge is the edge representation of Ref.

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

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

func (*RefGroupBy) BoolX

func (rgb *RefGroupBy) BoolX(ctx context.Context) bool

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

func (*RefGroupBy) Bools

func (rgb *RefGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*RefGroupBy) BoolsX

func (rgb *RefGroupBy) BoolsX(ctx context.Context) []bool

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

func (*RefGroupBy) Float64

func (rgb *RefGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*RefGroupBy) Float64X

func (rgb *RefGroupBy) Float64X(ctx context.Context) float64

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

func (*RefGroupBy) Float64s

func (rgb *RefGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*RefGroupBy) Float64sX

func (rgb *RefGroupBy) Float64sX(ctx context.Context) []float64

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

func (*RefGroupBy) Int

func (rgb *RefGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*RefGroupBy) IntX

func (rgb *RefGroupBy) IntX(ctx context.Context) int

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

func (*RefGroupBy) Ints

func (rgb *RefGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*RefGroupBy) IntsX

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

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

func (*RefGroupBy) String

func (rgb *RefGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*RefGroupBy) StringX

func (rgb *RefGroupBy) StringX(ctx context.Context) string

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

func (*RefGroupBy) Strings

func (rgb *RefGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*RefGroupBy) StringsX

func (rgb *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) 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) 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) 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) 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) 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 RefOrder

type RefOrder struct {
	Direction OrderDirection `json:"direction"`
	Field     *RefOrderField `json:"field"`
}

RefOrder defines the ordering of Ref.

type RefOrderField

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

RefOrderField defines the ordering field of Ref.

func (RefOrderField) MarshalGQL

func (f RefOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (RefOrderField) String

func (f RefOrderField) String() string

String implement fmt.Stringer interface.

func (*RefOrderField) UnmarshalGQL

func (f *RefOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type RefPaginateOption

type RefPaginateOption func(*refPager) error

RefPaginateOption enables pagination customization.

func WithRefFilter

func WithRefFilter(filter func(*RefQuery) (*RefQuery, error)) RefPaginateOption

WithRefFilter configures pagination filter.

func WithRefOrder

func WithRefOrder(order *RefOrder) RefPaginateOption

WithRefOrder configures pagination ordering.

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 exactly one Ref entity is not 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 exactly one Ref ID is not 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) Paginate

func (r *RefQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...RefPaginateOption,
) (*RefConnection, error)

Paginate executes the query and returns a relay based cursor connection to Ref.

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

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

func (*RefSelect) Bools

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

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

func (*RefSelect) Float64

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

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

func (*RefSelect) Float64s

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

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

func (*RefSelect) Int

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

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

func (*RefSelect) Ints

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

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

func (*RefSelect) String

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

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

func (*RefSelect) Strings

func (rs *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 (rs *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"`
	// 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) Node

func (r *Revision) Node(ctx context.Context) (node *Node, err 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) ToEdge

func (r *Revision) ToEdge(order *RevisionOrder) *RevisionEdge

ToEdge converts Revision into RevisionEdge.

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 create builder for Revision.

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

func (*RevisionClient) DeleteOneID

func (c *RevisionClient) DeleteOneID(id uuid.UUID) *RevisionDeleteOne

DeleteOneID returns a delete builder for the given 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 RevisionConnection

type RevisionConnection struct {
	Edges      []*RevisionEdge `json:"edges"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

RevisionConnection is the connection containing edges to Revision.

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

func (rc *RevisionCreate) SetNillableCreatedAt(t *time.Time) *RevisionCreate

SetNillableCreatedAt sets the "created_at" 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 RevisionEdge

type RevisionEdge struct {
	Node   *Revision `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

RevisionEdge is the edge representation of Revision.

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

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

func (*RevisionGroupBy) BoolX

func (rgb *RevisionGroupBy) BoolX(ctx context.Context) bool

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

func (*RevisionGroupBy) Bools

func (rgb *RevisionGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*RevisionGroupBy) BoolsX

func (rgb *RevisionGroupBy) BoolsX(ctx context.Context) []bool

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

func (*RevisionGroupBy) Float64

func (rgb *RevisionGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*RevisionGroupBy) Float64X

func (rgb *RevisionGroupBy) Float64X(ctx context.Context) float64

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

func (*RevisionGroupBy) Float64s

func (rgb *RevisionGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*RevisionGroupBy) Float64sX

func (rgb *RevisionGroupBy) Float64sX(ctx context.Context) []float64

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

func (*RevisionGroupBy) Int

func (rgb *RevisionGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*RevisionGroupBy) IntX

func (rgb *RevisionGroupBy) IntX(ctx context.Context) int

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

func (*RevisionGroupBy) Ints

func (rgb *RevisionGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*RevisionGroupBy) IntsX

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

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

func (*RevisionGroupBy) String

func (rgb *RevisionGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*RevisionGroupBy) StringX

func (rgb *RevisionGroupBy) StringX(ctx context.Context) string

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

func (*RevisionGroupBy) Strings

func (rgb *RevisionGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*RevisionGroupBy) StringsX

func (rgb *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) 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) 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) 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) 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) 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 RevisionOrder

type RevisionOrder struct {
	Direction OrderDirection      `json:"direction"`
	Field     *RevisionOrderField `json:"field"`
}

RevisionOrder defines the ordering of Revision.

type RevisionOrderField

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

RevisionOrderField defines the ordering field of Revision.

type RevisionPaginateOption

type RevisionPaginateOption func(*revisionPager) error

RevisionPaginateOption enables pagination customization.

func WithRevisionFilter

func WithRevisionFilter(filter func(*RevisionQuery) (*RevisionQuery, error)) RevisionPaginateOption

WithRevisionFilter configures pagination filter.

func WithRevisionOrder

func WithRevisionOrder(order *RevisionOrder) RevisionPaginateOption

WithRevisionOrder configures pagination ordering.

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 exactly one Revision entity is not 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 exactly one Revision ID is not 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) Paginate

func (r *RevisionQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...RevisionPaginateOption,
) (*RevisionConnection, error)

Paginate executes the query and returns a relay based cursor connection to Revision.

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

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

func (*RevisionSelect) Bools

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

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

func (*RevisionSelect) Float64

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

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

func (*RevisionSelect) Float64s

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

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

func (*RevisionSelect) Int

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

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

func (*RevisionSelect) Ints

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

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

func (*RevisionSelect) String

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

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

func (*RevisionSelect) Strings

func (rs *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 (rs *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) 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) 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(context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

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

Rollbacker is the interface that wraps the Rollbacker method.

type 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) Node

func (r *Route) Node(ctx context.Context) (node *Node, err error)

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

func (r *Route) ToEdge(order *RouteOrder) *RouteEdge

ToEdge converts Route into RouteEdge.

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 create builder for Route.

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

func (*RouteClient) DeleteOneID

func (c *RouteClient) DeleteOneID(id uuid.UUID) *RouteDeleteOne

DeleteOneID returns a delete builder for the given 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 RouteConnection

type RouteConnection struct {
	Edges      []*RouteEdge `json:"edges"`
	PageInfo   PageInfo     `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

RouteConnection is the connection containing edges to Route.

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

type RouteEdge struct {
	Node   *Route `json:"node"`
	Cursor Cursor `json:"cursor"`
}

RouteEdge is the edge representation of Route.

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

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

func (*RouteGroupBy) BoolX

func (rgb *RouteGroupBy) BoolX(ctx context.Context) bool

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

func (*RouteGroupBy) Bools

func (rgb *RouteGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*RouteGroupBy) BoolsX

func (rgb *RouteGroupBy) BoolsX(ctx context.Context) []bool

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

func (*RouteGroupBy) Float64

func (rgb *RouteGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*RouteGroupBy) Float64X

func (rgb *RouteGroupBy) Float64X(ctx context.Context) float64

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

func (*RouteGroupBy) Float64s

func (rgb *RouteGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*RouteGroupBy) Float64sX

func (rgb *RouteGroupBy) Float64sX(ctx context.Context) []float64

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

func (*RouteGroupBy) Int

func (rgb *RouteGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*RouteGroupBy) IntX

func (rgb *RouteGroupBy) IntX(ctx context.Context) int

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

func (*RouteGroupBy) Ints

func (rgb *RouteGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*RouteGroupBy) IntsX

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

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

func (*RouteGroupBy) String

func (rgb *RouteGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*RouteGroupBy) StringX

func (rgb *RouteGroupBy) StringX(ctx context.Context) string

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

func (*RouteGroupBy) Strings

func (rgb *RouteGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*RouteGroupBy) StringsX

func (rgb *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) 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 RouteOrder

type RouteOrder struct {
	Direction OrderDirection   `json:"direction"`
	Field     *RouteOrderField `json:"field"`
}

RouteOrder defines the ordering of Route.

type RouteOrderField

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

RouteOrderField defines the ordering field of Route.

type RoutePaginateOption

type RoutePaginateOption func(*routePager) error

RoutePaginateOption enables pagination customization.

func WithRouteFilter

func WithRouteFilter(filter func(*RouteQuery) (*RouteQuery, error)) RoutePaginateOption

WithRouteFilter configures pagination filter.

func WithRouteOrder

func WithRouteOrder(order *RouteOrder) RoutePaginateOption

WithRouteOrder configures pagination ordering.

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 exactly one Route entity is not 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 exactly one Route ID is not 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) Paginate

func (r *RouteQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...RoutePaginateOption,
) (*RouteConnection, error)

Paginate executes the query and returns a relay based cursor connection to Route.

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

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

func (*RouteSelect) Bools

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

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

func (*RouteSelect) Float64

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

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

func (*RouteSelect) Float64s

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

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

func (*RouteSelect) Int

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

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

func (*RouteSelect) Ints

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

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

func (*RouteSelect) String

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

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

func (*RouteSelect) Strings

func (rs *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 (rs *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
	// 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 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"`
	// 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) Node

func (vd *VarData) Node(ctx context.Context) (node *Node, err error)

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

func (vd *VarData) ToEdge(order *VarDataOrder) *VarDataEdge

ToEdge converts VarData into VarDataEdge.

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 create builder for VarData.

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

func (*VarDataClient) DeleteOneID

func (c *VarDataClient) DeleteOneID(id uuid.UUID) *VarDataDeleteOne

DeleteOneID returns a delete builder for the given 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 VarDataConnection

type VarDataConnection struct {
	Edges      []*VarDataEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

VarDataConnection is the connection containing edges to VarData.

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

func (vdc *VarDataCreate) SetNillableCreatedAt(t *time.Time) *VarDataCreate

SetNillableCreatedAt sets the "created_at" 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 VarDataEdge

type VarDataEdge struct {
	Node   *VarData `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

VarDataEdge is the edge representation of VarData.

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

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

func (*VarDataGroupBy) BoolX

func (vdgb *VarDataGroupBy) BoolX(ctx context.Context) bool

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

func (*VarDataGroupBy) Bools

func (vdgb *VarDataGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*VarDataGroupBy) BoolsX

func (vdgb *VarDataGroupBy) BoolsX(ctx context.Context) []bool

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

func (*VarDataGroupBy) Float64

func (vdgb *VarDataGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*VarDataGroupBy) Float64X

func (vdgb *VarDataGroupBy) Float64X(ctx context.Context) float64

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

func (*VarDataGroupBy) Float64s

func (vdgb *VarDataGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*VarDataGroupBy) Float64sX

func (vdgb *VarDataGroupBy) Float64sX(ctx context.Context) []float64

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

func (*VarDataGroupBy) Int

func (vdgb *VarDataGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*VarDataGroupBy) IntX

func (vdgb *VarDataGroupBy) IntX(ctx context.Context) int

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

func (*VarDataGroupBy) Ints

func (vdgb *VarDataGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*VarDataGroupBy) IntsX

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

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

func (*VarDataGroupBy) String

func (vdgb *VarDataGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*VarDataGroupBy) StringX

func (vdgb *VarDataGroupBy) StringX(ctx context.Context) string

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

func (*VarDataGroupBy) Strings

func (vdgb *VarDataGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*VarDataGroupBy) StringsX

func (vdgb *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) 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) 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) 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) 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 VarDataOrder

type VarDataOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *VarDataOrderField `json:"field"`
}

VarDataOrder defines the ordering of VarData.

type VarDataOrderField

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

VarDataOrderField defines the ordering field of VarData.

type VarDataPaginateOption

type VarDataPaginateOption func(*varDataPager) error

VarDataPaginateOption enables pagination customization.

func WithVarDataFilter

func WithVarDataFilter(filter func(*VarDataQuery) (*VarDataQuery, error)) VarDataPaginateOption

WithVarDataFilter configures pagination filter.

func WithVarDataOrder

func WithVarDataOrder(order *VarDataOrder) VarDataPaginateOption

WithVarDataOrder configures pagination ordering.

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 exactly one VarData entity is not 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 exactly one VarData ID is not 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) Paginate

func (vd *VarDataQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...VarDataPaginateOption,
) (*VarDataConnection, error)

Paginate executes the query and returns a relay based cursor connection to VarData.

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

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

func (*VarDataSelect) Bools

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

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

func (*VarDataSelect) Float64

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

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

func (*VarDataSelect) Float64s

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

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

func (*VarDataSelect) Int

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

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

func (*VarDataSelect) Ints

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

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

func (*VarDataSelect) String

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

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

func (*VarDataSelect) Strings

func (vds *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 (vds *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) 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) 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"`
	// 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) Node

func (vr *VarRef) Node(ctx context.Context) (node *Node, err 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) ToEdge

func (vr *VarRef) ToEdge(order *VarRefOrder) *VarRefEdge

ToEdge converts VarRef into VarRefEdge.

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 create builder for VarRef.

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

func (*VarRefClient) DeleteOneID

func (c *VarRefClient) DeleteOneID(id uuid.UUID) *VarRefDeleteOne

DeleteOneID returns a delete builder for the given 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 VarRefConnection

type VarRefConnection struct {
	Edges      []*VarRefEdge `json:"edges"`
	PageInfo   PageInfo      `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

VarRefConnection is the connection containing edges to VarRef.

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

type VarRefEdge struct {
	Node   *VarRef `json:"node"`
	Cursor Cursor  `json:"cursor"`
}

VarRefEdge is the edge representation of VarRef.

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

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

func (*VarRefGroupBy) BoolX

func (vrgb *VarRefGroupBy) BoolX(ctx context.Context) bool

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

func (*VarRefGroupBy) Bools

func (vrgb *VarRefGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*VarRefGroupBy) BoolsX

func (vrgb *VarRefGroupBy) BoolsX(ctx context.Context) []bool

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

func (*VarRefGroupBy) Float64

func (vrgb *VarRefGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*VarRefGroupBy) Float64X

func (vrgb *VarRefGroupBy) Float64X(ctx context.Context) float64

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

func (*VarRefGroupBy) Float64s

func (vrgb *VarRefGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*VarRefGroupBy) Float64sX

func (vrgb *VarRefGroupBy) Float64sX(ctx context.Context) []float64

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

func (*VarRefGroupBy) Int

func (vrgb *VarRefGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*VarRefGroupBy) IntX

func (vrgb *VarRefGroupBy) IntX(ctx context.Context) int

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

func (*VarRefGroupBy) Ints

func (vrgb *VarRefGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*VarRefGroupBy) IntsX

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

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

func (*VarRefGroupBy) String

func (vrgb *VarRefGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*VarRefGroupBy) StringX

func (vrgb *VarRefGroupBy) StringX(ctx context.Context) string

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

func (*VarRefGroupBy) Strings

func (vrgb *VarRefGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*VarRefGroupBy) StringsX

func (vrgb *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) 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) 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) 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) 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) 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 VarRefOrder

type VarRefOrder struct {
	Direction OrderDirection    `json:"direction"`
	Field     *VarRefOrderField `json:"field"`
}

VarRefOrder defines the ordering of VarRef.

type VarRefOrderField

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

VarRefOrderField defines the ordering field of VarRef.

func (VarRefOrderField) MarshalGQL

func (f VarRefOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (VarRefOrderField) String

func (f VarRefOrderField) String() string

String implement fmt.Stringer interface.

func (*VarRefOrderField) UnmarshalGQL

func (f *VarRefOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type VarRefPaginateOption

type VarRefPaginateOption func(*varRefPager) error

VarRefPaginateOption enables pagination customization.

func WithVarRefFilter

func WithVarRefFilter(filter func(*VarRefQuery) (*VarRefQuery, error)) VarRefPaginateOption

WithVarRefFilter configures pagination filter.

func WithVarRefOrder

func WithVarRefOrder(order *VarRefOrder) VarRefPaginateOption

WithVarRefOrder configures pagination ordering.

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 exactly one VarRef entity is not 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 exactly one VarRef ID is not 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) Paginate

func (vr *VarRefQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...VarRefPaginateOption,
) (*VarRefConnection, error)

Paginate executes the query and returns a relay based cursor connection to VarRef.

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

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

func (*VarRefSelect) Bools

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

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

func (*VarRefSelect) Float64

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

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

func (*VarRefSelect) Float64s

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

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

func (*VarRefSelect) Int

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

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

func (*VarRefSelect) Ints

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

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

func (*VarRefSelect) String

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

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

func (*VarRefSelect) Strings

func (vrs *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 (vrs *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) 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) 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) 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) 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) 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) 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"`
	// 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) Node

func (w *Workflow) Node(ctx context.Context) (node *Node, err 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) ToEdge

func (w *Workflow) ToEdge(order *WorkflowOrder) *WorkflowEdge

ToEdge converts Workflow into WorkflowEdge.

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 create builder for Workflow.

func (*WorkflowClient) CreateBulk

func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk

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

func (*WorkflowClient) Delete

func (c *WorkflowClient) Delete() *WorkflowDelete

Delete returns a delete builder for Workflow.

func (*WorkflowClient) DeleteOne

func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*WorkflowClient) DeleteOneID

func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*WorkflowClient) Get

func (c *WorkflowClient) Get(ctx context.Context, id uuid.UUID) (*Workflow, error)

Get returns a Workflow entity by its id.

func (*WorkflowClient) GetX

func (c *WorkflowClient) GetX(ctx context.Context, id uuid.UUID) *Workflow

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

func (*WorkflowClient) Hooks

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

Hooks returns the client hooks.

func (*WorkflowClient) Query

func (c *WorkflowClient) Query() *WorkflowQuery

Query returns a query builder for Workflow.

func (*WorkflowClient) 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 WorkflowConnection

type WorkflowConnection struct {
	Edges      []*WorkflowEdge `json:"edges"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

WorkflowConnection is the connection containing edges to Workflow.

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

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 WorkflowEdge

type WorkflowEdge struct {
	Node   *Workflow `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

WorkflowEdge is the edge representation of Workflow.

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

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

func (*WorkflowGroupBy) BoolX

func (wgb *WorkflowGroupBy) BoolX(ctx context.Context) bool

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

func (*WorkflowGroupBy) Bools

func (wgb *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)

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

func (*WorkflowGroupBy) BoolsX

func (wgb *WorkflowGroupBy) BoolsX(ctx context.Context) []bool

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

func (*WorkflowGroupBy) Float64

func (wgb *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)

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

func (*WorkflowGroupBy) Float64X

func (wgb *WorkflowGroupBy) Float64X(ctx context.Context) float64

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

func (*WorkflowGroupBy) Float64s

func (wgb *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)

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

func (*WorkflowGroupBy) Float64sX

func (wgb *WorkflowGroupBy) Float64sX(ctx context.Context) []float64

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

func (*WorkflowGroupBy) Int

func (wgb *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)

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

func (*WorkflowGroupBy) IntX

func (wgb *WorkflowGroupBy) IntX(ctx context.Context) int

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

func (*WorkflowGroupBy) Ints

func (wgb *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)

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

func (*WorkflowGroupBy) IntsX

func (wgb *WorkflowGroupBy) IntsX(ctx context.Context) []int

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

func (*WorkflowGroupBy) Scan

func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v interface{}) error

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

func (*WorkflowGroupBy) ScanX

func (wgb *WorkflowGroupBy) ScanX(ctx context.Context, v interface{})

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

func (*WorkflowGroupBy) String

func (wgb *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)

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

func (*WorkflowGroupBy) StringX

func (wgb *WorkflowGroupBy) StringX(ctx context.Context) string

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

func (*WorkflowGroupBy) Strings

func (wgb *WorkflowGroupBy) Strings(ctx context.Context) ([]string, error)

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

func (*WorkflowGroupBy) StringsX

func (wgb *WorkflowGroupBy) StringsX(ctx context.Context) []string

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

type 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) 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) 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) 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) Op

func (m *WorkflowMutation) Op() Op

Op returns the operation name.

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

type WorkflowOrder struct {
	Direction OrderDirection      `json:"direction"`
	Field     *WorkflowOrderField `json:"field"`
}

WorkflowOrder defines the ordering of Workflow.

type WorkflowOrderField

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

WorkflowOrderField defines the ordering field of Workflow.

type WorkflowPaginateOption

type WorkflowPaginateOption func(*workflowPager) error

WorkflowPaginateOption enables pagination customization.

func WithWorkflowFilter

func WithWorkflowFilter(filter func(*WorkflowQuery) (*WorkflowQuery, error)) WorkflowPaginateOption

WithWorkflowFilter configures pagination filter.

func WithWorkflowOrder

func WithWorkflowOrder(order *WorkflowOrder) WorkflowPaginateOption

WithWorkflowOrder configures pagination ordering.

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 exactly one Workflow entity is not found. Returns a *NotFoundError when no Workflow entities are found.

func (*WorkflowQuery) OnlyID

func (wq *WorkflowQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*WorkflowQuery) OnlyIDX

func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*WorkflowQuery) OnlyX

func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow

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

func (*WorkflowQuery) Order

func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery

Order adds an order step to the query.

func (*WorkflowQuery) Paginate

func (w *WorkflowQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...WorkflowPaginateOption,
) (*WorkflowConnection, error)

Paginate executes the query and returns a relay based cursor connection to Workflow.

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

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

func (*WorkflowSelect) BoolX

func (ws *WorkflowSelect) BoolX(ctx context.Context) bool

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

func (*WorkflowSelect) Bools

func (ws *WorkflowSelect) Bools(ctx context.Context) ([]bool, error)

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

func (*WorkflowSelect) BoolsX

func (ws *WorkflowSelect) BoolsX(ctx context.Context) []bool

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

func (*WorkflowSelect) Float64

func (ws *WorkflowSelect) Float64(ctx context.Context) (_ float64, err error)

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

func (*WorkflowSelect) Float64X

func (ws *WorkflowSelect) Float64X(ctx context.Context) float64

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

func (*WorkflowSelect) Float64s

func (ws *WorkflowSelect) Float64s(ctx context.Context) ([]float64, error)

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

func (*WorkflowSelect) Float64sX

func (ws *WorkflowSelect) Float64sX(ctx context.Context) []float64

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

func (*WorkflowSelect) Int

func (ws *WorkflowSelect) Int(ctx context.Context) (_ int, err error)

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

func (*WorkflowSelect) IntX

func (ws *WorkflowSelect) IntX(ctx context.Context) int

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

func (*WorkflowSelect) Ints

func (ws *WorkflowSelect) Ints(ctx context.Context) ([]int, error)

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

func (*WorkflowSelect) IntsX

func (ws *WorkflowSelect) IntsX(ctx context.Context) []int

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

func (*WorkflowSelect) Scan

func (ws *WorkflowSelect) Scan(ctx context.Context, v interface{}) error

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

func (*WorkflowSelect) ScanX

func (ws *WorkflowSelect) ScanX(ctx context.Context, v interface{})

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

func (*WorkflowSelect) String

func (ws *WorkflowSelect) String(ctx context.Context) (_ string, err error)

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

func (*WorkflowSelect) StringX

func (ws *WorkflowSelect) StringX(ctx context.Context) string

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

func (*WorkflowSelect) Strings

func (ws *WorkflowSelect) Strings(ctx context.Context) ([]string, error)

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

func (*WorkflowSelect) StringsX

func (ws *WorkflowSelect) StringsX(ctx context.Context) []string

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

type WorkflowUpdate

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

WorkflowUpdate is the builder for updating Workflow entities.

func (*WorkflowUpdate) AddInstanceIDs

func (wu *WorkflowUpdate) AddInstanceIDs(ids ...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) 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) 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) 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) 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) 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.

type Workflows

type Workflows []*Workflow

Workflows is a parsable slice of Workflow.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL