ent

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 36 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.
	TypeIntegration             = "Integration"
	TypeIntegrationAttachment   = "IntegrationAttachment"
	TypeMembership              = "Membership"
	TypeOCIRepository           = "OCIRepository"
	TypeOrganization            = "Organization"
	TypeRobotAccount            = "RobotAccount"
	TypeUser                    = "User"
	TypeWorkflow                = "Workflow"
	TypeWorkflowContract        = "WorkflowContract"
	TypeWorkflowContractVersion = "WorkflowContractVersion"
	TypeWorkflowRun             = "WorkflowRun"
)

Variables

This section is empty.

Functions

func IsConstraintError

func IsConstraintError(err error) bool

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

func IsNotFound

func IsNotFound(err error) bool

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

func IsNotLoaded

func IsNotLoaded(err error) bool

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

func IsNotSingular

func IsNotSingular(err error) bool

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

func IsValidationError

func IsValidationError(err error) bool

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

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

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

NewContext returns a new context with the given Client attached.

func NewTxContext

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

NewTxContext returns a new context with the given Tx attached.

func ServeEntviz

func ServeEntviz() http.Handler

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
	// Integration is the client for interacting with the Integration builders.
	Integration *IntegrationClient
	// IntegrationAttachment is the client for interacting with the IntegrationAttachment builders.
	IntegrationAttachment *IntegrationAttachmentClient
	// Membership is the client for interacting with the Membership builders.
	Membership *MembershipClient
	// OCIRepository is the client for interacting with the OCIRepository builders.
	OCIRepository *OCIRepositoryClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// RobotAccount is the client for interacting with the RobotAccount builders.
	RobotAccount *RobotAccountClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// Workflow is the client for interacting with the Workflow builders.
	Workflow *WorkflowClient
	// WorkflowContract is the client for interacting with the WorkflowContract builders.
	WorkflowContract *WorkflowContractClient
	// WorkflowContractVersion is the client for interacting with the WorkflowContractVersion builders.
	WorkflowContractVersion *WorkflowContractVersionClient
	// WorkflowRun is the client for interacting with the WorkflowRun builders.
	WorkflowRun *WorkflowRunClient
	// 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) Debug

func (c *Client) Debug() *Client

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

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

func (*Client) Intercept

func (c *Client) Intercept(interceptors ...Interceptor)

Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.

func (*Client) Mutate

func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)

Mutate implements the ent.Mutator interface.

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 CommitFunc

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

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

func (CommitFunc) Commit

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

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

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

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

type Committer

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

Committer is the interface that wraps the Commit method.

type ConstraintError

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

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

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Hook

type Hook = ent.Hook

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

type Integration

type Integration struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Kind holds the value of the "kind" field.
	Kind string `json:"kind,omitempty"`
	// SecretName holds the value of the "secret_name" field.
	SecretName string `json:"secret_name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Config holds the value of the "config" field.
	Config *v1.IntegrationConfig `json:"config,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the IntegrationQuery when eager-loading is set.
	Edges IntegrationEdges `json:"edges"`
	// contains filtered or unexported fields
}

Integration is the model entity for the Integration schema.

func (*Integration) QueryAttachments

func (i *Integration) QueryAttachments() *IntegrationAttachmentQuery

QueryAttachments queries the "attachments" edge of the Integration entity.

func (*Integration) QueryOrganization

func (i *Integration) QueryOrganization() *OrganizationQuery

QueryOrganization queries the "organization" edge of the Integration entity.

func (*Integration) String

func (i *Integration) String() string

String implements the fmt.Stringer.

func (*Integration) Unwrap

func (i *Integration) Unwrap() *Integration

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

func (i *Integration) Update() *IntegrationUpdateOne

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

type IntegrationAttachment

type IntegrationAttachment 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"`
	// Config holds the value of the "config" field.
	Config *v1.IntegrationAttachmentConfig `json:"config,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the IntegrationAttachmentQuery when eager-loading is set.
	Edges IntegrationAttachmentEdges `json:"edges"`
	// contains filtered or unexported fields
}

IntegrationAttachment is the model entity for the IntegrationAttachment schema.

func (*IntegrationAttachment) QueryIntegration

func (ia *IntegrationAttachment) QueryIntegration() *IntegrationQuery

QueryIntegration queries the "integration" edge of the IntegrationAttachment entity.

func (*IntegrationAttachment) QueryWorkflow

func (ia *IntegrationAttachment) QueryWorkflow() *WorkflowQuery

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

func (*IntegrationAttachment) String

func (ia *IntegrationAttachment) String() string

String implements the fmt.Stringer.

func (*IntegrationAttachment) Unwrap

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

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

type IntegrationAttachmentClient

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

IntegrationAttachmentClient is a client for the IntegrationAttachment schema.

func NewIntegrationAttachmentClient

func NewIntegrationAttachmentClient(c config) *IntegrationAttachmentClient

NewIntegrationAttachmentClient returns a client for the IntegrationAttachment from the given config.

func (*IntegrationAttachmentClient) Create

Create returns a builder for creating a IntegrationAttachment entity.

func (*IntegrationAttachmentClient) CreateBulk

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

func (*IntegrationAttachmentClient) Delete

Delete returns a delete builder for IntegrationAttachment.

func (*IntegrationAttachmentClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*IntegrationAttachmentClient) DeleteOneID

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

func (*IntegrationAttachmentClient) Get

Get returns a IntegrationAttachment entity by its id.

func (*IntegrationAttachmentClient) GetX

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

func (*IntegrationAttachmentClient) Hooks

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

Hooks returns the client hooks.

func (*IntegrationAttachmentClient) Intercept

func (c *IntegrationAttachmentClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `integrationattachment.Intercept(f(g(h())))`.

func (*IntegrationAttachmentClient) Interceptors

func (c *IntegrationAttachmentClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*IntegrationAttachmentClient) Query

Query returns a query builder for IntegrationAttachment.

func (*IntegrationAttachmentClient) QueryIntegration

QueryIntegration queries the integration edge of a IntegrationAttachment.

func (*IntegrationAttachmentClient) QueryWorkflow

QueryWorkflow queries the workflow edge of a IntegrationAttachment.

func (*IntegrationAttachmentClient) Update

Update returns an update builder for IntegrationAttachment.

func (*IntegrationAttachmentClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*IntegrationAttachmentClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*IntegrationAttachmentClient) Use

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

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

type IntegrationAttachmentCreate

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

IntegrationAttachmentCreate is the builder for creating a IntegrationAttachment entity.

func (*IntegrationAttachmentCreate) Exec

Exec executes the query.

func (*IntegrationAttachmentCreate) ExecX

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

func (*IntegrationAttachmentCreate) Mutation

Mutation returns the IntegrationAttachmentMutation object of the builder.

func (*IntegrationAttachmentCreate) Save

Save creates the IntegrationAttachment in the database.

func (*IntegrationAttachmentCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*IntegrationAttachmentCreate) SetConfig

SetConfig sets the "config" field.

func (*IntegrationAttachmentCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*IntegrationAttachmentCreate) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationAttachmentCreate) SetID

SetID sets the "id" field.

func (*IntegrationAttachmentCreate) SetIntegration

SetIntegration sets the "integration" edge to the Integration entity.

func (*IntegrationAttachmentCreate) SetIntegrationID

SetIntegrationID sets the "integration" edge to the Integration entity by ID.

func (*IntegrationAttachmentCreate) SetNillableCreatedAt

func (iac *IntegrationAttachmentCreate) SetNillableCreatedAt(t *time.Time) *IntegrationAttachmentCreate

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

func (*IntegrationAttachmentCreate) SetNillableDeletedAt

func (iac *IntegrationAttachmentCreate) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationAttachmentCreate) SetNillableID

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

func (*IntegrationAttachmentCreate) SetWorkflow

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

func (*IntegrationAttachmentCreate) SetWorkflowID

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

type IntegrationAttachmentCreateBulk

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

IntegrationAttachmentCreateBulk is the builder for creating many IntegrationAttachment entities in bulk.

func (*IntegrationAttachmentCreateBulk) Exec

Exec executes the query.

func (*IntegrationAttachmentCreateBulk) ExecX

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

func (*IntegrationAttachmentCreateBulk) Save

Save creates the IntegrationAttachment entities in the database.

func (*IntegrationAttachmentCreateBulk) SaveX

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

type IntegrationAttachmentDelete

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

IntegrationAttachmentDelete is the builder for deleting a IntegrationAttachment entity.

func (*IntegrationAttachmentDelete) Exec

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

func (*IntegrationAttachmentDelete) ExecX

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

func (*IntegrationAttachmentDelete) Where

Where appends a list predicates to the IntegrationAttachmentDelete builder.

type IntegrationAttachmentDeleteOne

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

IntegrationAttachmentDeleteOne is the builder for deleting a single IntegrationAttachment entity.

func (*IntegrationAttachmentDeleteOne) Exec

Exec executes the deletion query.

func (*IntegrationAttachmentDeleteOne) ExecX

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

func (*IntegrationAttachmentDeleteOne) Where

Where appends a list predicates to the IntegrationAttachmentDelete builder.

type IntegrationAttachmentEdges

type IntegrationAttachmentEdges struct {
	// Integration holds the value of the integration edge.
	Integration *Integration `json:"integration,omitempty"`
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// contains filtered or unexported fields
}

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

func (IntegrationAttachmentEdges) IntegrationOrErr

func (e IntegrationAttachmentEdges) IntegrationOrErr() (*Integration, error)

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

func (IntegrationAttachmentEdges) WorkflowOrErr

func (e IntegrationAttachmentEdges) 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 IntegrationAttachmentGroupBy

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

IntegrationAttachmentGroupBy is the group-by builder for IntegrationAttachment entities.

func (*IntegrationAttachmentGroupBy) Aggregate

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

func (*IntegrationAttachmentGroupBy) Bool

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

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

func (*IntegrationAttachmentGroupBy) BoolX

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

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

func (*IntegrationAttachmentGroupBy) Bools

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

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

func (*IntegrationAttachmentGroupBy) BoolsX

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

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

func (*IntegrationAttachmentGroupBy) Float64

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

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

func (*IntegrationAttachmentGroupBy) Float64X

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

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

func (*IntegrationAttachmentGroupBy) Float64s

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

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

func (*IntegrationAttachmentGroupBy) Float64sX

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

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

func (*IntegrationAttachmentGroupBy) Int

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

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

func (*IntegrationAttachmentGroupBy) IntX

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

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

func (*IntegrationAttachmentGroupBy) Ints

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

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

func (*IntegrationAttachmentGroupBy) IntsX

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

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

func (*IntegrationAttachmentGroupBy) Scan

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

func (*IntegrationAttachmentGroupBy) ScanX

func (s *IntegrationAttachmentGroupBy) ScanX(ctx context.Context, v any)

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

func (*IntegrationAttachmentGroupBy) String

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

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

func (*IntegrationAttachmentGroupBy) StringX

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

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

func (*IntegrationAttachmentGroupBy) Strings

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

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

func (*IntegrationAttachmentGroupBy) StringsX

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

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

type IntegrationAttachmentMutation

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

IntegrationAttachmentMutation represents an operation that mutates the IntegrationAttachment nodes in the graph.

func (*IntegrationAttachmentMutation) AddField

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

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

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

func (*IntegrationAttachmentMutation) AddedField

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

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

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

func (*IntegrationAttachmentMutation) AddedIDs

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

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

func (*IntegrationAttachmentMutation) ClearDeletedAt

func (m *IntegrationAttachmentMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationAttachmentMutation) ClearEdge

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

func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ClearIntegration

func (m *IntegrationAttachmentMutation) ClearIntegration()

ClearIntegration clears the "integration" edge to the Integration entity.

func (*IntegrationAttachmentMutation) ClearWorkflow

func (m *IntegrationAttachmentMutation) ClearWorkflow()

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

func (*IntegrationAttachmentMutation) ClearedEdges

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

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

func (*IntegrationAttachmentMutation) ClearedFields

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

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

func (IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) Config

Config returns the value of the "config" field in the mutation.

func (*IntegrationAttachmentMutation) CreatedAt

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

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

func (*IntegrationAttachmentMutation) DeletedAt

func (m *IntegrationAttachmentMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*IntegrationAttachmentMutation) DeletedAtCleared

func (m *IntegrationAttachmentMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*IntegrationAttachmentMutation) EdgeCleared

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

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

func (*IntegrationAttachmentMutation) Field

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 (*IntegrationAttachmentMutation) FieldCleared

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

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

func (*IntegrationAttachmentMutation) Fields

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

func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) IDs

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

func (*IntegrationAttachmentMutation) IntegrationCleared

func (m *IntegrationAttachmentMutation) IntegrationCleared() bool

IntegrationCleared reports if the "integration" edge to the Integration entity was cleared.

func (*IntegrationAttachmentMutation) IntegrationID

func (m *IntegrationAttachmentMutation) IntegrationID() (id uuid.UUID, exists bool)

IntegrationID returns the "integration" edge ID in the mutation.

func (*IntegrationAttachmentMutation) IntegrationIDs

func (m *IntegrationAttachmentMutation) IntegrationIDs() (ids []uuid.UUID)

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

func (*IntegrationAttachmentMutation) OldConfig

OldConfig returns the old "config" field's value of the IntegrationAttachment entity. If the IntegrationAttachment 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 (*IntegrationAttachmentMutation) OldCreatedAt

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

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

func (m *IntegrationAttachmentMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the IntegrationAttachment entity. If the IntegrationAttachment 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 (*IntegrationAttachmentMutation) OldField

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 (*IntegrationAttachmentMutation) Op

Op returns the operation name.

func (*IntegrationAttachmentMutation) RemovedEdges

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

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

func (*IntegrationAttachmentMutation) RemovedIDs

func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ResetConfig

func (m *IntegrationAttachmentMutation) ResetConfig()

ResetConfig resets all changes to the "config" field.

func (*IntegrationAttachmentMutation) ResetCreatedAt

func (m *IntegrationAttachmentMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*IntegrationAttachmentMutation) ResetDeletedAt

func (m *IntegrationAttachmentMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*IntegrationAttachmentMutation) ResetEdge

func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ResetField

func (m *IntegrationAttachmentMutation) 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 (*IntegrationAttachmentMutation) ResetIntegration

func (m *IntegrationAttachmentMutation) ResetIntegration()

ResetIntegration resets all changes to the "integration" edge.

func (*IntegrationAttachmentMutation) ResetWorkflow

func (m *IntegrationAttachmentMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*IntegrationAttachmentMutation) SetConfig

SetConfig sets the "config" field.

func (*IntegrationAttachmentMutation) SetCreatedAt

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

SetCreatedAt sets the "created_at" field.

func (*IntegrationAttachmentMutation) SetDeletedAt

func (m *IntegrationAttachmentMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationAttachmentMutation) SetField

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

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

func (*IntegrationAttachmentMutation) SetIntegrationID

func (m *IntegrationAttachmentMutation) SetIntegrationID(id uuid.UUID)

SetIntegrationID sets the "integration" edge to the Integration entity by id.

func (*IntegrationAttachmentMutation) SetOp

func (m *IntegrationAttachmentMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*IntegrationAttachmentMutation) SetWorkflowID

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

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

func (IntegrationAttachmentMutation) Tx

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

func (*IntegrationAttachmentMutation) Type

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

func (*IntegrationAttachmentMutation) Where

Where appends a list predicates to the IntegrationAttachmentMutation builder.

func (*IntegrationAttachmentMutation) WhereP

func (m *IntegrationAttachmentMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the IntegrationAttachmentMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*IntegrationAttachmentMutation) WorkflowCleared

func (m *IntegrationAttachmentMutation) WorkflowCleared() bool

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

func (*IntegrationAttachmentMutation) WorkflowID

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

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

func (*IntegrationAttachmentMutation) WorkflowIDs

func (m *IntegrationAttachmentMutation) 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 IntegrationAttachmentQuery

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

IntegrationAttachmentQuery is the builder for querying IntegrationAttachment entities.

func (*IntegrationAttachmentQuery) Aggregate

Aggregate returns a IntegrationAttachmentSelect configured with the given aggregations.

func (*IntegrationAttachmentQuery) All

All executes the query and returns a list of IntegrationAttachments.

func (*IntegrationAttachmentQuery) AllX

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

func (*IntegrationAttachmentQuery) Clone

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

func (*IntegrationAttachmentQuery) Count

func (iaq *IntegrationAttachmentQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*IntegrationAttachmentQuery) CountX

func (iaq *IntegrationAttachmentQuery) CountX(ctx context.Context) int

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

func (*IntegrationAttachmentQuery) Exist

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

func (*IntegrationAttachmentQuery) ExistX

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

func (*IntegrationAttachmentQuery) First

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

func (*IntegrationAttachmentQuery) FirstID

func (iaq *IntegrationAttachmentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*IntegrationAttachmentQuery) FirstIDX

func (iaq *IntegrationAttachmentQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*IntegrationAttachmentQuery) FirstX

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

func (*IntegrationAttachmentQuery) GroupBy

func (iaq *IntegrationAttachmentQuery) GroupBy(field string, fields ...string) *IntegrationAttachmentGroupBy

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.IntegrationAttachment.Query().
	GroupBy(integrationattachment.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*IntegrationAttachmentQuery) IDs

func (iaq *IntegrationAttachmentQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

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

func (*IntegrationAttachmentQuery) IDsX

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

func (*IntegrationAttachmentQuery) Limit

Limit the number of records to be returned by this query.

func (*IntegrationAttachmentQuery) Offset

Offset to start from.

func (*IntegrationAttachmentQuery) Only

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

func (*IntegrationAttachmentQuery) OnlyID

func (iaq *IntegrationAttachmentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*IntegrationAttachmentQuery) OnlyIDX

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

func (*IntegrationAttachmentQuery) OnlyX

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

func (*IntegrationAttachmentQuery) Order

Order specifies how the records should be ordered.

func (*IntegrationAttachmentQuery) QueryIntegration

func (iaq *IntegrationAttachmentQuery) QueryIntegration() *IntegrationQuery

QueryIntegration chains the current query on the "integration" edge.

func (*IntegrationAttachmentQuery) QueryWorkflow

func (iaq *IntegrationAttachmentQuery) QueryWorkflow() *WorkflowQuery

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

func (*IntegrationAttachmentQuery) Select

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.IntegrationAttachment.Query().
	Select(integrationattachment.FieldCreatedAt).
	Scan(ctx, &v)

func (*IntegrationAttachmentQuery) Unique

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

func (*IntegrationAttachmentQuery) Where

Where adds a new predicate for the IntegrationAttachmentQuery builder.

func (*IntegrationAttachmentQuery) WithIntegration

func (iaq *IntegrationAttachmentQuery) WithIntegration(opts ...func(*IntegrationQuery)) *IntegrationAttachmentQuery

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

func (*IntegrationAttachmentQuery) WithWorkflow

func (iaq *IntegrationAttachmentQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *IntegrationAttachmentQuery

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 IntegrationAttachmentSelect

type IntegrationAttachmentSelect struct {
	*IntegrationAttachmentQuery
	// contains filtered or unexported fields
}

IntegrationAttachmentSelect is the builder for selecting fields of IntegrationAttachment entities.

func (*IntegrationAttachmentSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*IntegrationAttachmentSelect) Bool

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

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

func (*IntegrationAttachmentSelect) BoolX

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

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

func (*IntegrationAttachmentSelect) Bools

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

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

func (*IntegrationAttachmentSelect) BoolsX

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

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

func (*IntegrationAttachmentSelect) Float64

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

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

func (*IntegrationAttachmentSelect) Float64X

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

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

func (*IntegrationAttachmentSelect) Float64s

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

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

func (*IntegrationAttachmentSelect) Float64sX

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

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

func (*IntegrationAttachmentSelect) Int

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

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

func (*IntegrationAttachmentSelect) IntX

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

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

func (*IntegrationAttachmentSelect) Ints

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

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

func (*IntegrationAttachmentSelect) IntsX

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

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

func (*IntegrationAttachmentSelect) Scan

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

func (*IntegrationAttachmentSelect) ScanX

func (s *IntegrationAttachmentSelect) ScanX(ctx context.Context, v any)

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

func (*IntegrationAttachmentSelect) String

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

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

func (*IntegrationAttachmentSelect) StringX

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

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

func (*IntegrationAttachmentSelect) Strings

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

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

func (*IntegrationAttachmentSelect) StringsX

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

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

type IntegrationAttachmentUpdate

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

IntegrationAttachmentUpdate is the builder for updating IntegrationAttachment entities.

func (*IntegrationAttachmentUpdate) ClearDeletedAt

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationAttachmentUpdate) ClearIntegration

ClearIntegration clears the "integration" edge to the Integration entity.

func (*IntegrationAttachmentUpdate) ClearWorkflow

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

func (*IntegrationAttachmentUpdate) Exec

Exec executes the query.

func (*IntegrationAttachmentUpdate) ExecX

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

func (*IntegrationAttachmentUpdate) Mutation

Mutation returns the IntegrationAttachmentMutation object of the builder.

func (*IntegrationAttachmentUpdate) Save

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

func (*IntegrationAttachmentUpdate) SaveX

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

func (*IntegrationAttachmentUpdate) SetConfig

SetConfig sets the "config" field.

func (*IntegrationAttachmentUpdate) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationAttachmentUpdate) SetIntegration

SetIntegration sets the "integration" edge to the Integration entity.

func (*IntegrationAttachmentUpdate) SetIntegrationID

SetIntegrationID sets the "integration" edge to the Integration entity by ID.

func (*IntegrationAttachmentUpdate) SetNillableDeletedAt

func (iau *IntegrationAttachmentUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationAttachmentUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationAttachmentUpdate) SetWorkflow

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

func (*IntegrationAttachmentUpdate) SetWorkflowID

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

func (*IntegrationAttachmentUpdate) Where

Where appends a list predicates to the IntegrationAttachmentUpdate builder.

type IntegrationAttachmentUpdateOne

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

IntegrationAttachmentUpdateOne is the builder for updating a single IntegrationAttachment entity.

func (*IntegrationAttachmentUpdateOne) ClearDeletedAt

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationAttachmentUpdateOne) ClearIntegration

ClearIntegration clears the "integration" edge to the Integration entity.

func (*IntegrationAttachmentUpdateOne) ClearWorkflow

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

func (*IntegrationAttachmentUpdateOne) Exec

Exec executes the query on the entity.

func (*IntegrationAttachmentUpdateOne) ExecX

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

func (*IntegrationAttachmentUpdateOne) Mutation

Mutation returns the IntegrationAttachmentMutation object of the builder.

func (*IntegrationAttachmentUpdateOne) Save

Save executes the query and returns the updated IntegrationAttachment entity.

func (*IntegrationAttachmentUpdateOne) SaveX

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

func (*IntegrationAttachmentUpdateOne) Select

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

func (*IntegrationAttachmentUpdateOne) SetConfig

SetConfig sets the "config" field.

func (*IntegrationAttachmentUpdateOne) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationAttachmentUpdateOne) SetIntegration

SetIntegration sets the "integration" edge to the Integration entity.

func (*IntegrationAttachmentUpdateOne) SetIntegrationID

SetIntegrationID sets the "integration" edge to the Integration entity by ID.

func (*IntegrationAttachmentUpdateOne) SetNillableDeletedAt

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationAttachmentUpdateOne) SetWorkflow

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

func (*IntegrationAttachmentUpdateOne) SetWorkflowID

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

func (*IntegrationAttachmentUpdateOne) Where

Where appends a list predicates to the IntegrationAttachmentUpdate builder.

type IntegrationAttachments

type IntegrationAttachments []*IntegrationAttachment

IntegrationAttachments is a parsable slice of IntegrationAttachment.

type IntegrationClient

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

IntegrationClient is a client for the Integration schema.

func NewIntegrationClient

func NewIntegrationClient(c config) *IntegrationClient

NewIntegrationClient returns a client for the Integration from the given config.

func (*IntegrationClient) Create

func (c *IntegrationClient) Create() *IntegrationCreate

Create returns a builder for creating a Integration entity.

func (*IntegrationClient) CreateBulk

func (c *IntegrationClient) CreateBulk(builders ...*IntegrationCreate) *IntegrationCreateBulk

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

func (*IntegrationClient) Delete

func (c *IntegrationClient) Delete() *IntegrationDelete

Delete returns a delete builder for Integration.

func (*IntegrationClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*IntegrationClient) DeleteOneID

func (c *IntegrationClient) DeleteOneID(id uuid.UUID) *IntegrationDeleteOne

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

func (*IntegrationClient) Get

Get returns a Integration entity by its id.

func (*IntegrationClient) GetX

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

func (*IntegrationClient) Hooks

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

Hooks returns the client hooks.

func (*IntegrationClient) Intercept

func (c *IntegrationClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `integration.Intercept(f(g(h())))`.

func (*IntegrationClient) Interceptors

func (c *IntegrationClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*IntegrationClient) Query

func (c *IntegrationClient) Query() *IntegrationQuery

Query returns a query builder for Integration.

func (*IntegrationClient) QueryAttachments

func (c *IntegrationClient) QueryAttachments(i *Integration) *IntegrationAttachmentQuery

QueryAttachments queries the attachments edge of a Integration.

func (*IntegrationClient) QueryOrganization

func (c *IntegrationClient) QueryOrganization(i *Integration) *OrganizationQuery

QueryOrganization queries the organization edge of a Integration.

func (*IntegrationClient) Update

func (c *IntegrationClient) Update() *IntegrationUpdate

Update returns an update builder for Integration.

func (*IntegrationClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*IntegrationClient) UpdateOneID

func (c *IntegrationClient) UpdateOneID(id uuid.UUID) *IntegrationUpdateOne

UpdateOneID returns an update builder for the given id.

func (*IntegrationClient) Use

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

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

type IntegrationCreate

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

IntegrationCreate is the builder for creating a Integration entity.

func (*IntegrationCreate) AddAttachmentIDs

func (ic *IntegrationCreate) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationCreate

AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by IDs.

func (*IntegrationCreate) AddAttachments

func (ic *IntegrationCreate) AddAttachments(i ...*IntegrationAttachment) *IntegrationCreate

AddAttachments adds the "attachments" edges to the IntegrationAttachment entity.

func (*IntegrationCreate) Exec

func (ic *IntegrationCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*IntegrationCreate) ExecX

func (ic *IntegrationCreate) ExecX(ctx context.Context)

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

func (*IntegrationCreate) Mutation

func (ic *IntegrationCreate) Mutation() *IntegrationMutation

Mutation returns the IntegrationMutation object of the builder.

func (*IntegrationCreate) Save

Save creates the Integration in the database.

func (*IntegrationCreate) SaveX

func (ic *IntegrationCreate) SaveX(ctx context.Context) *Integration

SaveX calls Save and panics if Save returns an error.

func (*IntegrationCreate) SetConfig

SetConfig sets the "config" field.

func (*IntegrationCreate) SetCreatedAt

func (ic *IntegrationCreate) SetCreatedAt(t time.Time) *IntegrationCreate

SetCreatedAt sets the "created_at" field.

func (*IntegrationCreate) SetDeletedAt

func (ic *IntegrationCreate) SetDeletedAt(t time.Time) *IntegrationCreate

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationCreate) SetID

SetID sets the "id" field.

func (*IntegrationCreate) SetKind

func (ic *IntegrationCreate) SetKind(s string) *IntegrationCreate

SetKind sets the "kind" field.

func (*IntegrationCreate) SetNillableCreatedAt

func (ic *IntegrationCreate) SetNillableCreatedAt(t *time.Time) *IntegrationCreate

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

func (*IntegrationCreate) SetNillableDeletedAt

func (ic *IntegrationCreate) SetNillableDeletedAt(t *time.Time) *IntegrationCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationCreate) SetNillableID

func (ic *IntegrationCreate) SetNillableID(u *uuid.UUID) *IntegrationCreate

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

func (*IntegrationCreate) SetOrganization

func (ic *IntegrationCreate) SetOrganization(o *Organization) *IntegrationCreate

SetOrganization sets the "organization" edge to the Organization entity.

func (*IntegrationCreate) SetOrganizationID

func (ic *IntegrationCreate) SetOrganizationID(id uuid.UUID) *IntegrationCreate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*IntegrationCreate) SetSecretName

func (ic *IntegrationCreate) SetSecretName(s string) *IntegrationCreate

SetSecretName sets the "secret_name" field.

type IntegrationCreateBulk

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

IntegrationCreateBulk is the builder for creating many Integration entities in bulk.

func (*IntegrationCreateBulk) Exec

func (icb *IntegrationCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*IntegrationCreateBulk) ExecX

func (icb *IntegrationCreateBulk) ExecX(ctx context.Context)

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

func (*IntegrationCreateBulk) Save

func (icb *IntegrationCreateBulk) Save(ctx context.Context) ([]*Integration, error)

Save creates the Integration entities in the database.

func (*IntegrationCreateBulk) SaveX

func (icb *IntegrationCreateBulk) SaveX(ctx context.Context) []*Integration

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

type IntegrationDelete

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

IntegrationDelete is the builder for deleting a Integration entity.

func (*IntegrationDelete) Exec

func (id *IntegrationDelete) Exec(ctx context.Context) (int, error)

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

func (*IntegrationDelete) ExecX

func (id *IntegrationDelete) ExecX(ctx context.Context) int

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

func (*IntegrationDelete) Where

Where appends a list predicates to the IntegrationDelete builder.

type IntegrationDeleteOne

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

IntegrationDeleteOne is the builder for deleting a single Integration entity.

func (*IntegrationDeleteOne) Exec

func (ido *IntegrationDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*IntegrationDeleteOne) ExecX

func (ido *IntegrationDeleteOne) ExecX(ctx context.Context)

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

func (*IntegrationDeleteOne) Where

Where appends a list predicates to the IntegrationDelete builder.

type IntegrationEdges

type IntegrationEdges struct {
	// Attachments holds the value of the attachments edge.
	Attachments []*IntegrationAttachment `json:"attachments,omitempty"`
	// Organization holds the value of the organization edge.
	Organization *Organization `json:"organization,omitempty"`
	// contains filtered or unexported fields
}

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

func (IntegrationEdges) AttachmentsOrErr

func (e IntegrationEdges) AttachmentsOrErr() ([]*IntegrationAttachment, error)

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

func (IntegrationEdges) OrganizationOrErr

func (e IntegrationEdges) OrganizationOrErr() (*Organization, error)

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

type IntegrationGroupBy

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

IntegrationGroupBy is the group-by builder for Integration entities.

func (*IntegrationGroupBy) Aggregate

func (igb *IntegrationGroupBy) Aggregate(fns ...AggregateFunc) *IntegrationGroupBy

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

func (*IntegrationGroupBy) Bool

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

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

func (*IntegrationGroupBy) BoolX

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

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

func (*IntegrationGroupBy) Bools

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

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

func (*IntegrationGroupBy) BoolsX

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

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

func (*IntegrationGroupBy) Float64

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

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

func (*IntegrationGroupBy) Float64X

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

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

func (*IntegrationGroupBy) Float64s

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

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

func (*IntegrationGroupBy) Float64sX

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

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

func (*IntegrationGroupBy) Int

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

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

func (*IntegrationGroupBy) IntX

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

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

func (*IntegrationGroupBy) Ints

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

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

func (*IntegrationGroupBy) IntsX

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

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

func (*IntegrationGroupBy) Scan

func (igb *IntegrationGroupBy) Scan(ctx context.Context, v any) error

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

func (*IntegrationGroupBy) ScanX

func (s *IntegrationGroupBy) ScanX(ctx context.Context, v any)

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

func (*IntegrationGroupBy) String

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

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

func (*IntegrationGroupBy) StringX

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

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

func (*IntegrationGroupBy) Strings

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

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

func (*IntegrationGroupBy) StringsX

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

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

type IntegrationMutation

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

IntegrationMutation represents an operation that mutates the Integration nodes in the graph.

func (*IntegrationMutation) AddAttachmentIDs

func (m *IntegrationMutation) AddAttachmentIDs(ids ...uuid.UUID)

AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by ids.

func (*IntegrationMutation) AddField

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

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

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

func (*IntegrationMutation) AddedField

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

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

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

func (*IntegrationMutation) AddedIDs

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

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

func (*IntegrationMutation) AttachmentsCleared

func (m *IntegrationMutation) AttachmentsCleared() bool

AttachmentsCleared reports if the "attachments" edge to the IntegrationAttachment entity was cleared.

func (*IntegrationMutation) AttachmentsIDs

func (m *IntegrationMutation) AttachmentsIDs() (ids []uuid.UUID)

AttachmentsIDs returns the "attachments" edge IDs in the mutation.

func (*IntegrationMutation) ClearAttachments

func (m *IntegrationMutation) ClearAttachments()

ClearAttachments clears the "attachments" edge to the IntegrationAttachment entity.

func (*IntegrationMutation) ClearDeletedAt

func (m *IntegrationMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationMutation) ClearEdge

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

func (m *IntegrationMutation) 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 (*IntegrationMutation) ClearOrganization

func (m *IntegrationMutation) ClearOrganization()

ClearOrganization clears the "organization" edge to the Organization entity.

func (*IntegrationMutation) ClearedEdges

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

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

func (*IntegrationMutation) ClearedFields

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

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

func (IntegrationMutation) Client

func (m IntegrationMutation) 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 (*IntegrationMutation) Config

func (m *IntegrationMutation) Config() (r *v1.IntegrationConfig, exists bool)

Config returns the value of the "config" field in the mutation.

func (*IntegrationMutation) CreatedAt

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

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

func (*IntegrationMutation) DeletedAt

func (m *IntegrationMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*IntegrationMutation) DeletedAtCleared

func (m *IntegrationMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*IntegrationMutation) EdgeCleared

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

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

func (*IntegrationMutation) Field

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

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

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

func (*IntegrationMutation) Fields

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

func (m *IntegrationMutation) 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 (*IntegrationMutation) IDs

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

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

func (*IntegrationMutation) Kind

func (m *IntegrationMutation) Kind() (r string, exists bool)

Kind returns the value of the "kind" field in the mutation.

func (*IntegrationMutation) OldConfig

func (m *IntegrationMutation) OldConfig(ctx context.Context) (v *v1.IntegrationConfig, err error)

OldConfig returns the old "config" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldCreatedAt

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

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

func (m *IntegrationMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldField

func (m *IntegrationMutation) 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 (*IntegrationMutation) OldKind

func (m *IntegrationMutation) OldKind(ctx context.Context) (v string, err error)

OldKind returns the old "kind" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) OldSecretName

func (m *IntegrationMutation) OldSecretName(ctx context.Context) (v string, err error)

OldSecretName returns the old "secret_name" field's value of the Integration entity. If the Integration 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 (*IntegrationMutation) Op

func (m *IntegrationMutation) Op() Op

Op returns the operation name.

func (*IntegrationMutation) OrganizationCleared

func (m *IntegrationMutation) OrganizationCleared() bool

OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.

func (*IntegrationMutation) OrganizationID

func (m *IntegrationMutation) OrganizationID() (id uuid.UUID, exists bool)

OrganizationID returns the "organization" edge ID in the mutation.

func (*IntegrationMutation) OrganizationIDs

func (m *IntegrationMutation) OrganizationIDs() (ids []uuid.UUID)

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

func (*IntegrationMutation) RemoveAttachmentIDs

func (m *IntegrationMutation) RemoveAttachmentIDs(ids ...uuid.UUID)

RemoveAttachmentIDs removes the "attachments" edge to the IntegrationAttachment entity by IDs.

func (*IntegrationMutation) RemovedAttachmentsIDs

func (m *IntegrationMutation) RemovedAttachmentsIDs() (ids []uuid.UUID)

RemovedAttachments returns the removed IDs of the "attachments" edge to the IntegrationAttachment entity.

func (*IntegrationMutation) RemovedEdges

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

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

func (*IntegrationMutation) RemovedIDs

func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetAttachments

func (m *IntegrationMutation) ResetAttachments()

ResetAttachments resets all changes to the "attachments" edge.

func (*IntegrationMutation) ResetConfig

func (m *IntegrationMutation) ResetConfig()

ResetConfig resets all changes to the "config" field.

func (*IntegrationMutation) ResetCreatedAt

func (m *IntegrationMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*IntegrationMutation) ResetDeletedAt

func (m *IntegrationMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*IntegrationMutation) ResetEdge

func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetField

func (m *IntegrationMutation) 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 (*IntegrationMutation) ResetKind

func (m *IntegrationMutation) ResetKind()

ResetKind resets all changes to the "kind" field.

func (*IntegrationMutation) ResetOrganization

func (m *IntegrationMutation) ResetOrganization()

ResetOrganization resets all changes to the "organization" edge.

func (*IntegrationMutation) ResetSecretName

func (m *IntegrationMutation) ResetSecretName()

ResetSecretName resets all changes to the "secret_name" field.

func (*IntegrationMutation) SecretName

func (m *IntegrationMutation) SecretName() (r string, exists bool)

SecretName returns the value of the "secret_name" field in the mutation.

func (*IntegrationMutation) SetConfig

func (m *IntegrationMutation) SetConfig(vc *v1.IntegrationConfig)

SetConfig sets the "config" field.

func (*IntegrationMutation) SetCreatedAt

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

SetCreatedAt sets the "created_at" field.

func (*IntegrationMutation) SetDeletedAt

func (m *IntegrationMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationMutation) SetField

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

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

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

func (*IntegrationMutation) SetKind

func (m *IntegrationMutation) SetKind(s string)

SetKind sets the "kind" field.

func (*IntegrationMutation) SetOp

func (m *IntegrationMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*IntegrationMutation) SetOrganizationID

func (m *IntegrationMutation) SetOrganizationID(id uuid.UUID)

SetOrganizationID sets the "organization" edge to the Organization entity by id.

func (*IntegrationMutation) SetSecretName

func (m *IntegrationMutation) SetSecretName(s string)

SetSecretName sets the "secret_name" field.

func (IntegrationMutation) Tx

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

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

func (*IntegrationMutation) Type

func (m *IntegrationMutation) Type() string

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

func (*IntegrationMutation) Where

func (m *IntegrationMutation) Where(ps ...predicate.Integration)

Where appends a list predicates to the IntegrationMutation builder.

func (*IntegrationMutation) WhereP

func (m *IntegrationMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the IntegrationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type IntegrationQuery

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

IntegrationQuery is the builder for querying Integration entities.

func (*IntegrationQuery) Aggregate

func (iq *IntegrationQuery) Aggregate(fns ...AggregateFunc) *IntegrationSelect

Aggregate returns a IntegrationSelect configured with the given aggregations.

func (*IntegrationQuery) All

func (iq *IntegrationQuery) All(ctx context.Context) ([]*Integration, error)

All executes the query and returns a list of Integrations.

func (*IntegrationQuery) AllX

func (iq *IntegrationQuery) AllX(ctx context.Context) []*Integration

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

func (*IntegrationQuery) Clone

func (iq *IntegrationQuery) Clone() *IntegrationQuery

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

func (*IntegrationQuery) Count

func (iq *IntegrationQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*IntegrationQuery) CountX

func (iq *IntegrationQuery) CountX(ctx context.Context) int

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

func (*IntegrationQuery) Exist

func (iq *IntegrationQuery) Exist(ctx context.Context) (bool, error)

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

func (*IntegrationQuery) ExistX

func (iq *IntegrationQuery) ExistX(ctx context.Context) bool

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

func (*IntegrationQuery) First

func (iq *IntegrationQuery) First(ctx context.Context) (*Integration, error)

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

func (*IntegrationQuery) FirstID

func (iq *IntegrationQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*IntegrationQuery) FirstIDX

func (iq *IntegrationQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*IntegrationQuery) FirstX

func (iq *IntegrationQuery) FirstX(ctx context.Context) *Integration

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

func (*IntegrationQuery) GroupBy

func (iq *IntegrationQuery) GroupBy(field string, fields ...string) *IntegrationGroupBy

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

client.Integration.Query().
	GroupBy(integration.FieldKind).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*IntegrationQuery) IDs

func (iq *IntegrationQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

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

func (*IntegrationQuery) IDsX

func (iq *IntegrationQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*IntegrationQuery) Limit

func (iq *IntegrationQuery) Limit(limit int) *IntegrationQuery

Limit the number of records to be returned by this query.

func (*IntegrationQuery) Offset

func (iq *IntegrationQuery) Offset(offset int) *IntegrationQuery

Offset to start from.

func (*IntegrationQuery) Only

func (iq *IntegrationQuery) Only(ctx context.Context) (*Integration, error)

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

func (*IntegrationQuery) OnlyID

func (iq *IntegrationQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*IntegrationQuery) OnlyIDX

func (iq *IntegrationQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*IntegrationQuery) OnlyX

func (iq *IntegrationQuery) OnlyX(ctx context.Context) *Integration

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

func (*IntegrationQuery) Order

func (iq *IntegrationQuery) Order(o ...OrderFunc) *IntegrationQuery

Order specifies how the records should be ordered.

func (*IntegrationQuery) QueryAttachments

func (iq *IntegrationQuery) QueryAttachments() *IntegrationAttachmentQuery

QueryAttachments chains the current query on the "attachments" edge.

func (*IntegrationQuery) QueryOrganization

func (iq *IntegrationQuery) QueryOrganization() *OrganizationQuery

QueryOrganization chains the current query on the "organization" edge.

func (*IntegrationQuery) Select

func (iq *IntegrationQuery) Select(fields ...string) *IntegrationSelect

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

client.Integration.Query().
	Select(integration.FieldKind).
	Scan(ctx, &v)

func (*IntegrationQuery) Unique

func (iq *IntegrationQuery) Unique(unique bool) *IntegrationQuery

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

Where adds a new predicate for the IntegrationQuery builder.

func (*IntegrationQuery) WithAttachments

func (iq *IntegrationQuery) WithAttachments(opts ...func(*IntegrationAttachmentQuery)) *IntegrationQuery

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

func (*IntegrationQuery) WithOrganization

func (iq *IntegrationQuery) WithOrganization(opts ...func(*OrganizationQuery)) *IntegrationQuery

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

type IntegrationSelect

type IntegrationSelect struct {
	*IntegrationQuery
	// contains filtered or unexported fields
}

IntegrationSelect is the builder for selecting fields of Integration entities.

func (*IntegrationSelect) Aggregate

func (is *IntegrationSelect) Aggregate(fns ...AggregateFunc) *IntegrationSelect

Aggregate adds the given aggregation functions to the selector query.

func (*IntegrationSelect) Bool

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

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

func (*IntegrationSelect) BoolX

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

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

func (*IntegrationSelect) Bools

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

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

func (*IntegrationSelect) BoolsX

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

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

func (*IntegrationSelect) Float64

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

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

func (*IntegrationSelect) Float64X

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

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

func (*IntegrationSelect) Float64s

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

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

func (*IntegrationSelect) Float64sX

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

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

func (*IntegrationSelect) Int

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

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

func (*IntegrationSelect) IntX

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

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

func (*IntegrationSelect) Ints

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

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

func (*IntegrationSelect) IntsX

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

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

func (*IntegrationSelect) Scan

func (is *IntegrationSelect) Scan(ctx context.Context, v any) error

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

func (*IntegrationSelect) ScanX

func (s *IntegrationSelect) ScanX(ctx context.Context, v any)

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

func (*IntegrationSelect) String

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

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

func (*IntegrationSelect) StringX

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

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

func (*IntegrationSelect) Strings

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

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

func (*IntegrationSelect) StringsX

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

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

type IntegrationUpdate

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

IntegrationUpdate is the builder for updating Integration entities.

func (*IntegrationUpdate) AddAttachmentIDs

func (iu *IntegrationUpdate) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdate

AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by IDs.

func (*IntegrationUpdate) AddAttachments

func (iu *IntegrationUpdate) AddAttachments(i ...*IntegrationAttachment) *IntegrationUpdate

AddAttachments adds the "attachments" edges to the IntegrationAttachment entity.

func (*IntegrationUpdate) ClearAttachments

func (iu *IntegrationUpdate) ClearAttachments() *IntegrationUpdate

ClearAttachments clears all "attachments" edges to the IntegrationAttachment entity.

func (*IntegrationUpdate) ClearDeletedAt

func (iu *IntegrationUpdate) ClearDeletedAt() *IntegrationUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationUpdate) ClearOrganization

func (iu *IntegrationUpdate) ClearOrganization() *IntegrationUpdate

ClearOrganization clears the "organization" edge to the Organization entity.

func (*IntegrationUpdate) Exec

func (iu *IntegrationUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*IntegrationUpdate) ExecX

func (iu *IntegrationUpdate) ExecX(ctx context.Context)

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

func (*IntegrationUpdate) Mutation

func (iu *IntegrationUpdate) Mutation() *IntegrationMutation

Mutation returns the IntegrationMutation object of the builder.

func (*IntegrationUpdate) RemoveAttachmentIDs

func (iu *IntegrationUpdate) RemoveAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdate

RemoveAttachmentIDs removes the "attachments" edge to IntegrationAttachment entities by IDs.

func (*IntegrationUpdate) RemoveAttachments

func (iu *IntegrationUpdate) RemoveAttachments(i ...*IntegrationAttachment) *IntegrationUpdate

RemoveAttachments removes "attachments" edges to IntegrationAttachment entities.

func (*IntegrationUpdate) Save

func (iu *IntegrationUpdate) Save(ctx context.Context) (int, error)

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

func (*IntegrationUpdate) SaveX

func (iu *IntegrationUpdate) SaveX(ctx context.Context) int

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

func (*IntegrationUpdate) SetConfig

SetConfig sets the "config" field.

func (*IntegrationUpdate) SetDeletedAt

func (iu *IntegrationUpdate) SetDeletedAt(t time.Time) *IntegrationUpdate

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationUpdate) SetNillableDeletedAt

func (iu *IntegrationUpdate) SetNillableDeletedAt(t *time.Time) *IntegrationUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationUpdate) SetOrganization

func (iu *IntegrationUpdate) SetOrganization(o *Organization) *IntegrationUpdate

SetOrganization sets the "organization" edge to the Organization entity.

func (*IntegrationUpdate) SetOrganizationID

func (iu *IntegrationUpdate) SetOrganizationID(id uuid.UUID) *IntegrationUpdate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*IntegrationUpdate) Where

Where appends a list predicates to the IntegrationUpdate builder.

type IntegrationUpdateOne

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

IntegrationUpdateOne is the builder for updating a single Integration entity.

func (*IntegrationUpdateOne) AddAttachmentIDs

func (iuo *IntegrationUpdateOne) AddAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdateOne

AddAttachmentIDs adds the "attachments" edge to the IntegrationAttachment entity by IDs.

func (*IntegrationUpdateOne) AddAttachments

AddAttachments adds the "attachments" edges to the IntegrationAttachment entity.

func (*IntegrationUpdateOne) ClearAttachments

func (iuo *IntegrationUpdateOne) ClearAttachments() *IntegrationUpdateOne

ClearAttachments clears all "attachments" edges to the IntegrationAttachment entity.

func (*IntegrationUpdateOne) ClearDeletedAt

func (iuo *IntegrationUpdateOne) ClearDeletedAt() *IntegrationUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*IntegrationUpdateOne) ClearOrganization

func (iuo *IntegrationUpdateOne) ClearOrganization() *IntegrationUpdateOne

ClearOrganization clears the "organization" edge to the Organization entity.

func (*IntegrationUpdateOne) Exec

func (iuo *IntegrationUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*IntegrationUpdateOne) ExecX

func (iuo *IntegrationUpdateOne) ExecX(ctx context.Context)

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

func (*IntegrationUpdateOne) Mutation

func (iuo *IntegrationUpdateOne) Mutation() *IntegrationMutation

Mutation returns the IntegrationMutation object of the builder.

func (*IntegrationUpdateOne) RemoveAttachmentIDs

func (iuo *IntegrationUpdateOne) RemoveAttachmentIDs(ids ...uuid.UUID) *IntegrationUpdateOne

RemoveAttachmentIDs removes the "attachments" edge to IntegrationAttachment entities by IDs.

func (*IntegrationUpdateOne) RemoveAttachments

func (iuo *IntegrationUpdateOne) RemoveAttachments(i ...*IntegrationAttachment) *IntegrationUpdateOne

RemoveAttachments removes "attachments" edges to IntegrationAttachment entities.

func (*IntegrationUpdateOne) Save

Save executes the query and returns the updated Integration entity.

func (*IntegrationUpdateOne) SaveX

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

func (*IntegrationUpdateOne) Select

func (iuo *IntegrationUpdateOne) Select(field string, fields ...string) *IntegrationUpdateOne

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

func (*IntegrationUpdateOne) SetConfig

SetConfig sets the "config" field.

func (*IntegrationUpdateOne) SetDeletedAt

func (iuo *IntegrationUpdateOne) SetDeletedAt(t time.Time) *IntegrationUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*IntegrationUpdateOne) SetNillableDeletedAt

func (iuo *IntegrationUpdateOne) SetNillableDeletedAt(t *time.Time) *IntegrationUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*IntegrationUpdateOne) SetOrganization

func (iuo *IntegrationUpdateOne) SetOrganization(o *Organization) *IntegrationUpdateOne

SetOrganization sets the "organization" edge to the Organization entity.

func (*IntegrationUpdateOne) SetOrganizationID

func (iuo *IntegrationUpdateOne) SetOrganizationID(id uuid.UUID) *IntegrationUpdateOne

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*IntegrationUpdateOne) Where

Where appends a list predicates to the IntegrationUpdate builder.

type Integrations

type Integrations []*Integration

Integrations is a parsable slice of Integration.

type InterceptFunc

type InterceptFunc = ent.InterceptFunc

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

type Interceptor

type Interceptor = ent.Interceptor

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

type Membership

type Membership struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Current holds the value of the "current" field.
	Current bool `json:"current,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the MembershipQuery when eager-loading is set.
	Edges MembershipEdges `json:"edges"`
	// contains filtered or unexported fields
}

Membership is the model entity for the Membership schema.

func (*Membership) QueryOrganization

func (m *Membership) QueryOrganization() *OrganizationQuery

QueryOrganization queries the "organization" edge of the Membership entity.

func (*Membership) QueryUser

func (m *Membership) QueryUser() *UserQuery

QueryUser queries the "user" edge of the Membership entity.

func (*Membership) String

func (m *Membership) String() string

String implements the fmt.Stringer.

func (*Membership) Unwrap

func (m *Membership) Unwrap() *Membership

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

func (m *Membership) Update() *MembershipUpdateOne

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

type MembershipClient

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

MembershipClient is a client for the Membership schema.

func NewMembershipClient

func NewMembershipClient(c config) *MembershipClient

NewMembershipClient returns a client for the Membership from the given config.

func (*MembershipClient) Create

func (c *MembershipClient) Create() *MembershipCreate

Create returns a builder for creating a Membership entity.

func (*MembershipClient) CreateBulk

func (c *MembershipClient) CreateBulk(builders ...*MembershipCreate) *MembershipCreateBulk

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

func (*MembershipClient) Delete

func (c *MembershipClient) Delete() *MembershipDelete

Delete returns a delete builder for Membership.

func (*MembershipClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*MembershipClient) DeleteOneID

func (c *MembershipClient) DeleteOneID(id uuid.UUID) *MembershipDeleteOne

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

func (*MembershipClient) Get

Get returns a Membership entity by its id.

func (*MembershipClient) GetX

func (c *MembershipClient) GetX(ctx context.Context, id uuid.UUID) *Membership

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

func (*MembershipClient) Hooks

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

Hooks returns the client hooks.

func (*MembershipClient) Intercept

func (c *MembershipClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `membership.Intercept(f(g(h())))`.

func (*MembershipClient) Interceptors

func (c *MembershipClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*MembershipClient) Query

func (c *MembershipClient) Query() *MembershipQuery

Query returns a query builder for Membership.

func (*MembershipClient) QueryOrganization

func (c *MembershipClient) QueryOrganization(m *Membership) *OrganizationQuery

QueryOrganization queries the organization edge of a Membership.

func (*MembershipClient) QueryUser

func (c *MembershipClient) QueryUser(m *Membership) *UserQuery

QueryUser queries the user edge of a Membership.

func (*MembershipClient) Update

func (c *MembershipClient) Update() *MembershipUpdate

Update returns an update builder for Membership.

func (*MembershipClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*MembershipClient) UpdateOneID

func (c *MembershipClient) UpdateOneID(id uuid.UUID) *MembershipUpdateOne

UpdateOneID returns an update builder for the given id.

func (*MembershipClient) Use

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

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

type MembershipCreate

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

MembershipCreate is the builder for creating a Membership entity.

func (*MembershipCreate) Exec

func (mc *MembershipCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*MembershipCreate) ExecX

func (mc *MembershipCreate) ExecX(ctx context.Context)

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

func (*MembershipCreate) Mutation

func (mc *MembershipCreate) Mutation() *MembershipMutation

Mutation returns the MembershipMutation object of the builder.

func (*MembershipCreate) Save

func (mc *MembershipCreate) Save(ctx context.Context) (*Membership, error)

Save creates the Membership in the database.

func (*MembershipCreate) SaveX

func (mc *MembershipCreate) SaveX(ctx context.Context) *Membership

SaveX calls Save and panics if Save returns an error.

func (*MembershipCreate) SetCreatedAt

func (mc *MembershipCreate) SetCreatedAt(t time.Time) *MembershipCreate

SetCreatedAt sets the "created_at" field.

func (*MembershipCreate) SetCurrent

func (mc *MembershipCreate) SetCurrent(b bool) *MembershipCreate

SetCurrent sets the "current" field.

func (*MembershipCreate) SetID

SetID sets the "id" field.

func (*MembershipCreate) SetNillableCreatedAt

func (mc *MembershipCreate) SetNillableCreatedAt(t *time.Time) *MembershipCreate

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

func (*MembershipCreate) SetNillableCurrent

func (mc *MembershipCreate) SetNillableCurrent(b *bool) *MembershipCreate

SetNillableCurrent sets the "current" field if the given value is not nil.

func (*MembershipCreate) SetNillableID

func (mc *MembershipCreate) SetNillableID(u *uuid.UUID) *MembershipCreate

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

func (*MembershipCreate) SetNillableUpdatedAt

func (mc *MembershipCreate) SetNillableUpdatedAt(t *time.Time) *MembershipCreate

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

func (*MembershipCreate) SetOrganization

func (mc *MembershipCreate) SetOrganization(o *Organization) *MembershipCreate

SetOrganization sets the "organization" edge to the Organization entity.

func (*MembershipCreate) SetOrganizationID

func (mc *MembershipCreate) SetOrganizationID(id uuid.UUID) *MembershipCreate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*MembershipCreate) SetUpdatedAt

func (mc *MembershipCreate) SetUpdatedAt(t time.Time) *MembershipCreate

SetUpdatedAt sets the "updated_at" field.

func (*MembershipCreate) SetUser

func (mc *MembershipCreate) SetUser(u *User) *MembershipCreate

SetUser sets the "user" edge to the User entity.

func (*MembershipCreate) SetUserID

func (mc *MembershipCreate) SetUserID(id uuid.UUID) *MembershipCreate

SetUserID sets the "user" edge to the User entity by ID.

type MembershipCreateBulk

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

MembershipCreateBulk is the builder for creating many Membership entities in bulk.

func (*MembershipCreateBulk) Exec

func (mcb *MembershipCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*MembershipCreateBulk) ExecX

func (mcb *MembershipCreateBulk) ExecX(ctx context.Context)

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

func (*MembershipCreateBulk) Save

func (mcb *MembershipCreateBulk) Save(ctx context.Context) ([]*Membership, error)

Save creates the Membership entities in the database.

func (*MembershipCreateBulk) SaveX

func (mcb *MembershipCreateBulk) SaveX(ctx context.Context) []*Membership

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

type MembershipDelete

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

MembershipDelete is the builder for deleting a Membership entity.

func (*MembershipDelete) Exec

func (md *MembershipDelete) Exec(ctx context.Context) (int, error)

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

func (*MembershipDelete) ExecX

func (md *MembershipDelete) ExecX(ctx context.Context) int

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

func (*MembershipDelete) Where

Where appends a list predicates to the MembershipDelete builder.

type MembershipDeleteOne

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

MembershipDeleteOne is the builder for deleting a single Membership entity.

func (*MembershipDeleteOne) Exec

func (mdo *MembershipDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*MembershipDeleteOne) ExecX

func (mdo *MembershipDeleteOne) ExecX(ctx context.Context)

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

func (*MembershipDeleteOne) Where

Where appends a list predicates to the MembershipDelete builder.

type MembershipEdges

type MembershipEdges struct {
	// Organization holds the value of the organization edge.
	Organization *Organization `json:"organization,omitempty"`
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// contains filtered or unexported fields
}

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

func (MembershipEdges) OrganizationOrErr

func (e MembershipEdges) OrganizationOrErr() (*Organization, error)

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

func (MembershipEdges) UserOrErr

func (e MembershipEdges) UserOrErr() (*User, error)

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

type MembershipGroupBy

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

MembershipGroupBy is the group-by builder for Membership entities.

func (*MembershipGroupBy) Aggregate

func (mgb *MembershipGroupBy) Aggregate(fns ...AggregateFunc) *MembershipGroupBy

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

func (*MembershipGroupBy) Bool

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

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

func (*MembershipGroupBy) BoolX

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

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

func (*MembershipGroupBy) Bools

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

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

func (*MembershipGroupBy) BoolsX

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

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

func (*MembershipGroupBy) Float64

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

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

func (*MembershipGroupBy) Float64X

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

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

func (*MembershipGroupBy) Float64s

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

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

func (*MembershipGroupBy) Float64sX

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

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

func (*MembershipGroupBy) Int

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

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

func (*MembershipGroupBy) IntX

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

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

func (*MembershipGroupBy) Ints

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

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

func (*MembershipGroupBy) IntsX

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

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

func (*MembershipGroupBy) Scan

func (mgb *MembershipGroupBy) Scan(ctx context.Context, v any) error

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

func (*MembershipGroupBy) ScanX

func (s *MembershipGroupBy) ScanX(ctx context.Context, v any)

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

func (*MembershipGroupBy) String

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

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

func (*MembershipGroupBy) StringX

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

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

func (*MembershipGroupBy) Strings

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

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

func (*MembershipGroupBy) StringsX

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

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

type MembershipMutation

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

MembershipMutation represents an operation that mutates the Membership nodes in the graph.

func (*MembershipMutation) AddField

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

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

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

func (*MembershipMutation) AddedField

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

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

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

func (*MembershipMutation) AddedIDs

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

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

func (*MembershipMutation) ClearEdge

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

func (m *MembershipMutation) 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 (*MembershipMutation) ClearOrganization

func (m *MembershipMutation) ClearOrganization()

ClearOrganization clears the "organization" edge to the Organization entity.

func (*MembershipMutation) ClearUser

func (m *MembershipMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*MembershipMutation) ClearedEdges

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

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

func (*MembershipMutation) ClearedFields

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

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

func (MembershipMutation) Client

func (m MembershipMutation) 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 (*MembershipMutation) CreatedAt

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

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

func (*MembershipMutation) Current

func (m *MembershipMutation) Current() (r bool, exists bool)

Current returns the value of the "current" field in the mutation.

func (*MembershipMutation) EdgeCleared

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

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

func (*MembershipMutation) Field

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

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

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

func (*MembershipMutation) Fields

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

func (m *MembershipMutation) 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 (*MembershipMutation) IDs

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

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

func (*MembershipMutation) OldCreatedAt

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

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

func (m *MembershipMutation) OldCurrent(ctx context.Context) (v bool, err error)

OldCurrent returns the old "current" field's value of the Membership entity. If the Membership 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 (*MembershipMutation) OldField

func (m *MembershipMutation) 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 (*MembershipMutation) OldUpdatedAt

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

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

func (m *MembershipMutation) Op() Op

Op returns the operation name.

func (*MembershipMutation) OrganizationCleared

func (m *MembershipMutation) OrganizationCleared() bool

OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.

func (*MembershipMutation) OrganizationID

func (m *MembershipMutation) OrganizationID() (id uuid.UUID, exists bool)

OrganizationID returns the "organization" edge ID in the mutation.

func (*MembershipMutation) OrganizationIDs

func (m *MembershipMutation) OrganizationIDs() (ids []uuid.UUID)

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

func (*MembershipMutation) RemovedEdges

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

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

func (*MembershipMutation) RemovedIDs

func (m *MembershipMutation) 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 (*MembershipMutation) ResetCreatedAt

func (m *MembershipMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*MembershipMutation) ResetCurrent

func (m *MembershipMutation) ResetCurrent()

ResetCurrent resets all changes to the "current" field.

func (*MembershipMutation) ResetEdge

func (m *MembershipMutation) 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 (*MembershipMutation) ResetField

func (m *MembershipMutation) 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 (*MembershipMutation) ResetOrganization

func (m *MembershipMutation) ResetOrganization()

ResetOrganization resets all changes to the "organization" edge.

func (*MembershipMutation) ResetUpdatedAt

func (m *MembershipMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*MembershipMutation) ResetUser

func (m *MembershipMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*MembershipMutation) SetCreatedAt

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

SetCreatedAt sets the "created_at" field.

func (*MembershipMutation) SetCurrent

func (m *MembershipMutation) SetCurrent(b bool)

SetCurrent sets the "current" field.

func (*MembershipMutation) SetField

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

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

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

func (*MembershipMutation) SetOp

func (m *MembershipMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*MembershipMutation) SetOrganizationID

func (m *MembershipMutation) SetOrganizationID(id uuid.UUID)

SetOrganizationID sets the "organization" edge to the Organization entity by id.

func (*MembershipMutation) SetUpdatedAt

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

SetUpdatedAt sets the "updated_at" field.

func (*MembershipMutation) SetUserID

func (m *MembershipMutation) SetUserID(id uuid.UUID)

SetUserID sets the "user" edge to the User entity by id.

func (MembershipMutation) Tx

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

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

func (*MembershipMutation) Type

func (m *MembershipMutation) Type() string

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

func (*MembershipMutation) UpdatedAt

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

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

func (*MembershipMutation) UserCleared

func (m *MembershipMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*MembershipMutation) UserID

func (m *MembershipMutation) UserID() (id uuid.UUID, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*MembershipMutation) UserIDs

func (m *MembershipMutation) UserIDs() (ids []uuid.UUID)

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

func (*MembershipMutation) Where

func (m *MembershipMutation) Where(ps ...predicate.Membership)

Where appends a list predicates to the MembershipMutation builder.

func (*MembershipMutation) WhereP

func (m *MembershipMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the MembershipMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type MembershipQuery

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

MembershipQuery is the builder for querying Membership entities.

func (*MembershipQuery) Aggregate

func (mq *MembershipQuery) Aggregate(fns ...AggregateFunc) *MembershipSelect

Aggregate returns a MembershipSelect configured with the given aggregations.

func (*MembershipQuery) All

func (mq *MembershipQuery) All(ctx context.Context) ([]*Membership, error)

All executes the query and returns a list of Memberships.

func (*MembershipQuery) AllX

func (mq *MembershipQuery) AllX(ctx context.Context) []*Membership

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

func (*MembershipQuery) Clone

func (mq *MembershipQuery) Clone() *MembershipQuery

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

func (*MembershipQuery) Count

func (mq *MembershipQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*MembershipQuery) CountX

func (mq *MembershipQuery) CountX(ctx context.Context) int

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

func (*MembershipQuery) Exist

func (mq *MembershipQuery) Exist(ctx context.Context) (bool, error)

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

func (*MembershipQuery) ExistX

func (mq *MembershipQuery) ExistX(ctx context.Context) bool

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

func (*MembershipQuery) First

func (mq *MembershipQuery) First(ctx context.Context) (*Membership, error)

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

func (*MembershipQuery) FirstID

func (mq *MembershipQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*MembershipQuery) FirstIDX

func (mq *MembershipQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*MembershipQuery) FirstX

func (mq *MembershipQuery) FirstX(ctx context.Context) *Membership

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

func (*MembershipQuery) GroupBy

func (mq *MembershipQuery) GroupBy(field string, fields ...string) *MembershipGroupBy

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 {
	Current bool `json:"current,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Membership.Query().
	GroupBy(membership.FieldCurrent).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*MembershipQuery) IDs

func (mq *MembershipQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

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

func (*MembershipQuery) IDsX

func (mq *MembershipQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*MembershipQuery) Limit

func (mq *MembershipQuery) Limit(limit int) *MembershipQuery

Limit the number of records to be returned by this query.

func (*MembershipQuery) Offset

func (mq *MembershipQuery) Offset(offset int) *MembershipQuery

Offset to start from.

func (*MembershipQuery) Only

func (mq *MembershipQuery) Only(ctx context.Context) (*Membership, error)

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

func (*MembershipQuery) OnlyID

func (mq *MembershipQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*MembershipQuery) OnlyIDX

func (mq *MembershipQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*MembershipQuery) OnlyX

func (mq *MembershipQuery) OnlyX(ctx context.Context) *Membership

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

func (*MembershipQuery) Order

func (mq *MembershipQuery) Order(o ...OrderFunc) *MembershipQuery

Order specifies how the records should be ordered.

func (*MembershipQuery) QueryOrganization

func (mq *MembershipQuery) QueryOrganization() *OrganizationQuery

QueryOrganization chains the current query on the "organization" edge.

func (*MembershipQuery) QueryUser

func (mq *MembershipQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*MembershipQuery) Select

func (mq *MembershipQuery) Select(fields ...string) *MembershipSelect

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 {
	Current bool `json:"current,omitempty"`
}

client.Membership.Query().
	Select(membership.FieldCurrent).
	Scan(ctx, &v)

func (*MembershipQuery) Unique

func (mq *MembershipQuery) Unique(unique bool) *MembershipQuery

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

Where adds a new predicate for the MembershipQuery builder.

func (*MembershipQuery) WithOrganization

func (mq *MembershipQuery) WithOrganization(opts ...func(*OrganizationQuery)) *MembershipQuery

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

func (*MembershipQuery) WithUser

func (mq *MembershipQuery) WithUser(opts ...func(*UserQuery)) *MembershipQuery

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

type MembershipSelect

type MembershipSelect struct {
	*MembershipQuery
	// contains filtered or unexported fields
}

MembershipSelect is the builder for selecting fields of Membership entities.

func (*MembershipSelect) Aggregate

func (ms *MembershipSelect) Aggregate(fns ...AggregateFunc) *MembershipSelect

Aggregate adds the given aggregation functions to the selector query.

func (*MembershipSelect) Bool

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

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

func (*MembershipSelect) BoolX

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

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

func (*MembershipSelect) Bools

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

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

func (*MembershipSelect) BoolsX

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

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

func (*MembershipSelect) Float64

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

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

func (*MembershipSelect) Float64X

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

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

func (*MembershipSelect) Float64s

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

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

func (*MembershipSelect) Float64sX

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

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

func (*MembershipSelect) Int

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

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

func (*MembershipSelect) IntX

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

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

func (*MembershipSelect) Ints

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

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

func (*MembershipSelect) IntsX

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

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

func (*MembershipSelect) Scan

func (ms *MembershipSelect) Scan(ctx context.Context, v any) error

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

func (*MembershipSelect) ScanX

func (s *MembershipSelect) ScanX(ctx context.Context, v any)

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

func (*MembershipSelect) String

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

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

func (*MembershipSelect) StringX

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

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

func (*MembershipSelect) Strings

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

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

func (*MembershipSelect) StringsX

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

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

type MembershipUpdate

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

MembershipUpdate is the builder for updating Membership entities.

func (*MembershipUpdate) ClearOrganization

func (mu *MembershipUpdate) ClearOrganization() *MembershipUpdate

ClearOrganization clears the "organization" edge to the Organization entity.

func (*MembershipUpdate) ClearUser

func (mu *MembershipUpdate) ClearUser() *MembershipUpdate

ClearUser clears the "user" edge to the User entity.

func (*MembershipUpdate) Exec

func (mu *MembershipUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*MembershipUpdate) ExecX

func (mu *MembershipUpdate) ExecX(ctx context.Context)

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

func (*MembershipUpdate) Mutation

func (mu *MembershipUpdate) Mutation() *MembershipMutation

Mutation returns the MembershipMutation object of the builder.

func (*MembershipUpdate) Save

func (mu *MembershipUpdate) Save(ctx context.Context) (int, error)

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

func (*MembershipUpdate) SaveX

func (mu *MembershipUpdate) SaveX(ctx context.Context) int

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

func (*MembershipUpdate) SetCurrent

func (mu *MembershipUpdate) SetCurrent(b bool) *MembershipUpdate

SetCurrent sets the "current" field.

func (*MembershipUpdate) SetNillableCurrent

func (mu *MembershipUpdate) SetNillableCurrent(b *bool) *MembershipUpdate

SetNillableCurrent sets the "current" field if the given value is not nil.

func (*MembershipUpdate) SetNillableUpdatedAt

func (mu *MembershipUpdate) SetNillableUpdatedAt(t *time.Time) *MembershipUpdate

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

func (*MembershipUpdate) SetOrganization

func (mu *MembershipUpdate) SetOrganization(o *Organization) *MembershipUpdate

SetOrganization sets the "organization" edge to the Organization entity.

func (*MembershipUpdate) SetOrganizationID

func (mu *MembershipUpdate) SetOrganizationID(id uuid.UUID) *MembershipUpdate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*MembershipUpdate) SetUpdatedAt

func (mu *MembershipUpdate) SetUpdatedAt(t time.Time) *MembershipUpdate

SetUpdatedAt sets the "updated_at" field.

func (*MembershipUpdate) SetUser

func (mu *MembershipUpdate) SetUser(u *User) *MembershipUpdate

SetUser sets the "user" edge to the User entity.

func (*MembershipUpdate) SetUserID

func (mu *MembershipUpdate) SetUserID(id uuid.UUID) *MembershipUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*MembershipUpdate) Where

Where appends a list predicates to the MembershipUpdate builder.

type MembershipUpdateOne

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

MembershipUpdateOne is the builder for updating a single Membership entity.

func (*MembershipUpdateOne) ClearOrganization

func (muo *MembershipUpdateOne) ClearOrganization() *MembershipUpdateOne

ClearOrganization clears the "organization" edge to the Organization entity.

func (*MembershipUpdateOne) ClearUser

func (muo *MembershipUpdateOne) ClearUser() *MembershipUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*MembershipUpdateOne) Exec

func (muo *MembershipUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*MembershipUpdateOne) ExecX

func (muo *MembershipUpdateOne) ExecX(ctx context.Context)

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

func (*MembershipUpdateOne) Mutation

func (muo *MembershipUpdateOne) Mutation() *MembershipMutation

Mutation returns the MembershipMutation object of the builder.

func (*MembershipUpdateOne) Save

func (muo *MembershipUpdateOne) Save(ctx context.Context) (*Membership, error)

Save executes the query and returns the updated Membership entity.

func (*MembershipUpdateOne) SaveX

func (muo *MembershipUpdateOne) SaveX(ctx context.Context) *Membership

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

func (*MembershipUpdateOne) Select

func (muo *MembershipUpdateOne) Select(field string, fields ...string) *MembershipUpdateOne

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

func (*MembershipUpdateOne) SetCurrent

func (muo *MembershipUpdateOne) SetCurrent(b bool) *MembershipUpdateOne

SetCurrent sets the "current" field.

func (*MembershipUpdateOne) SetNillableCurrent

func (muo *MembershipUpdateOne) SetNillableCurrent(b *bool) *MembershipUpdateOne

SetNillableCurrent sets the "current" field if the given value is not nil.

func (*MembershipUpdateOne) SetNillableUpdatedAt

func (muo *MembershipUpdateOne) SetNillableUpdatedAt(t *time.Time) *MembershipUpdateOne

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

func (*MembershipUpdateOne) SetOrganization

func (muo *MembershipUpdateOne) SetOrganization(o *Organization) *MembershipUpdateOne

SetOrganization sets the "organization" edge to the Organization entity.

func (*MembershipUpdateOne) SetOrganizationID

func (muo *MembershipUpdateOne) SetOrganizationID(id uuid.UUID) *MembershipUpdateOne

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*MembershipUpdateOne) SetUpdatedAt

func (muo *MembershipUpdateOne) SetUpdatedAt(t time.Time) *MembershipUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*MembershipUpdateOne) SetUser

func (muo *MembershipUpdateOne) SetUser(u *User) *MembershipUpdateOne

SetUser sets the "user" edge to the User entity.

func (*MembershipUpdateOne) SetUserID

func (muo *MembershipUpdateOne) SetUserID(id uuid.UUID) *MembershipUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*MembershipUpdateOne) Where

Where appends a list predicates to the MembershipUpdate builder.

type Memberships

type Memberships []*Membership

Memberships is a parsable slice of Membership.

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 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 OCIRepositories

type OCIRepositories []*OCIRepository

OCIRepositories is a parsable slice of OCIRepository.

type OCIRepository

type OCIRepository struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Repo holds the value of the "repo" field.
	Repo string `json:"repo,omitempty"`
	// SecretName holds the value of the "secret_name" field.
	SecretName string `json:"secret_name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// ValidationStatus holds the value of the "validation_status" field.
	ValidationStatus biz.OCIRepoValidationStatus `json:"validation_status,omitempty"`
	// ValidatedAt holds the value of the "validated_at" field.
	ValidatedAt time.Time `json:"validated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the OCIRepositoryQuery when eager-loading is set.
	Edges OCIRepositoryEdges `json:"edges"`
	// contains filtered or unexported fields
}

OCIRepository is the model entity for the OCIRepository schema.

func (*OCIRepository) QueryOrganization

func (or *OCIRepository) QueryOrganization() *OrganizationQuery

QueryOrganization queries the "organization" edge of the OCIRepository entity.

func (*OCIRepository) String

func (or *OCIRepository) String() string

String implements the fmt.Stringer.

func (*OCIRepository) Unwrap

func (or *OCIRepository) Unwrap() *OCIRepository

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

func (or *OCIRepository) Update() *OCIRepositoryUpdateOne

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

type OCIRepositoryClient

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

OCIRepositoryClient is a client for the OCIRepository schema.

func NewOCIRepositoryClient

func NewOCIRepositoryClient(c config) *OCIRepositoryClient

NewOCIRepositoryClient returns a client for the OCIRepository from the given config.

func (*OCIRepositoryClient) Create

Create returns a builder for creating a OCIRepository entity.

func (*OCIRepositoryClient) CreateBulk

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

func (*OCIRepositoryClient) Delete

Delete returns a delete builder for OCIRepository.

func (*OCIRepositoryClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*OCIRepositoryClient) DeleteOneID

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

func (*OCIRepositoryClient) Get

Get returns a OCIRepository entity by its id.

func (*OCIRepositoryClient) GetX

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

func (*OCIRepositoryClient) Hooks

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

Hooks returns the client hooks.

func (*OCIRepositoryClient) Intercept

func (c *OCIRepositoryClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `ocirepository.Intercept(f(g(h())))`.

func (*OCIRepositoryClient) Interceptors

func (c *OCIRepositoryClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*OCIRepositoryClient) Query

Query returns a query builder for OCIRepository.

func (*OCIRepositoryClient) QueryOrganization

func (c *OCIRepositoryClient) QueryOrganization(or *OCIRepository) *OrganizationQuery

QueryOrganization queries the organization edge of a OCIRepository.

func (*OCIRepositoryClient) Update

Update returns an update builder for OCIRepository.

func (*OCIRepositoryClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OCIRepositoryClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*OCIRepositoryClient) Use

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

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

type OCIRepositoryCreate

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

OCIRepositoryCreate is the builder for creating a OCIRepository entity.

func (*OCIRepositoryCreate) Exec

func (orc *OCIRepositoryCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*OCIRepositoryCreate) ExecX

func (orc *OCIRepositoryCreate) ExecX(ctx context.Context)

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

func (*OCIRepositoryCreate) Mutation

func (orc *OCIRepositoryCreate) Mutation() *OCIRepositoryMutation

Mutation returns the OCIRepositoryMutation object of the builder.

func (*OCIRepositoryCreate) Save

Save creates the OCIRepository in the database.

func (*OCIRepositoryCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OCIRepositoryCreate) SetCreatedAt

func (orc *OCIRepositoryCreate) SetCreatedAt(t time.Time) *OCIRepositoryCreate

SetCreatedAt sets the "created_at" field.

func (*OCIRepositoryCreate) SetID

SetID sets the "id" field.

func (*OCIRepositoryCreate) SetNillableCreatedAt

func (orc *OCIRepositoryCreate) SetNillableCreatedAt(t *time.Time) *OCIRepositoryCreate

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

func (*OCIRepositoryCreate) SetNillableID

func (orc *OCIRepositoryCreate) SetNillableID(u *uuid.UUID) *OCIRepositoryCreate

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

func (*OCIRepositoryCreate) SetNillableValidatedAt

func (orc *OCIRepositoryCreate) SetNillableValidatedAt(t *time.Time) *OCIRepositoryCreate

SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.

func (*OCIRepositoryCreate) SetNillableValidationStatus

func (orc *OCIRepositoryCreate) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryCreate

SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.

func (*OCIRepositoryCreate) SetOrganization

func (orc *OCIRepositoryCreate) SetOrganization(o *Organization) *OCIRepositoryCreate

SetOrganization sets the "organization" edge to the Organization entity.

func (*OCIRepositoryCreate) SetOrganizationID

func (orc *OCIRepositoryCreate) SetOrganizationID(id uuid.UUID) *OCIRepositoryCreate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*OCIRepositoryCreate) SetRepo

SetRepo sets the "repo" field.

func (*OCIRepositoryCreate) SetSecretName

func (orc *OCIRepositoryCreate) SetSecretName(s string) *OCIRepositoryCreate

SetSecretName sets the "secret_name" field.

func (*OCIRepositoryCreate) SetValidatedAt

func (orc *OCIRepositoryCreate) SetValidatedAt(t time.Time) *OCIRepositoryCreate

SetValidatedAt sets the "validated_at" field.

func (*OCIRepositoryCreate) SetValidationStatus

func (orc *OCIRepositoryCreate) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryCreate

SetValidationStatus sets the "validation_status" field.

type OCIRepositoryCreateBulk

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

OCIRepositoryCreateBulk is the builder for creating many OCIRepository entities in bulk.

func (*OCIRepositoryCreateBulk) Exec

func (orcb *OCIRepositoryCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*OCIRepositoryCreateBulk) ExecX

func (orcb *OCIRepositoryCreateBulk) ExecX(ctx context.Context)

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

func (*OCIRepositoryCreateBulk) Save

Save creates the OCIRepository entities in the database.

func (*OCIRepositoryCreateBulk) SaveX

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

type OCIRepositoryDelete

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

OCIRepositoryDelete is the builder for deleting a OCIRepository entity.

func (*OCIRepositoryDelete) Exec

func (ord *OCIRepositoryDelete) Exec(ctx context.Context) (int, error)

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

func (*OCIRepositoryDelete) ExecX

func (ord *OCIRepositoryDelete) ExecX(ctx context.Context) int

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

func (*OCIRepositoryDelete) Where

Where appends a list predicates to the OCIRepositoryDelete builder.

type OCIRepositoryDeleteOne

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

OCIRepositoryDeleteOne is the builder for deleting a single OCIRepository entity.

func (*OCIRepositoryDeleteOne) Exec

func (ordo *OCIRepositoryDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*OCIRepositoryDeleteOne) ExecX

func (ordo *OCIRepositoryDeleteOne) ExecX(ctx context.Context)

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

func (*OCIRepositoryDeleteOne) Where

Where appends a list predicates to the OCIRepositoryDelete builder.

type OCIRepositoryEdges

type OCIRepositoryEdges struct {
	// Organization holds the value of the organization edge.
	Organization *Organization `json:"organization,omitempty"`
	// contains filtered or unexported fields
}

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

func (OCIRepositoryEdges) OrganizationOrErr

func (e OCIRepositoryEdges) OrganizationOrErr() (*Organization, error)

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

type OCIRepositoryGroupBy

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

OCIRepositoryGroupBy is the group-by builder for OCIRepository entities.

func (*OCIRepositoryGroupBy) Aggregate

func (orgb *OCIRepositoryGroupBy) Aggregate(fns ...AggregateFunc) *OCIRepositoryGroupBy

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

func (*OCIRepositoryGroupBy) Bool

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

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

func (*OCIRepositoryGroupBy) BoolX

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

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

func (*OCIRepositoryGroupBy) Bools

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

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

func (*OCIRepositoryGroupBy) BoolsX

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

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

func (*OCIRepositoryGroupBy) Float64

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

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

func (*OCIRepositoryGroupBy) Float64X

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

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

func (*OCIRepositoryGroupBy) Float64s

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

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

func (*OCIRepositoryGroupBy) Float64sX

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

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

func (*OCIRepositoryGroupBy) Int

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

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

func (*OCIRepositoryGroupBy) IntX

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

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

func (*OCIRepositoryGroupBy) Ints

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

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

func (*OCIRepositoryGroupBy) IntsX

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

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

func (*OCIRepositoryGroupBy) Scan

func (orgb *OCIRepositoryGroupBy) Scan(ctx context.Context, v any) error

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

func (*OCIRepositoryGroupBy) ScanX

func (s *OCIRepositoryGroupBy) ScanX(ctx context.Context, v any)

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

func (*OCIRepositoryGroupBy) String

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

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

func (*OCIRepositoryGroupBy) StringX

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

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

func (*OCIRepositoryGroupBy) Strings

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

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

func (*OCIRepositoryGroupBy) StringsX

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

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

type OCIRepositoryMutation

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

OCIRepositoryMutation represents an operation that mutates the OCIRepository nodes in the graph.

func (*OCIRepositoryMutation) AddField

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

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

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

func (*OCIRepositoryMutation) AddedField

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

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

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

func (*OCIRepositoryMutation) AddedIDs

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

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

func (*OCIRepositoryMutation) ClearEdge

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

func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ClearOrganization

func (m *OCIRepositoryMutation) ClearOrganization()

ClearOrganization clears the "organization" edge to the Organization entity.

func (*OCIRepositoryMutation) ClearedEdges

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

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

func (*OCIRepositoryMutation) ClearedFields

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

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

func (OCIRepositoryMutation) Client

func (m OCIRepositoryMutation) 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 (*OCIRepositoryMutation) CreatedAt

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

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

func (*OCIRepositoryMutation) EdgeCleared

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

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

func (*OCIRepositoryMutation) Field

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

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

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

func (*OCIRepositoryMutation) Fields

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

func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) IDs

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

func (*OCIRepositoryMutation) OldCreatedAt

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

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

func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) OldRepo

func (m *OCIRepositoryMutation) OldRepo(ctx context.Context) (v string, err error)

OldRepo returns the old "repo" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) OldSecretName

func (m *OCIRepositoryMutation) OldSecretName(ctx context.Context) (v string, err error)

OldSecretName returns the old "secret_name" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) OldValidatedAt

func (m *OCIRepositoryMutation) OldValidatedAt(ctx context.Context) (v time.Time, err error)

OldValidatedAt returns the old "validated_at" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) OldValidationStatus

func (m *OCIRepositoryMutation) OldValidationStatus(ctx context.Context) (v biz.OCIRepoValidationStatus, err error)

OldValidationStatus returns the old "validation_status" field's value of the OCIRepository entity. If the OCIRepository 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 (*OCIRepositoryMutation) Op

func (m *OCIRepositoryMutation) Op() Op

Op returns the operation name.

func (*OCIRepositoryMutation) OrganizationCleared

func (m *OCIRepositoryMutation) OrganizationCleared() bool

OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.

func (*OCIRepositoryMutation) OrganizationID

func (m *OCIRepositoryMutation) OrganizationID() (id uuid.UUID, exists bool)

OrganizationID returns the "organization" edge ID in the mutation.

func (*OCIRepositoryMutation) OrganizationIDs

func (m *OCIRepositoryMutation) OrganizationIDs() (ids []uuid.UUID)

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

func (*OCIRepositoryMutation) RemovedEdges

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

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

func (*OCIRepositoryMutation) RemovedIDs

func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) Repo

func (m *OCIRepositoryMutation) Repo() (r string, exists bool)

Repo returns the value of the "repo" field in the mutation.

func (*OCIRepositoryMutation) ResetCreatedAt

func (m *OCIRepositoryMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*OCIRepositoryMutation) ResetEdge

func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ResetField

func (m *OCIRepositoryMutation) 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 (*OCIRepositoryMutation) ResetOrganization

func (m *OCIRepositoryMutation) ResetOrganization()

ResetOrganization resets all changes to the "organization" edge.

func (*OCIRepositoryMutation) ResetRepo

func (m *OCIRepositoryMutation) ResetRepo()

ResetRepo resets all changes to the "repo" field.

func (*OCIRepositoryMutation) ResetSecretName

func (m *OCIRepositoryMutation) ResetSecretName()

ResetSecretName resets all changes to the "secret_name" field.

func (*OCIRepositoryMutation) ResetValidatedAt

func (m *OCIRepositoryMutation) ResetValidatedAt()

ResetValidatedAt resets all changes to the "validated_at" field.

func (*OCIRepositoryMutation) ResetValidationStatus

func (m *OCIRepositoryMutation) ResetValidationStatus()

ResetValidationStatus resets all changes to the "validation_status" field.

func (*OCIRepositoryMutation) SecretName

func (m *OCIRepositoryMutation) SecretName() (r string, exists bool)

SecretName returns the value of the "secret_name" field in the mutation.

func (*OCIRepositoryMutation) SetCreatedAt

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

SetCreatedAt sets the "created_at" field.

func (*OCIRepositoryMutation) SetField

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

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

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

func (*OCIRepositoryMutation) SetOp

func (m *OCIRepositoryMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*OCIRepositoryMutation) SetOrganizationID

func (m *OCIRepositoryMutation) SetOrganizationID(id uuid.UUID)

SetOrganizationID sets the "organization" edge to the Organization entity by id.

func (*OCIRepositoryMutation) SetRepo

func (m *OCIRepositoryMutation) SetRepo(s string)

SetRepo sets the "repo" field.

func (*OCIRepositoryMutation) SetSecretName

func (m *OCIRepositoryMutation) SetSecretName(s string)

SetSecretName sets the "secret_name" field.

func (*OCIRepositoryMutation) SetValidatedAt

func (m *OCIRepositoryMutation) SetValidatedAt(t time.Time)

SetValidatedAt sets the "validated_at" field.

func (*OCIRepositoryMutation) SetValidationStatus

func (m *OCIRepositoryMutation) SetValidationStatus(brvs biz.OCIRepoValidationStatus)

SetValidationStatus sets the "validation_status" field.

func (OCIRepositoryMutation) Tx

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

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

func (*OCIRepositoryMutation) Type

func (m *OCIRepositoryMutation) Type() string

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

func (*OCIRepositoryMutation) ValidatedAt

func (m *OCIRepositoryMutation) ValidatedAt() (r time.Time, exists bool)

ValidatedAt returns the value of the "validated_at" field in the mutation.

func (*OCIRepositoryMutation) ValidationStatus

func (m *OCIRepositoryMutation) ValidationStatus() (r biz.OCIRepoValidationStatus, exists bool)

ValidationStatus returns the value of the "validation_status" field in the mutation.

func (*OCIRepositoryMutation) Where

Where appends a list predicates to the OCIRepositoryMutation builder.

func (*OCIRepositoryMutation) WhereP

func (m *OCIRepositoryMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the OCIRepositoryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type OCIRepositoryQuery

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

OCIRepositoryQuery is the builder for querying OCIRepository entities.

func (*OCIRepositoryQuery) Aggregate

func (orq *OCIRepositoryQuery) Aggregate(fns ...AggregateFunc) *OCIRepositorySelect

Aggregate returns a OCIRepositorySelect configured with the given aggregations.

func (*OCIRepositoryQuery) All

All executes the query and returns a list of OCIRepositories.

func (*OCIRepositoryQuery) AllX

func (orq *OCIRepositoryQuery) AllX(ctx context.Context) []*OCIRepository

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

func (*OCIRepositoryQuery) Clone

func (orq *OCIRepositoryQuery) Clone() *OCIRepositoryQuery

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

func (*OCIRepositoryQuery) Count

func (orq *OCIRepositoryQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OCIRepositoryQuery) CountX

func (orq *OCIRepositoryQuery) CountX(ctx context.Context) int

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

func (*OCIRepositoryQuery) Exist

func (orq *OCIRepositoryQuery) Exist(ctx context.Context) (bool, error)

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

func (*OCIRepositoryQuery) ExistX

func (orq *OCIRepositoryQuery) ExistX(ctx context.Context) bool

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

func (*OCIRepositoryQuery) First

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

func (*OCIRepositoryQuery) FirstID

func (orq *OCIRepositoryQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*OCIRepositoryQuery) FirstIDX

func (orq *OCIRepositoryQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*OCIRepositoryQuery) FirstX

func (orq *OCIRepositoryQuery) FirstX(ctx context.Context) *OCIRepository

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

func (*OCIRepositoryQuery) GroupBy

func (orq *OCIRepositoryQuery) GroupBy(field string, fields ...string) *OCIRepositoryGroupBy

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

client.OCIRepository.Query().
	GroupBy(ocirepository.FieldRepo).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*OCIRepositoryQuery) IDs

func (orq *OCIRepositoryQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

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

func (*OCIRepositoryQuery) IDsX

func (orq *OCIRepositoryQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*OCIRepositoryQuery) Limit

func (orq *OCIRepositoryQuery) Limit(limit int) *OCIRepositoryQuery

Limit the number of records to be returned by this query.

func (*OCIRepositoryQuery) Offset

func (orq *OCIRepositoryQuery) Offset(offset int) *OCIRepositoryQuery

Offset to start from.

func (*OCIRepositoryQuery) Only

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

func (*OCIRepositoryQuery) OnlyID

func (orq *OCIRepositoryQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*OCIRepositoryQuery) OnlyIDX

func (orq *OCIRepositoryQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*OCIRepositoryQuery) OnlyX

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

func (*OCIRepositoryQuery) Order

Order specifies how the records should be ordered.

func (*OCIRepositoryQuery) QueryOrganization

func (orq *OCIRepositoryQuery) QueryOrganization() *OrganizationQuery

QueryOrganization chains the current query on the "organization" edge.

func (*OCIRepositoryQuery) Select

func (orq *OCIRepositoryQuery) Select(fields ...string) *OCIRepositorySelect

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

client.OCIRepository.Query().
	Select(ocirepository.FieldRepo).
	Scan(ctx, &v)

func (*OCIRepositoryQuery) Unique

func (orq *OCIRepositoryQuery) Unique(unique bool) *OCIRepositoryQuery

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

Where adds a new predicate for the OCIRepositoryQuery builder.

func (*OCIRepositoryQuery) WithOrganization

func (orq *OCIRepositoryQuery) WithOrganization(opts ...func(*OrganizationQuery)) *OCIRepositoryQuery

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

type OCIRepositorySelect

type OCIRepositorySelect struct {
	*OCIRepositoryQuery
	// contains filtered or unexported fields
}

OCIRepositorySelect is the builder for selecting fields of OCIRepository entities.

func (*OCIRepositorySelect) Aggregate

func (ors *OCIRepositorySelect) Aggregate(fns ...AggregateFunc) *OCIRepositorySelect

Aggregate adds the given aggregation functions to the selector query.

func (*OCIRepositorySelect) Bool

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

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

func (*OCIRepositorySelect) BoolX

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

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

func (*OCIRepositorySelect) Bools

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

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

func (*OCIRepositorySelect) BoolsX

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

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

func (*OCIRepositorySelect) Float64

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

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

func (*OCIRepositorySelect) Float64X

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

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

func (*OCIRepositorySelect) Float64s

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

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

func (*OCIRepositorySelect) Float64sX

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

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

func (*OCIRepositorySelect) Int

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

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

func (*OCIRepositorySelect) IntX

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

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

func (*OCIRepositorySelect) Ints

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

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

func (*OCIRepositorySelect) IntsX

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

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

func (*OCIRepositorySelect) Scan

func (ors *OCIRepositorySelect) Scan(ctx context.Context, v any) error

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

func (*OCIRepositorySelect) ScanX

func (s *OCIRepositorySelect) ScanX(ctx context.Context, v any)

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

func (*OCIRepositorySelect) String

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

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

func (*OCIRepositorySelect) StringX

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

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

func (*OCIRepositorySelect) Strings

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

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

func (*OCIRepositorySelect) StringsX

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

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

type OCIRepositoryUpdate

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

OCIRepositoryUpdate is the builder for updating OCIRepository entities.

func (*OCIRepositoryUpdate) ClearOrganization

func (oru *OCIRepositoryUpdate) ClearOrganization() *OCIRepositoryUpdate

ClearOrganization clears the "organization" edge to the Organization entity.

func (*OCIRepositoryUpdate) Exec

func (oru *OCIRepositoryUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*OCIRepositoryUpdate) ExecX

func (oru *OCIRepositoryUpdate) ExecX(ctx context.Context)

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

func (*OCIRepositoryUpdate) Mutation

func (oru *OCIRepositoryUpdate) Mutation() *OCIRepositoryMutation

Mutation returns the OCIRepositoryMutation object of the builder.

func (*OCIRepositoryUpdate) Save

func (oru *OCIRepositoryUpdate) Save(ctx context.Context) (int, error)

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

func (*OCIRepositoryUpdate) SaveX

func (oru *OCIRepositoryUpdate) SaveX(ctx context.Context) int

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

func (*OCIRepositoryUpdate) SetNillableValidatedAt

func (oru *OCIRepositoryUpdate) SetNillableValidatedAt(t *time.Time) *OCIRepositoryUpdate

SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.

func (*OCIRepositoryUpdate) SetNillableValidationStatus

func (oru *OCIRepositoryUpdate) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryUpdate

SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.

func (*OCIRepositoryUpdate) SetOrganization

func (oru *OCIRepositoryUpdate) SetOrganization(o *Organization) *OCIRepositoryUpdate

SetOrganization sets the "organization" edge to the Organization entity.

func (*OCIRepositoryUpdate) SetOrganizationID

func (oru *OCIRepositoryUpdate) SetOrganizationID(id uuid.UUID) *OCIRepositoryUpdate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*OCIRepositoryUpdate) SetRepo

SetRepo sets the "repo" field.

func (*OCIRepositoryUpdate) SetSecretName

func (oru *OCIRepositoryUpdate) SetSecretName(s string) *OCIRepositoryUpdate

SetSecretName sets the "secret_name" field.

func (*OCIRepositoryUpdate) SetValidatedAt

func (oru *OCIRepositoryUpdate) SetValidatedAt(t time.Time) *OCIRepositoryUpdate

SetValidatedAt sets the "validated_at" field.

func (*OCIRepositoryUpdate) SetValidationStatus

func (oru *OCIRepositoryUpdate) SetValidationStatus(brvs biz.OCIRepoValidationStatus) *OCIRepositoryUpdate

SetValidationStatus sets the "validation_status" field.

func (*OCIRepositoryUpdate) Where

Where appends a list predicates to the OCIRepositoryUpdate builder.

type OCIRepositoryUpdateOne

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

OCIRepositoryUpdateOne is the builder for updating a single OCIRepository entity.

func (*OCIRepositoryUpdateOne) ClearOrganization

func (oruo *OCIRepositoryUpdateOne) ClearOrganization() *OCIRepositoryUpdateOne

ClearOrganization clears the "organization" edge to the Organization entity.

func (*OCIRepositoryUpdateOne) Exec

func (oruo *OCIRepositoryUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*OCIRepositoryUpdateOne) ExecX

func (oruo *OCIRepositoryUpdateOne) ExecX(ctx context.Context)

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

func (*OCIRepositoryUpdateOne) Mutation

Mutation returns the OCIRepositoryMutation object of the builder.

func (*OCIRepositoryUpdateOne) Save

Save executes the query and returns the updated OCIRepository entity.

func (*OCIRepositoryUpdateOne) SaveX

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

func (*OCIRepositoryUpdateOne) Select

func (oruo *OCIRepositoryUpdateOne) Select(field string, fields ...string) *OCIRepositoryUpdateOne

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

func (*OCIRepositoryUpdateOne) SetNillableValidatedAt

func (oruo *OCIRepositoryUpdateOne) SetNillableValidatedAt(t *time.Time) *OCIRepositoryUpdateOne

SetNillableValidatedAt sets the "validated_at" field if the given value is not nil.

func (*OCIRepositoryUpdateOne) SetNillableValidationStatus

func (oruo *OCIRepositoryUpdateOne) SetNillableValidationStatus(brvs *biz.OCIRepoValidationStatus) *OCIRepositoryUpdateOne

SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.

func (*OCIRepositoryUpdateOne) SetOrganization

func (oruo *OCIRepositoryUpdateOne) SetOrganization(o *Organization) *OCIRepositoryUpdateOne

SetOrganization sets the "organization" edge to the Organization entity.

func (*OCIRepositoryUpdateOne) SetOrganizationID

func (oruo *OCIRepositoryUpdateOne) SetOrganizationID(id uuid.UUID) *OCIRepositoryUpdateOne

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*OCIRepositoryUpdateOne) SetRepo

SetRepo sets the "repo" field.

func (*OCIRepositoryUpdateOne) SetSecretName

func (oruo *OCIRepositoryUpdateOne) SetSecretName(s string) *OCIRepositoryUpdateOne

SetSecretName sets the "secret_name" field.

func (*OCIRepositoryUpdateOne) SetValidatedAt

func (oruo *OCIRepositoryUpdateOne) SetValidatedAt(t time.Time) *OCIRepositoryUpdateOne

SetValidatedAt sets the "validated_at" field.

func (*OCIRepositoryUpdateOne) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (*OCIRepositoryUpdateOne) Where

Where appends a list predicates to the OCIRepositoryUpdate builder.

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(...any)) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector.

func Asc

func Asc(fields ...string) OrderFunc

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) OrderFunc

Desc applies the given fields in DESC order.

type Organization

type Organization struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the OrganizationQuery when eager-loading is set.
	Edges OrganizationEdges `json:"edges"`
	// contains filtered or unexported fields
}

Organization is the model entity for the Organization schema.

func (*Organization) QueryIntegrations

func (o *Organization) QueryIntegrations() *IntegrationQuery

QueryIntegrations queries the "integrations" edge of the Organization entity.

func (*Organization) QueryMemberships

func (o *Organization) QueryMemberships() *MembershipQuery

QueryMemberships queries the "memberships" edge of the Organization entity.

func (*Organization) QueryOciRepositories

func (o *Organization) QueryOciRepositories() *OCIRepositoryQuery

QueryOciRepositories queries the "oci_repositories" edge of the Organization entity.

func (*Organization) QueryWorkflowContracts

func (o *Organization) QueryWorkflowContracts() *WorkflowContractQuery

QueryWorkflowContracts queries the "workflow_contracts" edge of the Organization entity.

func (*Organization) QueryWorkflows

func (o *Organization) QueryWorkflows() *WorkflowQuery

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

func (*Organization) String

func (o *Organization) String() string

String implements the fmt.Stringer.

func (*Organization) Unwrap

func (o *Organization) Unwrap() *Organization

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

func (o *Organization) Update() *OrganizationUpdateOne

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

type OrganizationClient

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

OrganizationClient is a client for the Organization schema.

func NewOrganizationClient

func NewOrganizationClient(c config) *OrganizationClient

NewOrganizationClient returns a client for the Organization from the given config.

func (*OrganizationClient) Create

Create returns a builder for creating a Organization entity.

func (*OrganizationClient) CreateBulk

func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk

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

func (*OrganizationClient) Delete

Delete returns a delete builder for Organization.

func (*OrganizationClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*OrganizationClient) DeleteOneID

func (c *OrganizationClient) DeleteOneID(id uuid.UUID) *OrganizationDeleteOne

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

func (*OrganizationClient) Get

Get returns a Organization entity by its id.

func (*OrganizationClient) GetX

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

func (*OrganizationClient) Hooks

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

Hooks returns the client hooks.

func (*OrganizationClient) Intercept

func (c *OrganizationClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`.

func (*OrganizationClient) Interceptors

func (c *OrganizationClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*OrganizationClient) Query

Query returns a query builder for Organization.

func (*OrganizationClient) QueryIntegrations

func (c *OrganizationClient) QueryIntegrations(o *Organization) *IntegrationQuery

QueryIntegrations queries the integrations edge of a Organization.

func (*OrganizationClient) QueryMemberships

func (c *OrganizationClient) QueryMemberships(o *Organization) *MembershipQuery

QueryMemberships queries the memberships edge of a Organization.

func (*OrganizationClient) QueryOciRepositories

func (c *OrganizationClient) QueryOciRepositories(o *Organization) *OCIRepositoryQuery

QueryOciRepositories queries the oci_repositories edge of a Organization.

func (*OrganizationClient) QueryWorkflowContracts

func (c *OrganizationClient) QueryWorkflowContracts(o *Organization) *WorkflowContractQuery

QueryWorkflowContracts queries the workflow_contracts edge of a Organization.

func (*OrganizationClient) QueryWorkflows

func (c *OrganizationClient) QueryWorkflows(o *Organization) *WorkflowQuery

QueryWorkflows queries the workflows edge of a Organization.

func (*OrganizationClient) Update

Update returns an update builder for Organization.

func (*OrganizationClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OrganizationClient) UpdateOneID

func (c *OrganizationClient) UpdateOneID(id uuid.UUID) *OrganizationUpdateOne

UpdateOneID returns an update builder for the given id.

func (*OrganizationClient) Use

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

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

type OrganizationCreate

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

OrganizationCreate is the builder for creating a Organization entity.

func (*OrganizationCreate) AddIntegrationIDs

func (oc *OrganizationCreate) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationCreate

AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.

func (*OrganizationCreate) AddIntegrations

func (oc *OrganizationCreate) AddIntegrations(i ...*Integration) *OrganizationCreate

AddIntegrations adds the "integrations" edges to the Integration entity.

func (*OrganizationCreate) AddMembershipIDs

func (oc *OrganizationCreate) AddMembershipIDs(ids ...uuid.UUID) *OrganizationCreate

AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.

func (*OrganizationCreate) AddMemberships

func (oc *OrganizationCreate) AddMemberships(m ...*Membership) *OrganizationCreate

AddMemberships adds the "memberships" edges to the Membership entity.

func (*OrganizationCreate) AddOciRepositories

func (oc *OrganizationCreate) AddOciRepositories(o ...*OCIRepository) *OrganizationCreate

AddOciRepositories adds the "oci_repositories" edges to the OCIRepository entity.

func (*OrganizationCreate) AddOciRepositoryIDs

func (oc *OrganizationCreate) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationCreate

AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by IDs.

func (*OrganizationCreate) AddWorkflowContractIDs

func (oc *OrganizationCreate) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationCreate

AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by IDs.

func (*OrganizationCreate) AddWorkflowContracts

func (oc *OrganizationCreate) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationCreate

AddWorkflowContracts adds the "workflow_contracts" edges to the WorkflowContract entity.

func (*OrganizationCreate) AddWorkflowIDs

func (oc *OrganizationCreate) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationCreate

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

func (*OrganizationCreate) AddWorkflows

func (oc *OrganizationCreate) AddWorkflows(w ...*Workflow) *OrganizationCreate

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

func (*OrganizationCreate) Exec

func (oc *OrganizationCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*OrganizationCreate) ExecX

func (oc *OrganizationCreate) ExecX(ctx context.Context)

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

func (*OrganizationCreate) Mutation

func (oc *OrganizationCreate) Mutation() *OrganizationMutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationCreate) Save

Save creates the Organization in the database.

func (*OrganizationCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OrganizationCreate) SetCreatedAt

func (oc *OrganizationCreate) SetCreatedAt(t time.Time) *OrganizationCreate

SetCreatedAt sets the "created_at" field.

func (*OrganizationCreate) SetID

SetID sets the "id" field.

func (*OrganizationCreate) SetName

SetName sets the "name" field.

func (*OrganizationCreate) SetNillableCreatedAt

func (oc *OrganizationCreate) SetNillableCreatedAt(t *time.Time) *OrganizationCreate

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

func (*OrganizationCreate) SetNillableID

func (oc *OrganizationCreate) SetNillableID(u *uuid.UUID) *OrganizationCreate

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

func (*OrganizationCreate) SetNillableName

func (oc *OrganizationCreate) SetNillableName(s *string) *OrganizationCreate

SetNillableName sets the "name" field if the given value is not nil.

type OrganizationCreateBulk

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

OrganizationCreateBulk is the builder for creating many Organization entities in bulk.

func (*OrganizationCreateBulk) Exec

Exec executes the query.

func (*OrganizationCreateBulk) ExecX

func (ocb *OrganizationCreateBulk) ExecX(ctx context.Context)

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

func (*OrganizationCreateBulk) Save

Save creates the Organization entities in the database.

func (*OrganizationCreateBulk) SaveX

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

type OrganizationDelete

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

OrganizationDelete is the builder for deleting a Organization entity.

func (*OrganizationDelete) Exec

func (od *OrganizationDelete) Exec(ctx context.Context) (int, error)

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

func (*OrganizationDelete) ExecX

func (od *OrganizationDelete) ExecX(ctx context.Context) int

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

func (*OrganizationDelete) Where

Where appends a list predicates to the OrganizationDelete builder.

type OrganizationDeleteOne

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

OrganizationDeleteOne is the builder for deleting a single Organization entity.

func (*OrganizationDeleteOne) Exec

func (odo *OrganizationDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*OrganizationDeleteOne) ExecX

func (odo *OrganizationDeleteOne) ExecX(ctx context.Context)

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

func (*OrganizationDeleteOne) Where

Where appends a list predicates to the OrganizationDelete builder.

type OrganizationEdges

type OrganizationEdges struct {
	// Memberships holds the value of the memberships edge.
	Memberships []*Membership `json:"memberships,omitempty"`
	// WorkflowContracts holds the value of the workflow_contracts edge.
	WorkflowContracts []*WorkflowContract `json:"workflow_contracts,omitempty"`
	// Workflows holds the value of the workflows edge.
	Workflows []*Workflow `json:"workflows,omitempty"`
	// OciRepositories holds the value of the oci_repositories edge.
	OciRepositories []*OCIRepository `json:"oci_repositories,omitempty"`
	// Integrations holds the value of the integrations edge.
	Integrations []*Integration `json:"integrations,omitempty"`
	// contains filtered or unexported fields
}

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

func (OrganizationEdges) IntegrationsOrErr

func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error)

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

func (OrganizationEdges) MembershipsOrErr

func (e OrganizationEdges) MembershipsOrErr() ([]*Membership, error)

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

func (OrganizationEdges) OciRepositoriesOrErr

func (e OrganizationEdges) OciRepositoriesOrErr() ([]*OCIRepository, error)

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

func (OrganizationEdges) WorkflowContractsOrErr

func (e OrganizationEdges) WorkflowContractsOrErr() ([]*WorkflowContract, error)

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

func (OrganizationEdges) WorkflowsOrErr

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

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

type OrganizationGroupBy

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

OrganizationGroupBy is the group-by builder for Organization entities.

func (*OrganizationGroupBy) Aggregate

func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy

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

func (*OrganizationGroupBy) Bool

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

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

func (*OrganizationGroupBy) BoolX

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

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

func (*OrganizationGroupBy) Bools

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

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

func (*OrganizationGroupBy) BoolsX

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

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

func (*OrganizationGroupBy) Float64

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

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

func (*OrganizationGroupBy) Float64X

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

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

func (*OrganizationGroupBy) Float64s

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

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

func (*OrganizationGroupBy) Float64sX

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

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

func (*OrganizationGroupBy) Int

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

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

func (*OrganizationGroupBy) IntX

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

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

func (*OrganizationGroupBy) Ints

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

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

func (*OrganizationGroupBy) IntsX

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

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

func (*OrganizationGroupBy) Scan

func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v any) error

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

func (*OrganizationGroupBy) ScanX

func (s *OrganizationGroupBy) ScanX(ctx context.Context, v any)

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

func (*OrganizationGroupBy) String

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

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

func (*OrganizationGroupBy) StringX

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

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

func (*OrganizationGroupBy) Strings

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

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

func (*OrganizationGroupBy) StringsX

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

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

type OrganizationMutation

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

OrganizationMutation represents an operation that mutates the Organization nodes in the graph.

func (*OrganizationMutation) AddField

func (m *OrganizationMutation) 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 (*OrganizationMutation) AddIntegrationIDs

func (m *OrganizationMutation) AddIntegrationIDs(ids ...uuid.UUID)

AddIntegrationIDs adds the "integrations" edge to the Integration entity by ids.

func (*OrganizationMutation) AddMembershipIDs

func (m *OrganizationMutation) AddMembershipIDs(ids ...uuid.UUID)

AddMembershipIDs adds the "memberships" edge to the Membership entity by ids.

func (*OrganizationMutation) AddOciRepositoryIDs

func (m *OrganizationMutation) AddOciRepositoryIDs(ids ...uuid.UUID)

AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by ids.

func (*OrganizationMutation) AddWorkflowContractIDs

func (m *OrganizationMutation) AddWorkflowContractIDs(ids ...uuid.UUID)

AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by ids.

func (*OrganizationMutation) AddWorkflowIDs

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

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

func (*OrganizationMutation) AddedEdges

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

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

func (*OrganizationMutation) AddedField

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

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

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

func (*OrganizationMutation) AddedIDs

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

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

func (*OrganizationMutation) ClearEdge

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

func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearIntegrations

func (m *OrganizationMutation) ClearIntegrations()

ClearIntegrations clears the "integrations" edge to the Integration entity.

func (*OrganizationMutation) ClearMemberships

func (m *OrganizationMutation) ClearMemberships()

ClearMemberships clears the "memberships" edge to the Membership entity.

func (*OrganizationMutation) ClearOciRepositories

func (m *OrganizationMutation) ClearOciRepositories()

ClearOciRepositories clears the "oci_repositories" edge to the OCIRepository entity.

func (*OrganizationMutation) ClearWorkflowContracts

func (m *OrganizationMutation) ClearWorkflowContracts()

ClearWorkflowContracts clears the "workflow_contracts" edge to the WorkflowContract entity.

func (*OrganizationMutation) ClearWorkflows

func (m *OrganizationMutation) ClearWorkflows()

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

func (*OrganizationMutation) ClearedEdges

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

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

func (*OrganizationMutation) ClearedFields

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

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

func (OrganizationMutation) Client

func (m OrganizationMutation) 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 (*OrganizationMutation) CreatedAt

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

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

func (*OrganizationMutation) EdgeCleared

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

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

func (*OrganizationMutation) Field

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

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

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

func (*OrganizationMutation) Fields

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

func (m *OrganizationMutation) 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 (*OrganizationMutation) IDs

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

func (*OrganizationMutation) IntegrationsCleared

func (m *OrganizationMutation) IntegrationsCleared() bool

IntegrationsCleared reports if the "integrations" edge to the Integration entity was cleared.

func (*OrganizationMutation) IntegrationsIDs

func (m *OrganizationMutation) IntegrationsIDs() (ids []uuid.UUID)

IntegrationsIDs returns the "integrations" edge IDs in the mutation.

func (*OrganizationMutation) MembershipsCleared

func (m *OrganizationMutation) MembershipsCleared() bool

MembershipsCleared reports if the "memberships" edge to the Membership entity was cleared.

func (*OrganizationMutation) MembershipsIDs

func (m *OrganizationMutation) MembershipsIDs() (ids []uuid.UUID)

MembershipsIDs returns the "memberships" edge IDs in the mutation.

func (*OrganizationMutation) Name

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

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

func (*OrganizationMutation) OciRepositoriesCleared

func (m *OrganizationMutation) OciRepositoriesCleared() bool

OciRepositoriesCleared reports if the "oci_repositories" edge to the OCIRepository entity was cleared.

func (*OrganizationMutation) OciRepositoriesIDs

func (m *OrganizationMutation) OciRepositoriesIDs() (ids []uuid.UUID)

OciRepositoriesIDs returns the "oci_repositories" edge IDs in the mutation.

func (*OrganizationMutation) OldCreatedAt

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

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

func (m *OrganizationMutation) 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 (*OrganizationMutation) OldName

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

OldName returns the old "name" field's value of the Organization entity. If the Organization 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 (*OrganizationMutation) Op

func (m *OrganizationMutation) Op() Op

Op returns the operation name.

func (*OrganizationMutation) RemoveIntegrationIDs

func (m *OrganizationMutation) RemoveIntegrationIDs(ids ...uuid.UUID)

RemoveIntegrationIDs removes the "integrations" edge to the Integration entity by IDs.

func (*OrganizationMutation) RemoveMembershipIDs

func (m *OrganizationMutation) RemoveMembershipIDs(ids ...uuid.UUID)

RemoveMembershipIDs removes the "memberships" edge to the Membership entity by IDs.

func (*OrganizationMutation) RemoveOciRepositoryIDs

func (m *OrganizationMutation) RemoveOciRepositoryIDs(ids ...uuid.UUID)

RemoveOciRepositoryIDs removes the "oci_repositories" edge to the OCIRepository entity by IDs.

func (*OrganizationMutation) RemoveWorkflowContractIDs

func (m *OrganizationMutation) RemoveWorkflowContractIDs(ids ...uuid.UUID)

RemoveWorkflowContractIDs removes the "workflow_contracts" edge to the WorkflowContract entity by IDs.

func (*OrganizationMutation) RemoveWorkflowIDs

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

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

func (*OrganizationMutation) RemovedEdges

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

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

func (*OrganizationMutation) RemovedIDs

func (m *OrganizationMutation) 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 (*OrganizationMutation) RemovedIntegrationsIDs

func (m *OrganizationMutation) RemovedIntegrationsIDs() (ids []uuid.UUID)

RemovedIntegrations returns the removed IDs of the "integrations" edge to the Integration entity.

func (*OrganizationMutation) RemovedMembershipsIDs

func (m *OrganizationMutation) RemovedMembershipsIDs() (ids []uuid.UUID)

RemovedMemberships returns the removed IDs of the "memberships" edge to the Membership entity.

func (*OrganizationMutation) RemovedOciRepositoriesIDs

func (m *OrganizationMutation) RemovedOciRepositoriesIDs() (ids []uuid.UUID)

RemovedOciRepositories returns the removed IDs of the "oci_repositories" edge to the OCIRepository entity.

func (*OrganizationMutation) RemovedWorkflowContractsIDs

func (m *OrganizationMutation) RemovedWorkflowContractsIDs() (ids []uuid.UUID)

RemovedWorkflowContracts returns the removed IDs of the "workflow_contracts" edge to the WorkflowContract entity.

func (*OrganizationMutation) RemovedWorkflowsIDs

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

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

func (*OrganizationMutation) ResetCreatedAt

func (m *OrganizationMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*OrganizationMutation) ResetEdge

func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetField

func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetIntegrations

func (m *OrganizationMutation) ResetIntegrations()

ResetIntegrations resets all changes to the "integrations" edge.

func (*OrganizationMutation) ResetMemberships

func (m *OrganizationMutation) ResetMemberships()

ResetMemberships resets all changes to the "memberships" edge.

func (*OrganizationMutation) ResetName

func (m *OrganizationMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*OrganizationMutation) ResetOciRepositories

func (m *OrganizationMutation) ResetOciRepositories()

ResetOciRepositories resets all changes to the "oci_repositories" edge.

func (*OrganizationMutation) ResetWorkflowContracts

func (m *OrganizationMutation) ResetWorkflowContracts()

ResetWorkflowContracts resets all changes to the "workflow_contracts" edge.

func (*OrganizationMutation) ResetWorkflows

func (m *OrganizationMutation) ResetWorkflows()

ResetWorkflows resets all changes to the "workflows" edge.

func (*OrganizationMutation) SetCreatedAt

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

SetCreatedAt sets the "created_at" field.

func (*OrganizationMutation) SetField

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

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

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

func (*OrganizationMutation) SetName

func (m *OrganizationMutation) SetName(s string)

SetName sets the "name" field.

func (*OrganizationMutation) SetOp

func (m *OrganizationMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (OrganizationMutation) Tx

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

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

func (*OrganizationMutation) Type

func (m *OrganizationMutation) Type() string

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

func (*OrganizationMutation) Where

Where appends a list predicates to the OrganizationMutation builder.

func (*OrganizationMutation) WhereP

func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*OrganizationMutation) WorkflowContractsCleared

func (m *OrganizationMutation) WorkflowContractsCleared() bool

WorkflowContractsCleared reports if the "workflow_contracts" edge to the WorkflowContract entity was cleared.

func (*OrganizationMutation) WorkflowContractsIDs

func (m *OrganizationMutation) WorkflowContractsIDs() (ids []uuid.UUID)

WorkflowContractsIDs returns the "workflow_contracts" edge IDs in the mutation.

func (*OrganizationMutation) WorkflowsCleared

func (m *OrganizationMutation) WorkflowsCleared() bool

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

func (*OrganizationMutation) WorkflowsIDs

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

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

type OrganizationQuery

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

OrganizationQuery is the builder for querying Organization entities.

func (*OrganizationQuery) Aggregate

func (oq *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect

Aggregate returns a OrganizationSelect configured with the given aggregations.

func (*OrganizationQuery) All

func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)

All executes the query and returns a list of Organizations.

func (*OrganizationQuery) AllX

func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization

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

func (*OrganizationQuery) Clone

func (oq *OrganizationQuery) Clone() *OrganizationQuery

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

func (*OrganizationQuery) Count

func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OrganizationQuery) CountX

func (oq *OrganizationQuery) CountX(ctx context.Context) int

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

func (*OrganizationQuery) Exist

func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)

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

func (*OrganizationQuery) ExistX

func (oq *OrganizationQuery) ExistX(ctx context.Context) bool

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

func (*OrganizationQuery) First

func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)

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

func (*OrganizationQuery) FirstID

func (oq *OrganizationQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

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

func (*OrganizationQuery) FirstIDX

func (oq *OrganizationQuery) FirstIDX(ctx context.Context) uuid.UUID

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

func (*OrganizationQuery) FirstX

func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization

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

func (*OrganizationQuery) GroupBy

func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy

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.Organization.Query().
	GroupBy(organization.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*OrganizationQuery) IDs

func (oq *OrganizationQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

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

func (*OrganizationQuery) IDsX

func (oq *OrganizationQuery) IDsX(ctx context.Context) []uuid.UUID

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

func (*OrganizationQuery) Limit

func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery

Limit the number of records to be returned by this query.

func (*OrganizationQuery) Offset

func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery

Offset to start from.

func (*OrganizationQuery) Only

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

func (*OrganizationQuery) OnlyID

func (oq *OrganizationQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

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

func (*OrganizationQuery) OnlyIDX

func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) uuid.UUID

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

func (*OrganizationQuery) OnlyX

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

func (*OrganizationQuery) Order

Order specifies how the records should be ordered.

func (*OrganizationQuery) QueryIntegrations

func (oq *OrganizationQuery) QueryIntegrations() *IntegrationQuery

QueryIntegrations chains the current query on the "integrations" edge.

func (*OrganizationQuery) QueryMemberships

func (oq *OrganizationQuery) QueryMemberships() *MembershipQuery

QueryMemberships chains the current query on the "memberships" edge.

func (*OrganizationQuery) QueryOciRepositories

func (oq *OrganizationQuery) QueryOciRepositories() *OCIRepositoryQuery

QueryOciRepositories chains the current query on the "oci_repositories" edge.

func (*OrganizationQuery) QueryWorkflowContracts

func (oq *OrganizationQuery) QueryWorkflowContracts() *WorkflowContractQuery

QueryWorkflowContracts chains the current query on the "workflow_contracts" edge.

func (*OrganizationQuery) QueryWorkflows

func (oq *OrganizationQuery) QueryWorkflows() *WorkflowQuery

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

func (*OrganizationQuery) Select

func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect

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.Organization.Query().
	Select(organization.FieldName).
	Scan(ctx, &v)

func (*OrganizationQuery) Unique

func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery

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

Where adds a new predicate for the OrganizationQuery builder.

func (*OrganizationQuery) WithIntegrations

func (oq *OrganizationQuery) WithIntegrations(opts ...func(*IntegrationQuery)) *OrganizationQuery

WithIntegrations tells the query-builder to eager-load the nodes that are connected to the "integrations" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithMemberships

func (oq *OrganizationQuery) WithMemberships(opts ...func(*MembershipQuery)) *OrganizationQuery

WithMemberships tells the query-builder to eager-load the nodes that are connected to the "memberships" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithOciRepositories

func (oq *OrganizationQuery) WithOciRepositories(opts ...func(*OCIRepositoryQuery)) *OrganizationQuery

WithOciRepositories tells the query-builder to eager-load the nodes that are connected to the "oci_repositories" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithWorkflowContracts

func (oq *OrganizationQuery) WithWorkflowContracts(opts ...func(*WorkflowContractQuery)) *OrganizationQuery

WithWorkflowContracts tells the query-builder to eager-load the nodes that are connected to the "workflow_contracts" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithWorkflows

func (oq *OrganizationQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *OrganizationQuery

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 OrganizationSelect

type OrganizationSelect struct {
	*OrganizationQuery
	// contains filtered or unexported fields
}

OrganizationSelect is the builder for selecting fields of Organization entities.

func (*OrganizationSelect) Aggregate

func (os *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect

Aggregate adds the given aggregation functions to the selector query.

func (*OrganizationSelect) Bool

func (s *OrganizationSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) BoolX

func (s *OrganizationSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationSelect) Bools

func (s *OrganizationSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) BoolsX

func (s *OrganizationSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationSelect) Float64

func (s *OrganizationSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) Float64X

func (s *OrganizationSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationSelect) Float64s

func (s *OrganizationSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) Float64sX

func (s *OrganizationSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationSelect) Int

func (s *OrganizationSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) IntX

func (s *OrganizationSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationSelect) Ints

func (s *OrganizationSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) IntsX

func (s *OrganizationSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationSelect) Scan

func (os *OrganizationSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*OrganizationSelect) ScanX

func (s *OrganizationSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationSelect) String

func (s *OrganizationSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) StringX

func (s *OrganizationSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationSelect) Strings

func (s *OrganizationSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) StringsX

func (s *OrganizationSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationUpdate

type OrganizationUpdate struct {
	// contains filtered or unexported fields
}

OrganizationUpdate is the builder for updating Organization entities.

func (*OrganizationUpdate) AddIntegrationIDs

func (ou *OrganizationUpdate) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdate

AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.

func (*OrganizationUpdate) AddIntegrations

func (ou *OrganizationUpdate) AddIntegrations(i ...*Integration) *OrganizationUpdate

AddIntegrations adds the "integrations" edges to the Integration entity.

func (*OrganizationUpdate) AddMembershipIDs

func (ou *OrganizationUpdate) AddMembershipIDs(ids ...uuid.UUID) *OrganizationUpdate

AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.

func (*OrganizationUpdate) AddMemberships

func (ou *OrganizationUpdate) AddMemberships(m ...*Membership) *OrganizationUpdate

AddMemberships adds the "memberships" edges to the Membership entity.

func (*OrganizationUpdate) AddOciRepositories

func (ou *OrganizationUpdate) AddOciRepositories(o ...*OCIRepository) *OrganizationUpdate

AddOciRepositories adds the "oci_repositories" edges to the OCIRepository entity.

func (*OrganizationUpdate) AddOciRepositoryIDs

func (ou *OrganizationUpdate) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdate

AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by IDs.

func (*OrganizationUpdate) AddWorkflowContractIDs

func (ou *OrganizationUpdate) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdate

AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by IDs.

func (*OrganizationUpdate) AddWorkflowContracts

func (ou *OrganizationUpdate) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdate

AddWorkflowContracts adds the "workflow_contracts" edges to the WorkflowContract entity.

func (*OrganizationUpdate) AddWorkflowIDs

func (ou *OrganizationUpdate) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdate

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*OrganizationUpdate) AddWorkflows

func (ou *OrganizationUpdate) AddWorkflows(w ...*Workflow) *OrganizationUpdate

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*OrganizationUpdate) ClearIntegrations

func (ou *OrganizationUpdate) ClearIntegrations() *OrganizationUpdate

ClearIntegrations clears all "integrations" edges to the Integration entity.

func (*OrganizationUpdate) ClearMemberships

func (ou *OrganizationUpdate) ClearMemberships() *OrganizationUpdate

ClearMemberships clears all "memberships" edges to the Membership entity.

func (*OrganizationUpdate) ClearOciRepositories

func (ou *OrganizationUpdate) ClearOciRepositories() *OrganizationUpdate

ClearOciRepositories clears all "oci_repositories" edges to the OCIRepository entity.

func (*OrganizationUpdate) ClearWorkflowContracts

func (ou *OrganizationUpdate) ClearWorkflowContracts() *OrganizationUpdate

ClearWorkflowContracts clears all "workflow_contracts" edges to the WorkflowContract entity.

func (*OrganizationUpdate) ClearWorkflows

func (ou *OrganizationUpdate) ClearWorkflows() *OrganizationUpdate

ClearWorkflows clears all "workflows" edges to the Workflow entity.

func (*OrganizationUpdate) Exec

func (ou *OrganizationUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*OrganizationUpdate) ExecX

func (ou *OrganizationUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationUpdate) Mutation

func (ou *OrganizationUpdate) Mutation() *OrganizationMutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationUpdate) RemoveIntegrationIDs

func (ou *OrganizationUpdate) RemoveIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdate

RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.

func (*OrganizationUpdate) RemoveIntegrations

func (ou *OrganizationUpdate) RemoveIntegrations(i ...*Integration) *OrganizationUpdate

RemoveIntegrations removes "integrations" edges to Integration entities.

func (*OrganizationUpdate) RemoveMembershipIDs

func (ou *OrganizationUpdate) RemoveMembershipIDs(ids ...uuid.UUID) *OrganizationUpdate

RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.

func (*OrganizationUpdate) RemoveMemberships

func (ou *OrganizationUpdate) RemoveMemberships(m ...*Membership) *OrganizationUpdate

RemoveMemberships removes "memberships" edges to Membership entities.

func (*OrganizationUpdate) RemoveOciRepositories

func (ou *OrganizationUpdate) RemoveOciRepositories(o ...*OCIRepository) *OrganizationUpdate

RemoveOciRepositories removes "oci_repositories" edges to OCIRepository entities.

func (*OrganizationUpdate) RemoveOciRepositoryIDs

func (ou *OrganizationUpdate) RemoveOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdate

RemoveOciRepositoryIDs removes the "oci_repositories" edge to OCIRepository entities by IDs.

func (*OrganizationUpdate) RemoveWorkflowContractIDs

func (ou *OrganizationUpdate) RemoveWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdate

RemoveWorkflowContractIDs removes the "workflow_contracts" edge to WorkflowContract entities by IDs.

func (*OrganizationUpdate) RemoveWorkflowContracts

func (ou *OrganizationUpdate) RemoveWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdate

RemoveWorkflowContracts removes "workflow_contracts" edges to WorkflowContract entities.

func (*OrganizationUpdate) RemoveWorkflowIDs

func (ou *OrganizationUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdate

RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.

func (*OrganizationUpdate) RemoveWorkflows

func (ou *OrganizationUpdate) RemoveWorkflows(w ...*Workflow) *OrganizationUpdate

RemoveWorkflows removes "workflows" edges to Workflow entities.

func (*OrganizationUpdate) Save

func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*OrganizationUpdate) SaveX

func (ou *OrganizationUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*OrganizationUpdate) SetName

SetName sets the "name" field.

func (*OrganizationUpdate) SetNillableName

func (ou *OrganizationUpdate) SetNillableName(s *string) *OrganizationUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*OrganizationUpdate) Where

Where appends a list predicates to the OrganizationUpdate builder.

type OrganizationUpdateOne

type OrganizationUpdateOne struct {
	// contains filtered or unexported fields
}

OrganizationUpdateOne is the builder for updating a single Organization entity.

func (*OrganizationUpdateOne) AddIntegrationIDs

func (ouo *OrganizationUpdateOne) AddIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdateOne

AddIntegrationIDs adds the "integrations" edge to the Integration entity by IDs.

func (*OrganizationUpdateOne) AddIntegrations

func (ouo *OrganizationUpdateOne) AddIntegrations(i ...*Integration) *OrganizationUpdateOne

AddIntegrations adds the "integrations" edges to the Integration entity.

func (*OrganizationUpdateOne) AddMembershipIDs

func (ouo *OrganizationUpdateOne) AddMembershipIDs(ids ...uuid.UUID) *OrganizationUpdateOne

AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.

func (*OrganizationUpdateOne) AddMemberships

func (ouo *OrganizationUpdateOne) AddMemberships(m ...*Membership) *OrganizationUpdateOne

AddMemberships adds the "memberships" edges to the Membership entity.

func (*OrganizationUpdateOne) AddOciRepositories

func (ouo *OrganizationUpdateOne) AddOciRepositories(o ...*OCIRepository) *OrganizationUpdateOne

AddOciRepositories adds the "oci_repositories" edges to the OCIRepository entity.

func (*OrganizationUpdateOne) AddOciRepositoryIDs

func (ouo *OrganizationUpdateOne) AddOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdateOne

AddOciRepositoryIDs adds the "oci_repositories" edge to the OCIRepository entity by IDs.

func (*OrganizationUpdateOne) AddWorkflowContractIDs

func (ouo *OrganizationUpdateOne) AddWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdateOne

AddWorkflowContractIDs adds the "workflow_contracts" edge to the WorkflowContract entity by IDs.

func (*OrganizationUpdateOne) AddWorkflowContracts

func (ouo *OrganizationUpdateOne) AddWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdateOne

AddWorkflowContracts adds the "workflow_contracts" edges to the WorkflowContract entity.

func (*OrganizationUpdateOne) AddWorkflowIDs

func (ouo *OrganizationUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdateOne

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*OrganizationUpdateOne) AddWorkflows

func (ouo *OrganizationUpdateOne) AddWorkflows(w ...*Workflow) *OrganizationUpdateOne

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*OrganizationUpdateOne) ClearIntegrations

func (ouo *OrganizationUpdateOne) ClearIntegrations() *OrganizationUpdateOne

ClearIntegrations clears all "integrations" edges to the Integration entity.

func (*OrganizationUpdateOne) ClearMemberships

func (ouo *OrganizationUpdateOne) ClearMemberships() *OrganizationUpdateOne

ClearMemberships clears all "memberships" edges to the Membership entity.

func (*OrganizationUpdateOne) ClearOciRepositories

func (ouo *OrganizationUpdateOne) ClearOciRepositories() *OrganizationUpdateOne

ClearOciRepositories clears all "oci_repositories" edges to the OCIRepository entity.

func (*OrganizationUpdateOne) ClearWorkflowContracts

func (ouo *OrganizationUpdateOne) ClearWorkflowContracts() *OrganizationUpdateOne

ClearWorkflowContracts clears all "workflow_contracts" edges to the WorkflowContract entity.

func (*OrganizationUpdateOne) ClearWorkflows

func (ouo *OrganizationUpdateOne) ClearWorkflows() *OrganizationUpdateOne

ClearWorkflows clears all "workflows" edges to the Workflow entity.

func (*OrganizationUpdateOne) Exec

func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*OrganizationUpdateOne) ExecX

func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationUpdateOne) Mutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationUpdateOne) RemoveIntegrationIDs

func (ouo *OrganizationUpdateOne) RemoveIntegrationIDs(ids ...uuid.UUID) *OrganizationUpdateOne

RemoveIntegrationIDs removes the "integrations" edge to Integration entities by IDs.

func (*OrganizationUpdateOne) RemoveIntegrations

func (ouo *OrganizationUpdateOne) RemoveIntegrations(i ...*Integration) *OrganizationUpdateOne

RemoveIntegrations removes "integrations" edges to Integration entities.

func (*OrganizationUpdateOne) RemoveMembershipIDs

func (ouo *OrganizationUpdateOne) RemoveMembershipIDs(ids ...uuid.UUID) *OrganizationUpdateOne

RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.

func (*OrganizationUpdateOne) RemoveMemberships

func (ouo *OrganizationUpdateOne) RemoveMemberships(m ...*Membership) *OrganizationUpdateOne

RemoveMemberships removes "memberships" edges to Membership entities.

func (*OrganizationUpdateOne) RemoveOciRepositories

func (ouo *OrganizationUpdateOne) RemoveOciRepositories(o ...*OCIRepository) *OrganizationUpdateOne

RemoveOciRepositories removes "oci_repositories" edges to OCIRepository entities.

func (*OrganizationUpdateOne) RemoveOciRepositoryIDs

func (ouo *OrganizationUpdateOne) RemoveOciRepositoryIDs(ids ...uuid.UUID) *OrganizationUpdateOne

RemoveOciRepositoryIDs removes the "oci_repositories" edge to OCIRepository entities by IDs.

func (*OrganizationUpdateOne) RemoveWorkflowContractIDs

func (ouo *OrganizationUpdateOne) RemoveWorkflowContractIDs(ids ...uuid.UUID) *OrganizationUpdateOne

RemoveWorkflowContractIDs removes the "workflow_contracts" edge to WorkflowContract entities by IDs.

func (*OrganizationUpdateOne) RemoveWorkflowContracts

func (ouo *OrganizationUpdateOne) RemoveWorkflowContracts(w ...*WorkflowContract) *OrganizationUpdateOne

RemoveWorkflowContracts removes "workflow_contracts" edges to WorkflowContract entities.

func (*OrganizationUpdateOne) RemoveWorkflowIDs

func (ouo *OrganizationUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *OrganizationUpdateOne

RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.

func (*OrganizationUpdateOne) RemoveWorkflows

func (ouo *OrganizationUpdateOne) RemoveWorkflows(w ...*Workflow) *OrganizationUpdateOne

RemoveWorkflows removes "workflows" edges to Workflow entities.

func (*OrganizationUpdateOne) Save

Save executes the query and returns the updated Organization entity.

func (*OrganizationUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*OrganizationUpdateOne) Select

func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*OrganizationUpdateOne) SetName

SetName sets the "name" field.

func (*OrganizationUpdateOne) SetNillableName

func (ouo *OrganizationUpdateOne) SetNillableName(s *string) *OrganizationUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*OrganizationUpdateOne) Where

Where appends a list predicates to the OrganizationUpdate builder.

type Organizations

type Organizations []*Organization

Organizations is a parsable slice of Organization.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Querier

type Querier = ent.Querier

ent aliases to avoid import conflicts in user's code.

type QuerierFunc

type QuerierFunc = ent.QuerierFunc

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 QueryContext

type QueryContext = ent.QueryContext

ent aliases to avoid import conflicts in user's code.

type RobotAccount

type RobotAccount struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// RevokedAt holds the value of the "revoked_at" field.
	RevokedAt time.Time `json:"revoked_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RobotAccountQuery when eager-loading is set.
	Edges RobotAccountEdges `json:"edges"`
	// contains filtered or unexported fields
}

RobotAccount is the model entity for the RobotAccount schema.

func (*RobotAccount) QueryWorkflow

func (ra *RobotAccount) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the RobotAccount entity.

func (*RobotAccount) QueryWorkflowruns

func (ra *RobotAccount) QueryWorkflowruns() *WorkflowRunQuery

QueryWorkflowruns queries the "workflowruns" edge of the RobotAccount entity.

func (*RobotAccount) String

func (ra *RobotAccount) String() string

String implements the fmt.Stringer.

func (*RobotAccount) Unwrap

func (ra *RobotAccount) Unwrap() *RobotAccount

Unwrap unwraps the RobotAccount 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 (*RobotAccount) Update

func (ra *RobotAccount) Update() *RobotAccountUpdateOne

Update returns a builder for updating this RobotAccount. Note that you need to call RobotAccount.Unwrap() before calling this method if this RobotAccount was returned from a transaction, and the transaction was committed or rolled back.

type RobotAccountClient

type RobotAccountClient struct {
	// contains filtered or unexported fields
}

RobotAccountClient is a client for the RobotAccount schema.

func NewRobotAccountClient

func NewRobotAccountClient(c config) *RobotAccountClient

NewRobotAccountClient returns a client for the RobotAccount from the given config.

func (*RobotAccountClient) Create

Create returns a builder for creating a RobotAccount entity.

func (*RobotAccountClient) CreateBulk

func (c *RobotAccountClient) CreateBulk(builders ...*RobotAccountCreate) *RobotAccountCreateBulk

CreateBulk returns a builder for creating a bulk of RobotAccount entities.

func (*RobotAccountClient) Delete

Delete returns a delete builder for RobotAccount.

func (*RobotAccountClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*RobotAccountClient) DeleteOneID

func (c *RobotAccountClient) DeleteOneID(id uuid.UUID) *RobotAccountDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*RobotAccountClient) Get

Get returns a RobotAccount entity by its id.

func (*RobotAccountClient) GetX

GetX is like Get, but panics if an error occurs.

func (*RobotAccountClient) Hooks

func (c *RobotAccountClient) Hooks() []Hook

Hooks returns the client hooks.

func (*RobotAccountClient) Intercept

func (c *RobotAccountClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `robotaccount.Intercept(f(g(h())))`.

func (*RobotAccountClient) Interceptors

func (c *RobotAccountClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*RobotAccountClient) Query

Query returns a query builder for RobotAccount.

func (*RobotAccountClient) QueryWorkflow

func (c *RobotAccountClient) QueryWorkflow(ra *RobotAccount) *WorkflowQuery

QueryWorkflow queries the workflow edge of a RobotAccount.

func (*RobotAccountClient) QueryWorkflowruns

func (c *RobotAccountClient) QueryWorkflowruns(ra *RobotAccount) *WorkflowRunQuery

QueryWorkflowruns queries the workflowruns edge of a RobotAccount.

func (*RobotAccountClient) Update

Update returns an update builder for RobotAccount.

func (*RobotAccountClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*RobotAccountClient) UpdateOneID

func (c *RobotAccountClient) UpdateOneID(id uuid.UUID) *RobotAccountUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RobotAccountClient) Use

func (c *RobotAccountClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `robotaccount.Hooks(f(g(h())))`.

type RobotAccountCreate

type RobotAccountCreate struct {
	// contains filtered or unexported fields
}

RobotAccountCreate is the builder for creating a RobotAccount entity.

func (*RobotAccountCreate) AddWorkflowrunIDs

func (rac *RobotAccountCreate) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountCreate

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*RobotAccountCreate) AddWorkflowruns

func (rac *RobotAccountCreate) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountCreate

AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.

func (*RobotAccountCreate) Exec

func (rac *RobotAccountCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*RobotAccountCreate) ExecX

func (rac *RobotAccountCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RobotAccountCreate) Mutation

func (rac *RobotAccountCreate) Mutation() *RobotAccountMutation

Mutation returns the RobotAccountMutation object of the builder.

func (*RobotAccountCreate) Save

Save creates the RobotAccount in the database.

func (*RobotAccountCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*RobotAccountCreate) SetCreatedAt

func (rac *RobotAccountCreate) SetCreatedAt(t time.Time) *RobotAccountCreate

SetCreatedAt sets the "created_at" field.

func (*RobotAccountCreate) SetID

SetID sets the "id" field.

func (*RobotAccountCreate) SetName

func (rac *RobotAccountCreate) SetName(s string) *RobotAccountCreate

SetName sets the "name" field.

func (*RobotAccountCreate) SetNillableCreatedAt

func (rac *RobotAccountCreate) SetNillableCreatedAt(t *time.Time) *RobotAccountCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*RobotAccountCreate) SetNillableID

func (rac *RobotAccountCreate) SetNillableID(u *uuid.UUID) *RobotAccountCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*RobotAccountCreate) SetNillableRevokedAt

func (rac *RobotAccountCreate) SetNillableRevokedAt(t *time.Time) *RobotAccountCreate

SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.

func (*RobotAccountCreate) SetNillableWorkflowID

func (rac *RobotAccountCreate) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountCreate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*RobotAccountCreate) SetRevokedAt

func (rac *RobotAccountCreate) SetRevokedAt(t time.Time) *RobotAccountCreate

SetRevokedAt sets the "revoked_at" field.

func (*RobotAccountCreate) SetWorkflow

func (rac *RobotAccountCreate) SetWorkflow(w *Workflow) *RobotAccountCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RobotAccountCreate) SetWorkflowID

func (rac *RobotAccountCreate) SetWorkflowID(id uuid.UUID) *RobotAccountCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type RobotAccountCreateBulk

type RobotAccountCreateBulk struct {
	// contains filtered or unexported fields
}

RobotAccountCreateBulk is the builder for creating many RobotAccount entities in bulk.

func (*RobotAccountCreateBulk) Exec

func (racb *RobotAccountCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*RobotAccountCreateBulk) ExecX

func (racb *RobotAccountCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RobotAccountCreateBulk) Save

Save creates the RobotAccount entities in the database.

func (*RobotAccountCreateBulk) SaveX

func (racb *RobotAccountCreateBulk) SaveX(ctx context.Context) []*RobotAccount

SaveX is like Save, but panics if an error occurs.

type RobotAccountDelete

type RobotAccountDelete struct {
	// contains filtered or unexported fields
}

RobotAccountDelete is the builder for deleting a RobotAccount entity.

func (*RobotAccountDelete) Exec

func (rad *RobotAccountDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*RobotAccountDelete) ExecX

func (rad *RobotAccountDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*RobotAccountDelete) Where

Where appends a list predicates to the RobotAccountDelete builder.

type RobotAccountDeleteOne

type RobotAccountDeleteOne struct {
	// contains filtered or unexported fields
}

RobotAccountDeleteOne is the builder for deleting a single RobotAccount entity.

func (*RobotAccountDeleteOne) Exec

func (rado *RobotAccountDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*RobotAccountDeleteOne) ExecX

func (rado *RobotAccountDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RobotAccountDeleteOne) Where

Where appends a list predicates to the RobotAccountDelete builder.

type RobotAccountEdges

type RobotAccountEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Workflowruns holds the value of the workflowruns edge.
	Workflowruns []*WorkflowRun `json:"workflowruns,omitempty"`
	// contains filtered or unexported fields
}

RobotAccountEdges holds the relations/edges for other nodes in the graph.

func (RobotAccountEdges) WorkflowOrErr

func (e RobotAccountEdges) WorkflowOrErr() (*Workflow, error)

WorkflowOrErr returns the Workflow value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (RobotAccountEdges) WorkflowrunsOrErr

func (e RobotAccountEdges) WorkflowrunsOrErr() ([]*WorkflowRun, error)

WorkflowrunsOrErr returns the Workflowruns value or an error if the edge was not loaded in eager-loading.

type RobotAccountGroupBy

type RobotAccountGroupBy struct {
	// contains filtered or unexported fields
}

RobotAccountGroupBy is the group-by builder for RobotAccount entities.

func (*RobotAccountGroupBy) Aggregate

func (ragb *RobotAccountGroupBy) Aggregate(fns ...AggregateFunc) *RobotAccountGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*RobotAccountGroupBy) Bool

func (s *RobotAccountGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) BoolX

func (s *RobotAccountGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RobotAccountGroupBy) Bools

func (s *RobotAccountGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) BoolsX

func (s *RobotAccountGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RobotAccountGroupBy) Float64

func (s *RobotAccountGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) Float64X

func (s *RobotAccountGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RobotAccountGroupBy) Float64s

func (s *RobotAccountGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) Float64sX

func (s *RobotAccountGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RobotAccountGroupBy) Int

func (s *RobotAccountGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) IntX

func (s *RobotAccountGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RobotAccountGroupBy) Ints

func (s *RobotAccountGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) IntsX

func (s *RobotAccountGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RobotAccountGroupBy) Scan

func (ragb *RobotAccountGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*RobotAccountGroupBy) ScanX

func (s *RobotAccountGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*RobotAccountGroupBy) String

func (s *RobotAccountGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) StringX

func (s *RobotAccountGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RobotAccountGroupBy) Strings

func (s *RobotAccountGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RobotAccountGroupBy) StringsX

func (s *RobotAccountGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RobotAccountMutation

type RobotAccountMutation struct {
	// contains filtered or unexported fields
}

RobotAccountMutation represents an operation that mutates the RobotAccount nodes in the graph.

func (*RobotAccountMutation) AddField

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) AddWorkflowrunIDs

func (m *RobotAccountMutation) AddWorkflowrunIDs(ids ...uuid.UUID)

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by ids.

func (*RobotAccountMutation) AddedEdges

func (m *RobotAccountMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*RobotAccountMutation) AddedField

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) AddedFields

func (m *RobotAccountMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*RobotAccountMutation) AddedIDs

func (m *RobotAccountMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*RobotAccountMutation) ClearEdge

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ClearField

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ClearRevokedAt

func (m *RobotAccountMutation) ClearRevokedAt()

ClearRevokedAt clears the value of the "revoked_at" field.

func (*RobotAccountMutation) ClearWorkflow

func (m *RobotAccountMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RobotAccountMutation) ClearWorkflowruns

func (m *RobotAccountMutation) ClearWorkflowruns()

ClearWorkflowruns clears the "workflowruns" edge to the WorkflowRun entity.

func (*RobotAccountMutation) ClearedEdges

func (m *RobotAccountMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*RobotAccountMutation) ClearedFields

func (m *RobotAccountMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (RobotAccountMutation) Client

func (m RobotAccountMutation) 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 (*RobotAccountMutation) CreatedAt

func (m *RobotAccountMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*RobotAccountMutation) EdgeCleared

func (m *RobotAccountMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*RobotAccountMutation) Field

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) FieldCleared

func (m *RobotAccountMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*RobotAccountMutation) Fields

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ID

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*RobotAccountMutation) Name

func (m *RobotAccountMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*RobotAccountMutation) OldCreatedAt

func (m *RobotAccountMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the RobotAccount entity. If the RobotAccount 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 (*RobotAccountMutation) OldField

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) OldName

func (m *RobotAccountMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the RobotAccount entity. If the RobotAccount 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 (*RobotAccountMutation) OldRevokedAt

func (m *RobotAccountMutation) OldRevokedAt(ctx context.Context) (v time.Time, err error)

OldRevokedAt returns the old "revoked_at" field's value of the RobotAccount entity. If the RobotAccount 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 (*RobotAccountMutation) Op

func (m *RobotAccountMutation) Op() Op

Op returns the operation name.

func (*RobotAccountMutation) RemoveWorkflowrunIDs

func (m *RobotAccountMutation) RemoveWorkflowrunIDs(ids ...uuid.UUID)

RemoveWorkflowrunIDs removes the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*RobotAccountMutation) RemovedEdges

func (m *RobotAccountMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*RobotAccountMutation) RemovedIDs

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) RemovedWorkflowrunsIDs

func (m *RobotAccountMutation) RemovedWorkflowrunsIDs() (ids []uuid.UUID)

RemovedWorkflowruns returns the removed IDs of the "workflowruns" edge to the WorkflowRun entity.

func (*RobotAccountMutation) ResetCreatedAt

func (m *RobotAccountMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*RobotAccountMutation) ResetEdge

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ResetField

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) ResetName

func (m *RobotAccountMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*RobotAccountMutation) ResetRevokedAt

func (m *RobotAccountMutation) ResetRevokedAt()

ResetRevokedAt resets all changes to the "revoked_at" field.

func (*RobotAccountMutation) ResetWorkflow

func (m *RobotAccountMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*RobotAccountMutation) ResetWorkflowruns

func (m *RobotAccountMutation) ResetWorkflowruns()

ResetWorkflowruns resets all changes to the "workflowruns" edge.

func (*RobotAccountMutation) RevokedAt

func (m *RobotAccountMutation) RevokedAt() (r time.Time, exists bool)

RevokedAt returns the value of the "revoked_at" field in the mutation.

func (*RobotAccountMutation) RevokedAtCleared

func (m *RobotAccountMutation) RevokedAtCleared() bool

RevokedAtCleared returns if the "revoked_at" field was cleared in this mutation.

func (*RobotAccountMutation) SetCreatedAt

func (m *RobotAccountMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*RobotAccountMutation) SetField

func (m *RobotAccountMutation) 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 (*RobotAccountMutation) SetID

func (m *RobotAccountMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of RobotAccount entities.

func (*RobotAccountMutation) SetName

func (m *RobotAccountMutation) SetName(s string)

SetName sets the "name" field.

func (*RobotAccountMutation) SetOp

func (m *RobotAccountMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*RobotAccountMutation) SetRevokedAt

func (m *RobotAccountMutation) SetRevokedAt(t time.Time)

SetRevokedAt sets the "revoked_at" field.

func (*RobotAccountMutation) SetWorkflowID

func (m *RobotAccountMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (RobotAccountMutation) Tx

func (m RobotAccountMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*RobotAccountMutation) Type

func (m *RobotAccountMutation) Type() string

Type returns the node type of this mutation (RobotAccount).

func (*RobotAccountMutation) Where

Where appends a list predicates to the RobotAccountMutation builder.

func (*RobotAccountMutation) WhereP

func (m *RobotAccountMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the RobotAccountMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*RobotAccountMutation) WorkflowCleared

func (m *RobotAccountMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*RobotAccountMutation) WorkflowID

func (m *RobotAccountMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*RobotAccountMutation) WorkflowIDs

func (m *RobotAccountMutation) WorkflowIDs() (ids []uuid.UUID)

WorkflowIDs returns the "workflow" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorkflowID instead. It exists only for internal usage by the builders.

func (*RobotAccountMutation) WorkflowrunsCleared

func (m *RobotAccountMutation) WorkflowrunsCleared() bool

WorkflowrunsCleared reports if the "workflowruns" edge to the WorkflowRun entity was cleared.

func (*RobotAccountMutation) WorkflowrunsIDs

func (m *RobotAccountMutation) WorkflowrunsIDs() (ids []uuid.UUID)

WorkflowrunsIDs returns the "workflowruns" edge IDs in the mutation.

type RobotAccountQuery

type RobotAccountQuery struct {
	// contains filtered or unexported fields
}

RobotAccountQuery is the builder for querying RobotAccount entities.

func (*RobotAccountQuery) Aggregate

func (raq *RobotAccountQuery) Aggregate(fns ...AggregateFunc) *RobotAccountSelect

Aggregate returns a RobotAccountSelect configured with the given aggregations.

func (*RobotAccountQuery) All

func (raq *RobotAccountQuery) All(ctx context.Context) ([]*RobotAccount, error)

All executes the query and returns a list of RobotAccounts.

func (*RobotAccountQuery) AllX

func (raq *RobotAccountQuery) AllX(ctx context.Context) []*RobotAccount

AllX is like All, but panics if an error occurs.

func (*RobotAccountQuery) Clone

func (raq *RobotAccountQuery) Clone() *RobotAccountQuery

Clone returns a duplicate of the RobotAccountQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*RobotAccountQuery) Count

func (raq *RobotAccountQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RobotAccountQuery) CountX

func (raq *RobotAccountQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*RobotAccountQuery) Exist

func (raq *RobotAccountQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*RobotAccountQuery) ExistX

func (raq *RobotAccountQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*RobotAccountQuery) First

func (raq *RobotAccountQuery) First(ctx context.Context) (*RobotAccount, error)

First returns the first RobotAccount entity from the query. Returns a *NotFoundError when no RobotAccount was found.

func (*RobotAccountQuery) FirstID

func (raq *RobotAccountQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first RobotAccount ID from the query. Returns a *NotFoundError when no RobotAccount ID was found.

func (*RobotAccountQuery) FirstIDX

func (raq *RobotAccountQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*RobotAccountQuery) FirstX

func (raq *RobotAccountQuery) FirstX(ctx context.Context) *RobotAccount

FirstX is like First, but panics if an error occurs.

func (*RobotAccountQuery) GroupBy

func (raq *RobotAccountQuery) GroupBy(field string, fields ...string) *RobotAccountGroupBy

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.RobotAccount.Query().
	GroupBy(robotaccount.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*RobotAccountQuery) IDs

func (raq *RobotAccountQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of RobotAccount IDs.

func (*RobotAccountQuery) IDsX

func (raq *RobotAccountQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*RobotAccountQuery) Limit

func (raq *RobotAccountQuery) Limit(limit int) *RobotAccountQuery

Limit the number of records to be returned by this query.

func (*RobotAccountQuery) Offset

func (raq *RobotAccountQuery) Offset(offset int) *RobotAccountQuery

Offset to start from.

func (*RobotAccountQuery) Only

func (raq *RobotAccountQuery) Only(ctx context.Context) (*RobotAccount, error)

Only returns a single RobotAccount entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one RobotAccount entity is found. Returns a *NotFoundError when no RobotAccount entities are found.

func (*RobotAccountQuery) OnlyID

func (raq *RobotAccountQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only RobotAccount ID in the query. Returns a *NotSingularError when more than one RobotAccount ID is found. Returns a *NotFoundError when no entities are found.

func (*RobotAccountQuery) OnlyIDX

func (raq *RobotAccountQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*RobotAccountQuery) OnlyX

func (raq *RobotAccountQuery) OnlyX(ctx context.Context) *RobotAccount

OnlyX is like Only, but panics if an error occurs.

func (*RobotAccountQuery) Order

func (raq *RobotAccountQuery) Order(o ...OrderFunc) *RobotAccountQuery

Order specifies how the records should be ordered.

func (*RobotAccountQuery) QueryWorkflow

func (raq *RobotAccountQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*RobotAccountQuery) QueryWorkflowruns

func (raq *RobotAccountQuery) QueryWorkflowruns() *WorkflowRunQuery

QueryWorkflowruns chains the current query on the "workflowruns" edge.

func (*RobotAccountQuery) Select

func (raq *RobotAccountQuery) Select(fields ...string) *RobotAccountSelect

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.RobotAccount.Query().
	Select(robotaccount.FieldName).
	Scan(ctx, &v)

func (*RobotAccountQuery) Unique

func (raq *RobotAccountQuery) Unique(unique bool) *RobotAccountQuery

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 (*RobotAccountQuery) Where

Where adds a new predicate for the RobotAccountQuery builder.

func (*RobotAccountQuery) WithWorkflow

func (raq *RobotAccountQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *RobotAccountQuery

WithWorkflow tells the query-builder to eager-load the nodes that are connected to the "workflow" edge. The optional arguments are used to configure the query builder of the edge.

func (*RobotAccountQuery) WithWorkflowruns

func (raq *RobotAccountQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *RobotAccountQuery

WithWorkflowruns tells the query-builder to eager-load the nodes that are connected to the "workflowruns" edge. The optional arguments are used to configure the query builder of the edge.

type RobotAccountSelect

type RobotAccountSelect struct {
	*RobotAccountQuery
	// contains filtered or unexported fields
}

RobotAccountSelect is the builder for selecting fields of RobotAccount entities.

func (*RobotAccountSelect) Aggregate

func (ras *RobotAccountSelect) Aggregate(fns ...AggregateFunc) *RobotAccountSelect

Aggregate adds the given aggregation functions to the selector query.

func (*RobotAccountSelect) Bool

func (s *RobotAccountSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) BoolX

func (s *RobotAccountSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RobotAccountSelect) Bools

func (s *RobotAccountSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) BoolsX

func (s *RobotAccountSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RobotAccountSelect) Float64

func (s *RobotAccountSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) Float64X

func (s *RobotAccountSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RobotAccountSelect) Float64s

func (s *RobotAccountSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) Float64sX

func (s *RobotAccountSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RobotAccountSelect) Int

func (s *RobotAccountSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) IntX

func (s *RobotAccountSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RobotAccountSelect) Ints

func (s *RobotAccountSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) IntsX

func (s *RobotAccountSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RobotAccountSelect) Scan

func (ras *RobotAccountSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*RobotAccountSelect) ScanX

func (s *RobotAccountSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*RobotAccountSelect) String

func (s *RobotAccountSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) StringX

func (s *RobotAccountSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RobotAccountSelect) Strings

func (s *RobotAccountSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RobotAccountSelect) StringsX

func (s *RobotAccountSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RobotAccountUpdate

type RobotAccountUpdate struct {
	// contains filtered or unexported fields
}

RobotAccountUpdate is the builder for updating RobotAccount entities.

func (*RobotAccountUpdate) AddWorkflowrunIDs

func (rau *RobotAccountUpdate) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdate

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*RobotAccountUpdate) AddWorkflowruns

func (rau *RobotAccountUpdate) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdate

AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.

func (*RobotAccountUpdate) ClearRevokedAt

func (rau *RobotAccountUpdate) ClearRevokedAt() *RobotAccountUpdate

ClearRevokedAt clears the value of the "revoked_at" field.

func (*RobotAccountUpdate) ClearWorkflow

func (rau *RobotAccountUpdate) ClearWorkflow() *RobotAccountUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RobotAccountUpdate) ClearWorkflowruns

func (rau *RobotAccountUpdate) ClearWorkflowruns() *RobotAccountUpdate

ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun entity.

func (*RobotAccountUpdate) Exec

func (rau *RobotAccountUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RobotAccountUpdate) ExecX

func (rau *RobotAccountUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RobotAccountUpdate) Mutation

func (rau *RobotAccountUpdate) Mutation() *RobotAccountMutation

Mutation returns the RobotAccountMutation object of the builder.

func (*RobotAccountUpdate) RemoveWorkflowrunIDs

func (rau *RobotAccountUpdate) RemoveWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdate

RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.

func (*RobotAccountUpdate) RemoveWorkflowruns

func (rau *RobotAccountUpdate) RemoveWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdate

RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun entities.

func (*RobotAccountUpdate) Save

func (rau *RobotAccountUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*RobotAccountUpdate) SaveX

func (rau *RobotAccountUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*RobotAccountUpdate) SetName

func (rau *RobotAccountUpdate) SetName(s string) *RobotAccountUpdate

SetName sets the "name" field.

func (*RobotAccountUpdate) SetNillableRevokedAt

func (rau *RobotAccountUpdate) SetNillableRevokedAt(t *time.Time) *RobotAccountUpdate

SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.

func (*RobotAccountUpdate) SetNillableWorkflowID

func (rau *RobotAccountUpdate) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountUpdate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*RobotAccountUpdate) SetRevokedAt

func (rau *RobotAccountUpdate) SetRevokedAt(t time.Time) *RobotAccountUpdate

SetRevokedAt sets the "revoked_at" field.

func (*RobotAccountUpdate) SetWorkflow

func (rau *RobotAccountUpdate) SetWorkflow(w *Workflow) *RobotAccountUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RobotAccountUpdate) SetWorkflowID

func (rau *RobotAccountUpdate) SetWorkflowID(id uuid.UUID) *RobotAccountUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*RobotAccountUpdate) Where

Where appends a list predicates to the RobotAccountUpdate builder.

type RobotAccountUpdateOne

type RobotAccountUpdateOne struct {
	// contains filtered or unexported fields
}

RobotAccountUpdateOne is the builder for updating a single RobotAccount entity.

func (*RobotAccountUpdateOne) AddWorkflowrunIDs

func (rauo *RobotAccountUpdateOne) AddWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdateOne

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*RobotAccountUpdateOne) AddWorkflowruns

func (rauo *RobotAccountUpdateOne) AddWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdateOne

AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.

func (*RobotAccountUpdateOne) ClearRevokedAt

func (rauo *RobotAccountUpdateOne) ClearRevokedAt() *RobotAccountUpdateOne

ClearRevokedAt clears the value of the "revoked_at" field.

func (*RobotAccountUpdateOne) ClearWorkflow

func (rauo *RobotAccountUpdateOne) ClearWorkflow() *RobotAccountUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*RobotAccountUpdateOne) ClearWorkflowruns

func (rauo *RobotAccountUpdateOne) ClearWorkflowruns() *RobotAccountUpdateOne

ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun entity.

func (*RobotAccountUpdateOne) Exec

func (rauo *RobotAccountUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RobotAccountUpdateOne) ExecX

func (rauo *RobotAccountUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RobotAccountUpdateOne) Mutation

func (rauo *RobotAccountUpdateOne) Mutation() *RobotAccountMutation

Mutation returns the RobotAccountMutation object of the builder.

func (*RobotAccountUpdateOne) RemoveWorkflowrunIDs

func (rauo *RobotAccountUpdateOne) RemoveWorkflowrunIDs(ids ...uuid.UUID) *RobotAccountUpdateOne

RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.

func (*RobotAccountUpdateOne) RemoveWorkflowruns

func (rauo *RobotAccountUpdateOne) RemoveWorkflowruns(w ...*WorkflowRun) *RobotAccountUpdateOne

RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun entities.

func (*RobotAccountUpdateOne) Save

Save executes the query and returns the updated RobotAccount entity.

func (*RobotAccountUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*RobotAccountUpdateOne) Select

func (rauo *RobotAccountUpdateOne) Select(field string, fields ...string) *RobotAccountUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*RobotAccountUpdateOne) SetName

SetName sets the "name" field.

func (*RobotAccountUpdateOne) SetNillableRevokedAt

func (rauo *RobotAccountUpdateOne) SetNillableRevokedAt(t *time.Time) *RobotAccountUpdateOne

SetNillableRevokedAt sets the "revoked_at" field if the given value is not nil.

func (*RobotAccountUpdateOne) SetNillableWorkflowID

func (rauo *RobotAccountUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *RobotAccountUpdateOne

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*RobotAccountUpdateOne) SetRevokedAt

func (rauo *RobotAccountUpdateOne) SetRevokedAt(t time.Time) *RobotAccountUpdateOne

SetRevokedAt sets the "revoked_at" field.

func (*RobotAccountUpdateOne) SetWorkflow

func (rauo *RobotAccountUpdateOne) SetWorkflow(w *Workflow) *RobotAccountUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*RobotAccountUpdateOne) SetWorkflowID

func (rauo *RobotAccountUpdateOne) SetWorkflowID(id uuid.UUID) *RobotAccountUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*RobotAccountUpdateOne) Where

Where appends a list predicates to the RobotAccountUpdate builder.

type RobotAccounts

type RobotAccounts []*RobotAccount

RobotAccounts is a parsable slice of RobotAccount.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

type RollbackHook func(Rollbacker) Rollbacker

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollback method.

type TraverseFunc

type TraverseFunc = ent.TraverseFunc

ent aliases to avoid import conflicts in user's code.

type Traverser

type Traverser = ent.Traverser

ent aliases to avoid import conflicts in user's code.

type Tx

type Tx struct {

	// Integration is the client for interacting with the Integration builders.
	Integration *IntegrationClient
	// IntegrationAttachment is the client for interacting with the IntegrationAttachment builders.
	IntegrationAttachment *IntegrationAttachmentClient
	// Membership is the client for interacting with the Membership builders.
	Membership *MembershipClient
	// OCIRepository is the client for interacting with the OCIRepository builders.
	OCIRepository *OCIRepositoryClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// RobotAccount is the client for interacting with the RobotAccount builders.
	RobotAccount *RobotAccountClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// Workflow is the client for interacting with the Workflow builders.
	Workflow *WorkflowClient
	// WorkflowContract is the client for interacting with the WorkflowContract builders.
	WorkflowContract *WorkflowContractClient
	// WorkflowContractVersion is the client for interacting with the WorkflowContractVersion builders.
	WorkflowContractVersion *WorkflowContractVersionClient
	// WorkflowRun is the client for interacting with the WorkflowRun builders.
	WorkflowRun *WorkflowRunClient
	// 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 User

type User struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Email holds the value of the "email" field.
	Email string `json:"email,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the UserQuery when eager-loading is set.
	Edges UserEdges `json:"edges"`
	// contains filtered or unexported fields
}

User is the model entity for the User schema.

func (*User) QueryMemberships

func (u *User) QueryMemberships() *MembershipQuery

QueryMemberships queries the "memberships" edge of the User entity.

func (*User) String

func (u *User) String() string

String implements the fmt.Stringer.

func (*User) Unwrap

func (u *User) Unwrap() *User

Unwrap unwraps the User 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 (*User) Update

func (u *User) Update() *UserUpdateOne

Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.

type UserClient

type UserClient struct {
	// contains filtered or unexported fields
}

UserClient is a client for the User schema.

func NewUserClient

func NewUserClient(c config) *UserClient

NewUserClient returns a client for the User from the given config.

func (*UserClient) Create

func (c *UserClient) Create() *UserCreate

Create returns a builder for creating a User entity.

func (*UserClient) CreateBulk

func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk

CreateBulk returns a builder for creating a bulk of User entities.

func (*UserClient) Delete

func (c *UserClient) Delete() *UserDelete

Delete returns a delete builder for User.

func (*UserClient) DeleteOne

func (c *UserClient) DeleteOne(u *User) *UserDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserClient) DeleteOneID

func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserClient) Get

func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error)

Get returns a User entity by its id.

func (*UserClient) GetX

func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User

GetX is like Get, but panics if an error occurs.

func (*UserClient) Hooks

func (c *UserClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserClient) Intercept

func (c *UserClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.

func (*UserClient) Interceptors

func (c *UserClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserClient) Query

func (c *UserClient) Query() *UserQuery

Query returns a query builder for User.

func (*UserClient) QueryMemberships

func (c *UserClient) QueryMemberships(u *User) *MembershipQuery

QueryMemberships queries the memberships edge of a User.

func (*UserClient) Update

func (c *UserClient) Update() *UserUpdate

Update returns an update builder for User.

func (*UserClient) UpdateOne

func (c *UserClient) UpdateOne(u *User) *UserUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserClient) UpdateOneID

func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserClient) Use

func (c *UserClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.

type UserCreate

type UserCreate struct {
	// contains filtered or unexported fields
}

UserCreate is the builder for creating a User entity.

func (*UserCreate) AddMembershipIDs

func (uc *UserCreate) AddMembershipIDs(ids ...uuid.UUID) *UserCreate

AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.

func (*UserCreate) AddMemberships

func (uc *UserCreate) AddMemberships(m ...*Membership) *UserCreate

AddMemberships adds the "memberships" edges to the Membership entity.

func (*UserCreate) Exec

func (uc *UserCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreate) ExecX

func (uc *UserCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreate) Mutation

func (uc *UserCreate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserCreate) Save

func (uc *UserCreate) Save(ctx context.Context) (*User, error)

Save creates the User in the database.

func (*UserCreate) SaveX

func (uc *UserCreate) SaveX(ctx context.Context) *User

SaveX calls Save and panics if Save returns an error.

func (*UserCreate) SetCreatedAt

func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate

SetCreatedAt sets the "created_at" field.

func (*UserCreate) SetEmail

func (uc *UserCreate) SetEmail(s string) *UserCreate

SetEmail sets the "email" field.

func (*UserCreate) SetID

func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate

SetID sets the "id" field.

func (*UserCreate) SetNillableCreatedAt

func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserCreate) SetNillableID

func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate

SetNillableID sets the "id" field if the given value is not nil.

type UserCreateBulk

type UserCreateBulk struct {
	// contains filtered or unexported fields
}

UserCreateBulk is the builder for creating many User entities in bulk.

func (*UserCreateBulk) Exec

func (ucb *UserCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreateBulk) ExecX

func (ucb *UserCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreateBulk) Save

func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)

Save creates the User entities in the database.

func (*UserCreateBulk) SaveX

func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User

SaveX is like Save, but panics if an error occurs.

type UserDelete

type UserDelete struct {
	// contains filtered or unexported fields
}

UserDelete is the builder for deleting a User entity.

func (*UserDelete) Exec

func (ud *UserDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserDelete) ExecX

func (ud *UserDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserDelete) Where

func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete

Where appends a list predicates to the UserDelete builder.

type UserDeleteOne

type UserDeleteOne struct {
	// contains filtered or unexported fields
}

UserDeleteOne is the builder for deleting a single User entity.

func (*UserDeleteOne) Exec

func (udo *UserDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserDeleteOne) ExecX

func (udo *UserDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserDeleteOne) Where

func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne

Where appends a list predicates to the UserDelete builder.

type UserEdges

type UserEdges struct {
	// Memberships holds the value of the memberships edge.
	Memberships []*Membership `json:"memberships,omitempty"`
	// contains filtered or unexported fields
}

UserEdges holds the relations/edges for other nodes in the graph.

func (UserEdges) MembershipsOrErr

func (e UserEdges) MembershipsOrErr() ([]*Membership, error)

MembershipsOrErr returns the Memberships value or an error if the edge was not loaded in eager-loading.

type UserGroupBy

type UserGroupBy struct {
	// contains filtered or unexported fields
}

UserGroupBy is the group-by builder for User entities.

func (*UserGroupBy) Aggregate

func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserGroupBy) Bool

func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolX

func (s *UserGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserGroupBy) Bools

func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolsX

func (s *UserGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserGroupBy) Float64

func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64X

func (s *UserGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserGroupBy) Float64s

func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64sX

func (s *UserGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserGroupBy) Int

func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntX

func (s *UserGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserGroupBy) Ints

func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntsX

func (s *UserGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserGroupBy) Scan

func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserGroupBy) ScanX

func (s *UserGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserGroupBy) String

func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringX

func (s *UserGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserGroupBy) Strings

func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringsX

func (s *UserGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserMutation

type UserMutation struct {
	// contains filtered or unexported fields
}

UserMutation represents an operation that mutates the User nodes in the graph.

func (*UserMutation) AddField

func (m *UserMutation) 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 (*UserMutation) AddMembershipIDs

func (m *UserMutation) AddMembershipIDs(ids ...uuid.UUID)

AddMembershipIDs adds the "memberships" edge to the Membership entity by ids.

func (*UserMutation) AddedEdges

func (m *UserMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserMutation) AddedField

func (m *UserMutation) 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 (*UserMutation) AddedFields

func (m *UserMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserMutation) AddedIDs

func (m *UserMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserMutation) ClearEdge

func (m *UserMutation) 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 (*UserMutation) ClearField

func (m *UserMutation) 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 (*UserMutation) ClearMemberships

func (m *UserMutation) ClearMemberships()

ClearMemberships clears the "memberships" edge to the Membership entity.

func (*UserMutation) ClearedEdges

func (m *UserMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserMutation) ClearedFields

func (m *UserMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserMutation) Client

func (m UserMutation) 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 (*UserMutation) CreatedAt

func (m *UserMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserMutation) EdgeCleared

func (m *UserMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserMutation) Email

func (m *UserMutation) Email() (r string, exists bool)

Email returns the value of the "email" field in the mutation.

func (*UserMutation) Field

func (m *UserMutation) 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 (*UserMutation) FieldCleared

func (m *UserMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserMutation) Fields

func (m *UserMutation) 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 (*UserMutation) ID

func (m *UserMutation) 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 (*UserMutation) IDs

func (m *UserMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserMutation) MembershipsCleared

func (m *UserMutation) MembershipsCleared() bool

MembershipsCleared reports if the "memberships" edge to the Membership entity was cleared.

func (*UserMutation) MembershipsIDs

func (m *UserMutation) MembershipsIDs() (ids []uuid.UUID)

MembershipsIDs returns the "memberships" edge IDs in the mutation.

func (*UserMutation) OldCreatedAt

func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the User entity. If the User 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 (*UserMutation) OldEmail

func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)

OldEmail returns the old "email" field's value of the User entity. If the User 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 (*UserMutation) OldField

func (m *UserMutation) 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 (*UserMutation) Op

func (m *UserMutation) Op() Op

Op returns the operation name.

func (*UserMutation) RemoveMembershipIDs

func (m *UserMutation) RemoveMembershipIDs(ids ...uuid.UUID)

RemoveMembershipIDs removes the "memberships" edge to the Membership entity by IDs.

func (*UserMutation) RemovedEdges

func (m *UserMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserMutation) RemovedIDs

func (m *UserMutation) 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 (*UserMutation) RemovedMembershipsIDs

func (m *UserMutation) RemovedMembershipsIDs() (ids []uuid.UUID)

RemovedMemberships returns the removed IDs of the "memberships" edge to the Membership entity.

func (*UserMutation) ResetCreatedAt

func (m *UserMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserMutation) ResetEdge

func (m *UserMutation) 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 (*UserMutation) ResetEmail

func (m *UserMutation) ResetEmail()

ResetEmail resets all changes to the "email" field.

func (*UserMutation) ResetField

func (m *UserMutation) 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 (*UserMutation) ResetMemberships

func (m *UserMutation) ResetMemberships()

ResetMemberships resets all changes to the "memberships" edge.

func (*UserMutation) SetCreatedAt

func (m *UserMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserMutation) SetEmail

func (m *UserMutation) SetEmail(s string)

SetEmail sets the "email" field.

func (*UserMutation) SetField

func (m *UserMutation) 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 (*UserMutation) SetID

func (m *UserMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.

func (*UserMutation) SetOp

func (m *UserMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (UserMutation) Tx

func (m UserMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserMutation) Type

func (m *UserMutation) Type() string

Type returns the node type of this mutation (User).

func (*UserMutation) Where

func (m *UserMutation) Where(ps ...predicate.User)

Where appends a list predicates to the UserMutation builder.

func (*UserMutation) WhereP

func (m *UserMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserQuery

type UserQuery struct {
	// contains filtered or unexported fields
}

UserQuery is the builder for querying User entities.

func (*UserQuery) Aggregate

func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate returns a UserSelect configured with the given aggregations.

func (*UserQuery) All

func (uq *UserQuery) All(ctx context.Context) ([]*User, error)

All executes the query and returns a list of Users.

func (*UserQuery) AllX

func (uq *UserQuery) AllX(ctx context.Context) []*User

AllX is like All, but panics if an error occurs.

func (*UserQuery) Clone

func (uq *UserQuery) Clone() *UserQuery

Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserQuery) Count

func (uq *UserQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserQuery) CountX

func (uq *UserQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserQuery) Exist

func (uq *UserQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserQuery) ExistX

func (uq *UserQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserQuery) First

func (uq *UserQuery) First(ctx context.Context) (*User, error)

First returns the first User entity from the query. Returns a *NotFoundError when no User was found.

func (*UserQuery) FirstID

func (uq *UserQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.

func (*UserQuery) FirstIDX

func (uq *UserQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserQuery) FirstX

func (uq *UserQuery) FirstX(ctx context.Context) *User

FirstX is like First, but panics if an error occurs.

func (*UserQuery) GroupBy

func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy

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 {
	Email string `json:"email,omitempty"`
	Count int `json:"count,omitempty"`
}

client.User.Query().
	GroupBy(user.FieldEmail).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*UserQuery) IDs

func (uq *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of User IDs.

func (*UserQuery) IDsX

func (uq *UserQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*UserQuery) Limit

func (uq *UserQuery) Limit(limit int) *UserQuery

Limit the number of records to be returned by this query.

func (*UserQuery) Offset

func (uq *UserQuery) Offset(offset int) *UserQuery

Offset to start from.

func (*UserQuery) Only

func (uq *UserQuery) Only(ctx context.Context) (*User, error)

Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.

func (*UserQuery) OnlyID

func (uq *UserQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.

func (*UserQuery) OnlyIDX

func (uq *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserQuery) OnlyX

func (uq *UserQuery) OnlyX(ctx context.Context) *User

OnlyX is like Only, but panics if an error occurs.

func (*UserQuery) Order

func (uq *UserQuery) Order(o ...OrderFunc) *UserQuery

Order specifies how the records should be ordered.

func (*UserQuery) QueryMemberships

func (uq *UserQuery) QueryMemberships() *MembershipQuery

QueryMemberships chains the current query on the "memberships" edge.

func (*UserQuery) Select

func (uq *UserQuery) Select(fields ...string) *UserSelect

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 {
	Email string `json:"email,omitempty"`
}

client.User.Query().
	Select(user.FieldEmail).
	Scan(ctx, &v)

func (*UserQuery) Unique

func (uq *UserQuery) Unique(unique bool) *UserQuery

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 (*UserQuery) Where

func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery

Where adds a new predicate for the UserQuery builder.

func (*UserQuery) WithMemberships

func (uq *UserQuery) WithMemberships(opts ...func(*MembershipQuery)) *UserQuery

WithMemberships tells the query-builder to eager-load the nodes that are connected to the "memberships" edge. The optional arguments are used to configure the query builder of the edge.

type UserSelect

type UserSelect struct {
	*UserQuery
	// contains filtered or unexported fields
}

UserSelect is the builder for selecting fields of User entities.

func (*UserSelect) Aggregate

func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSelect) Bool

func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolX

func (s *UserSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserSelect) Bools

func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolsX

func (s *UserSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserSelect) Float64

func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64X

func (s *UserSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserSelect) Float64s

func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64sX

func (s *UserSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserSelect) Int

func (s *UserSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntX

func (s *UserSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserSelect) Ints

func (s *UserSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntsX

func (s *UserSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserSelect) Scan

func (us *UserSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserSelect) ScanX

func (s *UserSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserSelect) String

func (s *UserSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringX

func (s *UserSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserSelect) Strings

func (s *UserSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringsX

func (s *UserSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserUpdate

type UserUpdate struct {
	// contains filtered or unexported fields
}

UserUpdate is the builder for updating User entities.

func (*UserUpdate) AddMembershipIDs

func (uu *UserUpdate) AddMembershipIDs(ids ...uuid.UUID) *UserUpdate

AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.

func (*UserUpdate) AddMemberships

func (uu *UserUpdate) AddMemberships(m ...*Membership) *UserUpdate

AddMemberships adds the "memberships" edges to the Membership entity.

func (*UserUpdate) ClearMemberships

func (uu *UserUpdate) ClearMemberships() *UserUpdate

ClearMemberships clears all "memberships" edges to the Membership entity.

func (*UserUpdate) Exec

func (uu *UserUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpdate) ExecX

func (uu *UserUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdate) Mutation

func (uu *UserUpdate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdate) RemoveMembershipIDs

func (uu *UserUpdate) RemoveMembershipIDs(ids ...uuid.UUID) *UserUpdate

RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.

func (*UserUpdate) RemoveMemberships

func (uu *UserUpdate) RemoveMemberships(m ...*Membership) *UserUpdate

RemoveMemberships removes "memberships" edges to Membership entities.

func (*UserUpdate) Save

func (uu *UserUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserUpdate) SaveX

func (uu *UserUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserUpdate) SetEmail

func (uu *UserUpdate) SetEmail(s string) *UserUpdate

SetEmail sets the "email" field.

func (*UserUpdate) Where

func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate

Where appends a list predicates to the UserUpdate builder.

type UserUpdateOne

type UserUpdateOne struct {
	// contains filtered or unexported fields
}

UserUpdateOne is the builder for updating a single User entity.

func (*UserUpdateOne) AddMembershipIDs

func (uuo *UserUpdateOne) AddMembershipIDs(ids ...uuid.UUID) *UserUpdateOne

AddMembershipIDs adds the "memberships" edge to the Membership entity by IDs.

func (*UserUpdateOne) AddMemberships

func (uuo *UserUpdateOne) AddMemberships(m ...*Membership) *UserUpdateOne

AddMemberships adds the "memberships" edges to the Membership entity.

func (*UserUpdateOne) ClearMemberships

func (uuo *UserUpdateOne) ClearMemberships() *UserUpdateOne

ClearMemberships clears all "memberships" edges to the Membership entity.

func (*UserUpdateOne) Exec

func (uuo *UserUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserUpdateOne) ExecX

func (uuo *UserUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdateOne) Mutation

func (uuo *UserUpdateOne) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdateOne) RemoveMembershipIDs

func (uuo *UserUpdateOne) RemoveMembershipIDs(ids ...uuid.UUID) *UserUpdateOne

RemoveMembershipIDs removes the "memberships" edge to Membership entities by IDs.

func (*UserUpdateOne) RemoveMemberships

func (uuo *UserUpdateOne) RemoveMemberships(m ...*Membership) *UserUpdateOne

RemoveMemberships removes "memberships" edges to Membership entities.

func (*UserUpdateOne) Save

func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)

Save executes the query and returns the updated User entity.

func (*UserUpdateOne) SaveX

func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User

SaveX is like Save, but panics if an error occurs.

func (*UserUpdateOne) Select

func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserUpdateOne) SetEmail

func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne

SetEmail sets the "email" field.

func (*UserUpdateOne) Where

func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne

Where appends a list predicates to the UserUpdate builder.

type Users

type Users []*User

Users is a parsable slice of User.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field or edge fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

type Workflow

type Workflow struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Project holds the value of the "project" field.
	Project string `json:"project,omitempty"`
	// Team holds the value of the "team" field.
	Team string `json:"team,omitempty"`
	// RunsCount holds the value of the "runs_count" field.
	RunsCount int `json:"runs_count,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowQuery when eager-loading is set.
	Edges WorkflowEdges `json:"edges"`
	// contains filtered or unexported fields
}

Workflow is the model entity for the Workflow schema.

func (*Workflow) QueryContract

func (w *Workflow) QueryContract() *WorkflowContractQuery

QueryContract queries the "contract" edge of the Workflow entity.

func (*Workflow) QueryIntegrationAttachments

func (w *Workflow) QueryIntegrationAttachments() *IntegrationAttachmentQuery

QueryIntegrationAttachments queries the "integration_attachments" edge of the Workflow entity.

func (*Workflow) QueryOrganization

func (w *Workflow) QueryOrganization() *OrganizationQuery

QueryOrganization queries the "organization" edge of the Workflow entity.

func (*Workflow) QueryRobotaccounts

func (w *Workflow) QueryRobotaccounts() *RobotAccountQuery

QueryRobotaccounts queries the "robotaccounts" edge of the Workflow entity.

func (*Workflow) QueryWorkflowruns

func (w *Workflow) QueryWorkflowruns() *WorkflowRunQuery

QueryWorkflowruns queries the "workflowruns" edge of the Workflow entity.

func (*Workflow) String

func (w *Workflow) String() string

String implements the fmt.Stringer.

func (*Workflow) Unwrap

func (w *Workflow) Unwrap() *Workflow

Unwrap unwraps the Workflow entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Workflow) Update

func (w *Workflow) Update() *WorkflowUpdateOne

Update returns a builder for updating this Workflow. Note that you need to call Workflow.Unwrap() before calling this method if this Workflow was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowClient

type WorkflowClient struct {
	// contains filtered or unexported fields
}

WorkflowClient is a client for the Workflow schema.

func NewWorkflowClient

func NewWorkflowClient(c config) *WorkflowClient

NewWorkflowClient returns a client for the Workflow from the given config.

func (*WorkflowClient) Create

func (c *WorkflowClient) Create() *WorkflowCreate

Create returns a builder for creating a Workflow entity.

func (*WorkflowClient) CreateBulk

func (c *WorkflowClient) CreateBulk(builders ...*WorkflowCreate) *WorkflowCreateBulk

CreateBulk returns a builder for creating a bulk of Workflow entities.

func (*WorkflowClient) Delete

func (c *WorkflowClient) Delete() *WorkflowDelete

Delete returns a delete builder for Workflow.

func (*WorkflowClient) DeleteOne

func (c *WorkflowClient) DeleteOne(w *Workflow) *WorkflowDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*WorkflowClient) DeleteOneID

func (c *WorkflowClient) DeleteOneID(id uuid.UUID) *WorkflowDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*WorkflowClient) Get

func (c *WorkflowClient) Get(ctx context.Context, id uuid.UUID) (*Workflow, error)

Get returns a Workflow entity by its id.

func (*WorkflowClient) GetX

func (c *WorkflowClient) GetX(ctx context.Context, id uuid.UUID) *Workflow

GetX is like Get, but panics if an error occurs.

func (*WorkflowClient) Hooks

func (c *WorkflowClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowClient) Intercept

func (c *WorkflowClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflow.Intercept(f(g(h())))`.

func (*WorkflowClient) Interceptors

func (c *WorkflowClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*WorkflowClient) Query

func (c *WorkflowClient) Query() *WorkflowQuery

Query returns a query builder for Workflow.

func (*WorkflowClient) QueryContract

func (c *WorkflowClient) QueryContract(w *Workflow) *WorkflowContractQuery

QueryContract queries the contract edge of a Workflow.

func (*WorkflowClient) QueryIntegrationAttachments

func (c *WorkflowClient) QueryIntegrationAttachments(w *Workflow) *IntegrationAttachmentQuery

QueryIntegrationAttachments queries the integration_attachments edge of a Workflow.

func (*WorkflowClient) QueryOrganization

func (c *WorkflowClient) QueryOrganization(w *Workflow) *OrganizationQuery

QueryOrganization queries the organization edge of a Workflow.

func (*WorkflowClient) QueryRobotaccounts

func (c *WorkflowClient) QueryRobotaccounts(w *Workflow) *RobotAccountQuery

QueryRobotaccounts queries the robotaccounts edge of a Workflow.

func (*WorkflowClient) QueryWorkflowruns

func (c *WorkflowClient) QueryWorkflowruns(w *Workflow) *WorkflowRunQuery

QueryWorkflowruns queries the workflowruns 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 WorkflowContract

type WorkflowContract struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// DeletedAt holds the value of the "deleted_at" field.
	DeletedAt time.Time `json:"deleted_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowContractQuery when eager-loading is set.
	Edges WorkflowContractEdges `json:"edges"`
	// contains filtered or unexported fields
}

WorkflowContract is the model entity for the WorkflowContract schema.

func (*WorkflowContract) QueryOrganization

func (wc *WorkflowContract) QueryOrganization() *OrganizationQuery

QueryOrganization queries the "organization" edge of the WorkflowContract entity.

func (*WorkflowContract) QueryVersions

func (wc *WorkflowContract) QueryVersions() *WorkflowContractVersionQuery

QueryVersions queries the "versions" edge of the WorkflowContract entity.

func (*WorkflowContract) QueryWorkflows

func (wc *WorkflowContract) QueryWorkflows() *WorkflowQuery

QueryWorkflows queries the "workflows" edge of the WorkflowContract entity.

func (*WorkflowContract) String

func (wc *WorkflowContract) String() string

String implements the fmt.Stringer.

func (*WorkflowContract) Unwrap

func (wc *WorkflowContract) Unwrap() *WorkflowContract

Unwrap unwraps the WorkflowContract 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 (*WorkflowContract) Update

Update returns a builder for updating this WorkflowContract. Note that you need to call WorkflowContract.Unwrap() before calling this method if this WorkflowContract was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowContractClient

type WorkflowContractClient struct {
	// contains filtered or unexported fields
}

WorkflowContractClient is a client for the WorkflowContract schema.

func NewWorkflowContractClient

func NewWorkflowContractClient(c config) *WorkflowContractClient

NewWorkflowContractClient returns a client for the WorkflowContract from the given config.

func (*WorkflowContractClient) Create

Create returns a builder for creating a WorkflowContract entity.

func (*WorkflowContractClient) CreateBulk

CreateBulk returns a builder for creating a bulk of WorkflowContract entities.

func (*WorkflowContractClient) Delete

Delete returns a delete builder for WorkflowContract.

func (*WorkflowContractClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*WorkflowContractClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*WorkflowContractClient) Get

Get returns a WorkflowContract entity by its id.

func (*WorkflowContractClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WorkflowContractClient) Hooks

func (c *WorkflowContractClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowContractClient) Intercept

func (c *WorkflowContractClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflowcontract.Intercept(f(g(h())))`.

func (*WorkflowContractClient) Interceptors

func (c *WorkflowContractClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*WorkflowContractClient) Query

Query returns a query builder for WorkflowContract.

func (*WorkflowContractClient) QueryOrganization

func (c *WorkflowContractClient) QueryOrganization(wc *WorkflowContract) *OrganizationQuery

QueryOrganization queries the organization edge of a WorkflowContract.

func (*WorkflowContractClient) QueryVersions

QueryVersions queries the versions edge of a WorkflowContract.

func (*WorkflowContractClient) QueryWorkflows

func (c *WorkflowContractClient) QueryWorkflows(wc *WorkflowContract) *WorkflowQuery

QueryWorkflows queries the workflows edge of a WorkflowContract.

func (*WorkflowContractClient) Update

Update returns an update builder for WorkflowContract.

func (*WorkflowContractClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowContractClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*WorkflowContractClient) Use

func (c *WorkflowContractClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowcontract.Hooks(f(g(h())))`.

type WorkflowContractCreate

type WorkflowContractCreate struct {
	// contains filtered or unexported fields
}

WorkflowContractCreate is the builder for creating a WorkflowContract entity.

func (*WorkflowContractCreate) AddVersionIDs

func (wcc *WorkflowContractCreate) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractCreate

AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by IDs.

func (*WorkflowContractCreate) AddVersions

AddVersions adds the "versions" edges to the WorkflowContractVersion entity.

func (*WorkflowContractCreate) AddWorkflowIDs

func (wcc *WorkflowContractCreate) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractCreate

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*WorkflowContractCreate) AddWorkflows

func (wcc *WorkflowContractCreate) AddWorkflows(w ...*Workflow) *WorkflowContractCreate

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*WorkflowContractCreate) Exec

Exec executes the query.

func (*WorkflowContractCreate) ExecX

func (wcc *WorkflowContractCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractCreate) Mutation

Mutation returns the WorkflowContractMutation object of the builder.

func (*WorkflowContractCreate) Save

Save creates the WorkflowContract in the database.

func (*WorkflowContractCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*WorkflowContractCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*WorkflowContractCreate) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowContractCreate) SetID

SetID sets the "id" field.

func (*WorkflowContractCreate) SetName

SetName sets the "name" field.

func (*WorkflowContractCreate) SetNillableCreatedAt

func (wcc *WorkflowContractCreate) SetNillableCreatedAt(t *time.Time) *WorkflowContractCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*WorkflowContractCreate) SetNillableDeletedAt

func (wcc *WorkflowContractCreate) SetNillableDeletedAt(t *time.Time) *WorkflowContractCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*WorkflowContractCreate) SetNillableID

func (wcc *WorkflowContractCreate) SetNillableID(u *uuid.UUID) *WorkflowContractCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*WorkflowContractCreate) SetNillableOrganizationID

func (wcc *WorkflowContractCreate) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractCreate

SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.

func (*WorkflowContractCreate) SetOrganization

SetOrganization sets the "organization" edge to the Organization entity.

func (*WorkflowContractCreate) SetOrganizationID

func (wcc *WorkflowContractCreate) SetOrganizationID(id uuid.UUID) *WorkflowContractCreate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

type WorkflowContractCreateBulk

type WorkflowContractCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowContractCreateBulk is the builder for creating many WorkflowContract entities in bulk.

func (*WorkflowContractCreateBulk) Exec

Exec executes the query.

func (*WorkflowContractCreateBulk) ExecX

func (wccb *WorkflowContractCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractCreateBulk) Save

Save creates the WorkflowContract entities in the database.

func (*WorkflowContractCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type WorkflowContractDelete

type WorkflowContractDelete struct {
	// contains filtered or unexported fields
}

WorkflowContractDelete is the builder for deleting a WorkflowContract entity.

func (*WorkflowContractDelete) Exec

func (wcd *WorkflowContractDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowContractDelete) ExecX

func (wcd *WorkflowContractDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractDelete) Where

Where appends a list predicates to the WorkflowContractDelete builder.

type WorkflowContractDeleteOne

type WorkflowContractDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowContractDeleteOne is the builder for deleting a single WorkflowContract entity.

func (*WorkflowContractDeleteOne) Exec

Exec executes the deletion query.

func (*WorkflowContractDeleteOne) ExecX

func (wcdo *WorkflowContractDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractDeleteOne) Where

Where appends a list predicates to the WorkflowContractDelete builder.

type WorkflowContractEdges

type WorkflowContractEdges struct {
	// Versions holds the value of the versions edge.
	Versions []*WorkflowContractVersion `json:"versions,omitempty"`
	// Organization holds the value of the organization edge.
	Organization *Organization `json:"organization,omitempty"`
	// Workflows holds the value of the workflows edge.
	Workflows []*Workflow `json:"workflows,omitempty"`
	// contains filtered or unexported fields
}

WorkflowContractEdges holds the relations/edges for other nodes in the graph.

func (WorkflowContractEdges) OrganizationOrErr

func (e WorkflowContractEdges) OrganizationOrErr() (*Organization, error)

OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowContractEdges) VersionsOrErr

func (e WorkflowContractEdges) VersionsOrErr() ([]*WorkflowContractVersion, error)

VersionsOrErr returns the Versions value or an error if the edge was not loaded in eager-loading.

func (WorkflowContractEdges) WorkflowsOrErr

func (e WorkflowContractEdges) WorkflowsOrErr() ([]*Workflow, error)

WorkflowsOrErr returns the Workflows value or an error if the edge was not loaded in eager-loading.

type WorkflowContractGroupBy

type WorkflowContractGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowContractGroupBy is the group-by builder for WorkflowContract entities.

func (*WorkflowContractGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowContractGroupBy) Bool

func (s *WorkflowContractGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) BoolX

func (s *WorkflowContractGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowContractGroupBy) Bools

func (s *WorkflowContractGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) BoolsX

func (s *WorkflowContractGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowContractGroupBy) Float64

func (s *WorkflowContractGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) Float64X

func (s *WorkflowContractGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowContractGroupBy) Float64s

func (s *WorkflowContractGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) Float64sX

func (s *WorkflowContractGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowContractGroupBy) Int

func (s *WorkflowContractGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) IntX

func (s *WorkflowContractGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowContractGroupBy) Ints

func (s *WorkflowContractGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) IntsX

func (s *WorkflowContractGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowContractGroupBy) Scan

func (wcgb *WorkflowContractGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowContractGroupBy) ScanX

func (s *WorkflowContractGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowContractGroupBy) String

func (s *WorkflowContractGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) StringX

func (s *WorkflowContractGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowContractGroupBy) Strings

func (s *WorkflowContractGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowContractGroupBy) StringsX

func (s *WorkflowContractGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowContractMutation

type WorkflowContractMutation struct {
	// contains filtered or unexported fields
}

WorkflowContractMutation represents an operation that mutates the WorkflowContract nodes in the graph.

func (*WorkflowContractMutation) AddField

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) AddVersionIDs

func (m *WorkflowContractMutation) AddVersionIDs(ids ...uuid.UUID)

AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by ids.

func (*WorkflowContractMutation) AddWorkflowIDs

func (m *WorkflowContractMutation) AddWorkflowIDs(ids ...uuid.UUID)

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by ids.

func (*WorkflowContractMutation) AddedEdges

func (m *WorkflowContractMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowContractMutation) AddedField

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) AddedFields

func (m *WorkflowContractMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowContractMutation) AddedIDs

func (m *WorkflowContractMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowContractMutation) ClearDeletedAt

func (m *WorkflowContractMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*WorkflowContractMutation) ClearEdge

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ClearField

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ClearOrganization

func (m *WorkflowContractMutation) ClearOrganization()

ClearOrganization clears the "organization" edge to the Organization entity.

func (*WorkflowContractMutation) ClearVersions

func (m *WorkflowContractMutation) ClearVersions()

ClearVersions clears the "versions" edge to the WorkflowContractVersion entity.

func (*WorkflowContractMutation) ClearWorkflows

func (m *WorkflowContractMutation) ClearWorkflows()

ClearWorkflows clears the "workflows" edge to the Workflow entity.

func (*WorkflowContractMutation) ClearedEdges

func (m *WorkflowContractMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowContractMutation) ClearedFields

func (m *WorkflowContractMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowContractMutation) Client

func (m WorkflowContractMutation) 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 (*WorkflowContractMutation) CreatedAt

func (m *WorkflowContractMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*WorkflowContractMutation) DeletedAt

func (m *WorkflowContractMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*WorkflowContractMutation) DeletedAtCleared

func (m *WorkflowContractMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*WorkflowContractMutation) EdgeCleared

func (m *WorkflowContractMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowContractMutation) Field

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) FieldCleared

func (m *WorkflowContractMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowContractMutation) Fields

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ID

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*WorkflowContractMutation) Name

func (m *WorkflowContractMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*WorkflowContractMutation) OldCreatedAt

func (m *WorkflowContractMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the WorkflowContract entity. If the WorkflowContract 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 (*WorkflowContractMutation) OldDeletedAt

func (m *WorkflowContractMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the WorkflowContract entity. If the WorkflowContract 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 (*WorkflowContractMutation) OldField

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) OldName

func (m *WorkflowContractMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the WorkflowContract entity. If the WorkflowContract 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 (*WorkflowContractMutation) Op

func (m *WorkflowContractMutation) Op() Op

Op returns the operation name.

func (*WorkflowContractMutation) OrganizationCleared

func (m *WorkflowContractMutation) OrganizationCleared() bool

OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.

func (*WorkflowContractMutation) OrganizationID

func (m *WorkflowContractMutation) OrganizationID() (id uuid.UUID, exists bool)

OrganizationID returns the "organization" edge ID in the mutation.

func (*WorkflowContractMutation) OrganizationIDs

func (m *WorkflowContractMutation) OrganizationIDs() (ids []uuid.UUID)

OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.

func (*WorkflowContractMutation) RemoveVersionIDs

func (m *WorkflowContractMutation) RemoveVersionIDs(ids ...uuid.UUID)

RemoveVersionIDs removes the "versions" edge to the WorkflowContractVersion entity by IDs.

func (*WorkflowContractMutation) RemoveWorkflowIDs

func (m *WorkflowContractMutation) RemoveWorkflowIDs(ids ...uuid.UUID)

RemoveWorkflowIDs removes the "workflows" edge to the Workflow entity by IDs.

func (*WorkflowContractMutation) RemovedEdges

func (m *WorkflowContractMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowContractMutation) RemovedIDs

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) RemovedVersionsIDs

func (m *WorkflowContractMutation) RemovedVersionsIDs() (ids []uuid.UUID)

RemovedVersions returns the removed IDs of the "versions" edge to the WorkflowContractVersion entity.

func (*WorkflowContractMutation) RemovedWorkflowsIDs

func (m *WorkflowContractMutation) RemovedWorkflowsIDs() (ids []uuid.UUID)

RemovedWorkflows returns the removed IDs of the "workflows" edge to the Workflow entity.

func (*WorkflowContractMutation) ResetCreatedAt

func (m *WorkflowContractMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*WorkflowContractMutation) ResetDeletedAt

func (m *WorkflowContractMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*WorkflowContractMutation) ResetEdge

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ResetField

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) ResetName

func (m *WorkflowContractMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*WorkflowContractMutation) ResetOrganization

func (m *WorkflowContractMutation) ResetOrganization()

ResetOrganization resets all changes to the "organization" edge.

func (*WorkflowContractMutation) ResetVersions

func (m *WorkflowContractMutation) ResetVersions()

ResetVersions resets all changes to the "versions" edge.

func (*WorkflowContractMutation) ResetWorkflows

func (m *WorkflowContractMutation) ResetWorkflows()

ResetWorkflows resets all changes to the "workflows" edge.

func (*WorkflowContractMutation) SetCreatedAt

func (m *WorkflowContractMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*WorkflowContractMutation) SetDeletedAt

func (m *WorkflowContractMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowContractMutation) SetField

func (m *WorkflowContractMutation) 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 (*WorkflowContractMutation) SetID

func (m *WorkflowContractMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of WorkflowContract entities.

func (*WorkflowContractMutation) SetName

func (m *WorkflowContractMutation) SetName(s string)

SetName sets the "name" field.

func (*WorkflowContractMutation) SetOp

func (m *WorkflowContractMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*WorkflowContractMutation) SetOrganizationID

func (m *WorkflowContractMutation) SetOrganizationID(id uuid.UUID)

SetOrganizationID sets the "organization" edge to the Organization entity by id.

func (WorkflowContractMutation) Tx

func (m WorkflowContractMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowContractMutation) Type

func (m *WorkflowContractMutation) Type() string

Type returns the node type of this mutation (WorkflowContract).

func (*WorkflowContractMutation) VersionsCleared

func (m *WorkflowContractMutation) VersionsCleared() bool

VersionsCleared reports if the "versions" edge to the WorkflowContractVersion entity was cleared.

func (*WorkflowContractMutation) VersionsIDs

func (m *WorkflowContractMutation) VersionsIDs() (ids []uuid.UUID)

VersionsIDs returns the "versions" edge IDs in the mutation.

func (*WorkflowContractMutation) Where

Where appends a list predicates to the WorkflowContractMutation builder.

func (*WorkflowContractMutation) WhereP

func (m *WorkflowContractMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the WorkflowContractMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*WorkflowContractMutation) WorkflowsCleared

func (m *WorkflowContractMutation) WorkflowsCleared() bool

WorkflowsCleared reports if the "workflows" edge to the Workflow entity was cleared.

func (*WorkflowContractMutation) WorkflowsIDs

func (m *WorkflowContractMutation) WorkflowsIDs() (ids []uuid.UUID)

WorkflowsIDs returns the "workflows" edge IDs in the mutation.

type WorkflowContractQuery

type WorkflowContractQuery struct {
	// contains filtered or unexported fields
}

WorkflowContractQuery is the builder for querying WorkflowContract entities.

func (*WorkflowContractQuery) Aggregate

Aggregate returns a WorkflowContractSelect configured with the given aggregations.

func (*WorkflowContractQuery) All

All executes the query and returns a list of WorkflowContracts.

func (*WorkflowContractQuery) AllX

AllX is like All, but panics if an error occurs.

func (*WorkflowContractQuery) Clone

Clone returns a duplicate of the WorkflowContractQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowContractQuery) Count

func (wcq *WorkflowContractQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowContractQuery) CountX

func (wcq *WorkflowContractQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowContractQuery) Exist

func (wcq *WorkflowContractQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowContractQuery) ExistX

func (wcq *WorkflowContractQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowContractQuery) First

First returns the first WorkflowContract entity from the query. Returns a *NotFoundError when no WorkflowContract was found.

func (*WorkflowContractQuery) FirstID

func (wcq *WorkflowContractQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first WorkflowContract ID from the query. Returns a *NotFoundError when no WorkflowContract ID was found.

func (*WorkflowContractQuery) FirstIDX

func (wcq *WorkflowContractQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowContractQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*WorkflowContractQuery) GroupBy

func (wcq *WorkflowContractQuery) GroupBy(field string, fields ...string) *WorkflowContractGroupBy

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.WorkflowContract.Query().
	GroupBy(workflowcontract.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowContractQuery) IDs

func (wcq *WorkflowContractQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of WorkflowContract IDs.

func (*WorkflowContractQuery) IDsX

func (wcq *WorkflowContractQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowContractQuery) Limit

func (wcq *WorkflowContractQuery) Limit(limit int) *WorkflowContractQuery

Limit the number of records to be returned by this query.

func (*WorkflowContractQuery) Offset

func (wcq *WorkflowContractQuery) Offset(offset int) *WorkflowContractQuery

Offset to start from.

func (*WorkflowContractQuery) Only

Only returns a single WorkflowContract entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WorkflowContract entity is found. Returns a *NotFoundError when no WorkflowContract entities are found.

func (*WorkflowContractQuery) OnlyID

func (wcq *WorkflowContractQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only WorkflowContract ID in the query. Returns a *NotSingularError when more than one WorkflowContract ID is found. Returns a *NotFoundError when no entities are found.

func (*WorkflowContractQuery) OnlyIDX

func (wcq *WorkflowContractQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowContractQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowContractQuery) Order

Order specifies how the records should be ordered.

func (*WorkflowContractQuery) QueryOrganization

func (wcq *WorkflowContractQuery) QueryOrganization() *OrganizationQuery

QueryOrganization chains the current query on the "organization" edge.

func (*WorkflowContractQuery) QueryVersions

QueryVersions chains the current query on the "versions" edge.

func (*WorkflowContractQuery) QueryWorkflows

func (wcq *WorkflowContractQuery) QueryWorkflows() *WorkflowQuery

QueryWorkflows chains the current query on the "workflows" edge.

func (*WorkflowContractQuery) Select

func (wcq *WorkflowContractQuery) Select(fields ...string) *WorkflowContractSelect

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.WorkflowContract.Query().
	Select(workflowcontract.FieldName).
	Scan(ctx, &v)

func (*WorkflowContractQuery) Unique

func (wcq *WorkflowContractQuery) Unique(unique bool) *WorkflowContractQuery

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 (*WorkflowContractQuery) Where

Where adds a new predicate for the WorkflowContractQuery builder.

func (*WorkflowContractQuery) WithOrganization

func (wcq *WorkflowContractQuery) WithOrganization(opts ...func(*OrganizationQuery)) *WorkflowContractQuery

WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowContractQuery) WithVersions

WithVersions tells the query-builder to eager-load the nodes that are connected to the "versions" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowContractQuery) WithWorkflows

func (wcq *WorkflowContractQuery) WithWorkflows(opts ...func(*WorkflowQuery)) *WorkflowContractQuery

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 WorkflowContractSelect

type WorkflowContractSelect struct {
	*WorkflowContractQuery
	// contains filtered or unexported fields
}

WorkflowContractSelect is the builder for selecting fields of WorkflowContract entities.

func (*WorkflowContractSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*WorkflowContractSelect) Bool

func (s *WorkflowContractSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) BoolX

func (s *WorkflowContractSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowContractSelect) Bools

func (s *WorkflowContractSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) BoolsX

func (s *WorkflowContractSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowContractSelect) Float64

func (s *WorkflowContractSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) Float64X

func (s *WorkflowContractSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowContractSelect) Float64s

func (s *WorkflowContractSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) Float64sX

func (s *WorkflowContractSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowContractSelect) Int

func (s *WorkflowContractSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) IntX

func (s *WorkflowContractSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowContractSelect) Ints

func (s *WorkflowContractSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) IntsX

func (s *WorkflowContractSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowContractSelect) Scan

func (wcs *WorkflowContractSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowContractSelect) ScanX

func (s *WorkflowContractSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowContractSelect) String

func (s *WorkflowContractSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) StringX

func (s *WorkflowContractSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowContractSelect) Strings

func (s *WorkflowContractSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowContractSelect) StringsX

func (s *WorkflowContractSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowContractUpdate

type WorkflowContractUpdate struct {
	// contains filtered or unexported fields
}

WorkflowContractUpdate is the builder for updating WorkflowContract entities.

func (*WorkflowContractUpdate) AddVersionIDs

func (wcu *WorkflowContractUpdate) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdate

AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by IDs.

func (*WorkflowContractUpdate) AddVersions

AddVersions adds the "versions" edges to the WorkflowContractVersion entity.

func (*WorkflowContractUpdate) AddWorkflowIDs

func (wcu *WorkflowContractUpdate) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdate

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*WorkflowContractUpdate) AddWorkflows

func (wcu *WorkflowContractUpdate) AddWorkflows(w ...*Workflow) *WorkflowContractUpdate

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*WorkflowContractUpdate) ClearDeletedAt

func (wcu *WorkflowContractUpdate) ClearDeletedAt() *WorkflowContractUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*WorkflowContractUpdate) ClearOrganization

func (wcu *WorkflowContractUpdate) ClearOrganization() *WorkflowContractUpdate

ClearOrganization clears the "organization" edge to the Organization entity.

func (*WorkflowContractUpdate) ClearVersions

func (wcu *WorkflowContractUpdate) ClearVersions() *WorkflowContractUpdate

ClearVersions clears all "versions" edges to the WorkflowContractVersion entity.

func (*WorkflowContractUpdate) ClearWorkflows

func (wcu *WorkflowContractUpdate) ClearWorkflows() *WorkflowContractUpdate

ClearWorkflows clears all "workflows" edges to the Workflow entity.

func (*WorkflowContractUpdate) Exec

Exec executes the query.

func (*WorkflowContractUpdate) ExecX

func (wcu *WorkflowContractUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractUpdate) Mutation

Mutation returns the WorkflowContractMutation object of the builder.

func (*WorkflowContractUpdate) RemoveVersionIDs

func (wcu *WorkflowContractUpdate) RemoveVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdate

RemoveVersionIDs removes the "versions" edge to WorkflowContractVersion entities by IDs.

func (*WorkflowContractUpdate) RemoveVersions

RemoveVersions removes "versions" edges to WorkflowContractVersion entities.

func (*WorkflowContractUpdate) RemoveWorkflowIDs

func (wcu *WorkflowContractUpdate) RemoveWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdate

RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.

func (*WorkflowContractUpdate) RemoveWorkflows

func (wcu *WorkflowContractUpdate) RemoveWorkflows(w ...*Workflow) *WorkflowContractUpdate

RemoveWorkflows removes "workflows" edges to Workflow entities.

func (*WorkflowContractUpdate) Save

func (wcu *WorkflowContractUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowContractUpdate) SaveX

func (wcu *WorkflowContractUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WorkflowContractUpdate) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowContractUpdate) SetName

SetName sets the "name" field.

func (*WorkflowContractUpdate) SetNillableDeletedAt

func (wcu *WorkflowContractUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*WorkflowContractUpdate) SetNillableOrganizationID

func (wcu *WorkflowContractUpdate) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractUpdate

SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.

func (*WorkflowContractUpdate) SetOrganization

SetOrganization sets the "organization" edge to the Organization entity.

func (*WorkflowContractUpdate) SetOrganizationID

func (wcu *WorkflowContractUpdate) SetOrganizationID(id uuid.UUID) *WorkflowContractUpdate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*WorkflowContractUpdate) Where

Where appends a list predicates to the WorkflowContractUpdate builder.

type WorkflowContractUpdateOne

type WorkflowContractUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowContractUpdateOne is the builder for updating a single WorkflowContract entity.

func (*WorkflowContractUpdateOne) AddVersionIDs

func (wcuo *WorkflowContractUpdateOne) AddVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne

AddVersionIDs adds the "versions" edge to the WorkflowContractVersion entity by IDs.

func (*WorkflowContractUpdateOne) AddVersions

AddVersions adds the "versions" edges to the WorkflowContractVersion entity.

func (*WorkflowContractUpdateOne) AddWorkflowIDs

func (wcuo *WorkflowContractUpdateOne) AddWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne

AddWorkflowIDs adds the "workflows" edge to the Workflow entity by IDs.

func (*WorkflowContractUpdateOne) AddWorkflows

AddWorkflows adds the "workflows" edges to the Workflow entity.

func (*WorkflowContractUpdateOne) ClearDeletedAt

func (wcuo *WorkflowContractUpdateOne) ClearDeletedAt() *WorkflowContractUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*WorkflowContractUpdateOne) ClearOrganization

func (wcuo *WorkflowContractUpdateOne) ClearOrganization() *WorkflowContractUpdateOne

ClearOrganization clears the "organization" edge to the Organization entity.

func (*WorkflowContractUpdateOne) ClearVersions

ClearVersions clears all "versions" edges to the WorkflowContractVersion entity.

func (*WorkflowContractUpdateOne) ClearWorkflows

func (wcuo *WorkflowContractUpdateOne) ClearWorkflows() *WorkflowContractUpdateOne

ClearWorkflows clears all "workflows" edges to the Workflow entity.

func (*WorkflowContractUpdateOne) Exec

Exec executes the query on the entity.

func (*WorkflowContractUpdateOne) ExecX

func (wcuo *WorkflowContractUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractUpdateOne) Mutation

Mutation returns the WorkflowContractMutation object of the builder.

func (*WorkflowContractUpdateOne) RemoveVersionIDs

func (wcuo *WorkflowContractUpdateOne) RemoveVersionIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne

RemoveVersionIDs removes the "versions" edge to WorkflowContractVersion entities by IDs.

func (*WorkflowContractUpdateOne) RemoveVersions

RemoveVersions removes "versions" edges to WorkflowContractVersion entities.

func (*WorkflowContractUpdateOne) RemoveWorkflowIDs

func (wcuo *WorkflowContractUpdateOne) RemoveWorkflowIDs(ids ...uuid.UUID) *WorkflowContractUpdateOne

RemoveWorkflowIDs removes the "workflows" edge to Workflow entities by IDs.

func (*WorkflowContractUpdateOne) RemoveWorkflows

func (wcuo *WorkflowContractUpdateOne) RemoveWorkflows(w ...*Workflow) *WorkflowContractUpdateOne

RemoveWorkflows removes "workflows" edges to Workflow entities.

func (*WorkflowContractUpdateOne) Save

Save executes the query and returns the updated WorkflowContract entity.

func (*WorkflowContractUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WorkflowContractUpdateOne) Select

func (wcuo *WorkflowContractUpdateOne) Select(field string, fields ...string) *WorkflowContractUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowContractUpdateOne) SetDeletedAt

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowContractUpdateOne) SetName

SetName sets the "name" field.

func (*WorkflowContractUpdateOne) SetNillableDeletedAt

func (wcuo *WorkflowContractUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowContractUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*WorkflowContractUpdateOne) SetNillableOrganizationID

func (wcuo *WorkflowContractUpdateOne) SetNillableOrganizationID(id *uuid.UUID) *WorkflowContractUpdateOne

SetNillableOrganizationID sets the "organization" edge to the Organization entity by ID if the given value is not nil.

func (*WorkflowContractUpdateOne) SetOrganization

SetOrganization sets the "organization" edge to the Organization entity.

func (*WorkflowContractUpdateOne) SetOrganizationID

func (wcuo *WorkflowContractUpdateOne) SetOrganizationID(id uuid.UUID) *WorkflowContractUpdateOne

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*WorkflowContractUpdateOne) Where

Where appends a list predicates to the WorkflowContractUpdate builder.

type WorkflowContractVersion

type WorkflowContractVersion struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Body holds the value of the "body" field.
	Body []byte `json:"body,omitempty"`
	// Revision holds the value of the "revision" field.
	Revision int `json:"revision,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowContractVersionQuery when eager-loading is set.
	Edges WorkflowContractVersionEdges `json:"edges"`
	// contains filtered or unexported fields
}

WorkflowContractVersion is the model entity for the WorkflowContractVersion schema.

func (*WorkflowContractVersion) QueryContract

func (wcv *WorkflowContractVersion) QueryContract() *WorkflowContractQuery

QueryContract queries the "contract" edge of the WorkflowContractVersion entity.

func (*WorkflowContractVersion) String

func (wcv *WorkflowContractVersion) String() string

String implements the fmt.Stringer.

func (*WorkflowContractVersion) Unwrap

Unwrap unwraps the WorkflowContractVersion 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 (*WorkflowContractVersion) Update

Update returns a builder for updating this WorkflowContractVersion. Note that you need to call WorkflowContractVersion.Unwrap() before calling this method if this WorkflowContractVersion was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowContractVersionClient

type WorkflowContractVersionClient struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionClient is a client for the WorkflowContractVersion schema.

func NewWorkflowContractVersionClient

func NewWorkflowContractVersionClient(c config) *WorkflowContractVersionClient

NewWorkflowContractVersionClient returns a client for the WorkflowContractVersion from the given config.

func (*WorkflowContractVersionClient) Create

Create returns a builder for creating a WorkflowContractVersion entity.

func (*WorkflowContractVersionClient) CreateBulk

CreateBulk returns a builder for creating a bulk of WorkflowContractVersion entities.

func (*WorkflowContractVersionClient) Delete

Delete returns a delete builder for WorkflowContractVersion.

func (*WorkflowContractVersionClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*WorkflowContractVersionClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*WorkflowContractVersionClient) Get

Get returns a WorkflowContractVersion entity by its id.

func (*WorkflowContractVersionClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WorkflowContractVersionClient) Hooks

func (c *WorkflowContractVersionClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowContractVersionClient) Intercept

func (c *WorkflowContractVersionClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflowcontractversion.Intercept(f(g(h())))`.

func (*WorkflowContractVersionClient) Interceptors

func (c *WorkflowContractVersionClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*WorkflowContractVersionClient) Query

Query returns a query builder for WorkflowContractVersion.

func (*WorkflowContractVersionClient) QueryContract

QueryContract queries the contract edge of a WorkflowContractVersion.

func (*WorkflowContractVersionClient) Update

Update returns an update builder for WorkflowContractVersion.

func (*WorkflowContractVersionClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowContractVersionClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*WorkflowContractVersionClient) Use

func (c *WorkflowContractVersionClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowcontractversion.Hooks(f(g(h())))`.

type WorkflowContractVersionCreate

type WorkflowContractVersionCreate struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionCreate is the builder for creating a WorkflowContractVersion entity.

func (*WorkflowContractVersionCreate) Exec

Exec executes the query.

func (*WorkflowContractVersionCreate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractVersionCreate) Mutation

Mutation returns the WorkflowContractVersionMutation object of the builder.

func (*WorkflowContractVersionCreate) Save

Save creates the WorkflowContractVersion in the database.

func (*WorkflowContractVersionCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*WorkflowContractVersionCreate) SetBody

SetBody sets the "body" field.

func (*WorkflowContractVersionCreate) SetContract

SetContract sets the "contract" edge to the WorkflowContract entity.

func (*WorkflowContractVersionCreate) SetContractID

SetContractID sets the "contract" edge to the WorkflowContract entity by ID.

func (*WorkflowContractVersionCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*WorkflowContractVersionCreate) SetID

SetID sets the "id" field.

func (*WorkflowContractVersionCreate) SetNillableContractID

func (wcvc *WorkflowContractVersionCreate) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionCreate

SetNillableContractID sets the "contract" edge to the WorkflowContract entity by ID if the given value is not nil.

func (*WorkflowContractVersionCreate) SetNillableCreatedAt

func (wcvc *WorkflowContractVersionCreate) SetNillableCreatedAt(t *time.Time) *WorkflowContractVersionCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*WorkflowContractVersionCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*WorkflowContractVersionCreate) SetNillableRevision

func (wcvc *WorkflowContractVersionCreate) SetNillableRevision(i *int) *WorkflowContractVersionCreate

SetNillableRevision sets the "revision" field if the given value is not nil.

func (*WorkflowContractVersionCreate) SetRevision

SetRevision sets the "revision" field.

type WorkflowContractVersionCreateBulk

type WorkflowContractVersionCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionCreateBulk is the builder for creating many WorkflowContractVersion entities in bulk.

func (*WorkflowContractVersionCreateBulk) Exec

Exec executes the query.

func (*WorkflowContractVersionCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractVersionCreateBulk) Save

Save creates the WorkflowContractVersion entities in the database.

func (*WorkflowContractVersionCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type WorkflowContractVersionDelete

type WorkflowContractVersionDelete struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionDelete is the builder for deleting a WorkflowContractVersion entity.

func (*WorkflowContractVersionDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowContractVersionDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractVersionDelete) Where

Where appends a list predicates to the WorkflowContractVersionDelete builder.

type WorkflowContractVersionDeleteOne

type WorkflowContractVersionDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionDeleteOne is the builder for deleting a single WorkflowContractVersion entity.

func (*WorkflowContractVersionDeleteOne) Exec

Exec executes the deletion query.

func (*WorkflowContractVersionDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractVersionDeleteOne) Where

Where appends a list predicates to the WorkflowContractVersionDelete builder.

type WorkflowContractVersionEdges

type WorkflowContractVersionEdges struct {
	// Contract holds the value of the contract edge.
	Contract *WorkflowContract `json:"contract,omitempty"`
	// contains filtered or unexported fields
}

WorkflowContractVersionEdges holds the relations/edges for other nodes in the graph.

func (WorkflowContractVersionEdges) ContractOrErr

func (e WorkflowContractVersionEdges) ContractOrErr() (*WorkflowContract, error)

ContractOrErr returns the Contract value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type WorkflowContractVersionGroupBy

type WorkflowContractVersionGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionGroupBy is the group-by builder for WorkflowContractVersion entities.

func (*WorkflowContractVersionGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowContractVersionGroupBy) Bool

func (s *WorkflowContractVersionGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) BoolX

func (s *WorkflowContractVersionGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Bools

func (s *WorkflowContractVersionGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) BoolsX

func (s *WorkflowContractVersionGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Float64

func (s *WorkflowContractVersionGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) Float64X

func (s *WorkflowContractVersionGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Float64s

func (s *WorkflowContractVersionGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) Float64sX

func (s *WorkflowContractVersionGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Int

func (s *WorkflowContractVersionGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) IntX

func (s *WorkflowContractVersionGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Ints

func (s *WorkflowContractVersionGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) IntsX

func (s *WorkflowContractVersionGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*WorkflowContractVersionGroupBy) ScanX

func (s *WorkflowContractVersionGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) String

func (s *WorkflowContractVersionGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) StringX

func (s *WorkflowContractVersionGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowContractVersionGroupBy) Strings

func (s *WorkflowContractVersionGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionGroupBy) StringsX

func (s *WorkflowContractVersionGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowContractVersionMutation

type WorkflowContractVersionMutation struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionMutation represents an operation that mutates the WorkflowContractVersion nodes in the graph.

func (*WorkflowContractVersionMutation) AddField

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) AddRevision

func (m *WorkflowContractVersionMutation) AddRevision(i int)

AddRevision adds i to the "revision" field.

func (*WorkflowContractVersionMutation) AddedEdges

func (m *WorkflowContractVersionMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowContractVersionMutation) AddedField

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) AddedFields

func (m *WorkflowContractVersionMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowContractVersionMutation) AddedIDs

func (m *WorkflowContractVersionMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowContractVersionMutation) AddedRevision

func (m *WorkflowContractVersionMutation) AddedRevision() (r int, exists bool)

AddedRevision returns the value that was added to the "revision" field in this mutation.

func (*WorkflowContractVersionMutation) Body

func (m *WorkflowContractVersionMutation) Body() (r []byte, exists bool)

Body returns the value of the "body" field in the mutation.

func (*WorkflowContractVersionMutation) ClearContract

func (m *WorkflowContractVersionMutation) ClearContract()

ClearContract clears the "contract" edge to the WorkflowContract entity.

func (*WorkflowContractVersionMutation) ClearEdge

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ClearField

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ClearedEdges

func (m *WorkflowContractVersionMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowContractVersionMutation) ClearedFields

func (m *WorkflowContractVersionMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ContractCleared

func (m *WorkflowContractVersionMutation) ContractCleared() bool

ContractCleared reports if the "contract" edge to the WorkflowContract entity was cleared.

func (*WorkflowContractVersionMutation) ContractID

func (m *WorkflowContractVersionMutation) ContractID() (id uuid.UUID, exists bool)

ContractID returns the "contract" edge ID in the mutation.

func (*WorkflowContractVersionMutation) ContractIDs

func (m *WorkflowContractVersionMutation) ContractIDs() (ids []uuid.UUID)

ContractIDs returns the "contract" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ContractID instead. It exists only for internal usage by the builders.

func (*WorkflowContractVersionMutation) CreatedAt

func (m *WorkflowContractVersionMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*WorkflowContractVersionMutation) EdgeCleared

func (m *WorkflowContractVersionMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowContractVersionMutation) Field

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 (*WorkflowContractVersionMutation) FieldCleared

func (m *WorkflowContractVersionMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowContractVersionMutation) Fields

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 (*WorkflowContractVersionMutation) ID

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*WorkflowContractVersionMutation) OldBody

func (m *WorkflowContractVersionMutation) OldBody(ctx context.Context) (v []byte, err error)

OldBody returns the old "body" field's value of the WorkflowContractVersion entity. If the WorkflowContractVersion 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 (*WorkflowContractVersionMutation) OldCreatedAt

func (m *WorkflowContractVersionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the WorkflowContractVersion entity. If the WorkflowContractVersion 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 (*WorkflowContractVersionMutation) OldField

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 (*WorkflowContractVersionMutation) OldRevision

func (m *WorkflowContractVersionMutation) OldRevision(ctx context.Context) (v int, err error)

OldRevision returns the old "revision" field's value of the WorkflowContractVersion entity. If the WorkflowContractVersion 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 (*WorkflowContractVersionMutation) Op

Op returns the operation name.

func (*WorkflowContractVersionMutation) RemovedEdges

func (m *WorkflowContractVersionMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowContractVersionMutation) RemovedIDs

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ResetBody

func (m *WorkflowContractVersionMutation) ResetBody()

ResetBody resets all changes to the "body" field.

func (*WorkflowContractVersionMutation) ResetContract

func (m *WorkflowContractVersionMutation) ResetContract()

ResetContract resets all changes to the "contract" edge.

func (*WorkflowContractVersionMutation) ResetCreatedAt

func (m *WorkflowContractVersionMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*WorkflowContractVersionMutation) ResetEdge

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ResetField

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) ResetRevision

func (m *WorkflowContractVersionMutation) ResetRevision()

ResetRevision resets all changes to the "revision" field.

func (*WorkflowContractVersionMutation) Revision

func (m *WorkflowContractVersionMutation) Revision() (r int, exists bool)

Revision returns the value of the "revision" field in the mutation.

func (*WorkflowContractVersionMutation) SetBody

func (m *WorkflowContractVersionMutation) SetBody(b []byte)

SetBody sets the "body" field.

func (*WorkflowContractVersionMutation) SetContractID

func (m *WorkflowContractVersionMutation) SetContractID(id uuid.UUID)

SetContractID sets the "contract" edge to the WorkflowContract entity by id.

func (*WorkflowContractVersionMutation) SetCreatedAt

func (m *WorkflowContractVersionMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*WorkflowContractVersionMutation) SetField

func (m *WorkflowContractVersionMutation) 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 (*WorkflowContractVersionMutation) SetID

SetID sets the value of the id field. Note that this operation is only accepted on creation of WorkflowContractVersion entities.

func (*WorkflowContractVersionMutation) SetOp

func (m *WorkflowContractVersionMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*WorkflowContractVersionMutation) SetRevision

func (m *WorkflowContractVersionMutation) SetRevision(i int)

SetRevision sets the "revision" field.

func (WorkflowContractVersionMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowContractVersionMutation) Type

Type returns the node type of this mutation (WorkflowContractVersion).

func (*WorkflowContractVersionMutation) Where

Where appends a list predicates to the WorkflowContractVersionMutation builder.

func (*WorkflowContractVersionMutation) WhereP

func (m *WorkflowContractVersionMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the WorkflowContractVersionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type WorkflowContractVersionQuery

type WorkflowContractVersionQuery struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionQuery is the builder for querying WorkflowContractVersion entities.

func (*WorkflowContractVersionQuery) Aggregate

Aggregate returns a WorkflowContractVersionSelect configured with the given aggregations.

func (*WorkflowContractVersionQuery) All

All executes the query and returns a list of WorkflowContractVersions.

func (*WorkflowContractVersionQuery) AllX

AllX is like All, but panics if an error occurs.

func (*WorkflowContractVersionQuery) Clone

Clone returns a duplicate of the WorkflowContractVersionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowContractVersionQuery) Count

Count returns the count of the given query.

func (*WorkflowContractVersionQuery) CountX

func (wcvq *WorkflowContractVersionQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowContractVersionQuery) Exist

Exist returns true if the query has elements in the graph.

func (*WorkflowContractVersionQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowContractVersionQuery) First

First returns the first WorkflowContractVersion entity from the query. Returns a *NotFoundError when no WorkflowContractVersion was found.

func (*WorkflowContractVersionQuery) FirstID

func (wcvq *WorkflowContractVersionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first WorkflowContractVersion ID from the query. Returns a *NotFoundError when no WorkflowContractVersion ID was found.

func (*WorkflowContractVersionQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowContractVersionQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*WorkflowContractVersionQuery) GroupBy

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 {
	Body []byte `json:"body,omitempty"`
	Count int `json:"count,omitempty"`
}

client.WorkflowContractVersion.Query().
	GroupBy(workflowcontractversion.FieldBody).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowContractVersionQuery) IDs

func (wcvq *WorkflowContractVersionQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of WorkflowContractVersion IDs.

func (*WorkflowContractVersionQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowContractVersionQuery) Limit

Limit the number of records to be returned by this query.

func (*WorkflowContractVersionQuery) Offset

Offset to start from.

func (*WorkflowContractVersionQuery) Only

Only returns a single WorkflowContractVersion entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WorkflowContractVersion entity is found. Returns a *NotFoundError when no WorkflowContractVersion entities are found.

func (*WorkflowContractVersionQuery) OnlyID

func (wcvq *WorkflowContractVersionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only WorkflowContractVersion ID in the query. Returns a *NotSingularError when more than one WorkflowContractVersion ID is found. Returns a *NotFoundError when no entities are found.

func (*WorkflowContractVersionQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowContractVersionQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowContractVersionQuery) Order

Order specifies how the records should be ordered.

func (*WorkflowContractVersionQuery) QueryContract

func (wcvq *WorkflowContractVersionQuery) QueryContract() *WorkflowContractQuery

QueryContract chains the current query on the "contract" edge.

func (*WorkflowContractVersionQuery) Select

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 {
	Body []byte `json:"body,omitempty"`
}

client.WorkflowContractVersion.Query().
	Select(workflowcontractversion.FieldBody).
	Scan(ctx, &v)

func (*WorkflowContractVersionQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WorkflowContractVersionQuery) Where

Where adds a new predicate for the WorkflowContractVersionQuery builder.

func (*WorkflowContractVersionQuery) WithContract

WithContract tells the query-builder to eager-load the nodes that are connected to the "contract" edge. The optional arguments are used to configure the query builder of the edge.

type WorkflowContractVersionSelect

type WorkflowContractVersionSelect struct {
	*WorkflowContractVersionQuery
	// contains filtered or unexported fields
}

WorkflowContractVersionSelect is the builder for selecting fields of WorkflowContractVersion entities.

func (*WorkflowContractVersionSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*WorkflowContractVersionSelect) Bool

func (s *WorkflowContractVersionSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) BoolX

func (s *WorkflowContractVersionSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Bools

func (s *WorkflowContractVersionSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) BoolsX

func (s *WorkflowContractVersionSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Float64

func (s *WorkflowContractVersionSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) Float64X

func (s *WorkflowContractVersionSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Float64s

func (s *WorkflowContractVersionSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) Float64sX

func (s *WorkflowContractVersionSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Int

func (s *WorkflowContractVersionSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) IntX

func (s *WorkflowContractVersionSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Ints

func (s *WorkflowContractVersionSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) IntsX

func (s *WorkflowContractVersionSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*WorkflowContractVersionSelect) ScanX

func (s *WorkflowContractVersionSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowContractVersionSelect) String

func (s *WorkflowContractVersionSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) StringX

func (s *WorkflowContractVersionSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowContractVersionSelect) Strings

func (s *WorkflowContractVersionSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowContractVersionSelect) StringsX

func (s *WorkflowContractVersionSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowContractVersionUpdate

type WorkflowContractVersionUpdate struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionUpdate is the builder for updating WorkflowContractVersion entities.

func (*WorkflowContractVersionUpdate) ClearContract

ClearContract clears the "contract" edge to the WorkflowContract entity.

func (*WorkflowContractVersionUpdate) Exec

Exec executes the query.

func (*WorkflowContractVersionUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractVersionUpdate) Mutation

Mutation returns the WorkflowContractVersionMutation object of the builder.

func (*WorkflowContractVersionUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowContractVersionUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WorkflowContractVersionUpdate) SetContract

SetContract sets the "contract" edge to the WorkflowContract entity.

func (*WorkflowContractVersionUpdate) SetContractID

SetContractID sets the "contract" edge to the WorkflowContract entity by ID.

func (*WorkflowContractVersionUpdate) SetNillableContractID

func (wcvu *WorkflowContractVersionUpdate) SetNillableContractID(id *uuid.UUID) *WorkflowContractVersionUpdate

SetNillableContractID sets the "contract" edge to the WorkflowContract entity by ID if the given value is not nil.

func (*WorkflowContractVersionUpdate) Where

Where appends a list predicates to the WorkflowContractVersionUpdate builder.

type WorkflowContractVersionUpdateOne

type WorkflowContractVersionUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowContractVersionUpdateOne is the builder for updating a single WorkflowContractVersion entity.

func (*WorkflowContractVersionUpdateOne) ClearContract

ClearContract clears the "contract" edge to the WorkflowContract entity.

func (*WorkflowContractVersionUpdateOne) Exec

Exec executes the query on the entity.

func (*WorkflowContractVersionUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowContractVersionUpdateOne) Mutation

Mutation returns the WorkflowContractVersionMutation object of the builder.

func (*WorkflowContractVersionUpdateOne) Save

Save executes the query and returns the updated WorkflowContractVersion entity.

func (*WorkflowContractVersionUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WorkflowContractVersionUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowContractVersionUpdateOne) SetContract

SetContract sets the "contract" edge to the WorkflowContract entity.

func (*WorkflowContractVersionUpdateOne) SetContractID

SetContractID sets the "contract" edge to the WorkflowContract entity by ID.

func (*WorkflowContractVersionUpdateOne) SetNillableContractID

SetNillableContractID sets the "contract" edge to the WorkflowContract entity by ID if the given value is not nil.

func (*WorkflowContractVersionUpdateOne) Where

Where appends a list predicates to the WorkflowContractVersionUpdate builder.

type WorkflowContractVersions

type WorkflowContractVersions []*WorkflowContractVersion

WorkflowContractVersions is a parsable slice of WorkflowContractVersion.

type WorkflowContracts

type WorkflowContracts []*WorkflowContract

WorkflowContracts is a parsable slice of WorkflowContract.

type WorkflowCreate

type WorkflowCreate struct {
	// contains filtered or unexported fields
}

WorkflowCreate is the builder for creating a Workflow entity.

func (*WorkflowCreate) AddIntegrationAttachmentIDs

func (wc *WorkflowCreate) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowCreate

AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by IDs.

func (*WorkflowCreate) AddIntegrationAttachments

func (wc *WorkflowCreate) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowCreate

AddIntegrationAttachments adds the "integration_attachments" edges to the IntegrationAttachment entity.

func (*WorkflowCreate) AddRobotaccountIDs

func (wc *WorkflowCreate) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowCreate

AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by IDs.

func (*WorkflowCreate) AddRobotaccounts

func (wc *WorkflowCreate) AddRobotaccounts(r ...*RobotAccount) *WorkflowCreate

AddRobotaccounts adds the "robotaccounts" edges to the RobotAccount entity.

func (*WorkflowCreate) AddWorkflowrunIDs

func (wc *WorkflowCreate) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowCreate

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*WorkflowCreate) AddWorkflowruns

func (wc *WorkflowCreate) AddWorkflowruns(w ...*WorkflowRun) *WorkflowCreate

AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun 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) SetContract

func (wc *WorkflowCreate) SetContract(w *WorkflowContract) *WorkflowCreate

SetContract sets the "contract" edge to the WorkflowContract entity.

func (*WorkflowCreate) SetContractID

func (wc *WorkflowCreate) SetContractID(id uuid.UUID) *WorkflowCreate

SetContractID sets the "contract" edge to the WorkflowContract entity by ID.

func (*WorkflowCreate) SetCreatedAt

func (wc *WorkflowCreate) SetCreatedAt(t time.Time) *WorkflowCreate

SetCreatedAt sets the "created_at" field.

func (*WorkflowCreate) SetDeletedAt

func (wc *WorkflowCreate) SetDeletedAt(t time.Time) *WorkflowCreate

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowCreate) SetID

func (wc *WorkflowCreate) SetID(u uuid.UUID) *WorkflowCreate

SetID sets the "id" field.

func (*WorkflowCreate) SetName

func (wc *WorkflowCreate) SetName(s string) *WorkflowCreate

SetName sets the "name" field.

func (*WorkflowCreate) SetNillableCreatedAt

func (wc *WorkflowCreate) SetNillableCreatedAt(t *time.Time) *WorkflowCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*WorkflowCreate) SetNillableDeletedAt

func (wc *WorkflowCreate) SetNillableDeletedAt(t *time.Time) *WorkflowCreate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*WorkflowCreate) SetNillableID

func (wc *WorkflowCreate) SetNillableID(u *uuid.UUID) *WorkflowCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*WorkflowCreate) SetNillableProject

func (wc *WorkflowCreate) SetNillableProject(s *string) *WorkflowCreate

SetNillableProject sets the "project" field if the given value is not nil.

func (*WorkflowCreate) SetNillableRunsCount

func (wc *WorkflowCreate) SetNillableRunsCount(i *int) *WorkflowCreate

SetNillableRunsCount sets the "runs_count" field if the given value is not nil.

func (*WorkflowCreate) SetNillableTeam

func (wc *WorkflowCreate) SetNillableTeam(s *string) *WorkflowCreate

SetNillableTeam sets the "team" field if the given value is not nil.

func (*WorkflowCreate) SetOrganization

func (wc *WorkflowCreate) SetOrganization(o *Organization) *WorkflowCreate

SetOrganization sets the "organization" edge to the Organization entity.

func (*WorkflowCreate) SetOrganizationID

func (wc *WorkflowCreate) SetOrganizationID(id uuid.UUID) *WorkflowCreate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*WorkflowCreate) SetProject

func (wc *WorkflowCreate) SetProject(s string) *WorkflowCreate

SetProject sets the "project" field.

func (*WorkflowCreate) SetRunsCount

func (wc *WorkflowCreate) SetRunsCount(i int) *WorkflowCreate

SetRunsCount sets the "runs_count" field.

func (*WorkflowCreate) SetTeam

func (wc *WorkflowCreate) SetTeam(s string) *WorkflowCreate

SetTeam sets the "team" field.

type WorkflowCreateBulk

type WorkflowCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowCreateBulk is the builder for creating many Workflow entities in bulk.

func (*WorkflowCreateBulk) Exec

func (wcb *WorkflowCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowCreateBulk) ExecX

func (wcb *WorkflowCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowCreateBulk) Save

func (wcb *WorkflowCreateBulk) Save(ctx context.Context) ([]*Workflow, error)

Save creates the Workflow entities in the database.

func (*WorkflowCreateBulk) SaveX

func (wcb *WorkflowCreateBulk) SaveX(ctx context.Context) []*Workflow

SaveX is like Save, but panics if an error occurs.

type WorkflowDelete

type WorkflowDelete struct {
	// contains filtered or unexported fields
}

WorkflowDelete is the builder for deleting a Workflow entity.

func (*WorkflowDelete) Exec

func (wd *WorkflowDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowDelete) ExecX

func (wd *WorkflowDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowDelete) Where

func (wd *WorkflowDelete) Where(ps ...predicate.Workflow) *WorkflowDelete

Where appends a list predicates to the WorkflowDelete builder.

type WorkflowDeleteOne

type WorkflowDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowDeleteOne is the builder for deleting a single Workflow entity.

func (*WorkflowDeleteOne) Exec

func (wdo *WorkflowDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*WorkflowDeleteOne) ExecX

func (wdo *WorkflowDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowDeleteOne) Where

Where appends a list predicates to the WorkflowDelete builder.

type WorkflowEdges

type WorkflowEdges struct {
	// Robotaccounts holds the value of the robotaccounts edge.
	Robotaccounts []*RobotAccount `json:"robotaccounts,omitempty"`
	// Workflowruns holds the value of the workflowruns edge.
	Workflowruns []*WorkflowRun `json:"workflowruns,omitempty"`
	// Organization holds the value of the organization edge.
	Organization *Organization `json:"organization,omitempty"`
	// Contract holds the value of the contract edge.
	Contract *WorkflowContract `json:"contract,omitempty"`
	// IntegrationAttachments holds the value of the integration_attachments edge.
	IntegrationAttachments []*IntegrationAttachment `json:"integration_attachments,omitempty"`
	// contains filtered or unexported fields
}

WorkflowEdges holds the relations/edges for other nodes in the graph.

func (WorkflowEdges) ContractOrErr

func (e WorkflowEdges) ContractOrErr() (*WorkflowContract, error)

ContractOrErr returns the Contract value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowEdges) IntegrationAttachmentsOrErr

func (e WorkflowEdges) IntegrationAttachmentsOrErr() ([]*IntegrationAttachment, error)

IntegrationAttachmentsOrErr returns the IntegrationAttachments value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) OrganizationOrErr

func (e WorkflowEdges) OrganizationOrErr() (*Organization, error)

OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowEdges) RobotaccountsOrErr

func (e WorkflowEdges) RobotaccountsOrErr() ([]*RobotAccount, error)

RobotaccountsOrErr returns the Robotaccounts value or an error if the edge was not loaded in eager-loading.

func (WorkflowEdges) WorkflowrunsOrErr

func (e WorkflowEdges) WorkflowrunsOrErr() ([]*WorkflowRun, error)

WorkflowrunsOrErr returns the Workflowruns value or an error if the edge was not loaded in eager-loading.

type WorkflowGroupBy

type WorkflowGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowGroupBy is the group-by builder for Workflow entities.

func (*WorkflowGroupBy) Aggregate

func (wgb *WorkflowGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowGroupBy) Bool

func (s *WorkflowGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) BoolX

func (s *WorkflowGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowGroupBy) Bools

func (s *WorkflowGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) BoolsX

func (s *WorkflowGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowGroupBy) Float64

func (s *WorkflowGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) Float64X

func (s *WorkflowGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowGroupBy) Float64s

func (s *WorkflowGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) Float64sX

func (s *WorkflowGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowGroupBy) Int

func (s *WorkflowGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) IntX

func (s *WorkflowGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowGroupBy) Ints

func (s *WorkflowGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) IntsX

func (s *WorkflowGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowGroupBy) Scan

func (wgb *WorkflowGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowGroupBy) ScanX

func (s *WorkflowGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowGroupBy) String

func (s *WorkflowGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) StringX

func (s *WorkflowGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowGroupBy) Strings

func (s *WorkflowGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowGroupBy) StringsX

func (s *WorkflowGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowMutation

type WorkflowMutation struct {
	// contains filtered or unexported fields
}

WorkflowMutation represents an operation that mutates the Workflow nodes in the graph.

func (*WorkflowMutation) AddField

func (m *WorkflowMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowMutation) AddIntegrationAttachmentIDs

func (m *WorkflowMutation) AddIntegrationAttachmentIDs(ids ...uuid.UUID)

AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by ids.

func (*WorkflowMutation) AddRobotaccountIDs

func (m *WorkflowMutation) AddRobotaccountIDs(ids ...uuid.UUID)

AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by ids.

func (*WorkflowMutation) AddRunsCount

func (m *WorkflowMutation) AddRunsCount(i int)

AddRunsCount adds i to the "runs_count" field.

func (*WorkflowMutation) AddWorkflowrunIDs

func (m *WorkflowMutation) AddWorkflowrunIDs(ids ...uuid.UUID)

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun 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) AddedRunsCount

func (m *WorkflowMutation) AddedRunsCount() (r int, exists bool)

AddedRunsCount returns the value that was added to the "runs_count" field in this mutation.

func (*WorkflowMutation) ClearContract

func (m *WorkflowMutation) ClearContract()

ClearContract clears the "contract" edge to the WorkflowContract entity.

func (*WorkflowMutation) ClearDeletedAt

func (m *WorkflowMutation) ClearDeletedAt()

ClearDeletedAt clears the value of the "deleted_at" field.

func (*WorkflowMutation) ClearEdge

func (m *WorkflowMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*WorkflowMutation) ClearField

func (m *WorkflowMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowMutation) ClearIntegrationAttachments

func (m *WorkflowMutation) ClearIntegrationAttachments()

ClearIntegrationAttachments clears the "integration_attachments" edge to the IntegrationAttachment entity.

func (*WorkflowMutation) ClearOrganization

func (m *WorkflowMutation) ClearOrganization()

ClearOrganization clears the "organization" edge to the Organization entity.

func (*WorkflowMutation) ClearProject

func (m *WorkflowMutation) ClearProject()

ClearProject clears the value of the "project" field.

func (*WorkflowMutation) ClearRobotaccounts

func (m *WorkflowMutation) ClearRobotaccounts()

ClearRobotaccounts clears the "robotaccounts" edge to the RobotAccount entity.

func (*WorkflowMutation) ClearTeam

func (m *WorkflowMutation) ClearTeam()

ClearTeam clears the value of the "team" field.

func (*WorkflowMutation) ClearWorkflowruns

func (m *WorkflowMutation) ClearWorkflowruns()

ClearWorkflowruns clears the "workflowruns" edge to the WorkflowRun 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) ContractCleared

func (m *WorkflowMutation) ContractCleared() bool

ContractCleared reports if the "contract" edge to the WorkflowContract entity was cleared.

func (*WorkflowMutation) ContractID

func (m *WorkflowMutation) ContractID() (id uuid.UUID, exists bool)

ContractID returns the "contract" edge ID in the mutation.

func (*WorkflowMutation) ContractIDs

func (m *WorkflowMutation) ContractIDs() (ids []uuid.UUID)

ContractIDs returns the "contract" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ContractID instead. It exists only for internal usage by the builders.

func (*WorkflowMutation) CreatedAt

func (m *WorkflowMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*WorkflowMutation) DeletedAt

func (m *WorkflowMutation) DeletedAt() (r time.Time, exists bool)

DeletedAt returns the value of the "deleted_at" field in the mutation.

func (*WorkflowMutation) DeletedAtCleared

func (m *WorkflowMutation) DeletedAtCleared() bool

DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.

func (*WorkflowMutation) EdgeCleared

func (m *WorkflowMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowMutation) Field

func (m *WorkflowMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WorkflowMutation) FieldCleared

func (m *WorkflowMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowMutation) Fields

func (m *WorkflowMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*WorkflowMutation) ID

func (m *WorkflowMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*WorkflowMutation) IDs

func (m *WorkflowMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*WorkflowMutation) IntegrationAttachmentsCleared

func (m *WorkflowMutation) IntegrationAttachmentsCleared() bool

IntegrationAttachmentsCleared reports if the "integration_attachments" edge to the IntegrationAttachment entity was cleared.

func (*WorkflowMutation) IntegrationAttachmentsIDs

func (m *WorkflowMutation) IntegrationAttachmentsIDs() (ids []uuid.UUID)

IntegrationAttachmentsIDs returns the "integration_attachments" edge IDs in the mutation.

func (*WorkflowMutation) Name

func (m *WorkflowMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*WorkflowMutation) OldCreatedAt

func (m *WorkflowMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldDeletedAt

func (m *WorkflowMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error)

OldDeletedAt returns the old "deleted_at" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) 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) OldName

func (m *WorkflowMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Workflow entity. If the Workflow object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WorkflowMutation) OldProject

func (m *WorkflowMutation) OldProject(ctx context.Context) (v string, err error)

OldProject returns the old "project" 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) OldRunsCount

func (m *WorkflowMutation) OldRunsCount(ctx context.Context) (v int, err error)

OldRunsCount returns the old "runs_count" 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) OldTeam

func (m *WorkflowMutation) OldTeam(ctx context.Context) (v string, err error)

OldTeam returns the old "team" 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) OrganizationCleared

func (m *WorkflowMutation) OrganizationCleared() bool

OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.

func (*WorkflowMutation) OrganizationID

func (m *WorkflowMutation) OrganizationID() (id uuid.UUID, exists bool)

OrganizationID returns the "organization" edge ID in the mutation.

func (*WorkflowMutation) OrganizationIDs

func (m *WorkflowMutation) OrganizationIDs() (ids []uuid.UUID)

OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.

func (*WorkflowMutation) Project

func (m *WorkflowMutation) Project() (r string, exists bool)

Project returns the value of the "project" field in the mutation.

func (*WorkflowMutation) ProjectCleared

func (m *WorkflowMutation) ProjectCleared() bool

ProjectCleared returns if the "project" field was cleared in this mutation.

func (*WorkflowMutation) RemoveIntegrationAttachmentIDs

func (m *WorkflowMutation) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID)

RemoveIntegrationAttachmentIDs removes the "integration_attachments" edge to the IntegrationAttachment entity by IDs.

func (*WorkflowMutation) RemoveRobotaccountIDs

func (m *WorkflowMutation) RemoveRobotaccountIDs(ids ...uuid.UUID)

RemoveRobotaccountIDs removes the "robotaccounts" edge to the RobotAccount entity by IDs.

func (*WorkflowMutation) RemoveWorkflowrunIDs

func (m *WorkflowMutation) RemoveWorkflowrunIDs(ids ...uuid.UUID)

RemoveWorkflowrunIDs removes the "workflowruns" edge to the WorkflowRun 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) RemovedIntegrationAttachmentsIDs

func (m *WorkflowMutation) RemovedIntegrationAttachmentsIDs() (ids []uuid.UUID)

RemovedIntegrationAttachments returns the removed IDs of the "integration_attachments" edge to the IntegrationAttachment entity.

func (*WorkflowMutation) RemovedRobotaccountsIDs

func (m *WorkflowMutation) RemovedRobotaccountsIDs() (ids []uuid.UUID)

RemovedRobotaccounts returns the removed IDs of the "robotaccounts" edge to the RobotAccount entity.

func (*WorkflowMutation) RemovedWorkflowrunsIDs

func (m *WorkflowMutation) RemovedWorkflowrunsIDs() (ids []uuid.UUID)

RemovedWorkflowruns returns the removed IDs of the "workflowruns" edge to the WorkflowRun entity.

func (*WorkflowMutation) ResetContract

func (m *WorkflowMutation) ResetContract()

ResetContract resets all changes to the "contract" edge.

func (*WorkflowMutation) ResetCreatedAt

func (m *WorkflowMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*WorkflowMutation) ResetDeletedAt

func (m *WorkflowMutation) ResetDeletedAt()

ResetDeletedAt resets all changes to the "deleted_at" field.

func (*WorkflowMutation) ResetEdge

func (m *WorkflowMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*WorkflowMutation) ResetField

func (m *WorkflowMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*WorkflowMutation) ResetIntegrationAttachments

func (m *WorkflowMutation) ResetIntegrationAttachments()

ResetIntegrationAttachments resets all changes to the "integration_attachments" edge.

func (*WorkflowMutation) ResetName

func (m *WorkflowMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*WorkflowMutation) ResetOrganization

func (m *WorkflowMutation) ResetOrganization()

ResetOrganization resets all changes to the "organization" edge.

func (*WorkflowMutation) ResetProject

func (m *WorkflowMutation) ResetProject()

ResetProject resets all changes to the "project" field.

func (*WorkflowMutation) ResetRobotaccounts

func (m *WorkflowMutation) ResetRobotaccounts()

ResetRobotaccounts resets all changes to the "robotaccounts" edge.

func (*WorkflowMutation) ResetRunsCount

func (m *WorkflowMutation) ResetRunsCount()

ResetRunsCount resets all changes to the "runs_count" field.

func (*WorkflowMutation) ResetTeam

func (m *WorkflowMutation) ResetTeam()

ResetTeam resets all changes to the "team" field.

func (*WorkflowMutation) ResetWorkflowruns

func (m *WorkflowMutation) ResetWorkflowruns()

ResetWorkflowruns resets all changes to the "workflowruns" edge.

func (*WorkflowMutation) RobotaccountsCleared

func (m *WorkflowMutation) RobotaccountsCleared() bool

RobotaccountsCleared reports if the "robotaccounts" edge to the RobotAccount entity was cleared.

func (*WorkflowMutation) RobotaccountsIDs

func (m *WorkflowMutation) RobotaccountsIDs() (ids []uuid.UUID)

RobotaccountsIDs returns the "robotaccounts" edge IDs in the mutation.

func (*WorkflowMutation) RunsCount

func (m *WorkflowMutation) RunsCount() (r int, exists bool)

RunsCount returns the value of the "runs_count" field in the mutation.

func (*WorkflowMutation) SetContractID

func (m *WorkflowMutation) SetContractID(id uuid.UUID)

SetContractID sets the "contract" edge to the WorkflowContract entity by id.

func (*WorkflowMutation) SetCreatedAt

func (m *WorkflowMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*WorkflowMutation) SetDeletedAt

func (m *WorkflowMutation) SetDeletedAt(t time.Time)

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowMutation) SetField

func (m *WorkflowMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WorkflowMutation) SetID

func (m *WorkflowMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Workflow entities.

func (*WorkflowMutation) SetName

func (m *WorkflowMutation) SetName(s string)

SetName sets the "name" field.

func (*WorkflowMutation) SetOp

func (m *WorkflowMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*WorkflowMutation) SetOrganizationID

func (m *WorkflowMutation) SetOrganizationID(id uuid.UUID)

SetOrganizationID sets the "organization" edge to the Organization entity by id.

func (*WorkflowMutation) SetProject

func (m *WorkflowMutation) SetProject(s string)

SetProject sets the "project" field.

func (*WorkflowMutation) SetRunsCount

func (m *WorkflowMutation) SetRunsCount(i int)

SetRunsCount sets the "runs_count" field.

func (*WorkflowMutation) SetTeam

func (m *WorkflowMutation) SetTeam(s string)

SetTeam sets the "team" field.

func (*WorkflowMutation) Team

func (m *WorkflowMutation) Team() (r string, exists bool)

Team returns the value of the "team" field in the mutation.

func (*WorkflowMutation) TeamCleared

func (m *WorkflowMutation) TeamCleared() bool

TeamCleared returns if the "team" field was cleared in this mutation.

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) Where

func (m *WorkflowMutation) Where(ps ...predicate.Workflow)

Where appends a list predicates to the WorkflowMutation builder.

func (*WorkflowMutation) WhereP

func (m *WorkflowMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the WorkflowMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*WorkflowMutation) WorkflowrunsCleared

func (m *WorkflowMutation) WorkflowrunsCleared() bool

WorkflowrunsCleared reports if the "workflowruns" edge to the WorkflowRun entity was cleared.

func (*WorkflowMutation) WorkflowrunsIDs

func (m *WorkflowMutation) WorkflowrunsIDs() (ids []uuid.UUID)

WorkflowrunsIDs returns the "workflowruns" edge IDs in the mutation.

type WorkflowQuery

type WorkflowQuery struct {
	// contains filtered or unexported fields
}

WorkflowQuery is the builder for querying Workflow entities.

func (*WorkflowQuery) Aggregate

func (wq *WorkflowQuery) Aggregate(fns ...AggregateFunc) *WorkflowSelect

Aggregate returns a WorkflowSelect configured with the given aggregations.

func (*WorkflowQuery) All

func (wq *WorkflowQuery) All(ctx context.Context) ([]*Workflow, error)

All executes the query and returns a list of Workflows.

func (*WorkflowQuery) AllX

func (wq *WorkflowQuery) AllX(ctx context.Context) []*Workflow

AllX is like All, but panics if an error occurs.

func (*WorkflowQuery) Clone

func (wq *WorkflowQuery) Clone() *WorkflowQuery

Clone returns a duplicate of the WorkflowQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowQuery) Count

func (wq *WorkflowQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowQuery) CountX

func (wq *WorkflowQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowQuery) Exist

func (wq *WorkflowQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowQuery) ExistX

func (wq *WorkflowQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowQuery) First

func (wq *WorkflowQuery) First(ctx context.Context) (*Workflow, error)

First returns the first Workflow entity from the query. Returns a *NotFoundError when no Workflow was found.

func (*WorkflowQuery) FirstID

func (wq *WorkflowQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first Workflow ID from the query. Returns a *NotFoundError when no Workflow ID was found.

func (*WorkflowQuery) FirstIDX

func (wq *WorkflowQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowQuery) FirstX

func (wq *WorkflowQuery) FirstX(ctx context.Context) *Workflow

FirstX is like First, but panics if an error occurs.

func (*WorkflowQuery) GroupBy

func (wq *WorkflowQuery) GroupBy(field string, fields ...string) *WorkflowGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Workflow.Query().
	GroupBy(workflow.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowQuery) IDs

func (wq *WorkflowQuery) IDs(ctx context.Context) (ids []uuid.UUID, err 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 the number of records to be returned by this query.

func (*WorkflowQuery) Offset

func (wq *WorkflowQuery) Offset(offset int) *WorkflowQuery

Offset to start from.

func (*WorkflowQuery) Only

func (wq *WorkflowQuery) Only(ctx context.Context) (*Workflow, error)

Only returns a single Workflow entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Workflow entity is found. Returns a *NotFoundError when no Workflow entities are found.

func (*WorkflowQuery) OnlyID

func (wq *WorkflowQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only Workflow ID in the query. Returns a *NotSingularError when more than one Workflow ID is found. Returns a *NotFoundError when no entities are found.

func (*WorkflowQuery) OnlyIDX

func (wq *WorkflowQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowQuery) OnlyX

func (wq *WorkflowQuery) OnlyX(ctx context.Context) *Workflow

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowQuery) Order

func (wq *WorkflowQuery) Order(o ...OrderFunc) *WorkflowQuery

Order specifies how the records should be ordered.

func (*WorkflowQuery) QueryContract

func (wq *WorkflowQuery) QueryContract() *WorkflowContractQuery

QueryContract chains the current query on the "contract" edge.

func (*WorkflowQuery) QueryIntegrationAttachments

func (wq *WorkflowQuery) QueryIntegrationAttachments() *IntegrationAttachmentQuery

QueryIntegrationAttachments chains the current query on the "integration_attachments" edge.

func (*WorkflowQuery) QueryOrganization

func (wq *WorkflowQuery) QueryOrganization() *OrganizationQuery

QueryOrganization chains the current query on the "organization" edge.

func (*WorkflowQuery) QueryRobotaccounts

func (wq *WorkflowQuery) QueryRobotaccounts() *RobotAccountQuery

QueryRobotaccounts chains the current query on the "robotaccounts" edge.

func (*WorkflowQuery) QueryWorkflowruns

func (wq *WorkflowQuery) QueryWorkflowruns() *WorkflowRunQuery

QueryWorkflowruns chains the current query on the "workflowruns" edge.

func (*WorkflowQuery) Select

func (wq *WorkflowQuery) Select(fields ...string) *WorkflowSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Workflow.Query().
	Select(workflow.FieldName).
	Scan(ctx, &v)

func (*WorkflowQuery) Unique

func (wq *WorkflowQuery) Unique(unique bool) *WorkflowQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WorkflowQuery) Where

func (wq *WorkflowQuery) Where(ps ...predicate.Workflow) *WorkflowQuery

Where adds a new predicate for the WorkflowQuery builder.

func (*WorkflowQuery) WithContract

func (wq *WorkflowQuery) WithContract(opts ...func(*WorkflowContractQuery)) *WorkflowQuery

WithContract tells the query-builder to eager-load the nodes that are connected to the "contract" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithIntegrationAttachments

func (wq *WorkflowQuery) WithIntegrationAttachments(opts ...func(*IntegrationAttachmentQuery)) *WorkflowQuery

WithIntegrationAttachments tells the query-builder to eager-load the nodes that are connected to the "integration_attachments" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithOrganization

func (wq *WorkflowQuery) WithOrganization(opts ...func(*OrganizationQuery)) *WorkflowQuery

WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithRobotaccounts

func (wq *WorkflowQuery) WithRobotaccounts(opts ...func(*RobotAccountQuery)) *WorkflowQuery

WithRobotaccounts tells the query-builder to eager-load the nodes that are connected to the "robotaccounts" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowQuery) WithWorkflowruns

func (wq *WorkflowQuery) WithWorkflowruns(opts ...func(*WorkflowRunQuery)) *WorkflowQuery

WithWorkflowruns tells the query-builder to eager-load the nodes that are connected to the "workflowruns" edge. The optional arguments are used to configure the query builder of the edge.

type WorkflowRun

type WorkflowRun 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"`
	// FinishedAt holds the value of the "finished_at" field.
	FinishedAt time.Time `json:"finished_at,omitempty"`
	// State holds the value of the "state" field.
	State biz.WorkflowRunStatus `json:"state,omitempty"`
	// Reason holds the value of the "reason" field.
	Reason string `json:"reason,omitempty"`
	// RunURL holds the value of the "run_url" field.
	RunURL string `json:"run_url,omitempty"`
	// RunnerType holds the value of the "runner_type" field.
	RunnerType string `json:"runner_type,omitempty"`
	// AttestationRef holds the value of the "attestation_ref" field.
	AttestationRef *biz.AttestationRef `json:"attestation_ref,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the WorkflowRunQuery when eager-loading is set.
	Edges WorkflowRunEdges `json:"edges"`
	// contains filtered or unexported fields
}

WorkflowRun is the model entity for the WorkflowRun schema.

func (*WorkflowRun) QueryContractVersion

func (wr *WorkflowRun) QueryContractVersion() *WorkflowContractVersionQuery

QueryContractVersion queries the "contract_version" edge of the WorkflowRun entity.

func (*WorkflowRun) QueryRobotaccount

func (wr *WorkflowRun) QueryRobotaccount() *RobotAccountQuery

QueryRobotaccount queries the "robotaccount" edge of the WorkflowRun entity.

func (*WorkflowRun) QueryWorkflow

func (wr *WorkflowRun) QueryWorkflow() *WorkflowQuery

QueryWorkflow queries the "workflow" edge of the WorkflowRun entity.

func (*WorkflowRun) String

func (wr *WorkflowRun) String() string

String implements the fmt.Stringer.

func (*WorkflowRun) Unwrap

func (wr *WorkflowRun) Unwrap() *WorkflowRun

Unwrap unwraps the WorkflowRun 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 (*WorkflowRun) Update

func (wr *WorkflowRun) Update() *WorkflowRunUpdateOne

Update returns a builder for updating this WorkflowRun. Note that you need to call WorkflowRun.Unwrap() before calling this method if this WorkflowRun was returned from a transaction, and the transaction was committed or rolled back.

type WorkflowRunClient

type WorkflowRunClient struct {
	// contains filtered or unexported fields
}

WorkflowRunClient is a client for the WorkflowRun schema.

func NewWorkflowRunClient

func NewWorkflowRunClient(c config) *WorkflowRunClient

NewWorkflowRunClient returns a client for the WorkflowRun from the given config.

func (*WorkflowRunClient) Create

func (c *WorkflowRunClient) Create() *WorkflowRunCreate

Create returns a builder for creating a WorkflowRun entity.

func (*WorkflowRunClient) CreateBulk

func (c *WorkflowRunClient) CreateBulk(builders ...*WorkflowRunCreate) *WorkflowRunCreateBulk

CreateBulk returns a builder for creating a bulk of WorkflowRun entities.

func (*WorkflowRunClient) Delete

func (c *WorkflowRunClient) Delete() *WorkflowRunDelete

Delete returns a delete builder for WorkflowRun.

func (*WorkflowRunClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*WorkflowRunClient) DeleteOneID

func (c *WorkflowRunClient) DeleteOneID(id uuid.UUID) *WorkflowRunDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*WorkflowRunClient) Get

Get returns a WorkflowRun entity by its id.

func (*WorkflowRunClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WorkflowRunClient) Hooks

func (c *WorkflowRunClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WorkflowRunClient) Intercept

func (c *WorkflowRunClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `workflowrun.Intercept(f(g(h())))`.

func (*WorkflowRunClient) Interceptors

func (c *WorkflowRunClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*WorkflowRunClient) Query

func (c *WorkflowRunClient) Query() *WorkflowRunQuery

Query returns a query builder for WorkflowRun.

func (*WorkflowRunClient) QueryContractVersion

func (c *WorkflowRunClient) QueryContractVersion(wr *WorkflowRun) *WorkflowContractVersionQuery

QueryContractVersion queries the contract_version edge of a WorkflowRun.

func (*WorkflowRunClient) QueryRobotaccount

func (c *WorkflowRunClient) QueryRobotaccount(wr *WorkflowRun) *RobotAccountQuery

QueryRobotaccount queries the robotaccount edge of a WorkflowRun.

func (*WorkflowRunClient) QueryWorkflow

func (c *WorkflowRunClient) QueryWorkflow(wr *WorkflowRun) *WorkflowQuery

QueryWorkflow queries the workflow edge of a WorkflowRun.

func (*WorkflowRunClient) Update

func (c *WorkflowRunClient) Update() *WorkflowRunUpdate

Update returns an update builder for WorkflowRun.

func (*WorkflowRunClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WorkflowRunClient) UpdateOneID

func (c *WorkflowRunClient) UpdateOneID(id uuid.UUID) *WorkflowRunUpdateOne

UpdateOneID returns an update builder for the given id.

func (*WorkflowRunClient) Use

func (c *WorkflowRunClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `workflowrun.Hooks(f(g(h())))`.

type WorkflowRunCreate

type WorkflowRunCreate struct {
	// contains filtered or unexported fields
}

WorkflowRunCreate is the builder for creating a WorkflowRun entity.

func (*WorkflowRunCreate) Exec

func (wrc *WorkflowRunCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowRunCreate) ExecX

func (wrc *WorkflowRunCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowRunCreate) Mutation

func (wrc *WorkflowRunCreate) Mutation() *WorkflowRunMutation

Mutation returns the WorkflowRunMutation object of the builder.

func (*WorkflowRunCreate) Save

func (wrc *WorkflowRunCreate) Save(ctx context.Context) (*WorkflowRun, error)

Save creates the WorkflowRun in the database.

func (*WorkflowRunCreate) SaveX

func (wrc *WorkflowRunCreate) SaveX(ctx context.Context) *WorkflowRun

SaveX calls Save and panics if Save returns an error.

func (*WorkflowRunCreate) SetAttestationRef

func (wrc *WorkflowRunCreate) SetAttestationRef(br *biz.AttestationRef) *WorkflowRunCreate

SetAttestationRef sets the "attestation_ref" field.

func (*WorkflowRunCreate) SetContractVersion

func (wrc *WorkflowRunCreate) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunCreate

SetContractVersion sets the "contract_version" edge to the WorkflowContractVersion entity.

func (*WorkflowRunCreate) SetContractVersionID

func (wrc *WorkflowRunCreate) SetContractVersionID(id uuid.UUID) *WorkflowRunCreate

SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID.

func (*WorkflowRunCreate) SetCreatedAt

func (wrc *WorkflowRunCreate) SetCreatedAt(t time.Time) *WorkflowRunCreate

SetCreatedAt sets the "created_at" field.

func (*WorkflowRunCreate) SetFinishedAt

func (wrc *WorkflowRunCreate) SetFinishedAt(t time.Time) *WorkflowRunCreate

SetFinishedAt sets the "finished_at" field.

func (*WorkflowRunCreate) SetID

SetID sets the "id" field.

func (*WorkflowRunCreate) SetNillableContractVersionID

func (wrc *WorkflowRunCreate) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunCreate

SetNillableContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID if the given value is not nil.

func (*WorkflowRunCreate) SetNillableCreatedAt

func (wrc *WorkflowRunCreate) SetNillableCreatedAt(t *time.Time) *WorkflowRunCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableFinishedAt

func (wrc *WorkflowRunCreate) SetNillableFinishedAt(t *time.Time) *WorkflowRunCreate

SetNillableFinishedAt sets the "finished_at" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableID

func (wrc *WorkflowRunCreate) SetNillableID(u *uuid.UUID) *WorkflowRunCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableReason

func (wrc *WorkflowRunCreate) SetNillableReason(s *string) *WorkflowRunCreate

SetNillableReason sets the "reason" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableRobotaccountID

func (wrc *WorkflowRunCreate) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunCreate

SetNillableRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID if the given value is not nil.

func (*WorkflowRunCreate) SetNillableRunURL

func (wrc *WorkflowRunCreate) SetNillableRunURL(s *string) *WorkflowRunCreate

SetNillableRunURL sets the "run_url" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableRunnerType

func (wrc *WorkflowRunCreate) SetNillableRunnerType(s *string) *WorkflowRunCreate

SetNillableRunnerType sets the "runner_type" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableState

func (wrc *WorkflowRunCreate) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunCreate

SetNillableState sets the "state" field if the given value is not nil.

func (*WorkflowRunCreate) SetNillableWorkflowID

func (wrc *WorkflowRunCreate) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunCreate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*WorkflowRunCreate) SetReason

func (wrc *WorkflowRunCreate) SetReason(s string) *WorkflowRunCreate

SetReason sets the "reason" field.

func (*WorkflowRunCreate) SetRobotaccount

func (wrc *WorkflowRunCreate) SetRobotaccount(r *RobotAccount) *WorkflowRunCreate

SetRobotaccount sets the "robotaccount" edge to the RobotAccount entity.

func (*WorkflowRunCreate) SetRobotaccountID

func (wrc *WorkflowRunCreate) SetRobotaccountID(id uuid.UUID) *WorkflowRunCreate

SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID.

func (*WorkflowRunCreate) SetRunURL

func (wrc *WorkflowRunCreate) SetRunURL(s string) *WorkflowRunCreate

SetRunURL sets the "run_url" field.

func (*WorkflowRunCreate) SetRunnerType

func (wrc *WorkflowRunCreate) SetRunnerType(s string) *WorkflowRunCreate

SetRunnerType sets the "runner_type" field.

func (*WorkflowRunCreate) SetState

SetState sets the "state" field.

func (*WorkflowRunCreate) SetWorkflow

func (wrc *WorkflowRunCreate) SetWorkflow(w *Workflow) *WorkflowRunCreate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowRunCreate) SetWorkflowID

func (wrc *WorkflowRunCreate) SetWorkflowID(id uuid.UUID) *WorkflowRunCreate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

type WorkflowRunCreateBulk

type WorkflowRunCreateBulk struct {
	// contains filtered or unexported fields
}

WorkflowRunCreateBulk is the builder for creating many WorkflowRun entities in bulk.

func (*WorkflowRunCreateBulk) Exec

func (wrcb *WorkflowRunCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowRunCreateBulk) ExecX

func (wrcb *WorkflowRunCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowRunCreateBulk) Save

func (wrcb *WorkflowRunCreateBulk) Save(ctx context.Context) ([]*WorkflowRun, error)

Save creates the WorkflowRun entities in the database.

func (*WorkflowRunCreateBulk) SaveX

func (wrcb *WorkflowRunCreateBulk) SaveX(ctx context.Context) []*WorkflowRun

SaveX is like Save, but panics if an error occurs.

type WorkflowRunDelete

type WorkflowRunDelete struct {
	// contains filtered or unexported fields
}

WorkflowRunDelete is the builder for deleting a WorkflowRun entity.

func (*WorkflowRunDelete) Exec

func (wrd *WorkflowRunDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WorkflowRunDelete) ExecX

func (wrd *WorkflowRunDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowRunDelete) Where

Where appends a list predicates to the WorkflowRunDelete builder.

type WorkflowRunDeleteOne

type WorkflowRunDeleteOne struct {
	// contains filtered or unexported fields
}

WorkflowRunDeleteOne is the builder for deleting a single WorkflowRun entity.

func (*WorkflowRunDeleteOne) Exec

func (wrdo *WorkflowRunDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*WorkflowRunDeleteOne) ExecX

func (wrdo *WorkflowRunDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowRunDeleteOne) Where

Where appends a list predicates to the WorkflowRunDelete builder.

type WorkflowRunEdges

type WorkflowRunEdges struct {
	// Workflow holds the value of the workflow edge.
	Workflow *Workflow `json:"workflow,omitempty"`
	// Robotaccount holds the value of the robotaccount edge.
	Robotaccount *RobotAccount `json:"robotaccount,omitempty"`
	// ContractVersion holds the value of the contract_version edge.
	ContractVersion *WorkflowContractVersion `json:"contract_version,omitempty"`
	// contains filtered or unexported fields
}

WorkflowRunEdges holds the relations/edges for other nodes in the graph.

func (WorkflowRunEdges) ContractVersionOrErr

func (e WorkflowRunEdges) ContractVersionOrErr() (*WorkflowContractVersion, error)

ContractVersionOrErr returns the ContractVersion value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowRunEdges) RobotaccountOrErr

func (e WorkflowRunEdges) RobotaccountOrErr() (*RobotAccount, error)

RobotaccountOrErr returns the Robotaccount value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (WorkflowRunEdges) WorkflowOrErr

func (e WorkflowRunEdges) 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 WorkflowRunGroupBy

type WorkflowRunGroupBy struct {
	// contains filtered or unexported fields
}

WorkflowRunGroupBy is the group-by builder for WorkflowRun entities.

func (*WorkflowRunGroupBy) Aggregate

func (wrgb *WorkflowRunGroupBy) Aggregate(fns ...AggregateFunc) *WorkflowRunGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*WorkflowRunGroupBy) Bool

func (s *WorkflowRunGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) BoolX

func (s *WorkflowRunGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowRunGroupBy) Bools

func (s *WorkflowRunGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) BoolsX

func (s *WorkflowRunGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowRunGroupBy) Float64

func (s *WorkflowRunGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) Float64X

func (s *WorkflowRunGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowRunGroupBy) Float64s

func (s *WorkflowRunGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) Float64sX

func (s *WorkflowRunGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowRunGroupBy) Int

func (s *WorkflowRunGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) IntX

func (s *WorkflowRunGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowRunGroupBy) Ints

func (s *WorkflowRunGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) IntsX

func (s *WorkflowRunGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowRunGroupBy) Scan

func (wrgb *WorkflowRunGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowRunGroupBy) ScanX

func (s *WorkflowRunGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowRunGroupBy) String

func (s *WorkflowRunGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) StringX

func (s *WorkflowRunGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowRunGroupBy) Strings

func (s *WorkflowRunGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowRunGroupBy) StringsX

func (s *WorkflowRunGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowRunMutation

type WorkflowRunMutation struct {
	// contains filtered or unexported fields
}

WorkflowRunMutation represents an operation that mutates the WorkflowRun nodes in the graph.

func (*WorkflowRunMutation) AddField

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) AddedEdges

func (m *WorkflowRunMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WorkflowRunMutation) AddedField

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) AddedFields

func (m *WorkflowRunMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WorkflowRunMutation) AddedIDs

func (m *WorkflowRunMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WorkflowRunMutation) AttestationRef

func (m *WorkflowRunMutation) AttestationRef() (r *biz.AttestationRef, exists bool)

AttestationRef returns the value of the "attestation_ref" field in the mutation.

func (*WorkflowRunMutation) AttestationRefCleared

func (m *WorkflowRunMutation) AttestationRefCleared() bool

AttestationRefCleared returns if the "attestation_ref" field was cleared in this mutation.

func (*WorkflowRunMutation) ClearAttestationRef

func (m *WorkflowRunMutation) ClearAttestationRef()

ClearAttestationRef clears the value of the "attestation_ref" field.

func (*WorkflowRunMutation) ClearContractVersion

func (m *WorkflowRunMutation) ClearContractVersion()

ClearContractVersion clears the "contract_version" edge to the WorkflowContractVersion entity.

func (*WorkflowRunMutation) ClearEdge

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ClearField

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ClearFinishedAt

func (m *WorkflowRunMutation) ClearFinishedAt()

ClearFinishedAt clears the value of the "finished_at" field.

func (*WorkflowRunMutation) ClearReason

func (m *WorkflowRunMutation) ClearReason()

ClearReason clears the value of the "reason" field.

func (*WorkflowRunMutation) ClearRobotaccount

func (m *WorkflowRunMutation) ClearRobotaccount()

ClearRobotaccount clears the "robotaccount" edge to the RobotAccount entity.

func (*WorkflowRunMutation) ClearRunURL

func (m *WorkflowRunMutation) ClearRunURL()

ClearRunURL clears the value of the "run_url" field.

func (*WorkflowRunMutation) ClearRunnerType

func (m *WorkflowRunMutation) ClearRunnerType()

ClearRunnerType clears the value of the "runner_type" field.

func (*WorkflowRunMutation) ClearWorkflow

func (m *WorkflowRunMutation) ClearWorkflow()

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowRunMutation) ClearedEdges

func (m *WorkflowRunMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WorkflowRunMutation) ClearedFields

func (m *WorkflowRunMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WorkflowRunMutation) Client

func (m WorkflowRunMutation) 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 (*WorkflowRunMutation) ContractVersionCleared

func (m *WorkflowRunMutation) ContractVersionCleared() bool

ContractVersionCleared reports if the "contract_version" edge to the WorkflowContractVersion entity was cleared.

func (*WorkflowRunMutation) ContractVersionID

func (m *WorkflowRunMutation) ContractVersionID() (id uuid.UUID, exists bool)

ContractVersionID returns the "contract_version" edge ID in the mutation.

func (*WorkflowRunMutation) ContractVersionIDs

func (m *WorkflowRunMutation) ContractVersionIDs() (ids []uuid.UUID)

ContractVersionIDs returns the "contract_version" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ContractVersionID instead. It exists only for internal usage by the builders.

func (*WorkflowRunMutation) CreatedAt

func (m *WorkflowRunMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*WorkflowRunMutation) EdgeCleared

func (m *WorkflowRunMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WorkflowRunMutation) Field

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) FieldCleared

func (m *WorkflowRunMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WorkflowRunMutation) Fields

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) FinishedAt

func (m *WorkflowRunMutation) FinishedAt() (r time.Time, exists bool)

FinishedAt returns the value of the "finished_at" field in the mutation.

func (*WorkflowRunMutation) FinishedAtCleared

func (m *WorkflowRunMutation) FinishedAtCleared() bool

FinishedAtCleared returns if the "finished_at" field was cleared in this mutation.

func (*WorkflowRunMutation) ID

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) IDs

func (m *WorkflowRunMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*WorkflowRunMutation) OldAttestationRef

func (m *WorkflowRunMutation) OldAttestationRef(ctx context.Context) (v *biz.AttestationRef, err error)

OldAttestationRef returns the old "attestation_ref" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldCreatedAt

func (m *WorkflowRunMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldField

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) OldFinishedAt

func (m *WorkflowRunMutation) OldFinishedAt(ctx context.Context) (v time.Time, err error)

OldFinishedAt returns the old "finished_at" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldReason

func (m *WorkflowRunMutation) OldReason(ctx context.Context) (v string, err error)

OldReason returns the old "reason" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldRunURL

func (m *WorkflowRunMutation) OldRunURL(ctx context.Context) (v string, err error)

OldRunURL returns the old "run_url" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldRunnerType

func (m *WorkflowRunMutation) OldRunnerType(ctx context.Context) (v string, err error)

OldRunnerType returns the old "runner_type" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) OldState

func (m *WorkflowRunMutation) OldState(ctx context.Context) (v biz.WorkflowRunStatus, err error)

OldState returns the old "state" field's value of the WorkflowRun entity. If the WorkflowRun 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 (*WorkflowRunMutation) Op

func (m *WorkflowRunMutation) Op() Op

Op returns the operation name.

func (*WorkflowRunMutation) Reason

func (m *WorkflowRunMutation) Reason() (r string, exists bool)

Reason returns the value of the "reason" field in the mutation.

func (*WorkflowRunMutation) ReasonCleared

func (m *WorkflowRunMutation) ReasonCleared() bool

ReasonCleared returns if the "reason" field was cleared in this mutation.

func (*WorkflowRunMutation) RemovedEdges

func (m *WorkflowRunMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WorkflowRunMutation) RemovedIDs

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ResetAttestationRef

func (m *WorkflowRunMutation) ResetAttestationRef()

ResetAttestationRef resets all changes to the "attestation_ref" field.

func (*WorkflowRunMutation) ResetContractVersion

func (m *WorkflowRunMutation) ResetContractVersion()

ResetContractVersion resets all changes to the "contract_version" edge.

func (*WorkflowRunMutation) ResetCreatedAt

func (m *WorkflowRunMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*WorkflowRunMutation) ResetEdge

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ResetField

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) ResetFinishedAt

func (m *WorkflowRunMutation) ResetFinishedAt()

ResetFinishedAt resets all changes to the "finished_at" field.

func (*WorkflowRunMutation) ResetReason

func (m *WorkflowRunMutation) ResetReason()

ResetReason resets all changes to the "reason" field.

func (*WorkflowRunMutation) ResetRobotaccount

func (m *WorkflowRunMutation) ResetRobotaccount()

ResetRobotaccount resets all changes to the "robotaccount" edge.

func (*WorkflowRunMutation) ResetRunURL

func (m *WorkflowRunMutation) ResetRunURL()

ResetRunURL resets all changes to the "run_url" field.

func (*WorkflowRunMutation) ResetRunnerType

func (m *WorkflowRunMutation) ResetRunnerType()

ResetRunnerType resets all changes to the "runner_type" field.

func (*WorkflowRunMutation) ResetState

func (m *WorkflowRunMutation) ResetState()

ResetState resets all changes to the "state" field.

func (*WorkflowRunMutation) ResetWorkflow

func (m *WorkflowRunMutation) ResetWorkflow()

ResetWorkflow resets all changes to the "workflow" edge.

func (*WorkflowRunMutation) RobotaccountCleared

func (m *WorkflowRunMutation) RobotaccountCleared() bool

RobotaccountCleared reports if the "robotaccount" edge to the RobotAccount entity was cleared.

func (*WorkflowRunMutation) RobotaccountID

func (m *WorkflowRunMutation) RobotaccountID() (id uuid.UUID, exists bool)

RobotaccountID returns the "robotaccount" edge ID in the mutation.

func (*WorkflowRunMutation) RobotaccountIDs

func (m *WorkflowRunMutation) RobotaccountIDs() (ids []uuid.UUID)

RobotaccountIDs returns the "robotaccount" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RobotaccountID instead. It exists only for internal usage by the builders.

func (*WorkflowRunMutation) RunURL

func (m *WorkflowRunMutation) RunURL() (r string, exists bool)

RunURL returns the value of the "run_url" field in the mutation.

func (*WorkflowRunMutation) RunURLCleared

func (m *WorkflowRunMutation) RunURLCleared() bool

RunURLCleared returns if the "run_url" field was cleared in this mutation.

func (*WorkflowRunMutation) RunnerType

func (m *WorkflowRunMutation) RunnerType() (r string, exists bool)

RunnerType returns the value of the "runner_type" field in the mutation.

func (*WorkflowRunMutation) RunnerTypeCleared

func (m *WorkflowRunMutation) RunnerTypeCleared() bool

RunnerTypeCleared returns if the "runner_type" field was cleared in this mutation.

func (*WorkflowRunMutation) SetAttestationRef

func (m *WorkflowRunMutation) SetAttestationRef(br *biz.AttestationRef)

SetAttestationRef sets the "attestation_ref" field.

func (*WorkflowRunMutation) SetContractVersionID

func (m *WorkflowRunMutation) SetContractVersionID(id uuid.UUID)

SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by id.

func (*WorkflowRunMutation) SetCreatedAt

func (m *WorkflowRunMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*WorkflowRunMutation) SetField

func (m *WorkflowRunMutation) 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 (*WorkflowRunMutation) SetFinishedAt

func (m *WorkflowRunMutation) SetFinishedAt(t time.Time)

SetFinishedAt sets the "finished_at" field.

func (*WorkflowRunMutation) SetID

func (m *WorkflowRunMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of WorkflowRun entities.

func (*WorkflowRunMutation) SetOp

func (m *WorkflowRunMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*WorkflowRunMutation) SetReason

func (m *WorkflowRunMutation) SetReason(s string)

SetReason sets the "reason" field.

func (*WorkflowRunMutation) SetRobotaccountID

func (m *WorkflowRunMutation) SetRobotaccountID(id uuid.UUID)

SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by id.

func (*WorkflowRunMutation) SetRunURL

func (m *WorkflowRunMutation) SetRunURL(s string)

SetRunURL sets the "run_url" field.

func (*WorkflowRunMutation) SetRunnerType

func (m *WorkflowRunMutation) SetRunnerType(s string)

SetRunnerType sets the "runner_type" field.

func (*WorkflowRunMutation) SetState

func (m *WorkflowRunMutation) SetState(brs biz.WorkflowRunStatus)

SetState sets the "state" field.

func (*WorkflowRunMutation) SetWorkflowID

func (m *WorkflowRunMutation) SetWorkflowID(id uuid.UUID)

SetWorkflowID sets the "workflow" edge to the Workflow entity by id.

func (*WorkflowRunMutation) State

func (m *WorkflowRunMutation) State() (r biz.WorkflowRunStatus, exists bool)

State returns the value of the "state" field in the mutation.

func (WorkflowRunMutation) Tx

func (m WorkflowRunMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WorkflowRunMutation) Type

func (m *WorkflowRunMutation) Type() string

Type returns the node type of this mutation (WorkflowRun).

func (*WorkflowRunMutation) Where

func (m *WorkflowRunMutation) Where(ps ...predicate.WorkflowRun)

Where appends a list predicates to the WorkflowRunMutation builder.

func (*WorkflowRunMutation) WhereP

func (m *WorkflowRunMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the WorkflowRunMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*WorkflowRunMutation) WorkflowCleared

func (m *WorkflowRunMutation) WorkflowCleared() bool

WorkflowCleared reports if the "workflow" edge to the Workflow entity was cleared.

func (*WorkflowRunMutation) WorkflowID

func (m *WorkflowRunMutation) WorkflowID() (id uuid.UUID, exists bool)

WorkflowID returns the "workflow" edge ID in the mutation.

func (*WorkflowRunMutation) WorkflowIDs

func (m *WorkflowRunMutation) 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 WorkflowRunQuery

type WorkflowRunQuery struct {
	// contains filtered or unexported fields
}

WorkflowRunQuery is the builder for querying WorkflowRun entities.

func (*WorkflowRunQuery) Aggregate

func (wrq *WorkflowRunQuery) Aggregate(fns ...AggregateFunc) *WorkflowRunSelect

Aggregate returns a WorkflowRunSelect configured with the given aggregations.

func (*WorkflowRunQuery) All

func (wrq *WorkflowRunQuery) All(ctx context.Context) ([]*WorkflowRun, error)

All executes the query and returns a list of WorkflowRuns.

func (*WorkflowRunQuery) AllX

func (wrq *WorkflowRunQuery) AllX(ctx context.Context) []*WorkflowRun

AllX is like All, but panics if an error occurs.

func (*WorkflowRunQuery) Clone

func (wrq *WorkflowRunQuery) Clone() *WorkflowRunQuery

Clone returns a duplicate of the WorkflowRunQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WorkflowRunQuery) Count

func (wrq *WorkflowRunQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WorkflowRunQuery) CountX

func (wrq *WorkflowRunQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WorkflowRunQuery) Exist

func (wrq *WorkflowRunQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WorkflowRunQuery) ExistX

func (wrq *WorkflowRunQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WorkflowRunQuery) First

func (wrq *WorkflowRunQuery) First(ctx context.Context) (*WorkflowRun, error)

First returns the first WorkflowRun entity from the query. Returns a *NotFoundError when no WorkflowRun was found.

func (*WorkflowRunQuery) FirstID

func (wrq *WorkflowRunQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first WorkflowRun ID from the query. Returns a *NotFoundError when no WorkflowRun ID was found.

func (*WorkflowRunQuery) FirstIDX

func (wrq *WorkflowRunQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*WorkflowRunQuery) FirstX

func (wrq *WorkflowRunQuery) FirstX(ctx context.Context) *WorkflowRun

FirstX is like First, but panics if an error occurs.

func (*WorkflowRunQuery) GroupBy

func (wrq *WorkflowRunQuery) GroupBy(field string, fields ...string) *WorkflowRunGroupBy

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.WorkflowRun.Query().
	GroupBy(workflowrun.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WorkflowRunQuery) IDs

func (wrq *WorkflowRunQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of WorkflowRun IDs.

func (*WorkflowRunQuery) IDsX

func (wrq *WorkflowRunQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*WorkflowRunQuery) Limit

func (wrq *WorkflowRunQuery) Limit(limit int) *WorkflowRunQuery

Limit the number of records to be returned by this query.

func (*WorkflowRunQuery) Offset

func (wrq *WorkflowRunQuery) Offset(offset int) *WorkflowRunQuery

Offset to start from.

func (*WorkflowRunQuery) Only

func (wrq *WorkflowRunQuery) Only(ctx context.Context) (*WorkflowRun, error)

Only returns a single WorkflowRun entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WorkflowRun entity is found. Returns a *NotFoundError when no WorkflowRun entities are found.

func (*WorkflowRunQuery) OnlyID

func (wrq *WorkflowRunQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only WorkflowRun ID in the query. Returns a *NotSingularError when more than one WorkflowRun ID is found. Returns a *NotFoundError when no entities are found.

func (*WorkflowRunQuery) OnlyIDX

func (wrq *WorkflowRunQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WorkflowRunQuery) OnlyX

func (wrq *WorkflowRunQuery) OnlyX(ctx context.Context) *WorkflowRun

OnlyX is like Only, but panics if an error occurs.

func (*WorkflowRunQuery) Order

func (wrq *WorkflowRunQuery) Order(o ...OrderFunc) *WorkflowRunQuery

Order specifies how the records should be ordered.

func (*WorkflowRunQuery) QueryContractVersion

func (wrq *WorkflowRunQuery) QueryContractVersion() *WorkflowContractVersionQuery

QueryContractVersion chains the current query on the "contract_version" edge.

func (*WorkflowRunQuery) QueryRobotaccount

func (wrq *WorkflowRunQuery) QueryRobotaccount() *RobotAccountQuery

QueryRobotaccount chains the current query on the "robotaccount" edge.

func (*WorkflowRunQuery) QueryWorkflow

func (wrq *WorkflowRunQuery) QueryWorkflow() *WorkflowQuery

QueryWorkflow chains the current query on the "workflow" edge.

func (*WorkflowRunQuery) Select

func (wrq *WorkflowRunQuery) Select(fields ...string) *WorkflowRunSelect

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.WorkflowRun.Query().
	Select(workflowrun.FieldCreatedAt).
	Scan(ctx, &v)

func (*WorkflowRunQuery) Unique

func (wrq *WorkflowRunQuery) Unique(unique bool) *WorkflowRunQuery

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 (*WorkflowRunQuery) Where

Where adds a new predicate for the WorkflowRunQuery builder.

func (*WorkflowRunQuery) WithContractVersion

func (wrq *WorkflowRunQuery) WithContractVersion(opts ...func(*WorkflowContractVersionQuery)) *WorkflowRunQuery

WithContractVersion tells the query-builder to eager-load the nodes that are connected to the "contract_version" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowRunQuery) WithRobotaccount

func (wrq *WorkflowRunQuery) WithRobotaccount(opts ...func(*RobotAccountQuery)) *WorkflowRunQuery

WithRobotaccount tells the query-builder to eager-load the nodes that are connected to the "robotaccount" edge. The optional arguments are used to configure the query builder of the edge.

func (*WorkflowRunQuery) WithWorkflow

func (wrq *WorkflowRunQuery) WithWorkflow(opts ...func(*WorkflowQuery)) *WorkflowRunQuery

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 WorkflowRunSelect

type WorkflowRunSelect struct {
	*WorkflowRunQuery
	// contains filtered or unexported fields
}

WorkflowRunSelect is the builder for selecting fields of WorkflowRun entities.

func (*WorkflowRunSelect) Aggregate

func (wrs *WorkflowRunSelect) Aggregate(fns ...AggregateFunc) *WorkflowRunSelect

Aggregate adds the given aggregation functions to the selector query.

func (*WorkflowRunSelect) Bool

func (s *WorkflowRunSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) BoolX

func (s *WorkflowRunSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowRunSelect) Bools

func (s *WorkflowRunSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) BoolsX

func (s *WorkflowRunSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowRunSelect) Float64

func (s *WorkflowRunSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) Float64X

func (s *WorkflowRunSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowRunSelect) Float64s

func (s *WorkflowRunSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) Float64sX

func (s *WorkflowRunSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowRunSelect) Int

func (s *WorkflowRunSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) IntX

func (s *WorkflowRunSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowRunSelect) Ints

func (s *WorkflowRunSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) IntsX

func (s *WorkflowRunSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowRunSelect) Scan

func (wrs *WorkflowRunSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowRunSelect) ScanX

func (s *WorkflowRunSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowRunSelect) String

func (s *WorkflowRunSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) StringX

func (s *WorkflowRunSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowRunSelect) Strings

func (s *WorkflowRunSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowRunSelect) StringsX

func (s *WorkflowRunSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowRunUpdate

type WorkflowRunUpdate struct {
	// contains filtered or unexported fields
}

WorkflowRunUpdate is the builder for updating WorkflowRun entities.

func (*WorkflowRunUpdate) ClearAttestationRef

func (wru *WorkflowRunUpdate) ClearAttestationRef() *WorkflowRunUpdate

ClearAttestationRef clears the value of the "attestation_ref" field.

func (*WorkflowRunUpdate) ClearContractVersion

func (wru *WorkflowRunUpdate) ClearContractVersion() *WorkflowRunUpdate

ClearContractVersion clears the "contract_version" edge to the WorkflowContractVersion entity.

func (*WorkflowRunUpdate) ClearFinishedAt

func (wru *WorkflowRunUpdate) ClearFinishedAt() *WorkflowRunUpdate

ClearFinishedAt clears the value of the "finished_at" field.

func (*WorkflowRunUpdate) ClearReason

func (wru *WorkflowRunUpdate) ClearReason() *WorkflowRunUpdate

ClearReason clears the value of the "reason" field.

func (*WorkflowRunUpdate) ClearRobotaccount

func (wru *WorkflowRunUpdate) ClearRobotaccount() *WorkflowRunUpdate

ClearRobotaccount clears the "robotaccount" edge to the RobotAccount entity.

func (*WorkflowRunUpdate) ClearRunURL

func (wru *WorkflowRunUpdate) ClearRunURL() *WorkflowRunUpdate

ClearRunURL clears the value of the "run_url" field.

func (*WorkflowRunUpdate) ClearRunnerType

func (wru *WorkflowRunUpdate) ClearRunnerType() *WorkflowRunUpdate

ClearRunnerType clears the value of the "runner_type" field.

func (*WorkflowRunUpdate) ClearWorkflow

func (wru *WorkflowRunUpdate) ClearWorkflow() *WorkflowRunUpdate

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowRunUpdate) Exec

func (wru *WorkflowRunUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*WorkflowRunUpdate) ExecX

func (wru *WorkflowRunUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowRunUpdate) Mutation

func (wru *WorkflowRunUpdate) Mutation() *WorkflowRunMutation

Mutation returns the WorkflowRunMutation object of the builder.

func (*WorkflowRunUpdate) Save

func (wru *WorkflowRunUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WorkflowRunUpdate) SaveX

func (wru *WorkflowRunUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WorkflowRunUpdate) SetAttestationRef

func (wru *WorkflowRunUpdate) SetAttestationRef(br *biz.AttestationRef) *WorkflowRunUpdate

SetAttestationRef sets the "attestation_ref" field.

func (*WorkflowRunUpdate) SetContractVersion

func (wru *WorkflowRunUpdate) SetContractVersion(w *WorkflowContractVersion) *WorkflowRunUpdate

SetContractVersion sets the "contract_version" edge to the WorkflowContractVersion entity.

func (*WorkflowRunUpdate) SetContractVersionID

func (wru *WorkflowRunUpdate) SetContractVersionID(id uuid.UUID) *WorkflowRunUpdate

SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID.

func (*WorkflowRunUpdate) SetFinishedAt

func (wru *WorkflowRunUpdate) SetFinishedAt(t time.Time) *WorkflowRunUpdate

SetFinishedAt sets the "finished_at" field.

func (*WorkflowRunUpdate) SetNillableContractVersionID

func (wru *WorkflowRunUpdate) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunUpdate

SetNillableContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableFinishedAt

func (wru *WorkflowRunUpdate) SetNillableFinishedAt(t *time.Time) *WorkflowRunUpdate

SetNillableFinishedAt sets the "finished_at" field if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableReason

func (wru *WorkflowRunUpdate) SetNillableReason(s *string) *WorkflowRunUpdate

SetNillableReason sets the "reason" field if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableRobotaccountID

func (wru *WorkflowRunUpdate) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunUpdate

SetNillableRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableRunURL

func (wru *WorkflowRunUpdate) SetNillableRunURL(s *string) *WorkflowRunUpdate

SetNillableRunURL sets the "run_url" field if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableRunnerType

func (wru *WorkflowRunUpdate) SetNillableRunnerType(s *string) *WorkflowRunUpdate

SetNillableRunnerType sets the "runner_type" field if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableState

func (wru *WorkflowRunUpdate) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunUpdate

SetNillableState sets the "state" field if the given value is not nil.

func (*WorkflowRunUpdate) SetNillableWorkflowID

func (wru *WorkflowRunUpdate) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunUpdate

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*WorkflowRunUpdate) SetReason

func (wru *WorkflowRunUpdate) SetReason(s string) *WorkflowRunUpdate

SetReason sets the "reason" field.

func (*WorkflowRunUpdate) SetRobotaccount

func (wru *WorkflowRunUpdate) SetRobotaccount(r *RobotAccount) *WorkflowRunUpdate

SetRobotaccount sets the "robotaccount" edge to the RobotAccount entity.

func (*WorkflowRunUpdate) SetRobotaccountID

func (wru *WorkflowRunUpdate) SetRobotaccountID(id uuid.UUID) *WorkflowRunUpdate

SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID.

func (*WorkflowRunUpdate) SetRunURL

func (wru *WorkflowRunUpdate) SetRunURL(s string) *WorkflowRunUpdate

SetRunURL sets the "run_url" field.

func (*WorkflowRunUpdate) SetRunnerType

func (wru *WorkflowRunUpdate) SetRunnerType(s string) *WorkflowRunUpdate

SetRunnerType sets the "runner_type" field.

func (*WorkflowRunUpdate) SetState

SetState sets the "state" field.

func (*WorkflowRunUpdate) SetWorkflow

func (wru *WorkflowRunUpdate) SetWorkflow(w *Workflow) *WorkflowRunUpdate

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowRunUpdate) SetWorkflowID

func (wru *WorkflowRunUpdate) SetWorkflowID(id uuid.UUID) *WorkflowRunUpdate

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*WorkflowRunUpdate) Where

Where appends a list predicates to the WorkflowRunUpdate builder.

type WorkflowRunUpdateOne

type WorkflowRunUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowRunUpdateOne is the builder for updating a single WorkflowRun entity.

func (*WorkflowRunUpdateOne) ClearAttestationRef

func (wruo *WorkflowRunUpdateOne) ClearAttestationRef() *WorkflowRunUpdateOne

ClearAttestationRef clears the value of the "attestation_ref" field.

func (*WorkflowRunUpdateOne) ClearContractVersion

func (wruo *WorkflowRunUpdateOne) ClearContractVersion() *WorkflowRunUpdateOne

ClearContractVersion clears the "contract_version" edge to the WorkflowContractVersion entity.

func (*WorkflowRunUpdateOne) ClearFinishedAt

func (wruo *WorkflowRunUpdateOne) ClearFinishedAt() *WorkflowRunUpdateOne

ClearFinishedAt clears the value of the "finished_at" field.

func (*WorkflowRunUpdateOne) ClearReason

func (wruo *WorkflowRunUpdateOne) ClearReason() *WorkflowRunUpdateOne

ClearReason clears the value of the "reason" field.

func (*WorkflowRunUpdateOne) ClearRobotaccount

func (wruo *WorkflowRunUpdateOne) ClearRobotaccount() *WorkflowRunUpdateOne

ClearRobotaccount clears the "robotaccount" edge to the RobotAccount entity.

func (*WorkflowRunUpdateOne) ClearRunURL

func (wruo *WorkflowRunUpdateOne) ClearRunURL() *WorkflowRunUpdateOne

ClearRunURL clears the value of the "run_url" field.

func (*WorkflowRunUpdateOne) ClearRunnerType

func (wruo *WorkflowRunUpdateOne) ClearRunnerType() *WorkflowRunUpdateOne

ClearRunnerType clears the value of the "runner_type" field.

func (*WorkflowRunUpdateOne) ClearWorkflow

func (wruo *WorkflowRunUpdateOne) ClearWorkflow() *WorkflowRunUpdateOne

ClearWorkflow clears the "workflow" edge to the Workflow entity.

func (*WorkflowRunUpdateOne) Exec

func (wruo *WorkflowRunUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*WorkflowRunUpdateOne) ExecX

func (wruo *WorkflowRunUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WorkflowRunUpdateOne) Mutation

func (wruo *WorkflowRunUpdateOne) Mutation() *WorkflowRunMutation

Mutation returns the WorkflowRunMutation object of the builder.

func (*WorkflowRunUpdateOne) Save

Save executes the query and returns the updated WorkflowRun entity.

func (*WorkflowRunUpdateOne) SaveX

func (wruo *WorkflowRunUpdateOne) SaveX(ctx context.Context) *WorkflowRun

SaveX is like Save, but panics if an error occurs.

func (*WorkflowRunUpdateOne) Select

func (wruo *WorkflowRunUpdateOne) Select(field string, fields ...string) *WorkflowRunUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WorkflowRunUpdateOne) SetAttestationRef

func (wruo *WorkflowRunUpdateOne) SetAttestationRef(br *biz.AttestationRef) *WorkflowRunUpdateOne

SetAttestationRef sets the "attestation_ref" field.

func (*WorkflowRunUpdateOne) SetContractVersion

SetContractVersion sets the "contract_version" edge to the WorkflowContractVersion entity.

func (*WorkflowRunUpdateOne) SetContractVersionID

func (wruo *WorkflowRunUpdateOne) SetContractVersionID(id uuid.UUID) *WorkflowRunUpdateOne

SetContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID.

func (*WorkflowRunUpdateOne) SetFinishedAt

func (wruo *WorkflowRunUpdateOne) SetFinishedAt(t time.Time) *WorkflowRunUpdateOne

SetFinishedAt sets the "finished_at" field.

func (*WorkflowRunUpdateOne) SetNillableContractVersionID

func (wruo *WorkflowRunUpdateOne) SetNillableContractVersionID(id *uuid.UUID) *WorkflowRunUpdateOne

SetNillableContractVersionID sets the "contract_version" edge to the WorkflowContractVersion entity by ID if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableFinishedAt

func (wruo *WorkflowRunUpdateOne) SetNillableFinishedAt(t *time.Time) *WorkflowRunUpdateOne

SetNillableFinishedAt sets the "finished_at" field if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableReason

func (wruo *WorkflowRunUpdateOne) SetNillableReason(s *string) *WorkflowRunUpdateOne

SetNillableReason sets the "reason" field if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableRobotaccountID

func (wruo *WorkflowRunUpdateOne) SetNillableRobotaccountID(id *uuid.UUID) *WorkflowRunUpdateOne

SetNillableRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableRunURL

func (wruo *WorkflowRunUpdateOne) SetNillableRunURL(s *string) *WorkflowRunUpdateOne

SetNillableRunURL sets the "run_url" field if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableRunnerType

func (wruo *WorkflowRunUpdateOne) SetNillableRunnerType(s *string) *WorkflowRunUpdateOne

SetNillableRunnerType sets the "runner_type" field if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableState

func (wruo *WorkflowRunUpdateOne) SetNillableState(brs *biz.WorkflowRunStatus) *WorkflowRunUpdateOne

SetNillableState sets the "state" field if the given value is not nil.

func (*WorkflowRunUpdateOne) SetNillableWorkflowID

func (wruo *WorkflowRunUpdateOne) SetNillableWorkflowID(id *uuid.UUID) *WorkflowRunUpdateOne

SetNillableWorkflowID sets the "workflow" edge to the Workflow entity by ID if the given value is not nil.

func (*WorkflowRunUpdateOne) SetReason

func (wruo *WorkflowRunUpdateOne) SetReason(s string) *WorkflowRunUpdateOne

SetReason sets the "reason" field.

func (*WorkflowRunUpdateOne) SetRobotaccount

func (wruo *WorkflowRunUpdateOne) SetRobotaccount(r *RobotAccount) *WorkflowRunUpdateOne

SetRobotaccount sets the "robotaccount" edge to the RobotAccount entity.

func (*WorkflowRunUpdateOne) SetRobotaccountID

func (wruo *WorkflowRunUpdateOne) SetRobotaccountID(id uuid.UUID) *WorkflowRunUpdateOne

SetRobotaccountID sets the "robotaccount" edge to the RobotAccount entity by ID.

func (*WorkflowRunUpdateOne) SetRunURL

func (wruo *WorkflowRunUpdateOne) SetRunURL(s string) *WorkflowRunUpdateOne

SetRunURL sets the "run_url" field.

func (*WorkflowRunUpdateOne) SetRunnerType

func (wruo *WorkflowRunUpdateOne) SetRunnerType(s string) *WorkflowRunUpdateOne

SetRunnerType sets the "runner_type" field.

func (*WorkflowRunUpdateOne) SetState

SetState sets the "state" field.

func (*WorkflowRunUpdateOne) SetWorkflow

func (wruo *WorkflowRunUpdateOne) SetWorkflow(w *Workflow) *WorkflowRunUpdateOne

SetWorkflow sets the "workflow" edge to the Workflow entity.

func (*WorkflowRunUpdateOne) SetWorkflowID

func (wruo *WorkflowRunUpdateOne) SetWorkflowID(id uuid.UUID) *WorkflowRunUpdateOne

SetWorkflowID sets the "workflow" edge to the Workflow entity by ID.

func (*WorkflowRunUpdateOne) Where

Where appends a list predicates to the WorkflowRunUpdate builder.

type WorkflowRuns

type WorkflowRuns []*WorkflowRun

WorkflowRuns is a parsable slice of WorkflowRun.

type WorkflowSelect

type WorkflowSelect struct {
	*WorkflowQuery
	// contains filtered or unexported fields
}

WorkflowSelect is the builder for selecting fields of Workflow entities.

func (*WorkflowSelect) Aggregate

func (ws *WorkflowSelect) Aggregate(fns ...AggregateFunc) *WorkflowSelect

Aggregate adds the given aggregation functions to the selector query.

func (*WorkflowSelect) Bool

func (s *WorkflowSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) BoolX

func (s *WorkflowSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WorkflowSelect) Bools

func (s *WorkflowSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) BoolsX

func (s *WorkflowSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WorkflowSelect) Float64

func (s *WorkflowSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) Float64X

func (s *WorkflowSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WorkflowSelect) Float64s

func (s *WorkflowSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) Float64sX

func (s *WorkflowSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WorkflowSelect) Int

func (s *WorkflowSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) IntX

func (s *WorkflowSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WorkflowSelect) Ints

func (s *WorkflowSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) IntsX

func (s *WorkflowSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WorkflowSelect) Scan

func (ws *WorkflowSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WorkflowSelect) ScanX

func (s *WorkflowSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WorkflowSelect) String

func (s *WorkflowSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) StringX

func (s *WorkflowSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WorkflowSelect) Strings

func (s *WorkflowSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WorkflowSelect) StringsX

func (s *WorkflowSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WorkflowUpdate

type WorkflowUpdate struct {
	// contains filtered or unexported fields
}

WorkflowUpdate is the builder for updating Workflow entities.

func (*WorkflowUpdate) AddIntegrationAttachmentIDs

func (wu *WorkflowUpdate) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate

AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by IDs.

func (*WorkflowUpdate) AddIntegrationAttachments

func (wu *WorkflowUpdate) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate

AddIntegrationAttachments adds the "integration_attachments" edges to the IntegrationAttachment entity.

func (*WorkflowUpdate) AddRobotaccountIDs

func (wu *WorkflowUpdate) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdate

AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by IDs.

func (*WorkflowUpdate) AddRobotaccounts

func (wu *WorkflowUpdate) AddRobotaccounts(r ...*RobotAccount) *WorkflowUpdate

AddRobotaccounts adds the "robotaccounts" edges to the RobotAccount entity.

func (*WorkflowUpdate) AddRunsCount

func (wu *WorkflowUpdate) AddRunsCount(i int) *WorkflowUpdate

AddRunsCount adds i to the "runs_count" field.

func (*WorkflowUpdate) AddWorkflowrunIDs

func (wu *WorkflowUpdate) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdate

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*WorkflowUpdate) AddWorkflowruns

func (wu *WorkflowUpdate) AddWorkflowruns(w ...*WorkflowRun) *WorkflowUpdate

AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.

func (*WorkflowUpdate) ClearContract

func (wu *WorkflowUpdate) ClearContract() *WorkflowUpdate

ClearContract clears the "contract" edge to the WorkflowContract entity.

func (*WorkflowUpdate) ClearDeletedAt

func (wu *WorkflowUpdate) ClearDeletedAt() *WorkflowUpdate

ClearDeletedAt clears the value of the "deleted_at" field.

func (*WorkflowUpdate) ClearIntegrationAttachments

func (wu *WorkflowUpdate) ClearIntegrationAttachments() *WorkflowUpdate

ClearIntegrationAttachments clears all "integration_attachments" edges to the IntegrationAttachment entity.

func (*WorkflowUpdate) ClearOrganization

func (wu *WorkflowUpdate) ClearOrganization() *WorkflowUpdate

ClearOrganization clears the "organization" edge to the Organization entity.

func (*WorkflowUpdate) ClearProject

func (wu *WorkflowUpdate) ClearProject() *WorkflowUpdate

ClearProject clears the value of the "project" field.

func (*WorkflowUpdate) ClearRobotaccounts

func (wu *WorkflowUpdate) ClearRobotaccounts() *WorkflowUpdate

ClearRobotaccounts clears all "robotaccounts" edges to the RobotAccount entity.

func (*WorkflowUpdate) ClearTeam

func (wu *WorkflowUpdate) ClearTeam() *WorkflowUpdate

ClearTeam clears the value of the "team" field.

func (*WorkflowUpdate) ClearWorkflowruns

func (wu *WorkflowUpdate) ClearWorkflowruns() *WorkflowUpdate

ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun 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) RemoveIntegrationAttachmentIDs

func (wu *WorkflowUpdate) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveIntegrationAttachmentIDs removes the "integration_attachments" edge to IntegrationAttachment entities by IDs.

func (*WorkflowUpdate) RemoveIntegrationAttachments

func (wu *WorkflowUpdate) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdate

RemoveIntegrationAttachments removes "integration_attachments" edges to IntegrationAttachment entities.

func (*WorkflowUpdate) RemoveRobotaccountIDs

func (wu *WorkflowUpdate) RemoveRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveRobotaccountIDs removes the "robotaccounts" edge to RobotAccount entities by IDs.

func (*WorkflowUpdate) RemoveRobotaccounts

func (wu *WorkflowUpdate) RemoveRobotaccounts(r ...*RobotAccount) *WorkflowUpdate

RemoveRobotaccounts removes "robotaccounts" edges to RobotAccount entities.

func (*WorkflowUpdate) RemoveWorkflowrunIDs

func (wu *WorkflowUpdate) RemoveWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdate

RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.

func (*WorkflowUpdate) RemoveWorkflowruns

func (wu *WorkflowUpdate) RemoveWorkflowruns(w ...*WorkflowRun) *WorkflowUpdate

RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun 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) SetContract

func (wu *WorkflowUpdate) SetContract(w *WorkflowContract) *WorkflowUpdate

SetContract sets the "contract" edge to the WorkflowContract entity.

func (*WorkflowUpdate) SetContractID

func (wu *WorkflowUpdate) SetContractID(id uuid.UUID) *WorkflowUpdate

SetContractID sets the "contract" edge to the WorkflowContract entity by ID.

func (*WorkflowUpdate) SetDeletedAt

func (wu *WorkflowUpdate) SetDeletedAt(t time.Time) *WorkflowUpdate

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowUpdate) SetName

func (wu *WorkflowUpdate) SetName(s string) *WorkflowUpdate

SetName sets the "name" field.

func (*WorkflowUpdate) SetNillableDeletedAt

func (wu *WorkflowUpdate) SetNillableDeletedAt(t *time.Time) *WorkflowUpdate

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*WorkflowUpdate) SetNillableProject

func (wu *WorkflowUpdate) SetNillableProject(s *string) *WorkflowUpdate

SetNillableProject sets the "project" field if the given value is not nil.

func (*WorkflowUpdate) SetNillableRunsCount

func (wu *WorkflowUpdate) SetNillableRunsCount(i *int) *WorkflowUpdate

SetNillableRunsCount sets the "runs_count" field if the given value is not nil.

func (*WorkflowUpdate) SetNillableTeam

func (wu *WorkflowUpdate) SetNillableTeam(s *string) *WorkflowUpdate

SetNillableTeam sets the "team" field if the given value is not nil.

func (*WorkflowUpdate) SetOrganization

func (wu *WorkflowUpdate) SetOrganization(o *Organization) *WorkflowUpdate

SetOrganization sets the "organization" edge to the Organization entity.

func (*WorkflowUpdate) SetOrganizationID

func (wu *WorkflowUpdate) SetOrganizationID(id uuid.UUID) *WorkflowUpdate

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*WorkflowUpdate) SetProject

func (wu *WorkflowUpdate) SetProject(s string) *WorkflowUpdate

SetProject sets the "project" field.

func (*WorkflowUpdate) SetRunsCount

func (wu *WorkflowUpdate) SetRunsCount(i int) *WorkflowUpdate

SetRunsCount sets the "runs_count" field.

func (*WorkflowUpdate) SetTeam

func (wu *WorkflowUpdate) SetTeam(s string) *WorkflowUpdate

SetTeam sets the "team" field.

func (*WorkflowUpdate) Where

func (wu *WorkflowUpdate) Where(ps ...predicate.Workflow) *WorkflowUpdate

Where appends a list predicates to the WorkflowUpdate builder.

type WorkflowUpdateOne

type WorkflowUpdateOne struct {
	// contains filtered or unexported fields
}

WorkflowUpdateOne is the builder for updating a single Workflow entity.

func (*WorkflowUpdateOne) AddIntegrationAttachmentIDs

func (wuo *WorkflowUpdateOne) AddIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddIntegrationAttachmentIDs adds the "integration_attachments" edge to the IntegrationAttachment entity by IDs.

func (*WorkflowUpdateOne) AddIntegrationAttachments

func (wuo *WorkflowUpdateOne) AddIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne

AddIntegrationAttachments adds the "integration_attachments" edges to the IntegrationAttachment entity.

func (*WorkflowUpdateOne) AddRobotaccountIDs

func (wuo *WorkflowUpdateOne) AddRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddRobotaccountIDs adds the "robotaccounts" edge to the RobotAccount entity by IDs.

func (*WorkflowUpdateOne) AddRobotaccounts

func (wuo *WorkflowUpdateOne) AddRobotaccounts(r ...*RobotAccount) *WorkflowUpdateOne

AddRobotaccounts adds the "robotaccounts" edges to the RobotAccount entity.

func (*WorkflowUpdateOne) AddRunsCount

func (wuo *WorkflowUpdateOne) AddRunsCount(i int) *WorkflowUpdateOne

AddRunsCount adds i to the "runs_count" field.

func (*WorkflowUpdateOne) AddWorkflowrunIDs

func (wuo *WorkflowUpdateOne) AddWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdateOne

AddWorkflowrunIDs adds the "workflowruns" edge to the WorkflowRun entity by IDs.

func (*WorkflowUpdateOne) AddWorkflowruns

func (wuo *WorkflowUpdateOne) AddWorkflowruns(w ...*WorkflowRun) *WorkflowUpdateOne

AddWorkflowruns adds the "workflowruns" edges to the WorkflowRun entity.

func (*WorkflowUpdateOne) ClearContract

func (wuo *WorkflowUpdateOne) ClearContract() *WorkflowUpdateOne

ClearContract clears the "contract" edge to the WorkflowContract entity.

func (*WorkflowUpdateOne) ClearDeletedAt

func (wuo *WorkflowUpdateOne) ClearDeletedAt() *WorkflowUpdateOne

ClearDeletedAt clears the value of the "deleted_at" field.

func (*WorkflowUpdateOne) ClearIntegrationAttachments

func (wuo *WorkflowUpdateOne) ClearIntegrationAttachments() *WorkflowUpdateOne

ClearIntegrationAttachments clears all "integration_attachments" edges to the IntegrationAttachment entity.

func (*WorkflowUpdateOne) ClearOrganization

func (wuo *WorkflowUpdateOne) ClearOrganization() *WorkflowUpdateOne

ClearOrganization clears the "organization" edge to the Organization entity.

func (*WorkflowUpdateOne) ClearProject

func (wuo *WorkflowUpdateOne) ClearProject() *WorkflowUpdateOne

ClearProject clears the value of the "project" field.

func (*WorkflowUpdateOne) ClearRobotaccounts

func (wuo *WorkflowUpdateOne) ClearRobotaccounts() *WorkflowUpdateOne

ClearRobotaccounts clears all "robotaccounts" edges to the RobotAccount entity.

func (*WorkflowUpdateOne) ClearTeam

func (wuo *WorkflowUpdateOne) ClearTeam() *WorkflowUpdateOne

ClearTeam clears the value of the "team" field.

func (*WorkflowUpdateOne) ClearWorkflowruns

func (wuo *WorkflowUpdateOne) ClearWorkflowruns() *WorkflowUpdateOne

ClearWorkflowruns clears all "workflowruns" edges to the WorkflowRun 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) RemoveIntegrationAttachmentIDs

func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachmentIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveIntegrationAttachmentIDs removes the "integration_attachments" edge to IntegrationAttachment entities by IDs.

func (*WorkflowUpdateOne) RemoveIntegrationAttachments

func (wuo *WorkflowUpdateOne) RemoveIntegrationAttachments(i ...*IntegrationAttachment) *WorkflowUpdateOne

RemoveIntegrationAttachments removes "integration_attachments" edges to IntegrationAttachment entities.

func (*WorkflowUpdateOne) RemoveRobotaccountIDs

func (wuo *WorkflowUpdateOne) RemoveRobotaccountIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveRobotaccountIDs removes the "robotaccounts" edge to RobotAccount entities by IDs.

func (*WorkflowUpdateOne) RemoveRobotaccounts

func (wuo *WorkflowUpdateOne) RemoveRobotaccounts(r ...*RobotAccount) *WorkflowUpdateOne

RemoveRobotaccounts removes "robotaccounts" edges to RobotAccount entities.

func (*WorkflowUpdateOne) RemoveWorkflowrunIDs

func (wuo *WorkflowUpdateOne) RemoveWorkflowrunIDs(ids ...uuid.UUID) *WorkflowUpdateOne

RemoveWorkflowrunIDs removes the "workflowruns" edge to WorkflowRun entities by IDs.

func (*WorkflowUpdateOne) RemoveWorkflowruns

func (wuo *WorkflowUpdateOne) RemoveWorkflowruns(w ...*WorkflowRun) *WorkflowUpdateOne

RemoveWorkflowruns removes "workflowruns" edges to WorkflowRun 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) SetContract

SetContract sets the "contract" edge to the WorkflowContract entity.

func (*WorkflowUpdateOne) SetContractID

func (wuo *WorkflowUpdateOne) SetContractID(id uuid.UUID) *WorkflowUpdateOne

SetContractID sets the "contract" edge to the WorkflowContract entity by ID.

func (*WorkflowUpdateOne) SetDeletedAt

func (wuo *WorkflowUpdateOne) SetDeletedAt(t time.Time) *WorkflowUpdateOne

SetDeletedAt sets the "deleted_at" field.

func (*WorkflowUpdateOne) SetName

func (wuo *WorkflowUpdateOne) SetName(s string) *WorkflowUpdateOne

SetName sets the "name" field.

func (*WorkflowUpdateOne) SetNillableDeletedAt

func (wuo *WorkflowUpdateOne) SetNillableDeletedAt(t *time.Time) *WorkflowUpdateOne

SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableProject

func (wuo *WorkflowUpdateOne) SetNillableProject(s *string) *WorkflowUpdateOne

SetNillableProject sets the "project" field if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableRunsCount

func (wuo *WorkflowUpdateOne) SetNillableRunsCount(i *int) *WorkflowUpdateOne

SetNillableRunsCount sets the "runs_count" field if the given value is not nil.

func (*WorkflowUpdateOne) SetNillableTeam

func (wuo *WorkflowUpdateOne) SetNillableTeam(s *string) *WorkflowUpdateOne

SetNillableTeam sets the "team" field if the given value is not nil.

func (*WorkflowUpdateOne) SetOrganization

func (wuo *WorkflowUpdateOne) SetOrganization(o *Organization) *WorkflowUpdateOne

SetOrganization sets the "organization" edge to the Organization entity.

func (*WorkflowUpdateOne) SetOrganizationID

func (wuo *WorkflowUpdateOne) SetOrganizationID(id uuid.UUID) *WorkflowUpdateOne

SetOrganizationID sets the "organization" edge to the Organization entity by ID.

func (*WorkflowUpdateOne) SetProject

func (wuo *WorkflowUpdateOne) SetProject(s string) *WorkflowUpdateOne

SetProject sets the "project" field.

func (*WorkflowUpdateOne) SetRunsCount

func (wuo *WorkflowUpdateOne) SetRunsCount(i int) *WorkflowUpdateOne

SetRunsCount sets the "runs_count" field.

func (*WorkflowUpdateOne) SetTeam

func (wuo *WorkflowUpdateOne) SetTeam(s string) *WorkflowUpdateOne

SetTeam sets the "team" field.

func (*WorkflowUpdateOne) Where

Where appends a list predicates to the WorkflowUpdate builder.

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