ent

package
v1.12.13 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 33 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.
	TypeCodeSourceFile        = "CodeSourceFile"
	TypeDepsUsageEvidence     = "DepsUsageEvidence"
	TypeReportDependency      = "ReportDependency"
	TypeReportDependencyGraph = "ReportDependencyGraph"
	TypeReportLicense         = "ReportLicense"
	TypeReportMalware         = "ReportMalware"
	TypeReportPackage         = "ReportPackage"
	TypeReportPackageManifest = "ReportPackageManifest"
	TypeReportProject         = "ReportProject"
	TypeReportScorecard       = "ReportScorecard"
	TypeReportScorecardCheck  = "ReportScorecardCheck"
	TypeReportSlsaProvenance  = "ReportSlsaProvenance"
	TypeReportVulnerability   = "ReportVulnerability"
)

Variables

View Source
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

Functions

func Asc

func Asc(fields ...string) func(*sql.Selector)

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) func(*sql.Selector)

Desc applies the given fields in DESC order.

func IsConstraintError

func IsConstraintError(err error) bool

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

func IsNotFound

func IsNotFound(err error) bool

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

func IsNotLoaded

func IsNotLoaded(err error) bool

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

func IsNotSingular

func IsNotSingular(err error) bool

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

func IsValidationError

func IsValidationError(err error) bool

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

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

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

NewContext returns a new context with the given Client attached.

func NewTxContext

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

NewTxContext returns a new context with the given Tx attached.

Types

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

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

func As

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

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

func Count

func Count() AggregateFunc

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

func Max

func Max(field string) AggregateFunc

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

func Mean

func Mean(field string) AggregateFunc

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

func Min

func Min(field string) AggregateFunc

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

func Sum

func Sum(field string) AggregateFunc

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

type Client

type Client struct {

	// Schema is the client for creating, migrating and dropping schema.
	Schema *migrate.Schema
	// CodeSourceFile is the client for interacting with the CodeSourceFile builders.
	CodeSourceFile *CodeSourceFileClient
	// DepsUsageEvidence is the client for interacting with the DepsUsageEvidence builders.
	DepsUsageEvidence *DepsUsageEvidenceClient
	// ReportDependency is the client for interacting with the ReportDependency builders.
	ReportDependency *ReportDependencyClient
	// ReportDependencyGraph is the client for interacting with the ReportDependencyGraph builders.
	ReportDependencyGraph *ReportDependencyGraphClient
	// ReportLicense is the client for interacting with the ReportLicense builders.
	ReportLicense *ReportLicenseClient
	// ReportMalware is the client for interacting with the ReportMalware builders.
	ReportMalware *ReportMalwareClient
	// ReportPackage is the client for interacting with the ReportPackage builders.
	ReportPackage *ReportPackageClient
	// ReportPackageManifest is the client for interacting with the ReportPackageManifest builders.
	ReportPackageManifest *ReportPackageManifestClient
	// ReportProject is the client for interacting with the ReportProject builders.
	ReportProject *ReportProjectClient
	// ReportScorecard is the client for interacting with the ReportScorecard builders.
	ReportScorecard *ReportScorecardClient
	// ReportScorecardCheck is the client for interacting with the ReportScorecardCheck builders.
	ReportScorecardCheck *ReportScorecardCheckClient
	// ReportSlsaProvenance is the client for interacting with the ReportSlsaProvenance builders.
	ReportSlsaProvenance *ReportSlsaProvenanceClient
	// ReportVulnerability is the client for interacting with the ReportVulnerability builders.
	ReportVulnerability *ReportVulnerabilityClient
	// 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().
	CodeSourceFile.
	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 CodeSourceFile

type CodeSourceFile struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Path holds the value of the "path" field.
	Path string `json:"path,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the CodeSourceFileQuery when eager-loading is set.
	Edges CodeSourceFileEdges `json:"edges"`
	// contains filtered or unexported fields
}

CodeSourceFile is the model entity for the CodeSourceFile schema.

func (*CodeSourceFile) QueryDepsUsageEvidences

func (csf *CodeSourceFile) QueryDepsUsageEvidences() *DepsUsageEvidenceQuery

QueryDepsUsageEvidences queries the "deps_usage_evidences" edge of the CodeSourceFile entity.

func (*CodeSourceFile) String

func (csf *CodeSourceFile) String() string

String implements the fmt.Stringer.

func (*CodeSourceFile) Unwrap

func (csf *CodeSourceFile) Unwrap() *CodeSourceFile

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

func (csf *CodeSourceFile) Update() *CodeSourceFileUpdateOne

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

func (*CodeSourceFile) Value

func (csf *CodeSourceFile) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the CodeSourceFile. This includes values selected through modifiers, order, etc.

type CodeSourceFileClient

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

CodeSourceFileClient is a client for the CodeSourceFile schema.

func NewCodeSourceFileClient

func NewCodeSourceFileClient(c config) *CodeSourceFileClient

NewCodeSourceFileClient returns a client for the CodeSourceFile from the given config.

func (*CodeSourceFileClient) Create

Create returns a builder for creating a CodeSourceFile entity.

func (*CodeSourceFileClient) CreateBulk

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

func (*CodeSourceFileClient) Delete

Delete returns a delete builder for CodeSourceFile.

func (*CodeSourceFileClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*CodeSourceFileClient) DeleteOneID

func (c *CodeSourceFileClient) DeleteOneID(id int) *CodeSourceFileDeleteOne

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

func (*CodeSourceFileClient) Get

Get returns a CodeSourceFile entity by its id.

func (*CodeSourceFileClient) GetX

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

func (*CodeSourceFileClient) Hooks

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

Hooks returns the client hooks.

func (*CodeSourceFileClient) Intercept

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

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

func (*CodeSourceFileClient) Interceptors

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

Interceptors returns the client interceptors.

func (*CodeSourceFileClient) MapCreateBulk

func (c *CodeSourceFileClient) MapCreateBulk(slice any, setFunc func(*CodeSourceFileCreate, int)) *CodeSourceFileCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*CodeSourceFileClient) Query

Query returns a query builder for CodeSourceFile.

func (*CodeSourceFileClient) QueryDepsUsageEvidences

func (c *CodeSourceFileClient) QueryDepsUsageEvidences(csf *CodeSourceFile) *DepsUsageEvidenceQuery

QueryDepsUsageEvidences queries the deps_usage_evidences edge of a CodeSourceFile.

func (*CodeSourceFileClient) Update

Update returns an update builder for CodeSourceFile.

func (*CodeSourceFileClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*CodeSourceFileClient) UpdateOneID

func (c *CodeSourceFileClient) UpdateOneID(id int) *CodeSourceFileUpdateOne

UpdateOneID returns an update builder for the given id.

func (*CodeSourceFileClient) Use

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

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

type CodeSourceFileCreate

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

CodeSourceFileCreate is the builder for creating a CodeSourceFile entity.

func (*CodeSourceFileCreate) AddDepsUsageEvidenceIDs

func (csfc *CodeSourceFileCreate) AddDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileCreate

AddDepsUsageEvidenceIDs adds the "deps_usage_evidences" edge to the DepsUsageEvidence entity by IDs.

func (*CodeSourceFileCreate) AddDepsUsageEvidences

func (csfc *CodeSourceFileCreate) AddDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileCreate

AddDepsUsageEvidences adds the "deps_usage_evidences" edges to the DepsUsageEvidence entity.

func (*CodeSourceFileCreate) Exec

func (csfc *CodeSourceFileCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeSourceFileCreate) ExecX

func (csfc *CodeSourceFileCreate) ExecX(ctx context.Context)

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

func (*CodeSourceFileCreate) Mutation

func (csfc *CodeSourceFileCreate) Mutation() *CodeSourceFileMutation

Mutation returns the CodeSourceFileMutation object of the builder.

func (*CodeSourceFileCreate) Save

Save creates the CodeSourceFile in the database.

func (*CodeSourceFileCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*CodeSourceFileCreate) SetPath

SetPath sets the "path" field.

type CodeSourceFileCreateBulk

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

CodeSourceFileCreateBulk is the builder for creating many CodeSourceFile entities in bulk.

func (*CodeSourceFileCreateBulk) Exec

func (csfcb *CodeSourceFileCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeSourceFileCreateBulk) ExecX

func (csfcb *CodeSourceFileCreateBulk) ExecX(ctx context.Context)

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

func (*CodeSourceFileCreateBulk) Save

Save creates the CodeSourceFile entities in the database.

func (*CodeSourceFileCreateBulk) SaveX

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

type CodeSourceFileDelete

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

CodeSourceFileDelete is the builder for deleting a CodeSourceFile entity.

func (*CodeSourceFileDelete) Exec

func (csfd *CodeSourceFileDelete) Exec(ctx context.Context) (int, error)

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

func (*CodeSourceFileDelete) ExecX

func (csfd *CodeSourceFileDelete) ExecX(ctx context.Context) int

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

func (*CodeSourceFileDelete) Where

Where appends a list predicates to the CodeSourceFileDelete builder.

type CodeSourceFileDeleteOne

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

CodeSourceFileDeleteOne is the builder for deleting a single CodeSourceFile entity.

func (*CodeSourceFileDeleteOne) Exec

func (csfdo *CodeSourceFileDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*CodeSourceFileDeleteOne) ExecX

func (csfdo *CodeSourceFileDeleteOne) ExecX(ctx context.Context)

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

func (*CodeSourceFileDeleteOne) Where

Where appends a list predicates to the CodeSourceFileDelete builder.

type CodeSourceFileEdges

type CodeSourceFileEdges struct {
	// DepsUsageEvidences holds the value of the deps_usage_evidences edge.
	DepsUsageEvidences []*DepsUsageEvidence `json:"deps_usage_evidences,omitempty"`
	// contains filtered or unexported fields
}

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

func (CodeSourceFileEdges) DepsUsageEvidencesOrErr

func (e CodeSourceFileEdges) DepsUsageEvidencesOrErr() ([]*DepsUsageEvidence, error)

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

type CodeSourceFileGroupBy

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

CodeSourceFileGroupBy is the group-by builder for CodeSourceFile entities.

func (*CodeSourceFileGroupBy) Aggregate

func (csfgb *CodeSourceFileGroupBy) Aggregate(fns ...AggregateFunc) *CodeSourceFileGroupBy

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

func (*CodeSourceFileGroupBy) Bool

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

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

func (*CodeSourceFileGroupBy) BoolX

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

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

func (*CodeSourceFileGroupBy) Bools

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

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

func (*CodeSourceFileGroupBy) BoolsX

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

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

func (*CodeSourceFileGroupBy) Float64

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

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

func (*CodeSourceFileGroupBy) Float64X

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

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

func (*CodeSourceFileGroupBy) Float64s

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

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

func (*CodeSourceFileGroupBy) Float64sX

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

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

func (*CodeSourceFileGroupBy) Int

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

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

func (*CodeSourceFileGroupBy) IntX

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

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

func (*CodeSourceFileGroupBy) Ints

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

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

func (*CodeSourceFileGroupBy) IntsX

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

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

func (*CodeSourceFileGroupBy) Scan

func (csfgb *CodeSourceFileGroupBy) Scan(ctx context.Context, v any) error

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

func (*CodeSourceFileGroupBy) ScanX

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

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

func (*CodeSourceFileGroupBy) String

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

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

func (*CodeSourceFileGroupBy) StringX

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

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

func (*CodeSourceFileGroupBy) Strings

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

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

func (*CodeSourceFileGroupBy) StringsX

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

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

type CodeSourceFileMutation

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

CodeSourceFileMutation represents an operation that mutates the CodeSourceFile nodes in the graph.

func (*CodeSourceFileMutation) AddDepsUsageEvidenceIDs

func (m *CodeSourceFileMutation) AddDepsUsageEvidenceIDs(ids ...int)

AddDepsUsageEvidenceIDs adds the "deps_usage_evidences" edge to the DepsUsageEvidence entity by ids.

func (*CodeSourceFileMutation) AddField

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

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

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

func (*CodeSourceFileMutation) AddedField

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

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

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

func (*CodeSourceFileMutation) AddedIDs

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

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

func (*CodeSourceFileMutation) ClearDepsUsageEvidences

func (m *CodeSourceFileMutation) ClearDepsUsageEvidences()

ClearDepsUsageEvidences clears the "deps_usage_evidences" edge to the DepsUsageEvidence entity.

func (*CodeSourceFileMutation) ClearEdge

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

func (m *CodeSourceFileMutation) 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 (*CodeSourceFileMutation) ClearedEdges

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

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

func (*CodeSourceFileMutation) ClearedFields

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

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

func (CodeSourceFileMutation) Client

func (m CodeSourceFileMutation) 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 (*CodeSourceFileMutation) DepsUsageEvidencesCleared

func (m *CodeSourceFileMutation) DepsUsageEvidencesCleared() bool

DepsUsageEvidencesCleared reports if the "deps_usage_evidences" edge to the DepsUsageEvidence entity was cleared.

func (*CodeSourceFileMutation) DepsUsageEvidencesIDs

func (m *CodeSourceFileMutation) DepsUsageEvidencesIDs() (ids []int)

DepsUsageEvidencesIDs returns the "deps_usage_evidences" edge IDs in the mutation.

func (*CodeSourceFileMutation) EdgeCleared

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

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

func (*CodeSourceFileMutation) Field

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

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

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

func (*CodeSourceFileMutation) Fields

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

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

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

func (*CodeSourceFileMutation) IDs

func (m *CodeSourceFileMutation) IDs(ctx context.Context) ([]int, 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 (*CodeSourceFileMutation) OldField

func (m *CodeSourceFileMutation) 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 (*CodeSourceFileMutation) OldPath

func (m *CodeSourceFileMutation) OldPath(ctx context.Context) (v string, err error)

OldPath returns the old "path" field's value of the CodeSourceFile entity. If the CodeSourceFile 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 (*CodeSourceFileMutation) Op

func (m *CodeSourceFileMutation) Op() Op

Op returns the operation name.

func (*CodeSourceFileMutation) Path

func (m *CodeSourceFileMutation) Path() (r string, exists bool)

Path returns the value of the "path" field in the mutation.

func (*CodeSourceFileMutation) RemoveDepsUsageEvidenceIDs

func (m *CodeSourceFileMutation) RemoveDepsUsageEvidenceIDs(ids ...int)

RemoveDepsUsageEvidenceIDs removes the "deps_usage_evidences" edge to the DepsUsageEvidence entity by IDs.

func (*CodeSourceFileMutation) RemovedDepsUsageEvidencesIDs

func (m *CodeSourceFileMutation) RemovedDepsUsageEvidencesIDs() (ids []int)

RemovedDepsUsageEvidences returns the removed IDs of the "deps_usage_evidences" edge to the DepsUsageEvidence entity.

func (*CodeSourceFileMutation) RemovedEdges

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

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

func (*CodeSourceFileMutation) RemovedIDs

func (m *CodeSourceFileMutation) 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 (*CodeSourceFileMutation) ResetDepsUsageEvidences

func (m *CodeSourceFileMutation) ResetDepsUsageEvidences()

ResetDepsUsageEvidences resets all changes to the "deps_usage_evidences" edge.

func (*CodeSourceFileMutation) ResetEdge

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

func (m *CodeSourceFileMutation) 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 (*CodeSourceFileMutation) ResetPath

func (m *CodeSourceFileMutation) ResetPath()

ResetPath resets all changes to the "path" field.

func (*CodeSourceFileMutation) SetField

func (m *CodeSourceFileMutation) 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 (*CodeSourceFileMutation) SetOp

func (m *CodeSourceFileMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*CodeSourceFileMutation) SetPath

func (m *CodeSourceFileMutation) SetPath(s string)

SetPath sets the "path" field.

func (CodeSourceFileMutation) Tx

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

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

func (*CodeSourceFileMutation) Type

func (m *CodeSourceFileMutation) Type() string

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

func (*CodeSourceFileMutation) Where

Where appends a list predicates to the CodeSourceFileMutation builder.

func (*CodeSourceFileMutation) WhereP

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

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

type CodeSourceFileQuery

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

CodeSourceFileQuery is the builder for querying CodeSourceFile entities.

func (*CodeSourceFileQuery) Aggregate

func (csfq *CodeSourceFileQuery) Aggregate(fns ...AggregateFunc) *CodeSourceFileSelect

Aggregate returns a CodeSourceFileSelect configured with the given aggregations.

func (*CodeSourceFileQuery) All

All executes the query and returns a list of CodeSourceFiles.

func (*CodeSourceFileQuery) AllX

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

func (*CodeSourceFileQuery) Clone

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

func (*CodeSourceFileQuery) Count

func (csfq *CodeSourceFileQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*CodeSourceFileQuery) CountX

func (csfq *CodeSourceFileQuery) CountX(ctx context.Context) int

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

func (*CodeSourceFileQuery) Exist

func (csfq *CodeSourceFileQuery) Exist(ctx context.Context) (bool, error)

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

func (*CodeSourceFileQuery) ExistX

func (csfq *CodeSourceFileQuery) ExistX(ctx context.Context) bool

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

func (*CodeSourceFileQuery) First

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

func (*CodeSourceFileQuery) FirstID

func (csfq *CodeSourceFileQuery) FirstID(ctx context.Context) (id int, err error)

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

func (*CodeSourceFileQuery) FirstIDX

func (csfq *CodeSourceFileQuery) FirstIDX(ctx context.Context) int

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

func (*CodeSourceFileQuery) FirstX

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

func (*CodeSourceFileQuery) GroupBy

func (csfq *CodeSourceFileQuery) GroupBy(field string, fields ...string) *CodeSourceFileGroupBy

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

client.CodeSourceFile.Query().
	GroupBy(codesourcefile.FieldPath).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*CodeSourceFileQuery) IDs

func (csfq *CodeSourceFileQuery) IDs(ctx context.Context) (ids []int, err error)

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

func (*CodeSourceFileQuery) IDsX

func (csfq *CodeSourceFileQuery) IDsX(ctx context.Context) []int

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

func (*CodeSourceFileQuery) Limit

func (csfq *CodeSourceFileQuery) Limit(limit int) *CodeSourceFileQuery

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

func (*CodeSourceFileQuery) Offset

func (csfq *CodeSourceFileQuery) Offset(offset int) *CodeSourceFileQuery

Offset to start from.

func (*CodeSourceFileQuery) Only

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

func (*CodeSourceFileQuery) OnlyID

func (csfq *CodeSourceFileQuery) OnlyID(ctx context.Context) (id int, err error)

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

func (*CodeSourceFileQuery) OnlyIDX

func (csfq *CodeSourceFileQuery) OnlyIDX(ctx context.Context) int

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

func (*CodeSourceFileQuery) OnlyX

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

func (*CodeSourceFileQuery) Order

Order specifies how the records should be ordered.

func (*CodeSourceFileQuery) QueryDepsUsageEvidences

func (csfq *CodeSourceFileQuery) QueryDepsUsageEvidences() *DepsUsageEvidenceQuery

QueryDepsUsageEvidences chains the current query on the "deps_usage_evidences" edge.

func (*CodeSourceFileQuery) Select

func (csfq *CodeSourceFileQuery) Select(fields ...string) *CodeSourceFileSelect

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

client.CodeSourceFile.Query().
	Select(codesourcefile.FieldPath).
	Scan(ctx, &v)

func (*CodeSourceFileQuery) Unique

func (csfq *CodeSourceFileQuery) Unique(unique bool) *CodeSourceFileQuery

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

Where adds a new predicate for the CodeSourceFileQuery builder.

func (*CodeSourceFileQuery) WithDepsUsageEvidences

func (csfq *CodeSourceFileQuery) WithDepsUsageEvidences(opts ...func(*DepsUsageEvidenceQuery)) *CodeSourceFileQuery

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

type CodeSourceFileSelect

type CodeSourceFileSelect struct {
	*CodeSourceFileQuery
	// contains filtered or unexported fields
}

CodeSourceFileSelect is the builder for selecting fields of CodeSourceFile entities.

func (*CodeSourceFileSelect) Aggregate

func (csfs *CodeSourceFileSelect) Aggregate(fns ...AggregateFunc) *CodeSourceFileSelect

Aggregate adds the given aggregation functions to the selector query.

func (*CodeSourceFileSelect) Bool

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

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

func (*CodeSourceFileSelect) BoolX

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

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

func (*CodeSourceFileSelect) Bools

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

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

func (*CodeSourceFileSelect) BoolsX

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

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

func (*CodeSourceFileSelect) Float64

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

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

func (*CodeSourceFileSelect) Float64X

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

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

func (*CodeSourceFileSelect) Float64s

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

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

func (*CodeSourceFileSelect) Float64sX

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

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

func (*CodeSourceFileSelect) Int

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

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

func (*CodeSourceFileSelect) IntX

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

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

func (*CodeSourceFileSelect) Ints

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

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

func (*CodeSourceFileSelect) IntsX

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

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

func (*CodeSourceFileSelect) Scan

func (csfs *CodeSourceFileSelect) Scan(ctx context.Context, v any) error

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

func (*CodeSourceFileSelect) ScanX

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

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

func (*CodeSourceFileSelect) String

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

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

func (*CodeSourceFileSelect) StringX

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

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

func (*CodeSourceFileSelect) Strings

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

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

func (*CodeSourceFileSelect) StringsX

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

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

type CodeSourceFileUpdate

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

CodeSourceFileUpdate is the builder for updating CodeSourceFile entities.

func (*CodeSourceFileUpdate) AddDepsUsageEvidenceIDs

func (csfu *CodeSourceFileUpdate) AddDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdate

AddDepsUsageEvidenceIDs adds the "deps_usage_evidences" edge to the DepsUsageEvidence entity by IDs.

func (*CodeSourceFileUpdate) AddDepsUsageEvidences

func (csfu *CodeSourceFileUpdate) AddDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdate

AddDepsUsageEvidences adds the "deps_usage_evidences" edges to the DepsUsageEvidence entity.

func (*CodeSourceFileUpdate) ClearDepsUsageEvidences

func (csfu *CodeSourceFileUpdate) ClearDepsUsageEvidences() *CodeSourceFileUpdate

ClearDepsUsageEvidences clears all "deps_usage_evidences" edges to the DepsUsageEvidence entity.

func (*CodeSourceFileUpdate) Exec

func (csfu *CodeSourceFileUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeSourceFileUpdate) ExecX

func (csfu *CodeSourceFileUpdate) ExecX(ctx context.Context)

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

func (*CodeSourceFileUpdate) Mutation

func (csfu *CodeSourceFileUpdate) Mutation() *CodeSourceFileMutation

Mutation returns the CodeSourceFileMutation object of the builder.

func (*CodeSourceFileUpdate) RemoveDepsUsageEvidenceIDs

func (csfu *CodeSourceFileUpdate) RemoveDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdate

RemoveDepsUsageEvidenceIDs removes the "deps_usage_evidences" edge to DepsUsageEvidence entities by IDs.

func (*CodeSourceFileUpdate) RemoveDepsUsageEvidences

func (csfu *CodeSourceFileUpdate) RemoveDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdate

RemoveDepsUsageEvidences removes "deps_usage_evidences" edges to DepsUsageEvidence entities.

func (*CodeSourceFileUpdate) Save

func (csfu *CodeSourceFileUpdate) Save(ctx context.Context) (int, error)

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

func (*CodeSourceFileUpdate) SaveX

func (csfu *CodeSourceFileUpdate) SaveX(ctx context.Context) int

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

func (*CodeSourceFileUpdate) SetNillablePath

func (csfu *CodeSourceFileUpdate) SetNillablePath(s *string) *CodeSourceFileUpdate

SetNillablePath sets the "path" field if the given value is not nil.

func (*CodeSourceFileUpdate) SetPath

SetPath sets the "path" field.

func (*CodeSourceFileUpdate) Where

Where appends a list predicates to the CodeSourceFileUpdate builder.

type CodeSourceFileUpdateOne

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

CodeSourceFileUpdateOne is the builder for updating a single CodeSourceFile entity.

func (*CodeSourceFileUpdateOne) AddDepsUsageEvidenceIDs

func (csfuo *CodeSourceFileUpdateOne) AddDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdateOne

AddDepsUsageEvidenceIDs adds the "deps_usage_evidences" edge to the DepsUsageEvidence entity by IDs.

func (*CodeSourceFileUpdateOne) AddDepsUsageEvidences

func (csfuo *CodeSourceFileUpdateOne) AddDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdateOne

AddDepsUsageEvidences adds the "deps_usage_evidences" edges to the DepsUsageEvidence entity.

func (*CodeSourceFileUpdateOne) ClearDepsUsageEvidences

func (csfuo *CodeSourceFileUpdateOne) ClearDepsUsageEvidences() *CodeSourceFileUpdateOne

ClearDepsUsageEvidences clears all "deps_usage_evidences" edges to the DepsUsageEvidence entity.

func (*CodeSourceFileUpdateOne) Exec

func (csfuo *CodeSourceFileUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*CodeSourceFileUpdateOne) ExecX

func (csfuo *CodeSourceFileUpdateOne) ExecX(ctx context.Context)

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

func (*CodeSourceFileUpdateOne) Mutation

Mutation returns the CodeSourceFileMutation object of the builder.

func (*CodeSourceFileUpdateOne) RemoveDepsUsageEvidenceIDs

func (csfuo *CodeSourceFileUpdateOne) RemoveDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdateOne

RemoveDepsUsageEvidenceIDs removes the "deps_usage_evidences" edge to DepsUsageEvidence entities by IDs.

func (*CodeSourceFileUpdateOne) RemoveDepsUsageEvidences

func (csfuo *CodeSourceFileUpdateOne) RemoveDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdateOne

RemoveDepsUsageEvidences removes "deps_usage_evidences" edges to DepsUsageEvidence entities.

func (*CodeSourceFileUpdateOne) Save

Save executes the query and returns the updated CodeSourceFile entity.

func (*CodeSourceFileUpdateOne) SaveX

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

func (*CodeSourceFileUpdateOne) Select

func (csfuo *CodeSourceFileUpdateOne) Select(field string, fields ...string) *CodeSourceFileUpdateOne

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

func (*CodeSourceFileUpdateOne) SetNillablePath

func (csfuo *CodeSourceFileUpdateOne) SetNillablePath(s *string) *CodeSourceFileUpdateOne

SetNillablePath sets the "path" field if the given value is not nil.

func (*CodeSourceFileUpdateOne) SetPath

SetPath sets the "path" field.

func (*CodeSourceFileUpdateOne) Where

Where appends a list predicates to the CodeSourceFileUpdate builder.

type CodeSourceFiles

type CodeSourceFiles []*CodeSourceFile

CodeSourceFiles is a parsable slice of CodeSourceFile.

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 DepsUsageEvidence

type DepsUsageEvidence struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// PackageHint holds the value of the "package_hint" field.
	PackageHint *string `json:"package_hint,omitempty"`
	// ModuleName holds the value of the "module_name" field.
	ModuleName string `json:"module_name,omitempty"`
	// ModuleItem holds the value of the "module_item" field.
	ModuleItem *string `json:"module_item,omitempty"`
	// ModuleAlias holds the value of the "module_alias" field.
	ModuleAlias *string `json:"module_alias,omitempty"`
	// IsWildCardUsage holds the value of the "is_wild_card_usage" field.
	IsWildCardUsage bool `json:"is_wild_card_usage,omitempty"`
	// Identifier holds the value of the "identifier" field.
	Identifier *string `json:"identifier,omitempty"`
	// UsageFilePath holds the value of the "usage_file_path" field.
	UsageFilePath string `json:"usage_file_path,omitempty"`
	// Line holds the value of the "line" field.
	Line uint `json:"line,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the DepsUsageEvidenceQuery when eager-loading is set.
	Edges DepsUsageEvidenceEdges `json:"edges"`
	// contains filtered or unexported fields
}

DepsUsageEvidence is the model entity for the DepsUsageEvidence schema.

func (*DepsUsageEvidence) QueryUsedIn

func (due *DepsUsageEvidence) QueryUsedIn() *CodeSourceFileQuery

QueryUsedIn queries the "used_in" edge of the DepsUsageEvidence entity.

func (*DepsUsageEvidence) String

func (due *DepsUsageEvidence) String() string

String implements the fmt.Stringer.

func (*DepsUsageEvidence) Unwrap

func (due *DepsUsageEvidence) Unwrap() *DepsUsageEvidence

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

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

func (*DepsUsageEvidence) Value

func (due *DepsUsageEvidence) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the DepsUsageEvidence. This includes values selected through modifiers, order, etc.

type DepsUsageEvidenceClient

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

DepsUsageEvidenceClient is a client for the DepsUsageEvidence schema.

func NewDepsUsageEvidenceClient

func NewDepsUsageEvidenceClient(c config) *DepsUsageEvidenceClient

NewDepsUsageEvidenceClient returns a client for the DepsUsageEvidence from the given config.

func (*DepsUsageEvidenceClient) Create

Create returns a builder for creating a DepsUsageEvidence entity.

func (*DepsUsageEvidenceClient) CreateBulk

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

func (*DepsUsageEvidenceClient) Delete

Delete returns a delete builder for DepsUsageEvidence.

func (*DepsUsageEvidenceClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*DepsUsageEvidenceClient) DeleteOneID

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

func (*DepsUsageEvidenceClient) Get

Get returns a DepsUsageEvidence entity by its id.

func (*DepsUsageEvidenceClient) GetX

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

func (*DepsUsageEvidenceClient) Hooks

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

Hooks returns the client hooks.

func (*DepsUsageEvidenceClient) Intercept

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

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

func (*DepsUsageEvidenceClient) Interceptors

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

Interceptors returns the client interceptors.

func (*DepsUsageEvidenceClient) MapCreateBulk

func (c *DepsUsageEvidenceClient) MapCreateBulk(slice any, setFunc func(*DepsUsageEvidenceCreate, int)) *DepsUsageEvidenceCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*DepsUsageEvidenceClient) Query

Query returns a query builder for DepsUsageEvidence.

func (*DepsUsageEvidenceClient) QueryUsedIn

QueryUsedIn queries the used_in edge of a DepsUsageEvidence.

func (*DepsUsageEvidenceClient) Update

Update returns an update builder for DepsUsageEvidence.

func (*DepsUsageEvidenceClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*DepsUsageEvidenceClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*DepsUsageEvidenceClient) Use

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

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

type DepsUsageEvidenceCreate

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

DepsUsageEvidenceCreate is the builder for creating a DepsUsageEvidence entity.

func (*DepsUsageEvidenceCreate) Exec

func (duec *DepsUsageEvidenceCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*DepsUsageEvidenceCreate) ExecX

func (duec *DepsUsageEvidenceCreate) ExecX(ctx context.Context)

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

func (*DepsUsageEvidenceCreate) Mutation

Mutation returns the DepsUsageEvidenceMutation object of the builder.

func (*DepsUsageEvidenceCreate) Save

Save creates the DepsUsageEvidence in the database.

func (*DepsUsageEvidenceCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*DepsUsageEvidenceCreate) SetIdentifier

func (duec *DepsUsageEvidenceCreate) SetIdentifier(s string) *DepsUsageEvidenceCreate

SetIdentifier sets the "identifier" field.

func (*DepsUsageEvidenceCreate) SetIsWildCardUsage

func (duec *DepsUsageEvidenceCreate) SetIsWildCardUsage(b bool) *DepsUsageEvidenceCreate

SetIsWildCardUsage sets the "is_wild_card_usage" field.

func (*DepsUsageEvidenceCreate) SetLine

SetLine sets the "line" field.

func (*DepsUsageEvidenceCreate) SetModuleAlias

func (duec *DepsUsageEvidenceCreate) SetModuleAlias(s string) *DepsUsageEvidenceCreate

SetModuleAlias sets the "module_alias" field.

func (*DepsUsageEvidenceCreate) SetModuleItem

func (duec *DepsUsageEvidenceCreate) SetModuleItem(s string) *DepsUsageEvidenceCreate

SetModuleItem sets the "module_item" field.

func (*DepsUsageEvidenceCreate) SetModuleName

func (duec *DepsUsageEvidenceCreate) SetModuleName(s string) *DepsUsageEvidenceCreate

SetModuleName sets the "module_name" field.

func (*DepsUsageEvidenceCreate) SetNillableIdentifier

func (duec *DepsUsageEvidenceCreate) SetNillableIdentifier(s *string) *DepsUsageEvidenceCreate

SetNillableIdentifier sets the "identifier" field if the given value is not nil.

func (*DepsUsageEvidenceCreate) SetNillableIsWildCardUsage

func (duec *DepsUsageEvidenceCreate) SetNillableIsWildCardUsage(b *bool) *DepsUsageEvidenceCreate

SetNillableIsWildCardUsage sets the "is_wild_card_usage" field if the given value is not nil.

func (*DepsUsageEvidenceCreate) SetNillableModuleAlias

func (duec *DepsUsageEvidenceCreate) SetNillableModuleAlias(s *string) *DepsUsageEvidenceCreate

SetNillableModuleAlias sets the "module_alias" field if the given value is not nil.

func (*DepsUsageEvidenceCreate) SetNillableModuleItem

func (duec *DepsUsageEvidenceCreate) SetNillableModuleItem(s *string) *DepsUsageEvidenceCreate

SetNillableModuleItem sets the "module_item" field if the given value is not nil.

func (*DepsUsageEvidenceCreate) SetNillablePackageHint

func (duec *DepsUsageEvidenceCreate) SetNillablePackageHint(s *string) *DepsUsageEvidenceCreate

SetNillablePackageHint sets the "package_hint" field if the given value is not nil.

func (*DepsUsageEvidenceCreate) SetPackageHint

func (duec *DepsUsageEvidenceCreate) SetPackageHint(s string) *DepsUsageEvidenceCreate

SetPackageHint sets the "package_hint" field.

func (*DepsUsageEvidenceCreate) SetUsageFilePath

func (duec *DepsUsageEvidenceCreate) SetUsageFilePath(s string) *DepsUsageEvidenceCreate

SetUsageFilePath sets the "usage_file_path" field.

func (*DepsUsageEvidenceCreate) SetUsedIn

SetUsedIn sets the "used_in" edge to the CodeSourceFile entity.

func (*DepsUsageEvidenceCreate) SetUsedInID

func (duec *DepsUsageEvidenceCreate) SetUsedInID(id int) *DepsUsageEvidenceCreate

SetUsedInID sets the "used_in" edge to the CodeSourceFile entity by ID.

type DepsUsageEvidenceCreateBulk

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

DepsUsageEvidenceCreateBulk is the builder for creating many DepsUsageEvidence entities in bulk.

func (*DepsUsageEvidenceCreateBulk) Exec

Exec executes the query.

func (*DepsUsageEvidenceCreateBulk) ExecX

func (duecb *DepsUsageEvidenceCreateBulk) ExecX(ctx context.Context)

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

func (*DepsUsageEvidenceCreateBulk) Save

Save creates the DepsUsageEvidence entities in the database.

func (*DepsUsageEvidenceCreateBulk) SaveX

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

type DepsUsageEvidenceDelete

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

DepsUsageEvidenceDelete is the builder for deleting a DepsUsageEvidence entity.

func (*DepsUsageEvidenceDelete) Exec

func (dued *DepsUsageEvidenceDelete) Exec(ctx context.Context) (int, error)

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

func (*DepsUsageEvidenceDelete) ExecX

func (dued *DepsUsageEvidenceDelete) ExecX(ctx context.Context) int

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

func (*DepsUsageEvidenceDelete) Where

Where appends a list predicates to the DepsUsageEvidenceDelete builder.

type DepsUsageEvidenceDeleteOne

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

DepsUsageEvidenceDeleteOne is the builder for deleting a single DepsUsageEvidence entity.

func (*DepsUsageEvidenceDeleteOne) Exec

Exec executes the deletion query.

func (*DepsUsageEvidenceDeleteOne) ExecX

func (duedo *DepsUsageEvidenceDeleteOne) ExecX(ctx context.Context)

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

func (*DepsUsageEvidenceDeleteOne) Where

Where appends a list predicates to the DepsUsageEvidenceDelete builder.

type DepsUsageEvidenceEdges

type DepsUsageEvidenceEdges struct {
	// UsedIn holds the value of the used_in edge.
	UsedIn *CodeSourceFile `json:"used_in,omitempty"`
	// contains filtered or unexported fields
}

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

func (DepsUsageEvidenceEdges) UsedInOrErr

func (e DepsUsageEvidenceEdges) UsedInOrErr() (*CodeSourceFile, error)

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

type DepsUsageEvidenceGroupBy

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

DepsUsageEvidenceGroupBy is the group-by builder for DepsUsageEvidence entities.

func (*DepsUsageEvidenceGroupBy) Aggregate

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

func (*DepsUsageEvidenceGroupBy) Bool

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

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

func (*DepsUsageEvidenceGroupBy) BoolX

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

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

func (*DepsUsageEvidenceGroupBy) Bools

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

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

func (*DepsUsageEvidenceGroupBy) BoolsX

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

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

func (*DepsUsageEvidenceGroupBy) Float64

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

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

func (*DepsUsageEvidenceGroupBy) Float64X

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

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

func (*DepsUsageEvidenceGroupBy) Float64s

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

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

func (*DepsUsageEvidenceGroupBy) Float64sX

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

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

func (*DepsUsageEvidenceGroupBy) Int

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

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

func (*DepsUsageEvidenceGroupBy) IntX

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

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

func (*DepsUsageEvidenceGroupBy) Ints

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

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

func (*DepsUsageEvidenceGroupBy) IntsX

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

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

func (*DepsUsageEvidenceGroupBy) Scan

func (duegb *DepsUsageEvidenceGroupBy) Scan(ctx context.Context, v any) error

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

func (*DepsUsageEvidenceGroupBy) ScanX

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

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

func (*DepsUsageEvidenceGroupBy) String

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

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

func (*DepsUsageEvidenceGroupBy) StringX

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

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

func (*DepsUsageEvidenceGroupBy) Strings

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

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

func (*DepsUsageEvidenceGroupBy) StringsX

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

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

type DepsUsageEvidenceMutation

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

DepsUsageEvidenceMutation represents an operation that mutates the DepsUsageEvidence nodes in the graph.

func (*DepsUsageEvidenceMutation) AddField

func (m *DepsUsageEvidenceMutation) 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 (*DepsUsageEvidenceMutation) AddLine

func (m *DepsUsageEvidenceMutation) AddLine(u int)

AddLine adds u to the "line" field.

func (*DepsUsageEvidenceMutation) AddedEdges

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

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

func (*DepsUsageEvidenceMutation) AddedField

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

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

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

func (*DepsUsageEvidenceMutation) AddedIDs

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

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

func (*DepsUsageEvidenceMutation) AddedLine

func (m *DepsUsageEvidenceMutation) AddedLine() (r int, exists bool)

AddedLine returns the value that was added to the "line" field in this mutation.

func (*DepsUsageEvidenceMutation) ClearEdge

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

func (m *DepsUsageEvidenceMutation) 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 (*DepsUsageEvidenceMutation) ClearIdentifier

func (m *DepsUsageEvidenceMutation) ClearIdentifier()

ClearIdentifier clears the value of the "identifier" field.

func (*DepsUsageEvidenceMutation) ClearIsWildCardUsage

func (m *DepsUsageEvidenceMutation) ClearIsWildCardUsage()

ClearIsWildCardUsage clears the value of the "is_wild_card_usage" field.

func (*DepsUsageEvidenceMutation) ClearModuleAlias

func (m *DepsUsageEvidenceMutation) ClearModuleAlias()

ClearModuleAlias clears the value of the "module_alias" field.

func (*DepsUsageEvidenceMutation) ClearModuleItem

func (m *DepsUsageEvidenceMutation) ClearModuleItem()

ClearModuleItem clears the value of the "module_item" field.

func (*DepsUsageEvidenceMutation) ClearPackageHint

func (m *DepsUsageEvidenceMutation) ClearPackageHint()

ClearPackageHint clears the value of the "package_hint" field.

func (*DepsUsageEvidenceMutation) ClearUsedIn

func (m *DepsUsageEvidenceMutation) ClearUsedIn()

ClearUsedIn clears the "used_in" edge to the CodeSourceFile entity.

func (*DepsUsageEvidenceMutation) ClearedEdges

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

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

func (*DepsUsageEvidenceMutation) ClearedFields

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

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

func (DepsUsageEvidenceMutation) Client

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

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

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

func (*DepsUsageEvidenceMutation) Field

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

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

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

func (*DepsUsageEvidenceMutation) Fields

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

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

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

func (*DepsUsageEvidenceMutation) 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 (*DepsUsageEvidenceMutation) Identifier

func (m *DepsUsageEvidenceMutation) Identifier() (r string, exists bool)

Identifier returns the value of the "identifier" field in the mutation.

func (*DepsUsageEvidenceMutation) IdentifierCleared

func (m *DepsUsageEvidenceMutation) IdentifierCleared() bool

IdentifierCleared returns if the "identifier" field was cleared in this mutation.

func (*DepsUsageEvidenceMutation) IsWildCardUsage

func (m *DepsUsageEvidenceMutation) IsWildCardUsage() (r bool, exists bool)

IsWildCardUsage returns the value of the "is_wild_card_usage" field in the mutation.

func (*DepsUsageEvidenceMutation) IsWildCardUsageCleared

func (m *DepsUsageEvidenceMutation) IsWildCardUsageCleared() bool

IsWildCardUsageCleared returns if the "is_wild_card_usage" field was cleared in this mutation.

func (*DepsUsageEvidenceMutation) Line

func (m *DepsUsageEvidenceMutation) Line() (r uint, exists bool)

Line returns the value of the "line" field in the mutation.

func (*DepsUsageEvidenceMutation) ModuleAlias

func (m *DepsUsageEvidenceMutation) ModuleAlias() (r string, exists bool)

ModuleAlias returns the value of the "module_alias" field in the mutation.

func (*DepsUsageEvidenceMutation) ModuleAliasCleared

func (m *DepsUsageEvidenceMutation) ModuleAliasCleared() bool

ModuleAliasCleared returns if the "module_alias" field was cleared in this mutation.

func (*DepsUsageEvidenceMutation) ModuleItem

func (m *DepsUsageEvidenceMutation) ModuleItem() (r string, exists bool)

ModuleItem returns the value of the "module_item" field in the mutation.

func (*DepsUsageEvidenceMutation) ModuleItemCleared

func (m *DepsUsageEvidenceMutation) ModuleItemCleared() bool

ModuleItemCleared returns if the "module_item" field was cleared in this mutation.

func (*DepsUsageEvidenceMutation) ModuleName

func (m *DepsUsageEvidenceMutation) ModuleName() (r string, exists bool)

ModuleName returns the value of the "module_name" field in the mutation.

func (*DepsUsageEvidenceMutation) OldField

func (m *DepsUsageEvidenceMutation) 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 (*DepsUsageEvidenceMutation) OldIdentifier

func (m *DepsUsageEvidenceMutation) OldIdentifier(ctx context.Context) (v *string, err error)

OldIdentifier returns the old "identifier" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldIsWildCardUsage

func (m *DepsUsageEvidenceMutation) OldIsWildCardUsage(ctx context.Context) (v bool, err error)

OldIsWildCardUsage returns the old "is_wild_card_usage" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldLine

func (m *DepsUsageEvidenceMutation) OldLine(ctx context.Context) (v uint, err error)

OldLine returns the old "line" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldModuleAlias

func (m *DepsUsageEvidenceMutation) OldModuleAlias(ctx context.Context) (v *string, err error)

OldModuleAlias returns the old "module_alias" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldModuleItem

func (m *DepsUsageEvidenceMutation) OldModuleItem(ctx context.Context) (v *string, err error)

OldModuleItem returns the old "module_item" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldModuleName

func (m *DepsUsageEvidenceMutation) OldModuleName(ctx context.Context) (v string, err error)

OldModuleName returns the old "module_name" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldPackageHint

func (m *DepsUsageEvidenceMutation) OldPackageHint(ctx context.Context) (v *string, err error)

OldPackageHint returns the old "package_hint" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) OldUsageFilePath

func (m *DepsUsageEvidenceMutation) OldUsageFilePath(ctx context.Context) (v string, err error)

OldUsageFilePath returns the old "usage_file_path" field's value of the DepsUsageEvidence entity. If the DepsUsageEvidence 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 (*DepsUsageEvidenceMutation) Op

func (m *DepsUsageEvidenceMutation) Op() Op

Op returns the operation name.

func (*DepsUsageEvidenceMutation) PackageHint

func (m *DepsUsageEvidenceMutation) PackageHint() (r string, exists bool)

PackageHint returns the value of the "package_hint" field in the mutation.

func (*DepsUsageEvidenceMutation) PackageHintCleared

func (m *DepsUsageEvidenceMutation) PackageHintCleared() bool

PackageHintCleared returns if the "package_hint" field was cleared in this mutation.

func (*DepsUsageEvidenceMutation) RemovedEdges

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

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

func (*DepsUsageEvidenceMutation) RemovedIDs

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

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

func (m *DepsUsageEvidenceMutation) 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 (*DepsUsageEvidenceMutation) ResetIdentifier

func (m *DepsUsageEvidenceMutation) ResetIdentifier()

ResetIdentifier resets all changes to the "identifier" field.

func (*DepsUsageEvidenceMutation) ResetIsWildCardUsage

func (m *DepsUsageEvidenceMutation) ResetIsWildCardUsage()

ResetIsWildCardUsage resets all changes to the "is_wild_card_usage" field.

func (*DepsUsageEvidenceMutation) ResetLine

func (m *DepsUsageEvidenceMutation) ResetLine()

ResetLine resets all changes to the "line" field.

func (*DepsUsageEvidenceMutation) ResetModuleAlias

func (m *DepsUsageEvidenceMutation) ResetModuleAlias()

ResetModuleAlias resets all changes to the "module_alias" field.

func (*DepsUsageEvidenceMutation) ResetModuleItem

func (m *DepsUsageEvidenceMutation) ResetModuleItem()

ResetModuleItem resets all changes to the "module_item" field.

func (*DepsUsageEvidenceMutation) ResetModuleName

func (m *DepsUsageEvidenceMutation) ResetModuleName()

ResetModuleName resets all changes to the "module_name" field.

func (*DepsUsageEvidenceMutation) ResetPackageHint

func (m *DepsUsageEvidenceMutation) ResetPackageHint()

ResetPackageHint resets all changes to the "package_hint" field.

func (*DepsUsageEvidenceMutation) ResetUsageFilePath

func (m *DepsUsageEvidenceMutation) ResetUsageFilePath()

ResetUsageFilePath resets all changes to the "usage_file_path" field.

func (*DepsUsageEvidenceMutation) ResetUsedIn

func (m *DepsUsageEvidenceMutation) ResetUsedIn()

ResetUsedIn resets all changes to the "used_in" edge.

func (*DepsUsageEvidenceMutation) SetField

func (m *DepsUsageEvidenceMutation) 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 (*DepsUsageEvidenceMutation) SetIdentifier

func (m *DepsUsageEvidenceMutation) SetIdentifier(s string)

SetIdentifier sets the "identifier" field.

func (*DepsUsageEvidenceMutation) SetIsWildCardUsage

func (m *DepsUsageEvidenceMutation) SetIsWildCardUsage(b bool)

SetIsWildCardUsage sets the "is_wild_card_usage" field.

func (*DepsUsageEvidenceMutation) SetLine

func (m *DepsUsageEvidenceMutation) SetLine(u uint)

SetLine sets the "line" field.

func (*DepsUsageEvidenceMutation) SetModuleAlias

func (m *DepsUsageEvidenceMutation) SetModuleAlias(s string)

SetModuleAlias sets the "module_alias" field.

func (*DepsUsageEvidenceMutation) SetModuleItem

func (m *DepsUsageEvidenceMutation) SetModuleItem(s string)

SetModuleItem sets the "module_item" field.

func (*DepsUsageEvidenceMutation) SetModuleName

func (m *DepsUsageEvidenceMutation) SetModuleName(s string)

SetModuleName sets the "module_name" field.

func (*DepsUsageEvidenceMutation) SetOp

func (m *DepsUsageEvidenceMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*DepsUsageEvidenceMutation) SetPackageHint

func (m *DepsUsageEvidenceMutation) SetPackageHint(s string)

SetPackageHint sets the "package_hint" field.

func (*DepsUsageEvidenceMutation) SetUsageFilePath

func (m *DepsUsageEvidenceMutation) SetUsageFilePath(s string)

SetUsageFilePath sets the "usage_file_path" field.

func (*DepsUsageEvidenceMutation) SetUsedInID

func (m *DepsUsageEvidenceMutation) SetUsedInID(id int)

SetUsedInID sets the "used_in" edge to the CodeSourceFile entity by id.

func (DepsUsageEvidenceMutation) Tx

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

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

func (*DepsUsageEvidenceMutation) Type

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

func (*DepsUsageEvidenceMutation) UsageFilePath

func (m *DepsUsageEvidenceMutation) UsageFilePath() (r string, exists bool)

UsageFilePath returns the value of the "usage_file_path" field in the mutation.

func (*DepsUsageEvidenceMutation) UsedInCleared

func (m *DepsUsageEvidenceMutation) UsedInCleared() bool

UsedInCleared reports if the "used_in" edge to the CodeSourceFile entity was cleared.

func (*DepsUsageEvidenceMutation) UsedInID

func (m *DepsUsageEvidenceMutation) UsedInID() (id int, exists bool)

UsedInID returns the "used_in" edge ID in the mutation.

func (*DepsUsageEvidenceMutation) UsedInIDs

func (m *DepsUsageEvidenceMutation) UsedInIDs() (ids []int)

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

func (*DepsUsageEvidenceMutation) Where

Where appends a list predicates to the DepsUsageEvidenceMutation builder.

func (*DepsUsageEvidenceMutation) WhereP

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

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

type DepsUsageEvidenceQuery

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

DepsUsageEvidenceQuery is the builder for querying DepsUsageEvidence entities.

func (*DepsUsageEvidenceQuery) Aggregate

Aggregate returns a DepsUsageEvidenceSelect configured with the given aggregations.

func (*DepsUsageEvidenceQuery) All

All executes the query and returns a list of DepsUsageEvidences.

func (*DepsUsageEvidenceQuery) AllX

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

func (*DepsUsageEvidenceQuery) Clone

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

func (*DepsUsageEvidenceQuery) Count

func (dueq *DepsUsageEvidenceQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*DepsUsageEvidenceQuery) CountX

func (dueq *DepsUsageEvidenceQuery) CountX(ctx context.Context) int

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

func (*DepsUsageEvidenceQuery) Exist

func (dueq *DepsUsageEvidenceQuery) Exist(ctx context.Context) (bool, error)

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

func (*DepsUsageEvidenceQuery) ExistX

func (dueq *DepsUsageEvidenceQuery) ExistX(ctx context.Context) bool

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

func (*DepsUsageEvidenceQuery) First

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

func (*DepsUsageEvidenceQuery) FirstID

func (dueq *DepsUsageEvidenceQuery) FirstID(ctx context.Context) (id int, err error)

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

func (*DepsUsageEvidenceQuery) FirstIDX

func (dueq *DepsUsageEvidenceQuery) FirstIDX(ctx context.Context) int

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

func (*DepsUsageEvidenceQuery) FirstX

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

func (*DepsUsageEvidenceQuery) GroupBy

func (dueq *DepsUsageEvidenceQuery) GroupBy(field string, fields ...string) *DepsUsageEvidenceGroupBy

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

client.DepsUsageEvidence.Query().
	GroupBy(depsusageevidence.FieldPackageHint).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*DepsUsageEvidenceQuery) IDs

func (dueq *DepsUsageEvidenceQuery) IDs(ctx context.Context) (ids []int, err error)

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

func (*DepsUsageEvidenceQuery) IDsX

func (dueq *DepsUsageEvidenceQuery) IDsX(ctx context.Context) []int

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

func (*DepsUsageEvidenceQuery) Limit

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

func (*DepsUsageEvidenceQuery) Offset

func (dueq *DepsUsageEvidenceQuery) Offset(offset int) *DepsUsageEvidenceQuery

Offset to start from.

func (*DepsUsageEvidenceQuery) Only

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

func (*DepsUsageEvidenceQuery) OnlyID

func (dueq *DepsUsageEvidenceQuery) OnlyID(ctx context.Context) (id int, err error)

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

func (*DepsUsageEvidenceQuery) OnlyIDX

func (dueq *DepsUsageEvidenceQuery) OnlyIDX(ctx context.Context) int

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

func (*DepsUsageEvidenceQuery) OnlyX

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

func (*DepsUsageEvidenceQuery) Order

Order specifies how the records should be ordered.

func (*DepsUsageEvidenceQuery) QueryUsedIn

func (dueq *DepsUsageEvidenceQuery) QueryUsedIn() *CodeSourceFileQuery

QueryUsedIn chains the current query on the "used_in" edge.

func (*DepsUsageEvidenceQuery) Select

func (dueq *DepsUsageEvidenceQuery) Select(fields ...string) *DepsUsageEvidenceSelect

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

client.DepsUsageEvidence.Query().
	Select(depsusageevidence.FieldPackageHint).
	Scan(ctx, &v)

func (*DepsUsageEvidenceQuery) Unique

func (dueq *DepsUsageEvidenceQuery) Unique(unique bool) *DepsUsageEvidenceQuery

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

Where adds a new predicate for the DepsUsageEvidenceQuery builder.

func (*DepsUsageEvidenceQuery) WithUsedIn

func (dueq *DepsUsageEvidenceQuery) WithUsedIn(opts ...func(*CodeSourceFileQuery)) *DepsUsageEvidenceQuery

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

type DepsUsageEvidenceSelect

type DepsUsageEvidenceSelect struct {
	*DepsUsageEvidenceQuery
	// contains filtered or unexported fields
}

DepsUsageEvidenceSelect is the builder for selecting fields of DepsUsageEvidence entities.

func (*DepsUsageEvidenceSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*DepsUsageEvidenceSelect) Bool

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

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

func (*DepsUsageEvidenceSelect) BoolX

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

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

func (*DepsUsageEvidenceSelect) Bools

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

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

func (*DepsUsageEvidenceSelect) BoolsX

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

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

func (*DepsUsageEvidenceSelect) Float64

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

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

func (*DepsUsageEvidenceSelect) Float64X

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

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

func (*DepsUsageEvidenceSelect) Float64s

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

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

func (*DepsUsageEvidenceSelect) Float64sX

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

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

func (*DepsUsageEvidenceSelect) Int

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

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

func (*DepsUsageEvidenceSelect) IntX

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

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

func (*DepsUsageEvidenceSelect) Ints

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

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

func (*DepsUsageEvidenceSelect) IntsX

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

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

func (*DepsUsageEvidenceSelect) Scan

func (dues *DepsUsageEvidenceSelect) Scan(ctx context.Context, v any) error

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

func (*DepsUsageEvidenceSelect) ScanX

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

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

func (*DepsUsageEvidenceSelect) String

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

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

func (*DepsUsageEvidenceSelect) StringX

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

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

func (*DepsUsageEvidenceSelect) Strings

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

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

func (*DepsUsageEvidenceSelect) StringsX

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

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

type DepsUsageEvidenceUpdate

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

DepsUsageEvidenceUpdate is the builder for updating DepsUsageEvidence entities.

func (*DepsUsageEvidenceUpdate) AddLine

AddLine adds u to the "line" field.

func (*DepsUsageEvidenceUpdate) ClearIdentifier

func (dueu *DepsUsageEvidenceUpdate) ClearIdentifier() *DepsUsageEvidenceUpdate

ClearIdentifier clears the value of the "identifier" field.

func (*DepsUsageEvidenceUpdate) ClearIsWildCardUsage

func (dueu *DepsUsageEvidenceUpdate) ClearIsWildCardUsage() *DepsUsageEvidenceUpdate

ClearIsWildCardUsage clears the value of the "is_wild_card_usage" field.

func (*DepsUsageEvidenceUpdate) ClearModuleAlias

func (dueu *DepsUsageEvidenceUpdate) ClearModuleAlias() *DepsUsageEvidenceUpdate

ClearModuleAlias clears the value of the "module_alias" field.

func (*DepsUsageEvidenceUpdate) ClearModuleItem

func (dueu *DepsUsageEvidenceUpdate) ClearModuleItem() *DepsUsageEvidenceUpdate

ClearModuleItem clears the value of the "module_item" field.

func (*DepsUsageEvidenceUpdate) ClearPackageHint

func (dueu *DepsUsageEvidenceUpdate) ClearPackageHint() *DepsUsageEvidenceUpdate

ClearPackageHint clears the value of the "package_hint" field.

func (*DepsUsageEvidenceUpdate) ClearUsedIn

func (dueu *DepsUsageEvidenceUpdate) ClearUsedIn() *DepsUsageEvidenceUpdate

ClearUsedIn clears the "used_in" edge to the CodeSourceFile entity.

func (*DepsUsageEvidenceUpdate) Exec

func (dueu *DepsUsageEvidenceUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*DepsUsageEvidenceUpdate) ExecX

func (dueu *DepsUsageEvidenceUpdate) ExecX(ctx context.Context)

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

func (*DepsUsageEvidenceUpdate) Mutation

Mutation returns the DepsUsageEvidenceMutation object of the builder.

func (*DepsUsageEvidenceUpdate) Save

func (dueu *DepsUsageEvidenceUpdate) Save(ctx context.Context) (int, error)

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

func (*DepsUsageEvidenceUpdate) SaveX

func (dueu *DepsUsageEvidenceUpdate) SaveX(ctx context.Context) int

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

func (*DepsUsageEvidenceUpdate) SetIdentifier

func (dueu *DepsUsageEvidenceUpdate) SetIdentifier(s string) *DepsUsageEvidenceUpdate

SetIdentifier sets the "identifier" field.

func (*DepsUsageEvidenceUpdate) SetIsWildCardUsage

func (dueu *DepsUsageEvidenceUpdate) SetIsWildCardUsage(b bool) *DepsUsageEvidenceUpdate

SetIsWildCardUsage sets the "is_wild_card_usage" field.

func (*DepsUsageEvidenceUpdate) SetLine

SetLine sets the "line" field.

func (*DepsUsageEvidenceUpdate) SetModuleAlias

func (dueu *DepsUsageEvidenceUpdate) SetModuleAlias(s string) *DepsUsageEvidenceUpdate

SetModuleAlias sets the "module_alias" field.

func (*DepsUsageEvidenceUpdate) SetModuleItem

func (dueu *DepsUsageEvidenceUpdate) SetModuleItem(s string) *DepsUsageEvidenceUpdate

SetModuleItem sets the "module_item" field.

func (*DepsUsageEvidenceUpdate) SetModuleName

func (dueu *DepsUsageEvidenceUpdate) SetModuleName(s string) *DepsUsageEvidenceUpdate

SetModuleName sets the "module_name" field.

func (*DepsUsageEvidenceUpdate) SetNillableIdentifier

func (dueu *DepsUsageEvidenceUpdate) SetNillableIdentifier(s *string) *DepsUsageEvidenceUpdate

SetNillableIdentifier sets the "identifier" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillableIsWildCardUsage

func (dueu *DepsUsageEvidenceUpdate) SetNillableIsWildCardUsage(b *bool) *DepsUsageEvidenceUpdate

SetNillableIsWildCardUsage sets the "is_wild_card_usage" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillableLine

func (dueu *DepsUsageEvidenceUpdate) SetNillableLine(u *uint) *DepsUsageEvidenceUpdate

SetNillableLine sets the "line" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillableModuleAlias

func (dueu *DepsUsageEvidenceUpdate) SetNillableModuleAlias(s *string) *DepsUsageEvidenceUpdate

SetNillableModuleAlias sets the "module_alias" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillableModuleItem

func (dueu *DepsUsageEvidenceUpdate) SetNillableModuleItem(s *string) *DepsUsageEvidenceUpdate

SetNillableModuleItem sets the "module_item" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillableModuleName

func (dueu *DepsUsageEvidenceUpdate) SetNillableModuleName(s *string) *DepsUsageEvidenceUpdate

SetNillableModuleName sets the "module_name" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillablePackageHint

func (dueu *DepsUsageEvidenceUpdate) SetNillablePackageHint(s *string) *DepsUsageEvidenceUpdate

SetNillablePackageHint sets the "package_hint" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetNillableUsageFilePath

func (dueu *DepsUsageEvidenceUpdate) SetNillableUsageFilePath(s *string) *DepsUsageEvidenceUpdate

SetNillableUsageFilePath sets the "usage_file_path" field if the given value is not nil.

func (*DepsUsageEvidenceUpdate) SetPackageHint

func (dueu *DepsUsageEvidenceUpdate) SetPackageHint(s string) *DepsUsageEvidenceUpdate

SetPackageHint sets the "package_hint" field.

func (*DepsUsageEvidenceUpdate) SetUsageFilePath

func (dueu *DepsUsageEvidenceUpdate) SetUsageFilePath(s string) *DepsUsageEvidenceUpdate

SetUsageFilePath sets the "usage_file_path" field.

func (*DepsUsageEvidenceUpdate) SetUsedIn

SetUsedIn sets the "used_in" edge to the CodeSourceFile entity.

func (*DepsUsageEvidenceUpdate) SetUsedInID

func (dueu *DepsUsageEvidenceUpdate) SetUsedInID(id int) *DepsUsageEvidenceUpdate

SetUsedInID sets the "used_in" edge to the CodeSourceFile entity by ID.

func (*DepsUsageEvidenceUpdate) Where

Where appends a list predicates to the DepsUsageEvidenceUpdate builder.

type DepsUsageEvidenceUpdateOne

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

DepsUsageEvidenceUpdateOne is the builder for updating a single DepsUsageEvidence entity.

func (*DepsUsageEvidenceUpdateOne) AddLine

AddLine adds u to the "line" field.

func (*DepsUsageEvidenceUpdateOne) ClearIdentifier

func (dueuo *DepsUsageEvidenceUpdateOne) ClearIdentifier() *DepsUsageEvidenceUpdateOne

ClearIdentifier clears the value of the "identifier" field.

func (*DepsUsageEvidenceUpdateOne) ClearIsWildCardUsage

func (dueuo *DepsUsageEvidenceUpdateOne) ClearIsWildCardUsage() *DepsUsageEvidenceUpdateOne

ClearIsWildCardUsage clears the value of the "is_wild_card_usage" field.

func (*DepsUsageEvidenceUpdateOne) ClearModuleAlias

func (dueuo *DepsUsageEvidenceUpdateOne) ClearModuleAlias() *DepsUsageEvidenceUpdateOne

ClearModuleAlias clears the value of the "module_alias" field.

func (*DepsUsageEvidenceUpdateOne) ClearModuleItem

func (dueuo *DepsUsageEvidenceUpdateOne) ClearModuleItem() *DepsUsageEvidenceUpdateOne

ClearModuleItem clears the value of the "module_item" field.

func (*DepsUsageEvidenceUpdateOne) ClearPackageHint

func (dueuo *DepsUsageEvidenceUpdateOne) ClearPackageHint() *DepsUsageEvidenceUpdateOne

ClearPackageHint clears the value of the "package_hint" field.

func (*DepsUsageEvidenceUpdateOne) ClearUsedIn

ClearUsedIn clears the "used_in" edge to the CodeSourceFile entity.

func (*DepsUsageEvidenceUpdateOne) Exec

Exec executes the query on the entity.

func (*DepsUsageEvidenceUpdateOne) ExecX

func (dueuo *DepsUsageEvidenceUpdateOne) ExecX(ctx context.Context)

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

func (*DepsUsageEvidenceUpdateOne) Mutation

Mutation returns the DepsUsageEvidenceMutation object of the builder.

func (*DepsUsageEvidenceUpdateOne) Save

Save executes the query and returns the updated DepsUsageEvidence entity.

func (*DepsUsageEvidenceUpdateOne) SaveX

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

func (*DepsUsageEvidenceUpdateOne) Select

func (dueuo *DepsUsageEvidenceUpdateOne) Select(field string, fields ...string) *DepsUsageEvidenceUpdateOne

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

func (*DepsUsageEvidenceUpdateOne) SetIdentifier

SetIdentifier sets the "identifier" field.

func (*DepsUsageEvidenceUpdateOne) SetIsWildCardUsage

func (dueuo *DepsUsageEvidenceUpdateOne) SetIsWildCardUsage(b bool) *DepsUsageEvidenceUpdateOne

SetIsWildCardUsage sets the "is_wild_card_usage" field.

func (*DepsUsageEvidenceUpdateOne) SetLine

SetLine sets the "line" field.

func (*DepsUsageEvidenceUpdateOne) SetModuleAlias

SetModuleAlias sets the "module_alias" field.

func (*DepsUsageEvidenceUpdateOne) SetModuleItem

SetModuleItem sets the "module_item" field.

func (*DepsUsageEvidenceUpdateOne) SetModuleName

SetModuleName sets the "module_name" field.

func (*DepsUsageEvidenceUpdateOne) SetNillableIdentifier

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableIdentifier(s *string) *DepsUsageEvidenceUpdateOne

SetNillableIdentifier sets the "identifier" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillableIsWildCardUsage

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableIsWildCardUsage(b *bool) *DepsUsageEvidenceUpdateOne

SetNillableIsWildCardUsage sets the "is_wild_card_usage" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillableLine

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableLine(u *uint) *DepsUsageEvidenceUpdateOne

SetNillableLine sets the "line" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillableModuleAlias

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableModuleAlias(s *string) *DepsUsageEvidenceUpdateOne

SetNillableModuleAlias sets the "module_alias" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillableModuleItem

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableModuleItem(s *string) *DepsUsageEvidenceUpdateOne

SetNillableModuleItem sets the "module_item" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillableModuleName

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableModuleName(s *string) *DepsUsageEvidenceUpdateOne

SetNillableModuleName sets the "module_name" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillablePackageHint

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillablePackageHint(s *string) *DepsUsageEvidenceUpdateOne

SetNillablePackageHint sets the "package_hint" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetNillableUsageFilePath

func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableUsageFilePath(s *string) *DepsUsageEvidenceUpdateOne

SetNillableUsageFilePath sets the "usage_file_path" field if the given value is not nil.

func (*DepsUsageEvidenceUpdateOne) SetPackageHint

SetPackageHint sets the "package_hint" field.

func (*DepsUsageEvidenceUpdateOne) SetUsageFilePath

func (dueuo *DepsUsageEvidenceUpdateOne) SetUsageFilePath(s string) *DepsUsageEvidenceUpdateOne

SetUsageFilePath sets the "usage_file_path" field.

func (*DepsUsageEvidenceUpdateOne) SetUsedIn

SetUsedIn sets the "used_in" edge to the CodeSourceFile entity.

func (*DepsUsageEvidenceUpdateOne) SetUsedInID

SetUsedInID sets the "used_in" edge to the CodeSourceFile entity by ID.

func (*DepsUsageEvidenceUpdateOne) Where

Where appends a list predicates to the DepsUsageEvidenceUpdate builder.

type DepsUsageEvidences

type DepsUsageEvidences []*DepsUsageEvidence

DepsUsageEvidences is a parsable slice of DepsUsageEvidence.

type Hook

type Hook = ent.Hook

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

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 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 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. Deprecated: Use Asc/Desc functions or the package builders instead.

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 ReportDependencies added in v1.12.0

type ReportDependencies []*ReportDependency

ReportDependencies is a parsable slice of ReportDependency.

type ReportDependency added in v1.12.0

type ReportDependency struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// DependencyPackageID holds the value of the "dependency_package_id" field.
	DependencyPackageID string `json:"dependency_package_id,omitempty"`
	// DependencyName holds the value of the "dependency_name" field.
	DependencyName string `json:"dependency_name,omitempty"`
	// DependencyVersion holds the value of the "dependency_version" field.
	DependencyVersion string `json:"dependency_version,omitempty"`
	// DependencyEcosystem holds the value of the "dependency_ecosystem" field.
	DependencyEcosystem string `json:"dependency_ecosystem,omitempty"`
	// DependencyType holds the value of the "dependency_type" field.
	DependencyType string `json:"dependency_type,omitempty"`
	// Depth holds the value of the "depth" field.
	Depth int `json:"depth,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 ReportDependencyQuery when eager-loading is set.
	Edges ReportDependencyEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportDependency is the model entity for the ReportDependency schema.

func (*ReportDependency) QueryPackage added in v1.12.0

func (rd *ReportDependency) QueryPackage() *ReportPackageQuery

QueryPackage queries the "package" edge of the ReportDependency entity.

func (*ReportDependency) String added in v1.12.0

func (rd *ReportDependency) String() string

String implements the fmt.Stringer.

func (*ReportDependency) Unwrap added in v1.12.0

func (rd *ReportDependency) Unwrap() *ReportDependency

Unwrap unwraps the ReportDependency 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 (*ReportDependency) Update added in v1.12.0

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

func (*ReportDependency) Value added in v1.12.0

func (rd *ReportDependency) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportDependency. This includes values selected through modifiers, order, etc.

type ReportDependencyClient added in v1.12.0

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

ReportDependencyClient is a client for the ReportDependency schema.

func NewReportDependencyClient added in v1.12.0

func NewReportDependencyClient(c config) *ReportDependencyClient

NewReportDependencyClient returns a client for the ReportDependency from the given config.

func (*ReportDependencyClient) Create added in v1.12.0

Create returns a builder for creating a ReportDependency entity.

func (*ReportDependencyClient) CreateBulk added in v1.12.0

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

func (*ReportDependencyClient) Delete added in v1.12.0

Delete returns a delete builder for ReportDependency.

func (*ReportDependencyClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportDependencyClient) DeleteOneID added in v1.12.0

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

func (*ReportDependencyClient) Get added in v1.12.0

Get returns a ReportDependency entity by its id.

func (*ReportDependencyClient) GetX added in v1.12.0

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

func (*ReportDependencyClient) Hooks added in v1.12.0

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

Hooks returns the client hooks.

func (*ReportDependencyClient) Intercept added in v1.12.0

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

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

func (*ReportDependencyClient) Interceptors added in v1.12.0

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

Interceptors returns the client interceptors.

func (*ReportDependencyClient) MapCreateBulk added in v1.12.0

func (c *ReportDependencyClient) MapCreateBulk(slice any, setFunc func(*ReportDependencyCreate, int)) *ReportDependencyCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportDependencyClient) Query added in v1.12.0

Query returns a query builder for ReportDependency.

func (*ReportDependencyClient) QueryPackage added in v1.12.0

QueryPackage queries the package edge of a ReportDependency.

func (*ReportDependencyClient) Update added in v1.12.0

Update returns an update builder for ReportDependency.

func (*ReportDependencyClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportDependencyClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportDependencyClient) Use added in v1.12.0

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

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

type ReportDependencyCreate added in v1.12.0

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

ReportDependencyCreate is the builder for creating a ReportDependency entity.

func (*ReportDependencyCreate) Exec added in v1.12.0

Exec executes the query.

func (*ReportDependencyCreate) ExecX added in v1.12.0

func (rdc *ReportDependencyCreate) ExecX(ctx context.Context)

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

func (*ReportDependencyCreate) Mutation added in v1.12.0

Mutation returns the ReportDependencyMutation object of the builder.

func (*ReportDependencyCreate) Save added in v1.12.0

Save creates the ReportDependency in the database.

func (*ReportDependencyCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportDependencyCreate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyCreate) SetDependencyEcosystem added in v1.12.0

func (rdc *ReportDependencyCreate) SetDependencyEcosystem(s string) *ReportDependencyCreate

SetDependencyEcosystem sets the "dependency_ecosystem" field.

func (*ReportDependencyCreate) SetDependencyName added in v1.12.0

func (rdc *ReportDependencyCreate) SetDependencyName(s string) *ReportDependencyCreate

SetDependencyName sets the "dependency_name" field.

func (*ReportDependencyCreate) SetDependencyPackageID added in v1.12.0

func (rdc *ReportDependencyCreate) SetDependencyPackageID(s string) *ReportDependencyCreate

SetDependencyPackageID sets the "dependency_package_id" field.

func (*ReportDependencyCreate) SetDependencyType added in v1.12.0

func (rdc *ReportDependencyCreate) SetDependencyType(s string) *ReportDependencyCreate

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyCreate) SetDependencyVersion added in v1.12.0

func (rdc *ReportDependencyCreate) SetDependencyVersion(s string) *ReportDependencyCreate

SetDependencyVersion sets the "dependency_version" field.

func (*ReportDependencyCreate) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportDependencyCreate) SetNillableCreatedAt added in v1.12.0

func (rdc *ReportDependencyCreate) SetNillableCreatedAt(t *time.Time) *ReportDependencyCreate

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

func (*ReportDependencyCreate) SetNillableDependencyType added in v1.12.0

func (rdc *ReportDependencyCreate) SetNillableDependencyType(s *string) *ReportDependencyCreate

SetNillableDependencyType sets the "dependency_type" field if the given value is not nil.

func (*ReportDependencyCreate) SetNillableDepth added in v1.12.0

func (rdc *ReportDependencyCreate) SetNillableDepth(i *int) *ReportDependencyCreate

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportDependencyCreate) SetNillablePackageID added in v1.12.0

func (rdc *ReportDependencyCreate) SetNillablePackageID(id *int) *ReportDependencyCreate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportDependencyCreate) SetNillableUpdatedAt added in v1.12.0

func (rdc *ReportDependencyCreate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyCreate

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

func (*ReportDependencyCreate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportDependencyCreate) SetPackageID added in v1.12.0

func (rdc *ReportDependencyCreate) SetPackageID(id int) *ReportDependencyCreate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportDependencyCreate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

type ReportDependencyCreateBulk added in v1.12.0

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

ReportDependencyCreateBulk is the builder for creating many ReportDependency entities in bulk.

func (*ReportDependencyCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportDependencyCreateBulk) ExecX added in v1.12.0

func (rdcb *ReportDependencyCreateBulk) ExecX(ctx context.Context)

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

func (*ReportDependencyCreateBulk) Save added in v1.12.0

Save creates the ReportDependency entities in the database.

func (*ReportDependencyCreateBulk) SaveX added in v1.12.0

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

type ReportDependencyDelete added in v1.12.0

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

ReportDependencyDelete is the builder for deleting a ReportDependency entity.

func (*ReportDependencyDelete) Exec added in v1.12.0

func (rdd *ReportDependencyDelete) Exec(ctx context.Context) (int, error)

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

func (*ReportDependencyDelete) ExecX added in v1.12.0

func (rdd *ReportDependencyDelete) ExecX(ctx context.Context) int

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

func (*ReportDependencyDelete) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyDelete builder.

type ReportDependencyDeleteOne added in v1.12.0

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

ReportDependencyDeleteOne is the builder for deleting a single ReportDependency entity.

func (*ReportDependencyDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportDependencyDeleteOne) ExecX added in v1.12.0

func (rddo *ReportDependencyDeleteOne) ExecX(ctx context.Context)

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

func (*ReportDependencyDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyDelete builder.

type ReportDependencyEdges added in v1.12.0

type ReportDependencyEdges struct {
	// Package holds the value of the package edge.
	Package *ReportPackage `json:"package,omitempty"`
	// contains filtered or unexported fields
}

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

func (ReportDependencyEdges) PackageOrErr added in v1.12.0

func (e ReportDependencyEdges) PackageOrErr() (*ReportPackage, error)

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

type ReportDependencyGraph added in v1.12.0

type ReportDependencyGraph struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Reference to ReportPackage.package_id
	FromPackageID string `json:"from_package_id,omitempty"`
	// FromPackageName holds the value of the "from_package_name" field.
	FromPackageName string `json:"from_package_name,omitempty"`
	// FromPackageVersion holds the value of the "from_package_version" field.
	FromPackageVersion string `json:"from_package_version,omitempty"`
	// FromPackageEcosystem holds the value of the "from_package_ecosystem" field.
	FromPackageEcosystem string `json:"from_package_ecosystem,omitempty"`
	// Reference to ReportPackage.package_id
	ToPackageID string `json:"to_package_id,omitempty"`
	// ToPackageName holds the value of the "to_package_name" field.
	ToPackageName string `json:"to_package_name,omitempty"`
	// ToPackageVersion holds the value of the "to_package_version" field.
	ToPackageVersion string `json:"to_package_version,omitempty"`
	// ToPackageEcosystem holds the value of the "to_package_ecosystem" field.
	ToPackageEcosystem string `json:"to_package_ecosystem,omitempty"`
	// e.g., runtime, dev, optional
	DependencyType string `json:"dependency_type,omitempty"`
	// e.g., ^1.2.3, >=2.0.0
	VersionConstraint string `json:"version_constraint,omitempty"`
	// Depth in dependency tree
	Depth int `json:"depth,omitempty"`
	// Direct dependency from manifest
	IsDirect bool `json:"is_direct,omitempty"`
	// Edge from root package
	IsRootEdge bool `json:"is_root_edge,omitempty"`
	// Manifest where this edge was discovered
	ManifestID string `json:"manifest_id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

ReportDependencyGraph is the model entity for the ReportDependencyGraph schema.

func (*ReportDependencyGraph) String added in v1.12.0

func (rdg *ReportDependencyGraph) String() string

String implements the fmt.Stringer.

func (*ReportDependencyGraph) Unwrap added in v1.12.0

Unwrap unwraps the ReportDependencyGraph 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 (*ReportDependencyGraph) Update added in v1.12.0

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

func (*ReportDependencyGraph) Value added in v1.12.0

func (rdg *ReportDependencyGraph) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportDependencyGraph. This includes values selected through modifiers, order, etc.

type ReportDependencyGraphClient added in v1.12.0

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

ReportDependencyGraphClient is a client for the ReportDependencyGraph schema.

func NewReportDependencyGraphClient added in v1.12.0

func NewReportDependencyGraphClient(c config) *ReportDependencyGraphClient

NewReportDependencyGraphClient returns a client for the ReportDependencyGraph from the given config.

func (*ReportDependencyGraphClient) Create added in v1.12.0

Create returns a builder for creating a ReportDependencyGraph entity.

func (*ReportDependencyGraphClient) CreateBulk added in v1.12.0

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

func (*ReportDependencyGraphClient) Delete added in v1.12.0

Delete returns a delete builder for ReportDependencyGraph.

func (*ReportDependencyGraphClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportDependencyGraphClient) DeleteOneID added in v1.12.0

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

func (*ReportDependencyGraphClient) Get added in v1.12.0

Get returns a ReportDependencyGraph entity by its id.

func (*ReportDependencyGraphClient) GetX added in v1.12.0

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

func (*ReportDependencyGraphClient) Hooks added in v1.12.0

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

Hooks returns the client hooks.

func (*ReportDependencyGraphClient) Intercept added in v1.12.0

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

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

func (*ReportDependencyGraphClient) Interceptors added in v1.12.0

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

Interceptors returns the client interceptors.

func (*ReportDependencyGraphClient) MapCreateBulk added in v1.12.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportDependencyGraphClient) Query added in v1.12.0

Query returns a query builder for ReportDependencyGraph.

func (*ReportDependencyGraphClient) Update added in v1.12.0

Update returns an update builder for ReportDependencyGraph.

func (*ReportDependencyGraphClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportDependencyGraphClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportDependencyGraphClient) Use added in v1.12.0

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

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

type ReportDependencyGraphCreate added in v1.12.0

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

ReportDependencyGraphCreate is the builder for creating a ReportDependencyGraph entity.

func (*ReportDependencyGraphCreate) Exec added in v1.12.0

Exec executes the query.

func (*ReportDependencyGraphCreate) ExecX added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) ExecX(ctx context.Context)

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

func (*ReportDependencyGraphCreate) Mutation added in v1.12.0

Mutation returns the ReportDependencyGraphMutation object of the builder.

func (*ReportDependencyGraphCreate) Save added in v1.12.0

Save creates the ReportDependencyGraph in the database.

func (*ReportDependencyGraphCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportDependencyGraphCreate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyGraphCreate) SetDependencyType added in v1.12.0

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyGraphCreate) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportDependencyGraphCreate) SetFromPackageEcosystem added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetFromPackageEcosystem(s string) *ReportDependencyGraphCreate

SetFromPackageEcosystem sets the "from_package_ecosystem" field.

func (*ReportDependencyGraphCreate) SetFromPackageID added in v1.12.0

SetFromPackageID sets the "from_package_id" field.

func (*ReportDependencyGraphCreate) SetFromPackageName added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetFromPackageName(s string) *ReportDependencyGraphCreate

SetFromPackageName sets the "from_package_name" field.

func (*ReportDependencyGraphCreate) SetFromPackageVersion added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetFromPackageVersion(s string) *ReportDependencyGraphCreate

SetFromPackageVersion sets the "from_package_version" field.

func (*ReportDependencyGraphCreate) SetIsDirect added in v1.12.0

SetIsDirect sets the "is_direct" field.

func (*ReportDependencyGraphCreate) SetIsRootEdge added in v1.12.0

SetIsRootEdge sets the "is_root_edge" field.

func (*ReportDependencyGraphCreate) SetManifestID added in v1.12.0

SetManifestID sets the "manifest_id" field.

func (*ReportDependencyGraphCreate) SetNillableCreatedAt added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableCreatedAt(t *time.Time) *ReportDependencyGraphCreate

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

func (*ReportDependencyGraphCreate) SetNillableDependencyType added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableDependencyType(s *string) *ReportDependencyGraphCreate

SetNillableDependencyType sets the "dependency_type" field if the given value is not nil.

func (*ReportDependencyGraphCreate) SetNillableDepth added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableDepth(i *int) *ReportDependencyGraphCreate

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportDependencyGraphCreate) SetNillableIsDirect added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableIsDirect(b *bool) *ReportDependencyGraphCreate

SetNillableIsDirect sets the "is_direct" field if the given value is not nil.

func (*ReportDependencyGraphCreate) SetNillableIsRootEdge added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableIsRootEdge(b *bool) *ReportDependencyGraphCreate

SetNillableIsRootEdge sets the "is_root_edge" field if the given value is not nil.

func (*ReportDependencyGraphCreate) SetNillableUpdatedAt added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyGraphCreate

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

func (*ReportDependencyGraphCreate) SetNillableVersionConstraint added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetNillableVersionConstraint(s *string) *ReportDependencyGraphCreate

SetNillableVersionConstraint sets the "version_constraint" field if the given value is not nil.

func (*ReportDependencyGraphCreate) SetToPackageEcosystem added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetToPackageEcosystem(s string) *ReportDependencyGraphCreate

SetToPackageEcosystem sets the "to_package_ecosystem" field.

func (*ReportDependencyGraphCreate) SetToPackageID added in v1.12.0

SetToPackageID sets the "to_package_id" field.

func (*ReportDependencyGraphCreate) SetToPackageName added in v1.12.0

SetToPackageName sets the "to_package_name" field.

func (*ReportDependencyGraphCreate) SetToPackageVersion added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetToPackageVersion(s string) *ReportDependencyGraphCreate

SetToPackageVersion sets the "to_package_version" field.

func (*ReportDependencyGraphCreate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportDependencyGraphCreate) SetVersionConstraint added in v1.12.0

func (rdgc *ReportDependencyGraphCreate) SetVersionConstraint(s string) *ReportDependencyGraphCreate

SetVersionConstraint sets the "version_constraint" field.

type ReportDependencyGraphCreateBulk added in v1.12.0

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

ReportDependencyGraphCreateBulk is the builder for creating many ReportDependencyGraph entities in bulk.

func (*ReportDependencyGraphCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportDependencyGraphCreateBulk) ExecX added in v1.12.0

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

func (*ReportDependencyGraphCreateBulk) Save added in v1.12.0

Save creates the ReportDependencyGraph entities in the database.

func (*ReportDependencyGraphCreateBulk) SaveX added in v1.12.0

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

type ReportDependencyGraphDelete added in v1.12.0

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

ReportDependencyGraphDelete is the builder for deleting a ReportDependencyGraph entity.

func (*ReportDependencyGraphDelete) Exec added in v1.12.0

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

func (*ReportDependencyGraphDelete) ExecX added in v1.12.0

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

func (*ReportDependencyGraphDelete) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyGraphDelete builder.

type ReportDependencyGraphDeleteOne added in v1.12.0

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

ReportDependencyGraphDeleteOne is the builder for deleting a single ReportDependencyGraph entity.

func (*ReportDependencyGraphDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportDependencyGraphDeleteOne) ExecX added in v1.12.0

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

func (*ReportDependencyGraphDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyGraphDelete builder.

type ReportDependencyGraphGroupBy added in v1.12.0

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

ReportDependencyGraphGroupBy is the group-by builder for ReportDependencyGraph entities.

func (*ReportDependencyGraphGroupBy) Aggregate added in v1.12.0

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

func (*ReportDependencyGraphGroupBy) Bool added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) BoolX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Bools added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) BoolsX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Float64 added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Float64X added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Float64s added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Float64sX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Int added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) IntX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Ints added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) IntsX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Scan added in v1.12.0

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

func (*ReportDependencyGraphGroupBy) ScanX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) String added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) StringX added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) Strings added in v1.12.0

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

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

func (*ReportDependencyGraphGroupBy) StringsX added in v1.12.0

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

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

type ReportDependencyGraphMutation added in v1.12.0

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

ReportDependencyGraphMutation represents an operation that mutates the ReportDependencyGraph nodes in the graph.

func (*ReportDependencyGraphMutation) AddDepth added in v1.12.0

func (m *ReportDependencyGraphMutation) AddDepth(i int)

AddDepth adds i to the "depth" field.

func (*ReportDependencyGraphMutation) AddField added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) AddedDepth added in v1.12.0

func (m *ReportDependencyGraphMutation) AddedDepth() (r int, exists bool)

AddedDepth returns the value that was added to the "depth" field in this mutation.

func (*ReportDependencyGraphMutation) AddedEdges added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) AddedField added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) AddedFields added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) AddedIDs added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) ClearCreatedAt added in v1.12.0

func (m *ReportDependencyGraphMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportDependencyGraphMutation) ClearDependencyType added in v1.12.0

func (m *ReportDependencyGraphMutation) ClearDependencyType()

ClearDependencyType clears the value of the "dependency_type" field.

func (*ReportDependencyGraphMutation) ClearEdge added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) ClearField added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportDependencyGraphMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportDependencyGraphMutation) ClearVersionConstraint added in v1.12.0

func (m *ReportDependencyGraphMutation) ClearVersionConstraint()

ClearVersionConstraint clears the value of the "version_constraint" field.

func (*ReportDependencyGraphMutation) ClearedEdges added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) ClearedFields added in v1.12.0

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

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

func (ReportDependencyGraphMutation) Client added in v1.12.0

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 (*ReportDependencyGraphMutation) CreatedAt added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) CreatedAtCleared added in v1.12.0

func (m *ReportDependencyGraphMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportDependencyGraphMutation) DependencyType added in v1.12.0

func (m *ReportDependencyGraphMutation) DependencyType() (r string, exists bool)

DependencyType returns the value of the "dependency_type" field in the mutation.

func (*ReportDependencyGraphMutation) DependencyTypeCleared added in v1.12.0

func (m *ReportDependencyGraphMutation) DependencyTypeCleared() bool

DependencyTypeCleared returns if the "dependency_type" field was cleared in this mutation.

func (*ReportDependencyGraphMutation) Depth added in v1.12.0

func (m *ReportDependencyGraphMutation) Depth() (r int, exists bool)

Depth returns the value of the "depth" field in the mutation.

func (*ReportDependencyGraphMutation) EdgeCleared added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) Field added in v1.12.0

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 (*ReportDependencyGraphMutation) FieldCleared added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) Fields added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) FromPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) FromPackageEcosystem() (r string, exists bool)

FromPackageEcosystem returns the value of the "from_package_ecosystem" field in the mutation.

func (*ReportDependencyGraphMutation) FromPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) FromPackageID() (r string, exists bool)

FromPackageID returns the value of the "from_package_id" field in the mutation.

func (*ReportDependencyGraphMutation) FromPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) FromPackageName() (r string, exists bool)

FromPackageName returns the value of the "from_package_name" field in the mutation.

func (*ReportDependencyGraphMutation) FromPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) FromPackageVersion() (r string, exists bool)

FromPackageVersion returns the value of the "from_package_version" field in the mutation.

func (*ReportDependencyGraphMutation) ID added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) IDs added in v1.12.0

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 (*ReportDependencyGraphMutation) IsDirect added in v1.12.0

func (m *ReportDependencyGraphMutation) IsDirect() (r bool, exists bool)

IsDirect returns the value of the "is_direct" field in the mutation.

func (*ReportDependencyGraphMutation) IsRootEdge added in v1.12.0

func (m *ReportDependencyGraphMutation) IsRootEdge() (r bool, exists bool)

IsRootEdge returns the value of the "is_root_edge" field in the mutation.

func (*ReportDependencyGraphMutation) ManifestID added in v1.12.0

func (m *ReportDependencyGraphMutation) ManifestID() (r string, exists bool)

ManifestID returns the value of the "manifest_id" field in the mutation.

func (*ReportDependencyGraphMutation) OldCreatedAt added in v1.12.0

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

OldCreatedAt returns the old "created_at" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldDependencyType added in v1.12.0

func (m *ReportDependencyGraphMutation) OldDependencyType(ctx context.Context) (v string, err error)

OldDependencyType returns the old "dependency_type" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldDepth added in v1.12.0

func (m *ReportDependencyGraphMutation) OldDepth(ctx context.Context) (v int, err error)

OldDepth returns the old "depth" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldField added in v1.12.0

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 (*ReportDependencyGraphMutation) OldFromPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) OldFromPackageEcosystem(ctx context.Context) (v string, err error)

OldFromPackageEcosystem returns the old "from_package_ecosystem" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldFromPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) OldFromPackageID(ctx context.Context) (v string, err error)

OldFromPackageID returns the old "from_package_id" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldFromPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) OldFromPackageName(ctx context.Context) (v string, err error)

OldFromPackageName returns the old "from_package_name" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldFromPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) OldFromPackageVersion(ctx context.Context) (v string, err error)

OldFromPackageVersion returns the old "from_package_version" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldIsDirect added in v1.12.0

func (m *ReportDependencyGraphMutation) OldIsDirect(ctx context.Context) (v bool, err error)

OldIsDirect returns the old "is_direct" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldIsRootEdge added in v1.12.0

func (m *ReportDependencyGraphMutation) OldIsRootEdge(ctx context.Context) (v bool, err error)

OldIsRootEdge returns the old "is_root_edge" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldManifestID added in v1.12.0

func (m *ReportDependencyGraphMutation) OldManifestID(ctx context.Context) (v string, err error)

OldManifestID returns the old "manifest_id" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldToPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) OldToPackageEcosystem(ctx context.Context) (v string, err error)

OldToPackageEcosystem returns the old "to_package_ecosystem" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldToPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) OldToPackageID(ctx context.Context) (v string, err error)

OldToPackageID returns the old "to_package_id" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldToPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) OldToPackageName(ctx context.Context) (v string, err error)

OldToPackageName returns the old "to_package_name" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldToPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) OldToPackageVersion(ctx context.Context) (v string, err error)

OldToPackageVersion returns the old "to_package_version" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldUpdatedAt added in v1.12.0

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

OldUpdatedAt returns the old "updated_at" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) OldVersionConstraint added in v1.12.0

func (m *ReportDependencyGraphMutation) OldVersionConstraint(ctx context.Context) (v string, err error)

OldVersionConstraint returns the old "version_constraint" field's value of the ReportDependencyGraph entity. If the ReportDependencyGraph 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 (*ReportDependencyGraphMutation) Op added in v1.12.0

Op returns the operation name.

func (*ReportDependencyGraphMutation) RemovedEdges added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) RemovedIDs added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) ResetCreatedAt added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportDependencyGraphMutation) ResetDependencyType added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetDependencyType()

ResetDependencyType resets all changes to the "dependency_type" field.

func (*ReportDependencyGraphMutation) ResetDepth added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetDepth()

ResetDepth resets all changes to the "depth" field.

func (*ReportDependencyGraphMutation) ResetEdge added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) ResetField added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) ResetFromPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetFromPackageEcosystem()

ResetFromPackageEcosystem resets all changes to the "from_package_ecosystem" field.

func (*ReportDependencyGraphMutation) ResetFromPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetFromPackageID()

ResetFromPackageID resets all changes to the "from_package_id" field.

func (*ReportDependencyGraphMutation) ResetFromPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetFromPackageName()

ResetFromPackageName resets all changes to the "from_package_name" field.

func (*ReportDependencyGraphMutation) ResetFromPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetFromPackageVersion()

ResetFromPackageVersion resets all changes to the "from_package_version" field.

func (*ReportDependencyGraphMutation) ResetIsDirect added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetIsDirect()

ResetIsDirect resets all changes to the "is_direct" field.

func (*ReportDependencyGraphMutation) ResetIsRootEdge added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetIsRootEdge()

ResetIsRootEdge resets all changes to the "is_root_edge" field.

func (*ReportDependencyGraphMutation) ResetManifestID added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetManifestID()

ResetManifestID resets all changes to the "manifest_id" field.

func (*ReportDependencyGraphMutation) ResetToPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetToPackageEcosystem()

ResetToPackageEcosystem resets all changes to the "to_package_ecosystem" field.

func (*ReportDependencyGraphMutation) ResetToPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetToPackageID()

ResetToPackageID resets all changes to the "to_package_id" field.

func (*ReportDependencyGraphMutation) ResetToPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetToPackageName()

ResetToPackageName resets all changes to the "to_package_name" field.

func (*ReportDependencyGraphMutation) ResetToPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetToPackageVersion()

ResetToPackageVersion resets all changes to the "to_package_version" field.

func (*ReportDependencyGraphMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportDependencyGraphMutation) ResetVersionConstraint added in v1.12.0

func (m *ReportDependencyGraphMutation) ResetVersionConstraint()

ResetVersionConstraint resets all changes to the "version_constraint" field.

func (*ReportDependencyGraphMutation) SetCreatedAt added in v1.12.0

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

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyGraphMutation) SetDependencyType added in v1.12.0

func (m *ReportDependencyGraphMutation) SetDependencyType(s string)

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyGraphMutation) SetDepth added in v1.12.0

func (m *ReportDependencyGraphMutation) SetDepth(i int)

SetDepth sets the "depth" field.

func (*ReportDependencyGraphMutation) SetField added in v1.12.0

func (m *ReportDependencyGraphMutation) 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 (*ReportDependencyGraphMutation) SetFromPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) SetFromPackageEcosystem(s string)

SetFromPackageEcosystem sets the "from_package_ecosystem" field.

func (*ReportDependencyGraphMutation) SetFromPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) SetFromPackageID(s string)

SetFromPackageID sets the "from_package_id" field.

func (*ReportDependencyGraphMutation) SetFromPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) SetFromPackageName(s string)

SetFromPackageName sets the "from_package_name" field.

func (*ReportDependencyGraphMutation) SetFromPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) SetFromPackageVersion(s string)

SetFromPackageVersion sets the "from_package_version" field.

func (*ReportDependencyGraphMutation) SetIsDirect added in v1.12.0

func (m *ReportDependencyGraphMutation) SetIsDirect(b bool)

SetIsDirect sets the "is_direct" field.

func (*ReportDependencyGraphMutation) SetIsRootEdge added in v1.12.0

func (m *ReportDependencyGraphMutation) SetIsRootEdge(b bool)

SetIsRootEdge sets the "is_root_edge" field.

func (*ReportDependencyGraphMutation) SetManifestID added in v1.12.0

func (m *ReportDependencyGraphMutation) SetManifestID(s string)

SetManifestID sets the "manifest_id" field.

func (*ReportDependencyGraphMutation) SetOp added in v1.12.0

func (m *ReportDependencyGraphMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportDependencyGraphMutation) SetToPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) SetToPackageEcosystem(s string)

SetToPackageEcosystem sets the "to_package_ecosystem" field.

func (*ReportDependencyGraphMutation) SetToPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) SetToPackageID(s string)

SetToPackageID sets the "to_package_id" field.

func (*ReportDependencyGraphMutation) SetToPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) SetToPackageName(s string)

SetToPackageName sets the "to_package_name" field.

func (*ReportDependencyGraphMutation) SetToPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) SetToPackageVersion(s string)

SetToPackageVersion sets the "to_package_version" field.

func (*ReportDependencyGraphMutation) SetUpdatedAt added in v1.12.0

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

SetUpdatedAt sets the "updated_at" field.

func (*ReportDependencyGraphMutation) SetVersionConstraint added in v1.12.0

func (m *ReportDependencyGraphMutation) SetVersionConstraint(s string)

SetVersionConstraint sets the "version_constraint" field.

func (*ReportDependencyGraphMutation) ToPackageEcosystem added in v1.12.0

func (m *ReportDependencyGraphMutation) ToPackageEcosystem() (r string, exists bool)

ToPackageEcosystem returns the value of the "to_package_ecosystem" field in the mutation.

func (*ReportDependencyGraphMutation) ToPackageID added in v1.12.0

func (m *ReportDependencyGraphMutation) ToPackageID() (r string, exists bool)

ToPackageID returns the value of the "to_package_id" field in the mutation.

func (*ReportDependencyGraphMutation) ToPackageName added in v1.12.0

func (m *ReportDependencyGraphMutation) ToPackageName() (r string, exists bool)

ToPackageName returns the value of the "to_package_name" field in the mutation.

func (*ReportDependencyGraphMutation) ToPackageVersion added in v1.12.0

func (m *ReportDependencyGraphMutation) ToPackageVersion() (r string, exists bool)

ToPackageVersion returns the value of the "to_package_version" field in the mutation.

func (ReportDependencyGraphMutation) Tx added in v1.12.0

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

func (*ReportDependencyGraphMutation) Type added in v1.12.0

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

func (*ReportDependencyGraphMutation) UpdatedAt added in v1.12.0

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

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

func (*ReportDependencyGraphMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportDependencyGraphMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportDependencyGraphMutation) VersionConstraint added in v1.12.0

func (m *ReportDependencyGraphMutation) VersionConstraint() (r string, exists bool)

VersionConstraint returns the value of the "version_constraint" field in the mutation.

func (*ReportDependencyGraphMutation) VersionConstraintCleared added in v1.12.0

func (m *ReportDependencyGraphMutation) VersionConstraintCleared() bool

VersionConstraintCleared returns if the "version_constraint" field was cleared in this mutation.

func (*ReportDependencyGraphMutation) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyGraphMutation builder.

func (*ReportDependencyGraphMutation) WhereP added in v1.12.0

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

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

type ReportDependencyGraphQuery added in v1.12.0

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

ReportDependencyGraphQuery is the builder for querying ReportDependencyGraph entities.

func (*ReportDependencyGraphQuery) Aggregate added in v1.12.0

Aggregate returns a ReportDependencyGraphSelect configured with the given aggregations.

func (*ReportDependencyGraphQuery) All added in v1.12.0

All executes the query and returns a list of ReportDependencyGraphs.

func (*ReportDependencyGraphQuery) AllX added in v1.12.0

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

func (*ReportDependencyGraphQuery) Clone added in v1.12.0

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

func (*ReportDependencyGraphQuery) Count added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportDependencyGraphQuery) CountX added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) CountX(ctx context.Context) int

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

func (*ReportDependencyGraphQuery) Exist added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) Exist(ctx context.Context) (bool, error)

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

func (*ReportDependencyGraphQuery) ExistX added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) ExistX(ctx context.Context) bool

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

func (*ReportDependencyGraphQuery) First added in v1.12.0

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

func (*ReportDependencyGraphQuery) FirstID added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) FirstID(ctx context.Context) (id int, err error)

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

func (*ReportDependencyGraphQuery) FirstIDX added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) FirstIDX(ctx context.Context) int

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

func (*ReportDependencyGraphQuery) FirstX added in v1.12.0

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

func (*ReportDependencyGraphQuery) GroupBy added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) GroupBy(field string, fields ...string) *ReportDependencyGraphGroupBy

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

client.ReportDependencyGraph.Query().
	GroupBy(reportdependencygraph.FieldFromPackageID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportDependencyGraphQuery) IDs added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) IDs(ctx context.Context) (ids []int, err error)

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

func (*ReportDependencyGraphQuery) IDsX added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) IDsX(ctx context.Context) []int

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

func (*ReportDependencyGraphQuery) Limit added in v1.12.0

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

func (*ReportDependencyGraphQuery) Offset added in v1.12.0

Offset to start from.

func (*ReportDependencyGraphQuery) Only added in v1.12.0

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

func (*ReportDependencyGraphQuery) OnlyID added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) OnlyID(ctx context.Context) (id int, err error)

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

func (*ReportDependencyGraphQuery) OnlyIDX added in v1.12.0

func (rdgq *ReportDependencyGraphQuery) OnlyIDX(ctx context.Context) int

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

func (*ReportDependencyGraphQuery) OnlyX added in v1.12.0

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

func (*ReportDependencyGraphQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportDependencyGraphQuery) Select added in v1.12.0

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

client.ReportDependencyGraph.Query().
	Select(reportdependencygraph.FieldFromPackageID).
	Scan(ctx, &v)

func (*ReportDependencyGraphQuery) Unique added in v1.12.0

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 (*ReportDependencyGraphQuery) Where added in v1.12.0

Where adds a new predicate for the ReportDependencyGraphQuery builder.

type ReportDependencyGraphSelect added in v1.12.0

type ReportDependencyGraphSelect struct {
	*ReportDependencyGraphQuery
	// contains filtered or unexported fields
}

ReportDependencyGraphSelect is the builder for selecting fields of ReportDependencyGraph entities.

func (*ReportDependencyGraphSelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportDependencyGraphSelect) Bool added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) BoolX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Bools added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) BoolsX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Float64 added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Float64X added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Float64s added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Float64sX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Int added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) IntX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Ints added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) IntsX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Scan added in v1.12.0

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

func (*ReportDependencyGraphSelect) ScanX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) String added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) StringX added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) Strings added in v1.12.0

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

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

func (*ReportDependencyGraphSelect) StringsX added in v1.12.0

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

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

type ReportDependencyGraphUpdate added in v1.12.0

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

ReportDependencyGraphUpdate is the builder for updating ReportDependencyGraph entities.

func (*ReportDependencyGraphUpdate) AddDepth added in v1.12.0

AddDepth adds i to the "depth" field.

func (*ReportDependencyGraphUpdate) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportDependencyGraphUpdate) ClearDependencyType added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) ClearDependencyType() *ReportDependencyGraphUpdate

ClearDependencyType clears the value of the "dependency_type" field.

func (*ReportDependencyGraphUpdate) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportDependencyGraphUpdate) ClearVersionConstraint added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) ClearVersionConstraint() *ReportDependencyGraphUpdate

ClearVersionConstraint clears the value of the "version_constraint" field.

func (*ReportDependencyGraphUpdate) Exec added in v1.12.0

Exec executes the query.

func (*ReportDependencyGraphUpdate) ExecX added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) ExecX(ctx context.Context)

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

func (*ReportDependencyGraphUpdate) Mutation added in v1.12.0

Mutation returns the ReportDependencyGraphMutation object of the builder.

func (*ReportDependencyGraphUpdate) Save added in v1.12.0

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

func (*ReportDependencyGraphUpdate) SaveX added in v1.12.0

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

func (*ReportDependencyGraphUpdate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyGraphUpdate) SetDependencyType added in v1.12.0

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyGraphUpdate) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportDependencyGraphUpdate) SetFromPackageEcosystem added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetFromPackageEcosystem(s string) *ReportDependencyGraphUpdate

SetFromPackageEcosystem sets the "from_package_ecosystem" field.

func (*ReportDependencyGraphUpdate) SetFromPackageID added in v1.12.0

SetFromPackageID sets the "from_package_id" field.

func (*ReportDependencyGraphUpdate) SetFromPackageName added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetFromPackageName(s string) *ReportDependencyGraphUpdate

SetFromPackageName sets the "from_package_name" field.

func (*ReportDependencyGraphUpdate) SetFromPackageVersion added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetFromPackageVersion(s string) *ReportDependencyGraphUpdate

SetFromPackageVersion sets the "from_package_version" field.

func (*ReportDependencyGraphUpdate) SetIsDirect added in v1.12.0

SetIsDirect sets the "is_direct" field.

func (*ReportDependencyGraphUpdate) SetIsRootEdge added in v1.12.0

SetIsRootEdge sets the "is_root_edge" field.

func (*ReportDependencyGraphUpdate) SetManifestID added in v1.12.0

SetManifestID sets the "manifest_id" field.

func (*ReportDependencyGraphUpdate) SetNillableCreatedAt added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableCreatedAt(t *time.Time) *ReportDependencyGraphUpdate

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

func (*ReportDependencyGraphUpdate) SetNillableDependencyType added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableDependencyType(s *string) *ReportDependencyGraphUpdate

SetNillableDependencyType sets the "dependency_type" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableDepth added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableDepth(i *int) *ReportDependencyGraphUpdate

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableFromPackageEcosystem added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageEcosystem(s *string) *ReportDependencyGraphUpdate

SetNillableFromPackageEcosystem sets the "from_package_ecosystem" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableFromPackageID added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageID(s *string) *ReportDependencyGraphUpdate

SetNillableFromPackageID sets the "from_package_id" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableFromPackageName added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageName(s *string) *ReportDependencyGraphUpdate

SetNillableFromPackageName sets the "from_package_name" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableFromPackageVersion added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageVersion(s *string) *ReportDependencyGraphUpdate

SetNillableFromPackageVersion sets the "from_package_version" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableIsDirect added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableIsDirect(b *bool) *ReportDependencyGraphUpdate

SetNillableIsDirect sets the "is_direct" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableIsRootEdge added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableIsRootEdge(b *bool) *ReportDependencyGraphUpdate

SetNillableIsRootEdge sets the "is_root_edge" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableManifestID added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableManifestID(s *string) *ReportDependencyGraphUpdate

SetNillableManifestID sets the "manifest_id" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableToPackageEcosystem added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageEcosystem(s *string) *ReportDependencyGraphUpdate

SetNillableToPackageEcosystem sets the "to_package_ecosystem" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableToPackageID added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageID(s *string) *ReportDependencyGraphUpdate

SetNillableToPackageID sets the "to_package_id" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableToPackageName added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageName(s *string) *ReportDependencyGraphUpdate

SetNillableToPackageName sets the "to_package_name" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableToPackageVersion added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageVersion(s *string) *ReportDependencyGraphUpdate

SetNillableToPackageVersion sets the "to_package_version" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetNillableUpdatedAt added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyGraphUpdate

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

func (*ReportDependencyGraphUpdate) SetNillableVersionConstraint added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetNillableVersionConstraint(s *string) *ReportDependencyGraphUpdate

SetNillableVersionConstraint sets the "version_constraint" field if the given value is not nil.

func (*ReportDependencyGraphUpdate) SetToPackageEcosystem added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetToPackageEcosystem(s string) *ReportDependencyGraphUpdate

SetToPackageEcosystem sets the "to_package_ecosystem" field.

func (*ReportDependencyGraphUpdate) SetToPackageID added in v1.12.0

SetToPackageID sets the "to_package_id" field.

func (*ReportDependencyGraphUpdate) SetToPackageName added in v1.12.0

SetToPackageName sets the "to_package_name" field.

func (*ReportDependencyGraphUpdate) SetToPackageVersion added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetToPackageVersion(s string) *ReportDependencyGraphUpdate

SetToPackageVersion sets the "to_package_version" field.

func (*ReportDependencyGraphUpdate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportDependencyGraphUpdate) SetVersionConstraint added in v1.12.0

func (rdgu *ReportDependencyGraphUpdate) SetVersionConstraint(s string) *ReportDependencyGraphUpdate

SetVersionConstraint sets the "version_constraint" field.

func (*ReportDependencyGraphUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyGraphUpdate builder.

type ReportDependencyGraphUpdateOne added in v1.12.0

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

ReportDependencyGraphUpdateOne is the builder for updating a single ReportDependencyGraph entity.

func (*ReportDependencyGraphUpdateOne) AddDepth added in v1.12.0

AddDepth adds i to the "depth" field.

func (*ReportDependencyGraphUpdateOne) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportDependencyGraphUpdateOne) ClearDependencyType added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) ClearDependencyType() *ReportDependencyGraphUpdateOne

ClearDependencyType clears the value of the "dependency_type" field.

func (*ReportDependencyGraphUpdateOne) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportDependencyGraphUpdateOne) ClearVersionConstraint added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) ClearVersionConstraint() *ReportDependencyGraphUpdateOne

ClearVersionConstraint clears the value of the "version_constraint" field.

func (*ReportDependencyGraphUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportDependencyGraphUpdateOne) ExecX added in v1.12.0

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

func (*ReportDependencyGraphUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportDependencyGraphMutation object of the builder.

func (*ReportDependencyGraphUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportDependencyGraph entity.

func (*ReportDependencyGraphUpdateOne) SaveX added in v1.12.0

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

func (*ReportDependencyGraphUpdateOne) Select added in v1.12.0

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

func (*ReportDependencyGraphUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyGraphUpdateOne) SetDependencyType added in v1.12.0

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyGraphUpdateOne) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportDependencyGraphUpdateOne) SetFromPackageEcosystem added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageEcosystem(s string) *ReportDependencyGraphUpdateOne

SetFromPackageEcosystem sets the "from_package_ecosystem" field.

func (*ReportDependencyGraphUpdateOne) SetFromPackageID added in v1.12.0

SetFromPackageID sets the "from_package_id" field.

func (*ReportDependencyGraphUpdateOne) SetFromPackageName added in v1.12.0

SetFromPackageName sets the "from_package_name" field.

func (*ReportDependencyGraphUpdateOne) SetFromPackageVersion added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageVersion(s string) *ReportDependencyGraphUpdateOne

SetFromPackageVersion sets the "from_package_version" field.

func (*ReportDependencyGraphUpdateOne) SetIsDirect added in v1.12.0

SetIsDirect sets the "is_direct" field.

func (*ReportDependencyGraphUpdateOne) SetIsRootEdge added in v1.12.0

SetIsRootEdge sets the "is_root_edge" field.

func (*ReportDependencyGraphUpdateOne) SetManifestID added in v1.12.0

SetManifestID sets the "manifest_id" field.

func (*ReportDependencyGraphUpdateOne) SetNillableCreatedAt added in v1.12.0

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

func (*ReportDependencyGraphUpdateOne) SetNillableDependencyType added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableDependencyType(s *string) *ReportDependencyGraphUpdateOne

SetNillableDependencyType sets the "dependency_type" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableDepth added in v1.12.0

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableFromPackageEcosystem added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageEcosystem(s *string) *ReportDependencyGraphUpdateOne

SetNillableFromPackageEcosystem sets the "from_package_ecosystem" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableFromPackageID added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageID(s *string) *ReportDependencyGraphUpdateOne

SetNillableFromPackageID sets the "from_package_id" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableFromPackageName added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageName(s *string) *ReportDependencyGraphUpdateOne

SetNillableFromPackageName sets the "from_package_name" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableFromPackageVersion added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageVersion(s *string) *ReportDependencyGraphUpdateOne

SetNillableFromPackageVersion sets the "from_package_version" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableIsDirect added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableIsDirect(b *bool) *ReportDependencyGraphUpdateOne

SetNillableIsDirect sets the "is_direct" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableIsRootEdge added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableIsRootEdge(b *bool) *ReportDependencyGraphUpdateOne

SetNillableIsRootEdge sets the "is_root_edge" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableManifestID added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableManifestID(s *string) *ReportDependencyGraphUpdateOne

SetNillableManifestID sets the "manifest_id" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableToPackageEcosystem added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageEcosystem(s *string) *ReportDependencyGraphUpdateOne

SetNillableToPackageEcosystem sets the "to_package_ecosystem" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableToPackageID added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageID(s *string) *ReportDependencyGraphUpdateOne

SetNillableToPackageID sets the "to_package_id" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableToPackageName added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageName(s *string) *ReportDependencyGraphUpdateOne

SetNillableToPackageName sets the "to_package_name" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableToPackageVersion added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageVersion(s *string) *ReportDependencyGraphUpdateOne

SetNillableToPackageVersion sets the "to_package_version" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetNillableUpdatedAt added in v1.12.0

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

func (*ReportDependencyGraphUpdateOne) SetNillableVersionConstraint added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetNillableVersionConstraint(s *string) *ReportDependencyGraphUpdateOne

SetNillableVersionConstraint sets the "version_constraint" field if the given value is not nil.

func (*ReportDependencyGraphUpdateOne) SetToPackageEcosystem added in v1.12.0

func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageEcosystem(s string) *ReportDependencyGraphUpdateOne

SetToPackageEcosystem sets the "to_package_ecosystem" field.

func (*ReportDependencyGraphUpdateOne) SetToPackageID added in v1.12.0

SetToPackageID sets the "to_package_id" field.

func (*ReportDependencyGraphUpdateOne) SetToPackageName added in v1.12.0

SetToPackageName sets the "to_package_name" field.

func (*ReportDependencyGraphUpdateOne) SetToPackageVersion added in v1.12.0

SetToPackageVersion sets the "to_package_version" field.

func (*ReportDependencyGraphUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportDependencyGraphUpdateOne) SetVersionConstraint added in v1.12.0

SetVersionConstraint sets the "version_constraint" field.

func (*ReportDependencyGraphUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyGraphUpdate builder.

type ReportDependencyGraphs added in v1.12.0

type ReportDependencyGraphs []*ReportDependencyGraph

ReportDependencyGraphs is a parsable slice of ReportDependencyGraph.

type ReportDependencyGroupBy added in v1.12.0

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

ReportDependencyGroupBy is the group-by builder for ReportDependency entities.

func (*ReportDependencyGroupBy) Aggregate added in v1.12.0

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

func (*ReportDependencyGroupBy) Bool added in v1.12.0

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

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

func (*ReportDependencyGroupBy) BoolX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Bools added in v1.12.0

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

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

func (*ReportDependencyGroupBy) BoolsX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Float64 added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Float64X added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Float64s added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Float64sX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Int added in v1.12.0

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

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

func (*ReportDependencyGroupBy) IntX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Ints added in v1.12.0

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

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

func (*ReportDependencyGroupBy) IntsX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Scan added in v1.12.0

func (rdgb *ReportDependencyGroupBy) Scan(ctx context.Context, v any) error

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

func (*ReportDependencyGroupBy) ScanX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) String added in v1.12.0

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

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

func (*ReportDependencyGroupBy) StringX added in v1.12.0

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

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

func (*ReportDependencyGroupBy) Strings added in v1.12.0

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

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

func (*ReportDependencyGroupBy) StringsX added in v1.12.0

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

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

type ReportDependencyMutation added in v1.12.0

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

ReportDependencyMutation represents an operation that mutates the ReportDependency nodes in the graph.

func (*ReportDependencyMutation) AddDepth added in v1.12.0

func (m *ReportDependencyMutation) AddDepth(i int)

AddDepth adds i to the "depth" field.

func (*ReportDependencyMutation) AddField added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) AddedDepth added in v1.12.0

func (m *ReportDependencyMutation) AddedDepth() (r int, exists bool)

AddedDepth returns the value that was added to the "depth" field in this mutation.

func (*ReportDependencyMutation) AddedEdges added in v1.12.0

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

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

func (*ReportDependencyMutation) AddedField added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) AddedFields added in v1.12.0

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

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

func (*ReportDependencyMutation) AddedIDs added in v1.12.0

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

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

func (*ReportDependencyMutation) ClearCreatedAt added in v1.12.0

func (m *ReportDependencyMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportDependencyMutation) ClearDependencyType added in v1.12.0

func (m *ReportDependencyMutation) ClearDependencyType()

ClearDependencyType clears the value of the "dependency_type" field.

func (*ReportDependencyMutation) ClearEdge added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) ClearField added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) ClearPackage added in v1.12.0

func (m *ReportDependencyMutation) ClearPackage()

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportDependencyMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportDependencyMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportDependencyMutation) ClearedEdges added in v1.12.0

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

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

func (*ReportDependencyMutation) ClearedFields added in v1.12.0

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

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

func (ReportDependencyMutation) Client added in v1.12.0

func (m ReportDependencyMutation) 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 (*ReportDependencyMutation) CreatedAt added in v1.12.0

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

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

func (*ReportDependencyMutation) CreatedAtCleared added in v1.12.0

func (m *ReportDependencyMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportDependencyMutation) DependencyEcosystem added in v1.12.0

func (m *ReportDependencyMutation) DependencyEcosystem() (r string, exists bool)

DependencyEcosystem returns the value of the "dependency_ecosystem" field in the mutation.

func (*ReportDependencyMutation) DependencyName added in v1.12.0

func (m *ReportDependencyMutation) DependencyName() (r string, exists bool)

DependencyName returns the value of the "dependency_name" field in the mutation.

func (*ReportDependencyMutation) DependencyPackageID added in v1.12.0

func (m *ReportDependencyMutation) DependencyPackageID() (r string, exists bool)

DependencyPackageID returns the value of the "dependency_package_id" field in the mutation.

func (*ReportDependencyMutation) DependencyType added in v1.12.0

func (m *ReportDependencyMutation) DependencyType() (r string, exists bool)

DependencyType returns the value of the "dependency_type" field in the mutation.

func (*ReportDependencyMutation) DependencyTypeCleared added in v1.12.0

func (m *ReportDependencyMutation) DependencyTypeCleared() bool

DependencyTypeCleared returns if the "dependency_type" field was cleared in this mutation.

func (*ReportDependencyMutation) DependencyVersion added in v1.12.0

func (m *ReportDependencyMutation) DependencyVersion() (r string, exists bool)

DependencyVersion returns the value of the "dependency_version" field in the mutation.

func (*ReportDependencyMutation) Depth added in v1.12.0

func (m *ReportDependencyMutation) Depth() (r int, exists bool)

Depth returns the value of the "depth" field in the mutation.

func (*ReportDependencyMutation) EdgeCleared added in v1.12.0

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

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

func (*ReportDependencyMutation) Field added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) FieldCleared added in v1.12.0

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

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

func (*ReportDependencyMutation) Fields added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) ID added in v1.12.0

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

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

func (*ReportDependencyMutation) IDs added in v1.12.0

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 (*ReportDependencyMutation) OldCreatedAt added in v1.12.0

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

OldCreatedAt returns the old "created_at" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldDependencyEcosystem added in v1.12.0

func (m *ReportDependencyMutation) OldDependencyEcosystem(ctx context.Context) (v string, err error)

OldDependencyEcosystem returns the old "dependency_ecosystem" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldDependencyName added in v1.12.0

func (m *ReportDependencyMutation) OldDependencyName(ctx context.Context) (v string, err error)

OldDependencyName returns the old "dependency_name" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldDependencyPackageID added in v1.12.0

func (m *ReportDependencyMutation) OldDependencyPackageID(ctx context.Context) (v string, err error)

OldDependencyPackageID returns the old "dependency_package_id" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldDependencyType added in v1.12.0

func (m *ReportDependencyMutation) OldDependencyType(ctx context.Context) (v string, err error)

OldDependencyType returns the old "dependency_type" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldDependencyVersion added in v1.12.0

func (m *ReportDependencyMutation) OldDependencyVersion(ctx context.Context) (v string, err error)

OldDependencyVersion returns the old "dependency_version" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldDepth added in v1.12.0

func (m *ReportDependencyMutation) OldDepth(ctx context.Context) (v int, err error)

OldDepth returns the old "depth" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) OldField added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) OldUpdatedAt added in v1.12.0

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

OldUpdatedAt returns the old "updated_at" field's value of the ReportDependency entity. If the ReportDependency 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 (*ReportDependencyMutation) Op added in v1.12.0

func (m *ReportDependencyMutation) Op() Op

Op returns the operation name.

func (*ReportDependencyMutation) PackageCleared added in v1.12.0

func (m *ReportDependencyMutation) PackageCleared() bool

PackageCleared reports if the "package" edge to the ReportPackage entity was cleared.

func (*ReportDependencyMutation) PackageID added in v1.12.0

func (m *ReportDependencyMutation) PackageID() (id int, exists bool)

PackageID returns the "package" edge ID in the mutation.

func (*ReportDependencyMutation) PackageIDs added in v1.12.0

func (m *ReportDependencyMutation) PackageIDs() (ids []int)

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

func (*ReportDependencyMutation) RemovedEdges added in v1.12.0

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

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

func (*ReportDependencyMutation) RemovedIDs added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) ResetCreatedAt added in v1.12.0

func (m *ReportDependencyMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportDependencyMutation) ResetDependencyEcosystem added in v1.12.0

func (m *ReportDependencyMutation) ResetDependencyEcosystem()

ResetDependencyEcosystem resets all changes to the "dependency_ecosystem" field.

func (*ReportDependencyMutation) ResetDependencyName added in v1.12.0

func (m *ReportDependencyMutation) ResetDependencyName()

ResetDependencyName resets all changes to the "dependency_name" field.

func (*ReportDependencyMutation) ResetDependencyPackageID added in v1.12.0

func (m *ReportDependencyMutation) ResetDependencyPackageID()

ResetDependencyPackageID resets all changes to the "dependency_package_id" field.

func (*ReportDependencyMutation) ResetDependencyType added in v1.12.0

func (m *ReportDependencyMutation) ResetDependencyType()

ResetDependencyType resets all changes to the "dependency_type" field.

func (*ReportDependencyMutation) ResetDependencyVersion added in v1.12.0

func (m *ReportDependencyMutation) ResetDependencyVersion()

ResetDependencyVersion resets all changes to the "dependency_version" field.

func (*ReportDependencyMutation) ResetDepth added in v1.12.0

func (m *ReportDependencyMutation) ResetDepth()

ResetDepth resets all changes to the "depth" field.

func (*ReportDependencyMutation) ResetEdge added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) ResetField added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) ResetPackage added in v1.12.0

func (m *ReportDependencyMutation) ResetPackage()

ResetPackage resets all changes to the "package" edge.

func (*ReportDependencyMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportDependencyMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportDependencyMutation) SetCreatedAt added in v1.12.0

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

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyMutation) SetDependencyEcosystem added in v1.12.0

func (m *ReportDependencyMutation) SetDependencyEcosystem(s string)

SetDependencyEcosystem sets the "dependency_ecosystem" field.

func (*ReportDependencyMutation) SetDependencyName added in v1.12.0

func (m *ReportDependencyMutation) SetDependencyName(s string)

SetDependencyName sets the "dependency_name" field.

func (*ReportDependencyMutation) SetDependencyPackageID added in v1.12.0

func (m *ReportDependencyMutation) SetDependencyPackageID(s string)

SetDependencyPackageID sets the "dependency_package_id" field.

func (*ReportDependencyMutation) SetDependencyType added in v1.12.0

func (m *ReportDependencyMutation) SetDependencyType(s string)

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyMutation) SetDependencyVersion added in v1.12.0

func (m *ReportDependencyMutation) SetDependencyVersion(s string)

SetDependencyVersion sets the "dependency_version" field.

func (*ReportDependencyMutation) SetDepth added in v1.12.0

func (m *ReportDependencyMutation) SetDepth(i int)

SetDepth sets the "depth" field.

func (*ReportDependencyMutation) SetField added in v1.12.0

func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) SetOp added in v1.12.0

func (m *ReportDependencyMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportDependencyMutation) SetPackageID added in v1.12.0

func (m *ReportDependencyMutation) SetPackageID(id int)

SetPackageID sets the "package" edge to the ReportPackage entity by id.

func (*ReportDependencyMutation) SetUpdatedAt added in v1.12.0

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

SetUpdatedAt sets the "updated_at" field.

func (ReportDependencyMutation) Tx added in v1.12.0

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

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

func (*ReportDependencyMutation) Type added in v1.12.0

func (m *ReportDependencyMutation) Type() string

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

func (*ReportDependencyMutation) UpdatedAt added in v1.12.0

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

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

func (*ReportDependencyMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportDependencyMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportDependencyMutation) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyMutation builder.

func (*ReportDependencyMutation) WhereP added in v1.12.0

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

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

type ReportDependencyQuery added in v1.12.0

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

ReportDependencyQuery is the builder for querying ReportDependency entities.

func (*ReportDependencyQuery) Aggregate added in v1.12.0

Aggregate returns a ReportDependencySelect configured with the given aggregations.

func (*ReportDependencyQuery) All added in v1.12.0

All executes the query and returns a list of ReportDependencies.

func (*ReportDependencyQuery) AllX added in v1.12.0

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

func (*ReportDependencyQuery) Clone added in v1.12.0

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

func (*ReportDependencyQuery) Count added in v1.12.0

func (rdq *ReportDependencyQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportDependencyQuery) CountX added in v1.12.0

func (rdq *ReportDependencyQuery) CountX(ctx context.Context) int

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

func (*ReportDependencyQuery) Exist added in v1.12.0

func (rdq *ReportDependencyQuery) Exist(ctx context.Context) (bool, error)

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

func (*ReportDependencyQuery) ExistX added in v1.12.0

func (rdq *ReportDependencyQuery) ExistX(ctx context.Context) bool

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

func (*ReportDependencyQuery) First added in v1.12.0

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

func (*ReportDependencyQuery) FirstID added in v1.12.0

func (rdq *ReportDependencyQuery) FirstID(ctx context.Context) (id int, err error)

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

func (*ReportDependencyQuery) FirstIDX added in v1.12.0

func (rdq *ReportDependencyQuery) FirstIDX(ctx context.Context) int

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

func (*ReportDependencyQuery) FirstX added in v1.12.0

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

func (*ReportDependencyQuery) GroupBy added in v1.12.0

func (rdq *ReportDependencyQuery) GroupBy(field string, fields ...string) *ReportDependencyGroupBy

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

client.ReportDependency.Query().
	GroupBy(reportdependency.FieldDependencyPackageID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportDependencyQuery) IDs added in v1.12.0

func (rdq *ReportDependencyQuery) IDs(ctx context.Context) (ids []int, err error)

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

func (*ReportDependencyQuery) IDsX added in v1.12.0

func (rdq *ReportDependencyQuery) IDsX(ctx context.Context) []int

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

func (*ReportDependencyQuery) Limit added in v1.12.0

func (rdq *ReportDependencyQuery) Limit(limit int) *ReportDependencyQuery

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

func (*ReportDependencyQuery) Offset added in v1.12.0

func (rdq *ReportDependencyQuery) Offset(offset int) *ReportDependencyQuery

Offset to start from.

func (*ReportDependencyQuery) Only added in v1.12.0

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

func (*ReportDependencyQuery) OnlyID added in v1.12.0

func (rdq *ReportDependencyQuery) OnlyID(ctx context.Context) (id int, err error)

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

func (*ReportDependencyQuery) OnlyIDX added in v1.12.0

func (rdq *ReportDependencyQuery) OnlyIDX(ctx context.Context) int

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

func (*ReportDependencyQuery) OnlyX added in v1.12.0

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

func (*ReportDependencyQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportDependencyQuery) QueryPackage added in v1.12.0

func (rdq *ReportDependencyQuery) QueryPackage() *ReportPackageQuery

QueryPackage chains the current query on the "package" edge.

func (*ReportDependencyQuery) Select added in v1.12.0

func (rdq *ReportDependencyQuery) Select(fields ...string) *ReportDependencySelect

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

client.ReportDependency.Query().
	Select(reportdependency.FieldDependencyPackageID).
	Scan(ctx, &v)

func (*ReportDependencyQuery) Unique added in v1.12.0

func (rdq *ReportDependencyQuery) Unique(unique bool) *ReportDependencyQuery

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 (*ReportDependencyQuery) Where added in v1.12.0

Where adds a new predicate for the ReportDependencyQuery builder.

func (*ReportDependencyQuery) WithPackage added in v1.12.0

func (rdq *ReportDependencyQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportDependencyQuery

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

type ReportDependencySelect added in v1.12.0

type ReportDependencySelect struct {
	*ReportDependencyQuery
	// contains filtered or unexported fields
}

ReportDependencySelect is the builder for selecting fields of ReportDependency entities.

func (*ReportDependencySelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportDependencySelect) Bool added in v1.12.0

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

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

func (*ReportDependencySelect) BoolX added in v1.12.0

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

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

func (*ReportDependencySelect) Bools added in v1.12.0

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

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

func (*ReportDependencySelect) BoolsX added in v1.12.0

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

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

func (*ReportDependencySelect) Float64 added in v1.12.0

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

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

func (*ReportDependencySelect) Float64X added in v1.12.0

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

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

func (*ReportDependencySelect) Float64s added in v1.12.0

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

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

func (*ReportDependencySelect) Float64sX added in v1.12.0

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

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

func (*ReportDependencySelect) Int added in v1.12.0

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

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

func (*ReportDependencySelect) IntX added in v1.12.0

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

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

func (*ReportDependencySelect) Ints added in v1.12.0

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

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

func (*ReportDependencySelect) IntsX added in v1.12.0

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

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

func (*ReportDependencySelect) Scan added in v1.12.0

func (rds *ReportDependencySelect) Scan(ctx context.Context, v any) error

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

func (*ReportDependencySelect) ScanX added in v1.12.0

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

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

func (*ReportDependencySelect) String added in v1.12.0

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

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

func (*ReportDependencySelect) StringX added in v1.12.0

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

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

func (*ReportDependencySelect) Strings added in v1.12.0

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

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

func (*ReportDependencySelect) StringsX added in v1.12.0

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

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

type ReportDependencyUpdate added in v1.12.0

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

ReportDependencyUpdate is the builder for updating ReportDependency entities.

func (*ReportDependencyUpdate) AddDepth added in v1.12.0

AddDepth adds i to the "depth" field.

func (*ReportDependencyUpdate) ClearCreatedAt added in v1.12.0

func (rdu *ReportDependencyUpdate) ClearCreatedAt() *ReportDependencyUpdate

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportDependencyUpdate) ClearDependencyType added in v1.12.0

func (rdu *ReportDependencyUpdate) ClearDependencyType() *ReportDependencyUpdate

ClearDependencyType clears the value of the "dependency_type" field.

func (*ReportDependencyUpdate) ClearPackage added in v1.12.0

func (rdu *ReportDependencyUpdate) ClearPackage() *ReportDependencyUpdate

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportDependencyUpdate) ClearUpdatedAt added in v1.12.0

func (rdu *ReportDependencyUpdate) ClearUpdatedAt() *ReportDependencyUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportDependencyUpdate) Exec added in v1.12.0

Exec executes the query.

func (*ReportDependencyUpdate) ExecX added in v1.12.0

func (rdu *ReportDependencyUpdate) ExecX(ctx context.Context)

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

func (*ReportDependencyUpdate) Mutation added in v1.12.0

Mutation returns the ReportDependencyMutation object of the builder.

func (*ReportDependencyUpdate) Save added in v1.12.0

func (rdu *ReportDependencyUpdate) Save(ctx context.Context) (int, error)

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

func (*ReportDependencyUpdate) SaveX added in v1.12.0

func (rdu *ReportDependencyUpdate) SaveX(ctx context.Context) int

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

func (*ReportDependencyUpdate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyUpdate) SetDependencyEcosystem added in v1.12.0

func (rdu *ReportDependencyUpdate) SetDependencyEcosystem(s string) *ReportDependencyUpdate

SetDependencyEcosystem sets the "dependency_ecosystem" field.

func (*ReportDependencyUpdate) SetDependencyName added in v1.12.0

func (rdu *ReportDependencyUpdate) SetDependencyName(s string) *ReportDependencyUpdate

SetDependencyName sets the "dependency_name" field.

func (*ReportDependencyUpdate) SetDependencyPackageID added in v1.12.0

func (rdu *ReportDependencyUpdate) SetDependencyPackageID(s string) *ReportDependencyUpdate

SetDependencyPackageID sets the "dependency_package_id" field.

func (*ReportDependencyUpdate) SetDependencyType added in v1.12.0

func (rdu *ReportDependencyUpdate) SetDependencyType(s string) *ReportDependencyUpdate

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyUpdate) SetDependencyVersion added in v1.12.0

func (rdu *ReportDependencyUpdate) SetDependencyVersion(s string) *ReportDependencyUpdate

SetDependencyVersion sets the "dependency_version" field.

func (*ReportDependencyUpdate) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportDependencyUpdate) SetNillableCreatedAt added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableCreatedAt(t *time.Time) *ReportDependencyUpdate

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

func (*ReportDependencyUpdate) SetNillableDependencyEcosystem added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableDependencyEcosystem(s *string) *ReportDependencyUpdate

SetNillableDependencyEcosystem sets the "dependency_ecosystem" field if the given value is not nil.

func (*ReportDependencyUpdate) SetNillableDependencyName added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableDependencyName(s *string) *ReportDependencyUpdate

SetNillableDependencyName sets the "dependency_name" field if the given value is not nil.

func (*ReportDependencyUpdate) SetNillableDependencyPackageID added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableDependencyPackageID(s *string) *ReportDependencyUpdate

SetNillableDependencyPackageID sets the "dependency_package_id" field if the given value is not nil.

func (*ReportDependencyUpdate) SetNillableDependencyType added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableDependencyType(s *string) *ReportDependencyUpdate

SetNillableDependencyType sets the "dependency_type" field if the given value is not nil.

func (*ReportDependencyUpdate) SetNillableDependencyVersion added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableDependencyVersion(s *string) *ReportDependencyUpdate

SetNillableDependencyVersion sets the "dependency_version" field if the given value is not nil.

func (*ReportDependencyUpdate) SetNillableDepth added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableDepth(i *int) *ReportDependencyUpdate

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportDependencyUpdate) SetNillablePackageID added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillablePackageID(id *int) *ReportDependencyUpdate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportDependencyUpdate) SetNillableUpdatedAt added in v1.12.0

func (rdu *ReportDependencyUpdate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyUpdate

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

func (*ReportDependencyUpdate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportDependencyUpdate) SetPackageID added in v1.12.0

func (rdu *ReportDependencyUpdate) SetPackageID(id int) *ReportDependencyUpdate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportDependencyUpdate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportDependencyUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyUpdate builder.

type ReportDependencyUpdateOne added in v1.12.0

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

ReportDependencyUpdateOne is the builder for updating a single ReportDependency entity.

func (*ReportDependencyUpdateOne) AddDepth added in v1.12.0

AddDepth adds i to the "depth" field.

func (*ReportDependencyUpdateOne) ClearCreatedAt added in v1.12.0

func (rduo *ReportDependencyUpdateOne) ClearCreatedAt() *ReportDependencyUpdateOne

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportDependencyUpdateOne) ClearDependencyType added in v1.12.0

func (rduo *ReportDependencyUpdateOne) ClearDependencyType() *ReportDependencyUpdateOne

ClearDependencyType clears the value of the "dependency_type" field.

func (*ReportDependencyUpdateOne) ClearPackage added in v1.12.0

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportDependencyUpdateOne) ClearUpdatedAt added in v1.12.0

func (rduo *ReportDependencyUpdateOne) ClearUpdatedAt() *ReportDependencyUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportDependencyUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportDependencyUpdateOne) ExecX added in v1.12.0

func (rduo *ReportDependencyUpdateOne) ExecX(ctx context.Context)

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

func (*ReportDependencyUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportDependencyMutation object of the builder.

func (*ReportDependencyUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportDependency entity.

func (*ReportDependencyUpdateOne) SaveX added in v1.12.0

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

func (*ReportDependencyUpdateOne) Select added in v1.12.0

func (rduo *ReportDependencyUpdateOne) Select(field string, fields ...string) *ReportDependencyUpdateOne

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

func (*ReportDependencyUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportDependencyUpdateOne) SetDependencyEcosystem added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetDependencyEcosystem(s string) *ReportDependencyUpdateOne

SetDependencyEcosystem sets the "dependency_ecosystem" field.

func (*ReportDependencyUpdateOne) SetDependencyName added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetDependencyName(s string) *ReportDependencyUpdateOne

SetDependencyName sets the "dependency_name" field.

func (*ReportDependencyUpdateOne) SetDependencyPackageID added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetDependencyPackageID(s string) *ReportDependencyUpdateOne

SetDependencyPackageID sets the "dependency_package_id" field.

func (*ReportDependencyUpdateOne) SetDependencyType added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetDependencyType(s string) *ReportDependencyUpdateOne

SetDependencyType sets the "dependency_type" field.

func (*ReportDependencyUpdateOne) SetDependencyVersion added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetDependencyVersion(s string) *ReportDependencyUpdateOne

SetDependencyVersion sets the "dependency_version" field.

func (*ReportDependencyUpdateOne) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportDependencyUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportDependencyUpdateOne

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

func (*ReportDependencyUpdateOne) SetNillableDependencyEcosystem added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableDependencyEcosystem(s *string) *ReportDependencyUpdateOne

SetNillableDependencyEcosystem sets the "dependency_ecosystem" field if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillableDependencyName added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableDependencyName(s *string) *ReportDependencyUpdateOne

SetNillableDependencyName sets the "dependency_name" field if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillableDependencyPackageID added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableDependencyPackageID(s *string) *ReportDependencyUpdateOne

SetNillableDependencyPackageID sets the "dependency_package_id" field if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillableDependencyType added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableDependencyType(s *string) *ReportDependencyUpdateOne

SetNillableDependencyType sets the "dependency_type" field if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillableDependencyVersion added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableDependencyVersion(s *string) *ReportDependencyUpdateOne

SetNillableDependencyVersion sets the "dependency_version" field if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillableDepth added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableDepth(i *int) *ReportDependencyUpdateOne

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillablePackageID added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillablePackageID(id *int) *ReportDependencyUpdateOne

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportDependencyUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rduo *ReportDependencyUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportDependencyUpdateOne

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

func (*ReportDependencyUpdateOne) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportDependencyUpdateOne) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportDependencyUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportDependencyUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportDependencyUpdate builder.

type ReportLicense added in v1.12.0

type ReportLicense struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// LicenseID holds the value of the "license_id" field.
	LicenseID string `json:"license_id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// SpdxID holds the value of the "spdx_id" field.
	SpdxID string `json:"spdx_id,omitempty"`
	// URL holds the value of the "url" field.
	URL string `json:"url,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 ReportLicenseQuery when eager-loading is set.
	Edges ReportLicenseEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportLicense is the model entity for the ReportLicense schema.

func (*ReportLicense) QueryPackage added in v1.12.0

func (rl *ReportLicense) QueryPackage() *ReportPackageQuery

QueryPackage queries the "package" edge of the ReportLicense entity.

func (*ReportLicense) String added in v1.12.0

func (rl *ReportLicense) String() string

String implements the fmt.Stringer.

func (*ReportLicense) Unwrap added in v1.12.0

func (rl *ReportLicense) Unwrap() *ReportLicense

Unwrap unwraps the ReportLicense 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 (*ReportLicense) Update added in v1.12.0

func (rl *ReportLicense) Update() *ReportLicenseUpdateOne

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

func (*ReportLicense) Value added in v1.12.0

func (rl *ReportLicense) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportLicense. This includes values selected through modifiers, order, etc.

type ReportLicenseClient added in v1.12.0

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

ReportLicenseClient is a client for the ReportLicense schema.

func NewReportLicenseClient added in v1.12.0

func NewReportLicenseClient(c config) *ReportLicenseClient

NewReportLicenseClient returns a client for the ReportLicense from the given config.

func (*ReportLicenseClient) Create added in v1.12.0

Create returns a builder for creating a ReportLicense entity.

func (*ReportLicenseClient) CreateBulk added in v1.12.0

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

func (*ReportLicenseClient) Delete added in v1.12.0

Delete returns a delete builder for ReportLicense.

func (*ReportLicenseClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportLicenseClient) DeleteOneID added in v1.12.0

func (c *ReportLicenseClient) DeleteOneID(id int) *ReportLicenseDeleteOne

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

func (*ReportLicenseClient) Get added in v1.12.0

Get returns a ReportLicense entity by its id.

func (*ReportLicenseClient) GetX added in v1.12.0

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

func (*ReportLicenseClient) Hooks added in v1.12.0

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

Hooks returns the client hooks.

func (*ReportLicenseClient) Intercept added in v1.12.0

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

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

func (*ReportLicenseClient) Interceptors added in v1.12.0

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

Interceptors returns the client interceptors.

func (*ReportLicenseClient) MapCreateBulk added in v1.12.0

func (c *ReportLicenseClient) MapCreateBulk(slice any, setFunc func(*ReportLicenseCreate, int)) *ReportLicenseCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportLicenseClient) Query added in v1.12.0

Query returns a query builder for ReportLicense.

func (*ReportLicenseClient) QueryPackage added in v1.12.0

QueryPackage queries the package edge of a ReportLicense.

func (*ReportLicenseClient) Update added in v1.12.0

Update returns an update builder for ReportLicense.

func (*ReportLicenseClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportLicenseClient) UpdateOneID added in v1.12.0

func (c *ReportLicenseClient) UpdateOneID(id int) *ReportLicenseUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReportLicenseClient) Use added in v1.12.0

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

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

type ReportLicenseCreate added in v1.12.0

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

ReportLicenseCreate is the builder for creating a ReportLicense entity.

func (*ReportLicenseCreate) Exec added in v1.12.0

func (rlc *ReportLicenseCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportLicenseCreate) ExecX added in v1.12.0

func (rlc *ReportLicenseCreate) ExecX(ctx context.Context)

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

func (*ReportLicenseCreate) Mutation added in v1.12.0

func (rlc *ReportLicenseCreate) Mutation() *ReportLicenseMutation

Mutation returns the ReportLicenseMutation object of the builder.

func (*ReportLicenseCreate) Save added in v1.12.0

Save creates the ReportLicense in the database.

func (*ReportLicenseCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportLicenseCreate) SetCreatedAt added in v1.12.0

func (rlc *ReportLicenseCreate) SetCreatedAt(t time.Time) *ReportLicenseCreate

SetCreatedAt sets the "created_at" field.

func (*ReportLicenseCreate) SetLicenseID added in v1.12.0

func (rlc *ReportLicenseCreate) SetLicenseID(s string) *ReportLicenseCreate

SetLicenseID sets the "license_id" field.

func (*ReportLicenseCreate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportLicenseCreate) SetNillableCreatedAt added in v1.12.0

func (rlc *ReportLicenseCreate) SetNillableCreatedAt(t *time.Time) *ReportLicenseCreate

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

func (*ReportLicenseCreate) SetNillableName added in v1.12.0

func (rlc *ReportLicenseCreate) SetNillableName(s *string) *ReportLicenseCreate

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportLicenseCreate) SetNillablePackageID added in v1.12.0

func (rlc *ReportLicenseCreate) SetNillablePackageID(id *int) *ReportLicenseCreate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportLicenseCreate) SetNillableSpdxID added in v1.12.0

func (rlc *ReportLicenseCreate) SetNillableSpdxID(s *string) *ReportLicenseCreate

SetNillableSpdxID sets the "spdx_id" field if the given value is not nil.

func (*ReportLicenseCreate) SetNillableURL added in v1.12.0

func (rlc *ReportLicenseCreate) SetNillableURL(s *string) *ReportLicenseCreate

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportLicenseCreate) SetNillableUpdatedAt added in v1.12.0

func (rlc *ReportLicenseCreate) SetNillableUpdatedAt(t *time.Time) *ReportLicenseCreate

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

func (*ReportLicenseCreate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportLicenseCreate) SetPackageID added in v1.12.0

func (rlc *ReportLicenseCreate) SetPackageID(id int) *ReportLicenseCreate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportLicenseCreate) SetSpdxID added in v1.12.0

func (rlc *ReportLicenseCreate) SetSpdxID(s string) *ReportLicenseCreate

SetSpdxID sets the "spdx_id" field.

func (*ReportLicenseCreate) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportLicenseCreate) SetUpdatedAt added in v1.12.0

func (rlc *ReportLicenseCreate) SetUpdatedAt(t time.Time) *ReportLicenseCreate

SetUpdatedAt sets the "updated_at" field.

type ReportLicenseCreateBulk added in v1.12.0

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

ReportLicenseCreateBulk is the builder for creating many ReportLicense entities in bulk.

func (*ReportLicenseCreateBulk) Exec added in v1.12.0

func (rlcb *ReportLicenseCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportLicenseCreateBulk) ExecX added in v1.12.0

func (rlcb *ReportLicenseCreateBulk) ExecX(ctx context.Context)

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

func (*ReportLicenseCreateBulk) Save added in v1.12.0

Save creates the ReportLicense entities in the database.

func (*ReportLicenseCreateBulk) SaveX added in v1.12.0

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

type ReportLicenseDelete added in v1.12.0

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

ReportLicenseDelete is the builder for deleting a ReportLicense entity.

func (*ReportLicenseDelete) Exec added in v1.12.0

func (rld *ReportLicenseDelete) Exec(ctx context.Context) (int, error)

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

func (*ReportLicenseDelete) ExecX added in v1.12.0

func (rld *ReportLicenseDelete) ExecX(ctx context.Context) int

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

func (*ReportLicenseDelete) Where added in v1.12.0

Where appends a list predicates to the ReportLicenseDelete builder.

type ReportLicenseDeleteOne added in v1.12.0

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

ReportLicenseDeleteOne is the builder for deleting a single ReportLicense entity.

func (*ReportLicenseDeleteOne) Exec added in v1.12.0

func (rldo *ReportLicenseDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReportLicenseDeleteOne) ExecX added in v1.12.0

func (rldo *ReportLicenseDeleteOne) ExecX(ctx context.Context)

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

func (*ReportLicenseDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportLicenseDelete builder.

type ReportLicenseEdges added in v1.12.0

type ReportLicenseEdges struct {
	// Package holds the value of the package edge.
	Package *ReportPackage `json:"package,omitempty"`
	// contains filtered or unexported fields
}

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

func (ReportLicenseEdges) PackageOrErr added in v1.12.0

func (e ReportLicenseEdges) PackageOrErr() (*ReportPackage, error)

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

type ReportLicenseGroupBy added in v1.12.0

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

ReportLicenseGroupBy is the group-by builder for ReportLicense entities.

func (*ReportLicenseGroupBy) Aggregate added in v1.12.0

func (rlgb *ReportLicenseGroupBy) Aggregate(fns ...AggregateFunc) *ReportLicenseGroupBy

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

func (*ReportLicenseGroupBy) Bool added in v1.12.0

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

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

func (*ReportLicenseGroupBy) BoolX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Bools added in v1.12.0

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

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

func (*ReportLicenseGroupBy) BoolsX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Float64 added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Float64X added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Float64s added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Float64sX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Int added in v1.12.0

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

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

func (*ReportLicenseGroupBy) IntX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Ints added in v1.12.0

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

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

func (*ReportLicenseGroupBy) IntsX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Scan added in v1.12.0

func (rlgb *ReportLicenseGroupBy) Scan(ctx context.Context, v any) error

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

func (*ReportLicenseGroupBy) ScanX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) String added in v1.12.0

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

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

func (*ReportLicenseGroupBy) StringX added in v1.12.0

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

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

func (*ReportLicenseGroupBy) Strings added in v1.12.0

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

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

func (*ReportLicenseGroupBy) StringsX added in v1.12.0

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

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

type ReportLicenseMutation added in v1.12.0

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

ReportLicenseMutation represents an operation that mutates the ReportLicense nodes in the graph.

func (*ReportLicenseMutation) AddField added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) AddedEdges added in v1.12.0

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

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

func (*ReportLicenseMutation) AddedField added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) AddedFields added in v1.12.0

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

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

func (*ReportLicenseMutation) AddedIDs added in v1.12.0

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

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

func (*ReportLicenseMutation) ClearCreatedAt added in v1.12.0

func (m *ReportLicenseMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportLicenseMutation) ClearEdge added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) ClearField added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) ClearName added in v1.12.0

func (m *ReportLicenseMutation) ClearName()

ClearName clears the value of the "name" field.

func (*ReportLicenseMutation) ClearPackage added in v1.12.0

func (m *ReportLicenseMutation) ClearPackage()

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportLicenseMutation) ClearSpdxID added in v1.12.0

func (m *ReportLicenseMutation) ClearSpdxID()

ClearSpdxID clears the value of the "spdx_id" field.

func (*ReportLicenseMutation) ClearURL added in v1.12.0

func (m *ReportLicenseMutation) ClearURL()

ClearURL clears the value of the "url" field.

func (*ReportLicenseMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportLicenseMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportLicenseMutation) ClearedEdges added in v1.12.0

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

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

func (*ReportLicenseMutation) ClearedFields added in v1.12.0

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

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

func (ReportLicenseMutation) Client added in v1.12.0

func (m ReportLicenseMutation) 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 (*ReportLicenseMutation) CreatedAt added in v1.12.0

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

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

func (*ReportLicenseMutation) CreatedAtCleared added in v1.12.0

func (m *ReportLicenseMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportLicenseMutation) EdgeCleared added in v1.12.0

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

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

func (*ReportLicenseMutation) Field added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) FieldCleared added in v1.12.0

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

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

func (*ReportLicenseMutation) Fields added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) ID added in v1.12.0

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

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

func (*ReportLicenseMutation) IDs added in v1.12.0

func (m *ReportLicenseMutation) IDs(ctx context.Context) ([]int, 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 (*ReportLicenseMutation) LicenseID added in v1.12.0

func (m *ReportLicenseMutation) LicenseID() (r string, exists bool)

LicenseID returns the value of the "license_id" field in the mutation.

func (*ReportLicenseMutation) Name added in v1.12.0

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

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

func (*ReportLicenseMutation) NameCleared added in v1.12.0

func (m *ReportLicenseMutation) NameCleared() bool

NameCleared returns if the "name" field was cleared in this mutation.

func (*ReportLicenseMutation) OldCreatedAt added in v1.12.0

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

OldCreatedAt returns the old "created_at" field's value of the ReportLicense entity. If the ReportLicense 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 (*ReportLicenseMutation) OldField added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) OldLicenseID added in v1.12.0

func (m *ReportLicenseMutation) OldLicenseID(ctx context.Context) (v string, err error)

OldLicenseID returns the old "license_id" field's value of the ReportLicense entity. If the ReportLicense 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 (*ReportLicenseMutation) OldName added in v1.12.0

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

OldName returns the old "name" field's value of the ReportLicense entity. If the ReportLicense 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 (*ReportLicenseMutation) OldSpdxID added in v1.12.0

func (m *ReportLicenseMutation) OldSpdxID(ctx context.Context) (v string, err error)

OldSpdxID returns the old "spdx_id" field's value of the ReportLicense entity. If the ReportLicense 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 (*ReportLicenseMutation) OldURL added in v1.12.0

func (m *ReportLicenseMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the ReportLicense entity. If the ReportLicense 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 (*ReportLicenseMutation) OldUpdatedAt added in v1.12.0

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

OldUpdatedAt returns the old "updated_at" field's value of the ReportLicense entity. If the ReportLicense 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 (*ReportLicenseMutation) Op added in v1.12.0

func (m *ReportLicenseMutation) Op() Op

Op returns the operation name.

func (*ReportLicenseMutation) PackageCleared added in v1.12.0

func (m *ReportLicenseMutation) PackageCleared() bool

PackageCleared reports if the "package" edge to the ReportPackage entity was cleared.

func (*ReportLicenseMutation) PackageID added in v1.12.0

func (m *ReportLicenseMutation) PackageID() (id int, exists bool)

PackageID returns the "package" edge ID in the mutation.

func (*ReportLicenseMutation) PackageIDs added in v1.12.0

func (m *ReportLicenseMutation) PackageIDs() (ids []int)

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

func (*ReportLicenseMutation) RemovedEdges added in v1.12.0

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

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

func (*ReportLicenseMutation) RemovedIDs added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) ResetCreatedAt added in v1.12.0

func (m *ReportLicenseMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportLicenseMutation) ResetEdge added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) ResetField added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) ResetLicenseID added in v1.12.0

func (m *ReportLicenseMutation) ResetLicenseID()

ResetLicenseID resets all changes to the "license_id" field.

func (*ReportLicenseMutation) ResetName added in v1.12.0

func (m *ReportLicenseMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ReportLicenseMutation) ResetPackage added in v1.12.0

func (m *ReportLicenseMutation) ResetPackage()

ResetPackage resets all changes to the "package" edge.

func (*ReportLicenseMutation) ResetSpdxID added in v1.12.0

func (m *ReportLicenseMutation) ResetSpdxID()

ResetSpdxID resets all changes to the "spdx_id" field.

func (*ReportLicenseMutation) ResetURL added in v1.12.0

func (m *ReportLicenseMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*ReportLicenseMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportLicenseMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportLicenseMutation) SetCreatedAt added in v1.12.0

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

SetCreatedAt sets the "created_at" field.

func (*ReportLicenseMutation) SetField added in v1.12.0

func (m *ReportLicenseMutation) 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 (*ReportLicenseMutation) SetLicenseID added in v1.12.0

func (m *ReportLicenseMutation) SetLicenseID(s string)

SetLicenseID sets the "license_id" field.

func (*ReportLicenseMutation) SetName added in v1.12.0

func (m *ReportLicenseMutation) SetName(s string)

SetName sets the "name" field.

func (*ReportLicenseMutation) SetOp added in v1.12.0

func (m *ReportLicenseMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportLicenseMutation) SetPackageID added in v1.12.0

func (m *ReportLicenseMutation) SetPackageID(id int)

SetPackageID sets the "package" edge to the ReportPackage entity by id.

func (*ReportLicenseMutation) SetSpdxID added in v1.12.0

func (m *ReportLicenseMutation) SetSpdxID(s string)

SetSpdxID sets the "spdx_id" field.

func (*ReportLicenseMutation) SetURL added in v1.12.0

func (m *ReportLicenseMutation) SetURL(s string)

SetURL sets the "url" field.

func (*ReportLicenseMutation) SetUpdatedAt added in v1.12.0

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

SetUpdatedAt sets the "updated_at" field.

func (*ReportLicenseMutation) SpdxID added in v1.12.0

func (m *ReportLicenseMutation) SpdxID() (r string, exists bool)

SpdxID returns the value of the "spdx_id" field in the mutation.

func (*ReportLicenseMutation) SpdxIDCleared added in v1.12.0

func (m *ReportLicenseMutation) SpdxIDCleared() bool

SpdxIDCleared returns if the "spdx_id" field was cleared in this mutation.

func (ReportLicenseMutation) Tx added in v1.12.0

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

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

func (*ReportLicenseMutation) Type added in v1.12.0

func (m *ReportLicenseMutation) Type() string

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

func (*ReportLicenseMutation) URL added in v1.12.0

func (m *ReportLicenseMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*ReportLicenseMutation) URLCleared added in v1.12.0

func (m *ReportLicenseMutation) URLCleared() bool

URLCleared returns if the "url" field was cleared in this mutation.

func (*ReportLicenseMutation) UpdatedAt added in v1.12.0

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

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

func (*ReportLicenseMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportLicenseMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportLicenseMutation) Where added in v1.12.0

Where appends a list predicates to the ReportLicenseMutation builder.

func (*ReportLicenseMutation) WhereP added in v1.12.0

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

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

type ReportLicenseQuery added in v1.12.0

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

ReportLicenseQuery is the builder for querying ReportLicense entities.

func (*ReportLicenseQuery) Aggregate added in v1.12.0

func (rlq *ReportLicenseQuery) Aggregate(fns ...AggregateFunc) *ReportLicenseSelect

Aggregate returns a ReportLicenseSelect configured with the given aggregations.

func (*ReportLicenseQuery) All added in v1.12.0

All executes the query and returns a list of ReportLicenses.

func (*ReportLicenseQuery) AllX added in v1.12.0

func (rlq *ReportLicenseQuery) AllX(ctx context.Context) []*ReportLicense

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

func (*ReportLicenseQuery) Clone added in v1.12.0

func (rlq *ReportLicenseQuery) Clone() *ReportLicenseQuery

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

func (*ReportLicenseQuery) Count added in v1.12.0

func (rlq *ReportLicenseQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportLicenseQuery) CountX added in v1.12.0

func (rlq *ReportLicenseQuery) CountX(ctx context.Context) int

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

func (*ReportLicenseQuery) Exist added in v1.12.0

func (rlq *ReportLicenseQuery) Exist(ctx context.Context) (bool, error)

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

func (*ReportLicenseQuery) ExistX added in v1.12.0

func (rlq *ReportLicenseQuery) ExistX(ctx context.Context) bool

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

func (*ReportLicenseQuery) First added in v1.12.0

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

func (*ReportLicenseQuery) FirstID added in v1.12.0

func (rlq *ReportLicenseQuery) FirstID(ctx context.Context) (id int, err error)

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

func (*ReportLicenseQuery) FirstIDX added in v1.12.0

func (rlq *ReportLicenseQuery) FirstIDX(ctx context.Context) int

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

func (*ReportLicenseQuery) FirstX added in v1.12.0

func (rlq *ReportLicenseQuery) FirstX(ctx context.Context) *ReportLicense

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

func (*ReportLicenseQuery) GroupBy added in v1.12.0

func (rlq *ReportLicenseQuery) GroupBy(field string, fields ...string) *ReportLicenseGroupBy

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

client.ReportLicense.Query().
	GroupBy(reportlicense.FieldLicenseID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportLicenseQuery) IDs added in v1.12.0

func (rlq *ReportLicenseQuery) IDs(ctx context.Context) (ids []int, err error)

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

func (*ReportLicenseQuery) IDsX added in v1.12.0

func (rlq *ReportLicenseQuery) IDsX(ctx context.Context) []int

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

func (*ReportLicenseQuery) Limit added in v1.12.0

func (rlq *ReportLicenseQuery) Limit(limit int) *ReportLicenseQuery

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

func (*ReportLicenseQuery) Offset added in v1.12.0

func (rlq *ReportLicenseQuery) Offset(offset int) *ReportLicenseQuery

Offset to start from.

func (*ReportLicenseQuery) Only added in v1.12.0

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

func (*ReportLicenseQuery) OnlyID added in v1.12.0

func (rlq *ReportLicenseQuery) OnlyID(ctx context.Context) (id int, err error)

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

func (*ReportLicenseQuery) OnlyIDX added in v1.12.0

func (rlq *ReportLicenseQuery) OnlyIDX(ctx context.Context) int

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

func (*ReportLicenseQuery) OnlyX added in v1.12.0

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

func (*ReportLicenseQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportLicenseQuery) QueryPackage added in v1.12.0

func (rlq *ReportLicenseQuery) QueryPackage() *ReportPackageQuery

QueryPackage chains the current query on the "package" edge.

func (*ReportLicenseQuery) Select added in v1.12.0

func (rlq *ReportLicenseQuery) Select(fields ...string) *ReportLicenseSelect

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

client.ReportLicense.Query().
	Select(reportlicense.FieldLicenseID).
	Scan(ctx, &v)

func (*ReportLicenseQuery) Unique added in v1.12.0

func (rlq *ReportLicenseQuery) Unique(unique bool) *ReportLicenseQuery

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 (*ReportLicenseQuery) Where added in v1.12.0

Where adds a new predicate for the ReportLicenseQuery builder.

func (*ReportLicenseQuery) WithPackage added in v1.12.0

func (rlq *ReportLicenseQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportLicenseQuery

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

type ReportLicenseSelect added in v1.12.0

type ReportLicenseSelect struct {
	*ReportLicenseQuery
	// contains filtered or unexported fields
}

ReportLicenseSelect is the builder for selecting fields of ReportLicense entities.

func (*ReportLicenseSelect) Aggregate added in v1.12.0

func (rls *ReportLicenseSelect) Aggregate(fns ...AggregateFunc) *ReportLicenseSelect

Aggregate adds the given aggregation functions to the selector query.

func (*ReportLicenseSelect) Bool added in v1.12.0

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

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

func (*ReportLicenseSelect) BoolX added in v1.12.0

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

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

func (*ReportLicenseSelect) Bools added in v1.12.0

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

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

func (*ReportLicenseSelect) BoolsX added in v1.12.0

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

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

func (*ReportLicenseSelect) Float64 added in v1.12.0

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

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

func (*ReportLicenseSelect) Float64X added in v1.12.0

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

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

func (*ReportLicenseSelect) Float64s added in v1.12.0

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

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

func (*ReportLicenseSelect) Float64sX added in v1.12.0

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

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

func (*ReportLicenseSelect) Int added in v1.12.0

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

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

func (*ReportLicenseSelect) IntX added in v1.12.0

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

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

func (*ReportLicenseSelect) Ints added in v1.12.0

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

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

func (*ReportLicenseSelect) IntsX added in v1.12.0

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

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

func (*ReportLicenseSelect) Scan added in v1.12.0

func (rls *ReportLicenseSelect) Scan(ctx context.Context, v any) error

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

func (*ReportLicenseSelect) ScanX added in v1.12.0

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

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

func (*ReportLicenseSelect) String added in v1.12.0

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

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

func (*ReportLicenseSelect) StringX added in v1.12.0

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

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

func (*ReportLicenseSelect) Strings added in v1.12.0

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

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

func (*ReportLicenseSelect) StringsX added in v1.12.0

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

StringsX is like Strings, but panics if an error occurs.

type ReportLicenseUpdate added in v1.12.0

type ReportLicenseUpdate struct {
	// contains filtered or unexported fields
}

ReportLicenseUpdate is the builder for updating ReportLicense entities.

func (*ReportLicenseUpdate) ClearCreatedAt added in v1.12.0

func (rlu *ReportLicenseUpdate) ClearCreatedAt() *ReportLicenseUpdate

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportLicenseUpdate) ClearName added in v1.12.0

func (rlu *ReportLicenseUpdate) ClearName() *ReportLicenseUpdate

ClearName clears the value of the "name" field.

func (*ReportLicenseUpdate) ClearPackage added in v1.12.0

func (rlu *ReportLicenseUpdate) ClearPackage() *ReportLicenseUpdate

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportLicenseUpdate) ClearSpdxID added in v1.12.0

func (rlu *ReportLicenseUpdate) ClearSpdxID() *ReportLicenseUpdate

ClearSpdxID clears the value of the "spdx_id" field.

func (*ReportLicenseUpdate) ClearURL added in v1.12.0

func (rlu *ReportLicenseUpdate) ClearURL() *ReportLicenseUpdate

ClearURL clears the value of the "url" field.

func (*ReportLicenseUpdate) ClearUpdatedAt added in v1.12.0

func (rlu *ReportLicenseUpdate) ClearUpdatedAt() *ReportLicenseUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportLicenseUpdate) Exec added in v1.12.0

func (rlu *ReportLicenseUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportLicenseUpdate) ExecX added in v1.12.0

func (rlu *ReportLicenseUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportLicenseUpdate) Mutation added in v1.12.0

func (rlu *ReportLicenseUpdate) Mutation() *ReportLicenseMutation

Mutation returns the ReportLicenseMutation object of the builder.

func (*ReportLicenseUpdate) Save added in v1.12.0

func (rlu *ReportLicenseUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportLicenseUpdate) SaveX added in v1.12.0

func (rlu *ReportLicenseUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportLicenseUpdate) SetCreatedAt added in v1.12.0

func (rlu *ReportLicenseUpdate) SetCreatedAt(t time.Time) *ReportLicenseUpdate

SetCreatedAt sets the "created_at" field.

func (*ReportLicenseUpdate) SetLicenseID added in v1.12.0

func (rlu *ReportLicenseUpdate) SetLicenseID(s string) *ReportLicenseUpdate

SetLicenseID sets the "license_id" field.

func (*ReportLicenseUpdate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportLicenseUpdate) SetNillableCreatedAt added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillableCreatedAt(t *time.Time) *ReportLicenseUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportLicenseUpdate) SetNillableLicenseID added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillableLicenseID(s *string) *ReportLicenseUpdate

SetNillableLicenseID sets the "license_id" field if the given value is not nil.

func (*ReportLicenseUpdate) SetNillableName added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillableName(s *string) *ReportLicenseUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportLicenseUpdate) SetNillablePackageID added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillablePackageID(id *int) *ReportLicenseUpdate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportLicenseUpdate) SetNillableSpdxID added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillableSpdxID(s *string) *ReportLicenseUpdate

SetNillableSpdxID sets the "spdx_id" field if the given value is not nil.

func (*ReportLicenseUpdate) SetNillableURL added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillableURL(s *string) *ReportLicenseUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportLicenseUpdate) SetNillableUpdatedAt added in v1.12.0

func (rlu *ReportLicenseUpdate) SetNillableUpdatedAt(t *time.Time) *ReportLicenseUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportLicenseUpdate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportLicenseUpdate) SetPackageID added in v1.12.0

func (rlu *ReportLicenseUpdate) SetPackageID(id int) *ReportLicenseUpdate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportLicenseUpdate) SetSpdxID added in v1.12.0

func (rlu *ReportLicenseUpdate) SetSpdxID(s string) *ReportLicenseUpdate

SetSpdxID sets the "spdx_id" field.

func (*ReportLicenseUpdate) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportLicenseUpdate) SetUpdatedAt added in v1.12.0

func (rlu *ReportLicenseUpdate) SetUpdatedAt(t time.Time) *ReportLicenseUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ReportLicenseUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportLicenseUpdate builder.

type ReportLicenseUpdateOne added in v1.12.0

type ReportLicenseUpdateOne struct {
	// contains filtered or unexported fields
}

ReportLicenseUpdateOne is the builder for updating a single ReportLicense entity.

func (*ReportLicenseUpdateOne) ClearCreatedAt added in v1.12.0

func (rluo *ReportLicenseUpdateOne) ClearCreatedAt() *ReportLicenseUpdateOne

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportLicenseUpdateOne) ClearName added in v1.12.0

ClearName clears the value of the "name" field.

func (*ReportLicenseUpdateOne) ClearPackage added in v1.12.0

func (rluo *ReportLicenseUpdateOne) ClearPackage() *ReportLicenseUpdateOne

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportLicenseUpdateOne) ClearSpdxID added in v1.12.0

func (rluo *ReportLicenseUpdateOne) ClearSpdxID() *ReportLicenseUpdateOne

ClearSpdxID clears the value of the "spdx_id" field.

func (*ReportLicenseUpdateOne) ClearURL added in v1.12.0

ClearURL clears the value of the "url" field.

func (*ReportLicenseUpdateOne) ClearUpdatedAt added in v1.12.0

func (rluo *ReportLicenseUpdateOne) ClearUpdatedAt() *ReportLicenseUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportLicenseUpdateOne) Exec added in v1.12.0

func (rluo *ReportLicenseUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReportLicenseUpdateOne) ExecX added in v1.12.0

func (rluo *ReportLicenseUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportLicenseUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportLicenseMutation object of the builder.

func (*ReportLicenseUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportLicense entity.

func (*ReportLicenseUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportLicenseUpdateOne) Select added in v1.12.0

func (rluo *ReportLicenseUpdateOne) Select(field string, fields ...string) *ReportLicenseUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportLicenseUpdateOne) SetCreatedAt added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetCreatedAt(t time.Time) *ReportLicenseUpdateOne

SetCreatedAt sets the "created_at" field.

func (*ReportLicenseUpdateOne) SetLicenseID added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetLicenseID(s string) *ReportLicenseUpdateOne

SetLicenseID sets the "license_id" field.

func (*ReportLicenseUpdateOne) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportLicenseUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportLicenseUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportLicenseUpdateOne) SetNillableLicenseID added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillableLicenseID(s *string) *ReportLicenseUpdateOne

SetNillableLicenseID sets the "license_id" field if the given value is not nil.

func (*ReportLicenseUpdateOne) SetNillableName added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillableName(s *string) *ReportLicenseUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportLicenseUpdateOne) SetNillablePackageID added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillablePackageID(id *int) *ReportLicenseUpdateOne

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportLicenseUpdateOne) SetNillableSpdxID added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillableSpdxID(s *string) *ReportLicenseUpdateOne

SetNillableSpdxID sets the "spdx_id" field if the given value is not nil.

func (*ReportLicenseUpdateOne) SetNillableURL added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillableURL(s *string) *ReportLicenseUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportLicenseUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportLicenseUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportLicenseUpdateOne) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportLicenseUpdateOne) SetPackageID added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetPackageID(id int) *ReportLicenseUpdateOne

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportLicenseUpdateOne) SetSpdxID added in v1.12.0

SetSpdxID sets the "spdx_id" field.

func (*ReportLicenseUpdateOne) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportLicenseUpdateOne) SetUpdatedAt added in v1.12.0

func (rluo *ReportLicenseUpdateOne) SetUpdatedAt(t time.Time) *ReportLicenseUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*ReportLicenseUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportLicenseUpdate builder.

type ReportLicenses added in v1.12.0

type ReportLicenses []*ReportLicense

ReportLicenses is a parsable slice of ReportLicense.

type ReportMalware added in v1.12.0

type ReportMalware struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// AnalysisID holds the value of the "analysis_id" field.
	AnalysisID string `json:"analysis_id,omitempty"`
	// IsMalware holds the value of the "is_malware" field.
	IsMalware bool `json:"is_malware,omitempty"`
	// IsSuspicious holds the value of the "is_suspicious" field.
	IsSuspicious bool `json:"is_suspicious,omitempty"`
	// Confidence holds the value of the "confidence" field.
	Confidence string `json:"confidence,omitempty"`
	// Report holds the value of the "report" field.
	Report map[string]interface{} `json:"report,omitempty"`
	// VerificationRecord holds the value of the "verification_record" field.
	VerificationRecord map[string]interface{} `json:"verification_record,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 ReportMalwareQuery when eager-loading is set.
	Edges ReportMalwareEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportMalware is the model entity for the ReportMalware schema.

func (*ReportMalware) QueryPackage added in v1.12.0

func (rm *ReportMalware) QueryPackage() *ReportPackageQuery

QueryPackage queries the "package" edge of the ReportMalware entity.

func (*ReportMalware) String added in v1.12.0

func (rm *ReportMalware) String() string

String implements the fmt.Stringer.

func (*ReportMalware) Unwrap added in v1.12.0

func (rm *ReportMalware) Unwrap() *ReportMalware

Unwrap unwraps the ReportMalware 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 (*ReportMalware) Update added in v1.12.0

func (rm *ReportMalware) Update() *ReportMalwareUpdateOne

Update returns a builder for updating this ReportMalware. Note that you need to call ReportMalware.Unwrap() before calling this method if this ReportMalware was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportMalware) Value added in v1.12.0

func (rm *ReportMalware) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportMalware. This includes values selected through modifiers, order, etc.

type ReportMalwareClient added in v1.12.0

type ReportMalwareClient struct {
	// contains filtered or unexported fields
}

ReportMalwareClient is a client for the ReportMalware schema.

func NewReportMalwareClient added in v1.12.0

func NewReportMalwareClient(c config) *ReportMalwareClient

NewReportMalwareClient returns a client for the ReportMalware from the given config.

func (*ReportMalwareClient) Create added in v1.12.0

Create returns a builder for creating a ReportMalware entity.

func (*ReportMalwareClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportMalware entities.

func (*ReportMalwareClient) Delete added in v1.12.0

Delete returns a delete builder for ReportMalware.

func (*ReportMalwareClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportMalwareClient) DeleteOneID added in v1.12.0

func (c *ReportMalwareClient) DeleteOneID(id int) *ReportMalwareDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportMalwareClient) Get added in v1.12.0

Get returns a ReportMalware entity by its id.

func (*ReportMalwareClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportMalwareClient) Hooks added in v1.12.0

func (c *ReportMalwareClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportMalwareClient) Intercept added in v1.12.0

func (c *ReportMalwareClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportmalware.Intercept(f(g(h())))`.

func (*ReportMalwareClient) Interceptors added in v1.12.0

func (c *ReportMalwareClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportMalwareClient) MapCreateBulk added in v1.12.0

func (c *ReportMalwareClient) MapCreateBulk(slice any, setFunc func(*ReportMalwareCreate, int)) *ReportMalwareCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportMalwareClient) Query added in v1.12.0

Query returns a query builder for ReportMalware.

func (*ReportMalwareClient) QueryPackage added in v1.12.0

QueryPackage queries the package edge of a ReportMalware.

func (*ReportMalwareClient) Update added in v1.12.0

Update returns an update builder for ReportMalware.

func (*ReportMalwareClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportMalwareClient) UpdateOneID added in v1.12.0

func (c *ReportMalwareClient) UpdateOneID(id int) *ReportMalwareUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReportMalwareClient) Use added in v1.12.0

func (c *ReportMalwareClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportmalware.Hooks(f(g(h())))`.

type ReportMalwareCreate added in v1.12.0

type ReportMalwareCreate struct {
	// contains filtered or unexported fields
}

ReportMalwareCreate is the builder for creating a ReportMalware entity.

func (*ReportMalwareCreate) Exec added in v1.12.0

func (rmc *ReportMalwareCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportMalwareCreate) ExecX added in v1.12.0

func (rmc *ReportMalwareCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportMalwareCreate) Mutation added in v1.12.0

func (rmc *ReportMalwareCreate) Mutation() *ReportMalwareMutation

Mutation returns the ReportMalwareMutation object of the builder.

func (*ReportMalwareCreate) Save added in v1.12.0

Save creates the ReportMalware in the database.

func (*ReportMalwareCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportMalwareCreate) SetAnalysisID added in v1.12.0

func (rmc *ReportMalwareCreate) SetAnalysisID(s string) *ReportMalwareCreate

SetAnalysisID sets the "analysis_id" field.

func (*ReportMalwareCreate) SetConfidence added in v1.12.0

func (rmc *ReportMalwareCreate) SetConfidence(s string) *ReportMalwareCreate

SetConfidence sets the "confidence" field.

func (*ReportMalwareCreate) SetCreatedAt added in v1.12.0

func (rmc *ReportMalwareCreate) SetCreatedAt(t time.Time) *ReportMalwareCreate

SetCreatedAt sets the "created_at" field.

func (*ReportMalwareCreate) SetIsMalware added in v1.12.0

func (rmc *ReportMalwareCreate) SetIsMalware(b bool) *ReportMalwareCreate

SetIsMalware sets the "is_malware" field.

func (*ReportMalwareCreate) SetIsSuspicious added in v1.12.0

func (rmc *ReportMalwareCreate) SetIsSuspicious(b bool) *ReportMalwareCreate

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportMalwareCreate) SetNillableConfidence added in v1.12.0

func (rmc *ReportMalwareCreate) SetNillableConfidence(s *string) *ReportMalwareCreate

SetNillableConfidence sets the "confidence" field if the given value is not nil.

func (*ReportMalwareCreate) SetNillableCreatedAt added in v1.12.0

func (rmc *ReportMalwareCreate) SetNillableCreatedAt(t *time.Time) *ReportMalwareCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportMalwareCreate) SetNillableIsMalware added in v1.12.0

func (rmc *ReportMalwareCreate) SetNillableIsMalware(b *bool) *ReportMalwareCreate

SetNillableIsMalware sets the "is_malware" field if the given value is not nil.

func (*ReportMalwareCreate) SetNillableIsSuspicious added in v1.12.0

func (rmc *ReportMalwareCreate) SetNillableIsSuspicious(b *bool) *ReportMalwareCreate

SetNillableIsSuspicious sets the "is_suspicious" field if the given value is not nil.

func (*ReportMalwareCreate) SetNillablePackageID added in v1.12.0

func (rmc *ReportMalwareCreate) SetNillablePackageID(id *int) *ReportMalwareCreate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportMalwareCreate) SetNillableUpdatedAt added in v1.12.0

func (rmc *ReportMalwareCreate) SetNillableUpdatedAt(t *time.Time) *ReportMalwareCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportMalwareCreate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportMalwareCreate) SetPackageID added in v1.12.0

func (rmc *ReportMalwareCreate) SetPackageID(id int) *ReportMalwareCreate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportMalwareCreate) SetReport added in v1.12.0

func (rmc *ReportMalwareCreate) SetReport(m map[string]interface{}) *ReportMalwareCreate

SetReport sets the "report" field.

func (*ReportMalwareCreate) SetUpdatedAt added in v1.12.0

func (rmc *ReportMalwareCreate) SetUpdatedAt(t time.Time) *ReportMalwareCreate

SetUpdatedAt sets the "updated_at" field.

func (*ReportMalwareCreate) SetVerificationRecord added in v1.12.0

func (rmc *ReportMalwareCreate) SetVerificationRecord(m map[string]interface{}) *ReportMalwareCreate

SetVerificationRecord sets the "verification_record" field.

type ReportMalwareCreateBulk added in v1.12.0

type ReportMalwareCreateBulk struct {
	// contains filtered or unexported fields
}

ReportMalwareCreateBulk is the builder for creating many ReportMalware entities in bulk.

func (*ReportMalwareCreateBulk) Exec added in v1.12.0

func (rmcb *ReportMalwareCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportMalwareCreateBulk) ExecX added in v1.12.0

func (rmcb *ReportMalwareCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportMalwareCreateBulk) Save added in v1.12.0

Save creates the ReportMalware entities in the database.

func (*ReportMalwareCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportMalwareDelete added in v1.12.0

type ReportMalwareDelete struct {
	// contains filtered or unexported fields
}

ReportMalwareDelete is the builder for deleting a ReportMalware entity.

func (*ReportMalwareDelete) Exec added in v1.12.0

func (rmd *ReportMalwareDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportMalwareDelete) ExecX added in v1.12.0

func (rmd *ReportMalwareDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportMalwareDelete) Where added in v1.12.0

Where appends a list predicates to the ReportMalwareDelete builder.

type ReportMalwareDeleteOne added in v1.12.0

type ReportMalwareDeleteOne struct {
	// contains filtered or unexported fields
}

ReportMalwareDeleteOne is the builder for deleting a single ReportMalware entity.

func (*ReportMalwareDeleteOne) Exec added in v1.12.0

func (rmdo *ReportMalwareDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReportMalwareDeleteOne) ExecX added in v1.12.0

func (rmdo *ReportMalwareDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportMalwareDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportMalwareDelete builder.

type ReportMalwareEdges added in v1.12.0

type ReportMalwareEdges struct {
	// Package holds the value of the package edge.
	Package *ReportPackage `json:"package,omitempty"`
	// contains filtered or unexported fields
}

ReportMalwareEdges holds the relations/edges for other nodes in the graph.

func (ReportMalwareEdges) PackageOrErr added in v1.12.0

func (e ReportMalwareEdges) PackageOrErr() (*ReportPackage, error)

PackageOrErr returns the Package value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReportMalwareGroupBy added in v1.12.0

type ReportMalwareGroupBy struct {
	// contains filtered or unexported fields
}

ReportMalwareGroupBy is the group-by builder for ReportMalware entities.

func (*ReportMalwareGroupBy) Aggregate added in v1.12.0

func (rmgb *ReportMalwareGroupBy) Aggregate(fns ...AggregateFunc) *ReportMalwareGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportMalwareGroupBy) Bool added in v1.12.0

func (s *ReportMalwareGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) BoolX added in v1.12.0

func (s *ReportMalwareGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportMalwareGroupBy) Bools added in v1.12.0

func (s *ReportMalwareGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) BoolsX added in v1.12.0

func (s *ReportMalwareGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportMalwareGroupBy) Float64 added in v1.12.0

func (s *ReportMalwareGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) Float64X added in v1.12.0

func (s *ReportMalwareGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportMalwareGroupBy) Float64s added in v1.12.0

func (s *ReportMalwareGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) Float64sX added in v1.12.0

func (s *ReportMalwareGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportMalwareGroupBy) Int added in v1.12.0

func (s *ReportMalwareGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) IntX added in v1.12.0

func (s *ReportMalwareGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportMalwareGroupBy) Ints added in v1.12.0

func (s *ReportMalwareGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) IntsX added in v1.12.0

func (s *ReportMalwareGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportMalwareGroupBy) Scan added in v1.12.0

func (rmgb *ReportMalwareGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportMalwareGroupBy) ScanX added in v1.12.0

func (s *ReportMalwareGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportMalwareGroupBy) String added in v1.12.0

func (s *ReportMalwareGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) StringX added in v1.12.0

func (s *ReportMalwareGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportMalwareGroupBy) Strings added in v1.12.0

func (s *ReportMalwareGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportMalwareGroupBy) StringsX added in v1.12.0

func (s *ReportMalwareGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportMalwareMutation added in v1.12.0

type ReportMalwareMutation struct {
	// contains filtered or unexported fields
}

ReportMalwareMutation represents an operation that mutates the ReportMalware nodes in the graph.

func (*ReportMalwareMutation) AddField added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) AddedEdges added in v1.12.0

func (m *ReportMalwareMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportMalwareMutation) AddedField added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) AddedFields added in v1.12.0

func (m *ReportMalwareMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportMalwareMutation) AddedIDs added in v1.12.0

func (m *ReportMalwareMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportMalwareMutation) AnalysisID added in v1.12.0

func (m *ReportMalwareMutation) AnalysisID() (r string, exists bool)

AnalysisID returns the value of the "analysis_id" field in the mutation.

func (*ReportMalwareMutation) ClearConfidence added in v1.12.0

func (m *ReportMalwareMutation) ClearConfidence()

ClearConfidence clears the value of the "confidence" field.

func (*ReportMalwareMutation) ClearCreatedAt added in v1.12.0

func (m *ReportMalwareMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportMalwareMutation) ClearEdge added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) ClearField added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) ClearPackage added in v1.12.0

func (m *ReportMalwareMutation) ClearPackage()

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportMalwareMutation) ClearReport added in v1.12.0

func (m *ReportMalwareMutation) ClearReport()

ClearReport clears the value of the "report" field.

func (*ReportMalwareMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportMalwareMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportMalwareMutation) ClearVerificationRecord added in v1.12.0

func (m *ReportMalwareMutation) ClearVerificationRecord()

ClearVerificationRecord clears the value of the "verification_record" field.

func (*ReportMalwareMutation) ClearedEdges added in v1.12.0

func (m *ReportMalwareMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportMalwareMutation) ClearedFields added in v1.12.0

func (m *ReportMalwareMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportMalwareMutation) Client added in v1.12.0

func (m ReportMalwareMutation) 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 (*ReportMalwareMutation) Confidence added in v1.12.0

func (m *ReportMalwareMutation) Confidence() (r string, exists bool)

Confidence returns the value of the "confidence" field in the mutation.

func (*ReportMalwareMutation) ConfidenceCleared added in v1.12.0

func (m *ReportMalwareMutation) ConfidenceCleared() bool

ConfidenceCleared returns if the "confidence" field was cleared in this mutation.

func (*ReportMalwareMutation) CreatedAt added in v1.12.0

func (m *ReportMalwareMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportMalwareMutation) CreatedAtCleared added in v1.12.0

func (m *ReportMalwareMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportMalwareMutation) EdgeCleared added in v1.12.0

func (m *ReportMalwareMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportMalwareMutation) Field added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) FieldCleared added in v1.12.0

func (m *ReportMalwareMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportMalwareMutation) Fields added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) ID added in v1.12.0

func (m *ReportMalwareMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportMalwareMutation) IDs added in v1.12.0

func (m *ReportMalwareMutation) IDs(ctx context.Context) ([]int, 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 (*ReportMalwareMutation) IsMalware added in v1.12.0

func (m *ReportMalwareMutation) IsMalware() (r bool, exists bool)

IsMalware returns the value of the "is_malware" field in the mutation.

func (*ReportMalwareMutation) IsSuspicious added in v1.12.0

func (m *ReportMalwareMutation) IsSuspicious() (r bool, exists bool)

IsSuspicious returns the value of the "is_suspicious" field in the mutation.

func (*ReportMalwareMutation) OldAnalysisID added in v1.12.0

func (m *ReportMalwareMutation) OldAnalysisID(ctx context.Context) (v string, err error)

OldAnalysisID returns the old "analysis_id" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldConfidence added in v1.12.0

func (m *ReportMalwareMutation) OldConfidence(ctx context.Context) (v string, err error)

OldConfidence returns the old "confidence" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldCreatedAt added in v1.12.0

func (m *ReportMalwareMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldField added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) OldIsMalware added in v1.12.0

func (m *ReportMalwareMutation) OldIsMalware(ctx context.Context) (v bool, err error)

OldIsMalware returns the old "is_malware" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldIsSuspicious added in v1.12.0

func (m *ReportMalwareMutation) OldIsSuspicious(ctx context.Context) (v bool, err error)

OldIsSuspicious returns the old "is_suspicious" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldReport added in v1.12.0

func (m *ReportMalwareMutation) OldReport(ctx context.Context) (v map[string]interface{}, err error)

OldReport returns the old "report" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldUpdatedAt added in v1.12.0

func (m *ReportMalwareMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) OldVerificationRecord added in v1.12.0

func (m *ReportMalwareMutation) OldVerificationRecord(ctx context.Context) (v map[string]interface{}, err error)

OldVerificationRecord returns the old "verification_record" field's value of the ReportMalware entity. If the ReportMalware 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 (*ReportMalwareMutation) Op added in v1.12.0

func (m *ReportMalwareMutation) Op() Op

Op returns the operation name.

func (*ReportMalwareMutation) PackageCleared added in v1.12.0

func (m *ReportMalwareMutation) PackageCleared() bool

PackageCleared reports if the "package" edge to the ReportPackage entity was cleared.

func (*ReportMalwareMutation) PackageID added in v1.12.0

func (m *ReportMalwareMutation) PackageID() (id int, exists bool)

PackageID returns the "package" edge ID in the mutation.

func (*ReportMalwareMutation) PackageIDs added in v1.12.0

func (m *ReportMalwareMutation) PackageIDs() (ids []int)

PackageIDs returns the "package" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PackageID instead. It exists only for internal usage by the builders.

func (*ReportMalwareMutation) RemovedEdges added in v1.12.0

func (m *ReportMalwareMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportMalwareMutation) RemovedIDs added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) Report added in v1.12.0

func (m *ReportMalwareMutation) Report() (r map[string]interface{}, exists bool)

Report returns the value of the "report" field in the mutation.

func (*ReportMalwareMutation) ReportCleared added in v1.12.0

func (m *ReportMalwareMutation) ReportCleared() bool

ReportCleared returns if the "report" field was cleared in this mutation.

func (*ReportMalwareMutation) ResetAnalysisID added in v1.12.0

func (m *ReportMalwareMutation) ResetAnalysisID()

ResetAnalysisID resets all changes to the "analysis_id" field.

func (*ReportMalwareMutation) ResetConfidence added in v1.12.0

func (m *ReportMalwareMutation) ResetConfidence()

ResetConfidence resets all changes to the "confidence" field.

func (*ReportMalwareMutation) ResetCreatedAt added in v1.12.0

func (m *ReportMalwareMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportMalwareMutation) ResetEdge added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) ResetField added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) ResetIsMalware added in v1.12.0

func (m *ReportMalwareMutation) ResetIsMalware()

ResetIsMalware resets all changes to the "is_malware" field.

func (*ReportMalwareMutation) ResetIsSuspicious added in v1.12.0

func (m *ReportMalwareMutation) ResetIsSuspicious()

ResetIsSuspicious resets all changes to the "is_suspicious" field.

func (*ReportMalwareMutation) ResetPackage added in v1.12.0

func (m *ReportMalwareMutation) ResetPackage()

ResetPackage resets all changes to the "package" edge.

func (*ReportMalwareMutation) ResetReport added in v1.12.0

func (m *ReportMalwareMutation) ResetReport()

ResetReport resets all changes to the "report" field.

func (*ReportMalwareMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportMalwareMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportMalwareMutation) ResetVerificationRecord added in v1.12.0

func (m *ReportMalwareMutation) ResetVerificationRecord()

ResetVerificationRecord resets all changes to the "verification_record" field.

func (*ReportMalwareMutation) SetAnalysisID added in v1.12.0

func (m *ReportMalwareMutation) SetAnalysisID(s string)

SetAnalysisID sets the "analysis_id" field.

func (*ReportMalwareMutation) SetConfidence added in v1.12.0

func (m *ReportMalwareMutation) SetConfidence(s string)

SetConfidence sets the "confidence" field.

func (*ReportMalwareMutation) SetCreatedAt added in v1.12.0

func (m *ReportMalwareMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportMalwareMutation) SetField added in v1.12.0

func (m *ReportMalwareMutation) 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 (*ReportMalwareMutation) SetIsMalware added in v1.12.0

func (m *ReportMalwareMutation) SetIsMalware(b bool)

SetIsMalware sets the "is_malware" field.

func (*ReportMalwareMutation) SetIsSuspicious added in v1.12.0

func (m *ReportMalwareMutation) SetIsSuspicious(b bool)

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportMalwareMutation) SetOp added in v1.12.0

func (m *ReportMalwareMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportMalwareMutation) SetPackageID added in v1.12.0

func (m *ReportMalwareMutation) SetPackageID(id int)

SetPackageID sets the "package" edge to the ReportPackage entity by id.

func (*ReportMalwareMutation) SetReport added in v1.12.0

func (m *ReportMalwareMutation) SetReport(value map[string]interface{})

SetReport sets the "report" field.

func (*ReportMalwareMutation) SetUpdatedAt added in v1.12.0

func (m *ReportMalwareMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReportMalwareMutation) SetVerificationRecord added in v1.12.0

func (m *ReportMalwareMutation) SetVerificationRecord(value map[string]interface{})

SetVerificationRecord sets the "verification_record" field.

func (ReportMalwareMutation) Tx added in v1.12.0

func (m ReportMalwareMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportMalwareMutation) Type added in v1.12.0

func (m *ReportMalwareMutation) Type() string

Type returns the node type of this mutation (ReportMalware).

func (*ReportMalwareMutation) UpdatedAt added in v1.12.0

func (m *ReportMalwareMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportMalwareMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportMalwareMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportMalwareMutation) VerificationRecord added in v1.12.0

func (m *ReportMalwareMutation) VerificationRecord() (r map[string]interface{}, exists bool)

VerificationRecord returns the value of the "verification_record" field in the mutation.

func (*ReportMalwareMutation) VerificationRecordCleared added in v1.12.0

func (m *ReportMalwareMutation) VerificationRecordCleared() bool

VerificationRecordCleared returns if the "verification_record" field was cleared in this mutation.

func (*ReportMalwareMutation) Where added in v1.12.0

Where appends a list predicates to the ReportMalwareMutation builder.

func (*ReportMalwareMutation) WhereP added in v1.12.0

func (m *ReportMalwareMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportMalwareMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportMalwareQuery added in v1.12.0

type ReportMalwareQuery struct {
	// contains filtered or unexported fields
}

ReportMalwareQuery is the builder for querying ReportMalware entities.

func (*ReportMalwareQuery) Aggregate added in v1.12.0

func (rmq *ReportMalwareQuery) Aggregate(fns ...AggregateFunc) *ReportMalwareSelect

Aggregate returns a ReportMalwareSelect configured with the given aggregations.

func (*ReportMalwareQuery) All added in v1.12.0

All executes the query and returns a list of ReportMalwares.

func (*ReportMalwareQuery) AllX added in v1.12.0

func (rmq *ReportMalwareQuery) AllX(ctx context.Context) []*ReportMalware

AllX is like All, but panics if an error occurs.

func (*ReportMalwareQuery) Clone added in v1.12.0

func (rmq *ReportMalwareQuery) Clone() *ReportMalwareQuery

Clone returns a duplicate of the ReportMalwareQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportMalwareQuery) Count added in v1.12.0

func (rmq *ReportMalwareQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportMalwareQuery) CountX added in v1.12.0

func (rmq *ReportMalwareQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportMalwareQuery) Exist added in v1.12.0

func (rmq *ReportMalwareQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportMalwareQuery) ExistX added in v1.12.0

func (rmq *ReportMalwareQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportMalwareQuery) First added in v1.12.0

First returns the first ReportMalware entity from the query. Returns a *NotFoundError when no ReportMalware was found.

func (*ReportMalwareQuery) FirstID added in v1.12.0

func (rmq *ReportMalwareQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportMalware ID from the query. Returns a *NotFoundError when no ReportMalware ID was found.

func (*ReportMalwareQuery) FirstIDX added in v1.12.0

func (rmq *ReportMalwareQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportMalwareQuery) FirstX added in v1.12.0

func (rmq *ReportMalwareQuery) FirstX(ctx context.Context) *ReportMalware

FirstX is like First, but panics if an error occurs.

func (*ReportMalwareQuery) GroupBy added in v1.12.0

func (rmq *ReportMalwareQuery) GroupBy(field string, fields ...string) *ReportMalwareGroupBy

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 {
	AnalysisID string `json:"analysis_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReportMalware.Query().
	GroupBy(reportmalware.FieldAnalysisID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportMalwareQuery) IDs added in v1.12.0

func (rmq *ReportMalwareQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportMalware IDs.

func (*ReportMalwareQuery) IDsX added in v1.12.0

func (rmq *ReportMalwareQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportMalwareQuery) Limit added in v1.12.0

func (rmq *ReportMalwareQuery) Limit(limit int) *ReportMalwareQuery

Limit the number of records to be returned by this query.

func (*ReportMalwareQuery) Offset added in v1.12.0

func (rmq *ReportMalwareQuery) Offset(offset int) *ReportMalwareQuery

Offset to start from.

func (*ReportMalwareQuery) Only added in v1.12.0

Only returns a single ReportMalware entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportMalware entity is found. Returns a *NotFoundError when no ReportMalware entities are found.

func (*ReportMalwareQuery) OnlyID added in v1.12.0

func (rmq *ReportMalwareQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportMalware ID in the query. Returns a *NotSingularError when more than one ReportMalware ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportMalwareQuery) OnlyIDX added in v1.12.0

func (rmq *ReportMalwareQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportMalwareQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportMalwareQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportMalwareQuery) QueryPackage added in v1.12.0

func (rmq *ReportMalwareQuery) QueryPackage() *ReportPackageQuery

QueryPackage chains the current query on the "package" edge.

func (*ReportMalwareQuery) Select added in v1.12.0

func (rmq *ReportMalwareQuery) Select(fields ...string) *ReportMalwareSelect

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 {
	AnalysisID string `json:"analysis_id,omitempty"`
}

client.ReportMalware.Query().
	Select(reportmalware.FieldAnalysisID).
	Scan(ctx, &v)

func (*ReportMalwareQuery) Unique added in v1.12.0

func (rmq *ReportMalwareQuery) Unique(unique bool) *ReportMalwareQuery

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 (*ReportMalwareQuery) Where added in v1.12.0

Where adds a new predicate for the ReportMalwareQuery builder.

func (*ReportMalwareQuery) WithPackage added in v1.12.0

func (rmq *ReportMalwareQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportMalwareQuery

WithPackage tells the query-builder to eager-load the nodes that are connected to the "package" edge. The optional arguments are used to configure the query builder of the edge.

type ReportMalwareSelect added in v1.12.0

type ReportMalwareSelect struct {
	*ReportMalwareQuery
	// contains filtered or unexported fields
}

ReportMalwareSelect is the builder for selecting fields of ReportMalware entities.

func (*ReportMalwareSelect) Aggregate added in v1.12.0

func (rms *ReportMalwareSelect) Aggregate(fns ...AggregateFunc) *ReportMalwareSelect

Aggregate adds the given aggregation functions to the selector query.

func (*ReportMalwareSelect) Bool added in v1.12.0

func (s *ReportMalwareSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) BoolX added in v1.12.0

func (s *ReportMalwareSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportMalwareSelect) Bools added in v1.12.0

func (s *ReportMalwareSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) BoolsX added in v1.12.0

func (s *ReportMalwareSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportMalwareSelect) Float64 added in v1.12.0

func (s *ReportMalwareSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) Float64X added in v1.12.0

func (s *ReportMalwareSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportMalwareSelect) Float64s added in v1.12.0

func (s *ReportMalwareSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) Float64sX added in v1.12.0

func (s *ReportMalwareSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportMalwareSelect) Int added in v1.12.0

func (s *ReportMalwareSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) IntX added in v1.12.0

func (s *ReportMalwareSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportMalwareSelect) Ints added in v1.12.0

func (s *ReportMalwareSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) IntsX added in v1.12.0

func (s *ReportMalwareSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportMalwareSelect) Scan added in v1.12.0

func (rms *ReportMalwareSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportMalwareSelect) ScanX added in v1.12.0

func (s *ReportMalwareSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportMalwareSelect) String added in v1.12.0

func (s *ReportMalwareSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) StringX added in v1.12.0

func (s *ReportMalwareSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportMalwareSelect) Strings added in v1.12.0

func (s *ReportMalwareSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportMalwareSelect) StringsX added in v1.12.0

func (s *ReportMalwareSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportMalwareUpdate added in v1.12.0

type ReportMalwareUpdate struct {
	// contains filtered or unexported fields
}

ReportMalwareUpdate is the builder for updating ReportMalware entities.

func (*ReportMalwareUpdate) ClearConfidence added in v1.12.0

func (rmu *ReportMalwareUpdate) ClearConfidence() *ReportMalwareUpdate

ClearConfidence clears the value of the "confidence" field.

func (*ReportMalwareUpdate) ClearCreatedAt added in v1.12.0

func (rmu *ReportMalwareUpdate) ClearCreatedAt() *ReportMalwareUpdate

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportMalwareUpdate) ClearPackage added in v1.12.0

func (rmu *ReportMalwareUpdate) ClearPackage() *ReportMalwareUpdate

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportMalwareUpdate) ClearReport added in v1.12.0

func (rmu *ReportMalwareUpdate) ClearReport() *ReportMalwareUpdate

ClearReport clears the value of the "report" field.

func (*ReportMalwareUpdate) ClearUpdatedAt added in v1.12.0

func (rmu *ReportMalwareUpdate) ClearUpdatedAt() *ReportMalwareUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportMalwareUpdate) ClearVerificationRecord added in v1.12.0

func (rmu *ReportMalwareUpdate) ClearVerificationRecord() *ReportMalwareUpdate

ClearVerificationRecord clears the value of the "verification_record" field.

func (*ReportMalwareUpdate) Exec added in v1.12.0

func (rmu *ReportMalwareUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportMalwareUpdate) ExecX added in v1.12.0

func (rmu *ReportMalwareUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportMalwareUpdate) Mutation added in v1.12.0

func (rmu *ReportMalwareUpdate) Mutation() *ReportMalwareMutation

Mutation returns the ReportMalwareMutation object of the builder.

func (*ReportMalwareUpdate) Save added in v1.12.0

func (rmu *ReportMalwareUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportMalwareUpdate) SaveX added in v1.12.0

func (rmu *ReportMalwareUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportMalwareUpdate) SetAnalysisID added in v1.12.0

func (rmu *ReportMalwareUpdate) SetAnalysisID(s string) *ReportMalwareUpdate

SetAnalysisID sets the "analysis_id" field.

func (*ReportMalwareUpdate) SetConfidence added in v1.12.0

func (rmu *ReportMalwareUpdate) SetConfidence(s string) *ReportMalwareUpdate

SetConfidence sets the "confidence" field.

func (*ReportMalwareUpdate) SetCreatedAt added in v1.12.0

func (rmu *ReportMalwareUpdate) SetCreatedAt(t time.Time) *ReportMalwareUpdate

SetCreatedAt sets the "created_at" field.

func (*ReportMalwareUpdate) SetIsMalware added in v1.12.0

func (rmu *ReportMalwareUpdate) SetIsMalware(b bool) *ReportMalwareUpdate

SetIsMalware sets the "is_malware" field.

func (*ReportMalwareUpdate) SetIsSuspicious added in v1.12.0

func (rmu *ReportMalwareUpdate) SetIsSuspicious(b bool) *ReportMalwareUpdate

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportMalwareUpdate) SetNillableAnalysisID added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillableAnalysisID(s *string) *ReportMalwareUpdate

SetNillableAnalysisID sets the "analysis_id" field if the given value is not nil.

func (*ReportMalwareUpdate) SetNillableConfidence added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillableConfidence(s *string) *ReportMalwareUpdate

SetNillableConfidence sets the "confidence" field if the given value is not nil.

func (*ReportMalwareUpdate) SetNillableCreatedAt added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillableCreatedAt(t *time.Time) *ReportMalwareUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportMalwareUpdate) SetNillableIsMalware added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillableIsMalware(b *bool) *ReportMalwareUpdate

SetNillableIsMalware sets the "is_malware" field if the given value is not nil.

func (*ReportMalwareUpdate) SetNillableIsSuspicious added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillableIsSuspicious(b *bool) *ReportMalwareUpdate

SetNillableIsSuspicious sets the "is_suspicious" field if the given value is not nil.

func (*ReportMalwareUpdate) SetNillablePackageID added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillablePackageID(id *int) *ReportMalwareUpdate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportMalwareUpdate) SetNillableUpdatedAt added in v1.12.0

func (rmu *ReportMalwareUpdate) SetNillableUpdatedAt(t *time.Time) *ReportMalwareUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportMalwareUpdate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportMalwareUpdate) SetPackageID added in v1.12.0

func (rmu *ReportMalwareUpdate) SetPackageID(id int) *ReportMalwareUpdate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportMalwareUpdate) SetReport added in v1.12.0

func (rmu *ReportMalwareUpdate) SetReport(m map[string]interface{}) *ReportMalwareUpdate

SetReport sets the "report" field.

func (*ReportMalwareUpdate) SetUpdatedAt added in v1.12.0

func (rmu *ReportMalwareUpdate) SetUpdatedAt(t time.Time) *ReportMalwareUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ReportMalwareUpdate) SetVerificationRecord added in v1.12.0

func (rmu *ReportMalwareUpdate) SetVerificationRecord(m map[string]interface{}) *ReportMalwareUpdate

SetVerificationRecord sets the "verification_record" field.

func (*ReportMalwareUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportMalwareUpdate builder.

type ReportMalwareUpdateOne added in v1.12.0

type ReportMalwareUpdateOne struct {
	// contains filtered or unexported fields
}

ReportMalwareUpdateOne is the builder for updating a single ReportMalware entity.

func (*ReportMalwareUpdateOne) ClearConfidence added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ClearConfidence() *ReportMalwareUpdateOne

ClearConfidence clears the value of the "confidence" field.

func (*ReportMalwareUpdateOne) ClearCreatedAt added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ClearCreatedAt() *ReportMalwareUpdateOne

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportMalwareUpdateOne) ClearPackage added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ClearPackage() *ReportMalwareUpdateOne

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportMalwareUpdateOne) ClearReport added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ClearReport() *ReportMalwareUpdateOne

ClearReport clears the value of the "report" field.

func (*ReportMalwareUpdateOne) ClearUpdatedAt added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ClearUpdatedAt() *ReportMalwareUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportMalwareUpdateOne) ClearVerificationRecord added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ClearVerificationRecord() *ReportMalwareUpdateOne

ClearVerificationRecord clears the value of the "verification_record" field.

func (*ReportMalwareUpdateOne) Exec added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReportMalwareUpdateOne) ExecX added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportMalwareUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportMalwareMutation object of the builder.

func (*ReportMalwareUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportMalware entity.

func (*ReportMalwareUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportMalwareUpdateOne) Select added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) Select(field string, fields ...string) *ReportMalwareUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportMalwareUpdateOne) SetAnalysisID added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetAnalysisID(s string) *ReportMalwareUpdateOne

SetAnalysisID sets the "analysis_id" field.

func (*ReportMalwareUpdateOne) SetConfidence added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetConfidence(s string) *ReportMalwareUpdateOne

SetConfidence sets the "confidence" field.

func (*ReportMalwareUpdateOne) SetCreatedAt added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetCreatedAt(t time.Time) *ReportMalwareUpdateOne

SetCreatedAt sets the "created_at" field.

func (*ReportMalwareUpdateOne) SetIsMalware added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetIsMalware(b bool) *ReportMalwareUpdateOne

SetIsMalware sets the "is_malware" field.

func (*ReportMalwareUpdateOne) SetIsSuspicious added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetIsSuspicious(b bool) *ReportMalwareUpdateOne

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportMalwareUpdateOne) SetNillableAnalysisID added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillableAnalysisID(s *string) *ReportMalwareUpdateOne

SetNillableAnalysisID sets the "analysis_id" field if the given value is not nil.

func (*ReportMalwareUpdateOne) SetNillableConfidence added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillableConfidence(s *string) *ReportMalwareUpdateOne

SetNillableConfidence sets the "confidence" field if the given value is not nil.

func (*ReportMalwareUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportMalwareUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportMalwareUpdateOne) SetNillableIsMalware added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillableIsMalware(b *bool) *ReportMalwareUpdateOne

SetNillableIsMalware sets the "is_malware" field if the given value is not nil.

func (*ReportMalwareUpdateOne) SetNillableIsSuspicious added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillableIsSuspicious(b *bool) *ReportMalwareUpdateOne

SetNillableIsSuspicious sets the "is_suspicious" field if the given value is not nil.

func (*ReportMalwareUpdateOne) SetNillablePackageID added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillablePackageID(id *int) *ReportMalwareUpdateOne

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportMalwareUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportMalwareUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportMalwareUpdateOne) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportMalwareUpdateOne) SetPackageID added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetPackageID(id int) *ReportMalwareUpdateOne

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportMalwareUpdateOne) SetReport added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetReport(m map[string]interface{}) *ReportMalwareUpdateOne

SetReport sets the "report" field.

func (*ReportMalwareUpdateOne) SetUpdatedAt added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetUpdatedAt(t time.Time) *ReportMalwareUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*ReportMalwareUpdateOne) SetVerificationRecord added in v1.12.0

func (rmuo *ReportMalwareUpdateOne) SetVerificationRecord(m map[string]interface{}) *ReportMalwareUpdateOne

SetVerificationRecord sets the "verification_record" field.

func (*ReportMalwareUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportMalwareUpdate builder.

type ReportMalwares added in v1.12.0

type ReportMalwares []*ReportMalware

ReportMalwares is a parsable slice of ReportMalware.

type ReportPackage added in v1.12.0

type ReportPackage struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// PackageID holds the value of the "package_id" field.
	PackageID string `json:"package_id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Version holds the value of the "version" field.
	Version string `json:"version,omitempty"`
	// Ecosystem holds the value of the "ecosystem" field.
	Ecosystem string `json:"ecosystem,omitempty"`
	// PackageURL holds the value of the "package_url" field.
	PackageURL string `json:"package_url,omitempty"`
	// Depth holds the value of the "depth" field.
	Depth int `json:"depth,omitempty"`
	// IsDirect holds the value of the "is_direct" field.
	IsDirect bool `json:"is_direct,omitempty"`
	// IsMalware holds the value of the "is_malware" field.
	IsMalware bool `json:"is_malware,omitempty"`
	// IsSuspicious holds the value of the "is_suspicious" field.
	IsSuspicious bool `json:"is_suspicious,omitempty"`
	// PackageDetails holds the value of the "package_details" field.
	PackageDetails map[string]interface{} `json:"package_details,omitempty"`
	// InsightsV2 holds the value of the "insights_v2" field.
	InsightsV2 map[string]interface{} `json:"insights_v2,omitempty"`
	// CodeAnalysis holds the value of the "code_analysis" field.
	CodeAnalysis map[string]interface{} `json:"code_analysis,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 ReportPackageQuery when eager-loading is set.
	Edges ReportPackageEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportPackage is the model entity for the ReportPackage schema.

func (*ReportPackage) QueryDependencies added in v1.12.0

func (rp *ReportPackage) QueryDependencies() *ReportDependencyQuery

QueryDependencies queries the "dependencies" edge of the ReportPackage entity.

func (*ReportPackage) QueryLicenses added in v1.12.0

func (rp *ReportPackage) QueryLicenses() *ReportLicenseQuery

QueryLicenses queries the "licenses" edge of the ReportPackage entity.

func (*ReportPackage) QueryMalwareAnalysis added in v1.12.0

func (rp *ReportPackage) QueryMalwareAnalysis() *ReportMalwareQuery

QueryMalwareAnalysis queries the "malware_analysis" edge of the ReportPackage entity.

func (*ReportPackage) QueryManifests added in v1.12.0

func (rp *ReportPackage) QueryManifests() *ReportPackageManifestQuery

QueryManifests queries the "manifests" edge of the ReportPackage entity.

func (*ReportPackage) QueryProjects added in v1.12.0

func (rp *ReportPackage) QueryProjects() *ReportProjectQuery

QueryProjects queries the "projects" edge of the ReportPackage entity.

func (*ReportPackage) QuerySlsaProvenances added in v1.12.0

func (rp *ReportPackage) QuerySlsaProvenances() *ReportSlsaProvenanceQuery

QuerySlsaProvenances queries the "slsa_provenances" edge of the ReportPackage entity.

func (*ReportPackage) QueryVulnerabilities added in v1.12.0

func (rp *ReportPackage) QueryVulnerabilities() *ReportVulnerabilityQuery

QueryVulnerabilities queries the "vulnerabilities" edge of the ReportPackage entity.

func (*ReportPackage) String added in v1.12.0

func (rp *ReportPackage) String() string

String implements the fmt.Stringer.

func (*ReportPackage) Unwrap added in v1.12.0

func (rp *ReportPackage) Unwrap() *ReportPackage

Unwrap unwraps the ReportPackage 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 (*ReportPackage) Update added in v1.12.0

func (rp *ReportPackage) Update() *ReportPackageUpdateOne

Update returns a builder for updating this ReportPackage. Note that you need to call ReportPackage.Unwrap() before calling this method if this ReportPackage was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportPackage) Value added in v1.12.0

func (rp *ReportPackage) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportPackage. This includes values selected through modifiers, order, etc.

type ReportPackageClient added in v1.12.0

type ReportPackageClient struct {
	// contains filtered or unexported fields
}

ReportPackageClient is a client for the ReportPackage schema.

func NewReportPackageClient added in v1.12.0

func NewReportPackageClient(c config) *ReportPackageClient

NewReportPackageClient returns a client for the ReportPackage from the given config.

func (*ReportPackageClient) Create added in v1.12.0

Create returns a builder for creating a ReportPackage entity.

func (*ReportPackageClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportPackage entities.

func (*ReportPackageClient) Delete added in v1.12.0

Delete returns a delete builder for ReportPackage.

func (*ReportPackageClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportPackageClient) DeleteOneID added in v1.12.0

func (c *ReportPackageClient) DeleteOneID(id int) *ReportPackageDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportPackageClient) Get added in v1.12.0

Get returns a ReportPackage entity by its id.

func (*ReportPackageClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportPackageClient) Hooks added in v1.12.0

func (c *ReportPackageClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportPackageClient) Intercept added in v1.12.0

func (c *ReportPackageClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportpackage.Intercept(f(g(h())))`.

func (*ReportPackageClient) Interceptors added in v1.12.0

func (c *ReportPackageClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportPackageClient) MapCreateBulk added in v1.12.0

func (c *ReportPackageClient) MapCreateBulk(slice any, setFunc func(*ReportPackageCreate, int)) *ReportPackageCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportPackageClient) Query added in v1.12.0

Query returns a query builder for ReportPackage.

func (*ReportPackageClient) QueryDependencies added in v1.12.0

func (c *ReportPackageClient) QueryDependencies(rp *ReportPackage) *ReportDependencyQuery

QueryDependencies queries the dependencies edge of a ReportPackage.

func (*ReportPackageClient) QueryLicenses added in v1.12.0

func (c *ReportPackageClient) QueryLicenses(rp *ReportPackage) *ReportLicenseQuery

QueryLicenses queries the licenses edge of a ReportPackage.

func (*ReportPackageClient) QueryMalwareAnalysis added in v1.12.0

func (c *ReportPackageClient) QueryMalwareAnalysis(rp *ReportPackage) *ReportMalwareQuery

QueryMalwareAnalysis queries the malware_analysis edge of a ReportPackage.

func (*ReportPackageClient) QueryManifests added in v1.12.0

QueryManifests queries the manifests edge of a ReportPackage.

func (*ReportPackageClient) QueryProjects added in v1.12.0

func (c *ReportPackageClient) QueryProjects(rp *ReportPackage) *ReportProjectQuery

QueryProjects queries the projects edge of a ReportPackage.

func (*ReportPackageClient) QuerySlsaProvenances added in v1.12.0

func (c *ReportPackageClient) QuerySlsaProvenances(rp *ReportPackage) *ReportSlsaProvenanceQuery

QuerySlsaProvenances queries the slsa_provenances edge of a ReportPackage.

func (*ReportPackageClient) QueryVulnerabilities added in v1.12.0

func (c *ReportPackageClient) QueryVulnerabilities(rp *ReportPackage) *ReportVulnerabilityQuery

QueryVulnerabilities queries the vulnerabilities edge of a ReportPackage.

func (*ReportPackageClient) Update added in v1.12.0

Update returns an update builder for ReportPackage.

func (*ReportPackageClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportPackageClient) UpdateOneID added in v1.12.0

func (c *ReportPackageClient) UpdateOneID(id int) *ReportPackageUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReportPackageClient) Use added in v1.12.0

func (c *ReportPackageClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportpackage.Hooks(f(g(h())))`.

type ReportPackageCreate added in v1.12.0

type ReportPackageCreate struct {
	// contains filtered or unexported fields
}

ReportPackageCreate is the builder for creating a ReportPackage entity.

func (*ReportPackageCreate) AddDependencies added in v1.12.0

func (rpc *ReportPackageCreate) AddDependencies(r ...*ReportDependency) *ReportPackageCreate

AddDependencies adds the "dependencies" edges to the ReportDependency entity.

func (*ReportPackageCreate) AddDependencyIDs added in v1.12.0

func (rpc *ReportPackageCreate) AddDependencyIDs(ids ...int) *ReportPackageCreate

AddDependencyIDs adds the "dependencies" edge to the ReportDependency entity by IDs.

func (*ReportPackageCreate) AddLicenseIDs added in v1.12.0

func (rpc *ReportPackageCreate) AddLicenseIDs(ids ...int) *ReportPackageCreate

AddLicenseIDs adds the "licenses" edge to the ReportLicense entity by IDs.

func (*ReportPackageCreate) AddLicenses added in v1.12.0

func (rpc *ReportPackageCreate) AddLicenses(r ...*ReportLicense) *ReportPackageCreate

AddLicenses adds the "licenses" edges to the ReportLicense entity.

func (*ReportPackageCreate) AddManifestIDs added in v1.12.0

func (rpc *ReportPackageCreate) AddManifestIDs(ids ...int) *ReportPackageCreate

AddManifestIDs adds the "manifests" edge to the ReportPackageManifest entity by IDs.

func (*ReportPackageCreate) AddManifests added in v1.12.0

AddManifests adds the "manifests" edges to the ReportPackageManifest entity.

func (*ReportPackageCreate) AddProjectIDs added in v1.12.0

func (rpc *ReportPackageCreate) AddProjectIDs(ids ...int) *ReportPackageCreate

AddProjectIDs adds the "projects" edge to the ReportProject entity by IDs.

func (*ReportPackageCreate) AddProjects added in v1.12.0

func (rpc *ReportPackageCreate) AddProjects(r ...*ReportProject) *ReportPackageCreate

AddProjects adds the "projects" edges to the ReportProject entity.

func (*ReportPackageCreate) AddSlsaProvenanceIDs added in v1.12.0

func (rpc *ReportPackageCreate) AddSlsaProvenanceIDs(ids ...int) *ReportPackageCreate

AddSlsaProvenanceIDs adds the "slsa_provenances" edge to the ReportSlsaProvenance entity by IDs.

func (*ReportPackageCreate) AddSlsaProvenances added in v1.12.0

func (rpc *ReportPackageCreate) AddSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageCreate

AddSlsaProvenances adds the "slsa_provenances" edges to the ReportSlsaProvenance entity.

func (*ReportPackageCreate) AddVulnerabilities added in v1.12.0

func (rpc *ReportPackageCreate) AddVulnerabilities(r ...*ReportVulnerability) *ReportPackageCreate

AddVulnerabilities adds the "vulnerabilities" edges to the ReportVulnerability entity.

func (*ReportPackageCreate) AddVulnerabilityIDs added in v1.12.0

func (rpc *ReportPackageCreate) AddVulnerabilityIDs(ids ...int) *ReportPackageCreate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReportVulnerability entity by IDs.

func (*ReportPackageCreate) Exec added in v1.12.0

func (rpc *ReportPackageCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportPackageCreate) ExecX added in v1.12.0

func (rpc *ReportPackageCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageCreate) Mutation added in v1.12.0

func (rpc *ReportPackageCreate) Mutation() *ReportPackageMutation

Mutation returns the ReportPackageMutation object of the builder.

func (*ReportPackageCreate) Save added in v1.12.0

Save creates the ReportPackage in the database.

func (*ReportPackageCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportPackageCreate) SetCodeAnalysis added in v1.12.0

func (rpc *ReportPackageCreate) SetCodeAnalysis(m map[string]interface{}) *ReportPackageCreate

SetCodeAnalysis sets the "code_analysis" field.

func (*ReportPackageCreate) SetCreatedAt added in v1.12.0

func (rpc *ReportPackageCreate) SetCreatedAt(t time.Time) *ReportPackageCreate

SetCreatedAt sets the "created_at" field.

func (*ReportPackageCreate) SetDepth added in v1.12.0

func (rpc *ReportPackageCreate) SetDepth(i int) *ReportPackageCreate

SetDepth sets the "depth" field.

func (*ReportPackageCreate) SetEcosystem added in v1.12.0

func (rpc *ReportPackageCreate) SetEcosystem(s string) *ReportPackageCreate

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageCreate) SetInsightsV2 added in v1.12.0

func (rpc *ReportPackageCreate) SetInsightsV2(m map[string]interface{}) *ReportPackageCreate

SetInsightsV2 sets the "insights_v2" field.

func (*ReportPackageCreate) SetIsDirect added in v1.12.0

func (rpc *ReportPackageCreate) SetIsDirect(b bool) *ReportPackageCreate

SetIsDirect sets the "is_direct" field.

func (*ReportPackageCreate) SetIsMalware added in v1.12.0

func (rpc *ReportPackageCreate) SetIsMalware(b bool) *ReportPackageCreate

SetIsMalware sets the "is_malware" field.

func (*ReportPackageCreate) SetIsSuspicious added in v1.12.0

func (rpc *ReportPackageCreate) SetIsSuspicious(b bool) *ReportPackageCreate

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportPackageCreate) SetMalwareAnalysis added in v1.12.0

func (rpc *ReportPackageCreate) SetMalwareAnalysis(r *ReportMalware) *ReportPackageCreate

SetMalwareAnalysis sets the "malware_analysis" edge to the ReportMalware entity.

func (*ReportPackageCreate) SetMalwareAnalysisID added in v1.12.0

func (rpc *ReportPackageCreate) SetMalwareAnalysisID(id int) *ReportPackageCreate

SetMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by ID.

func (*ReportPackageCreate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportPackageCreate) SetNillableCreatedAt added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableCreatedAt(t *time.Time) *ReportPackageCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportPackageCreate) SetNillableDepth added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableDepth(i *int) *ReportPackageCreate

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportPackageCreate) SetNillableIsDirect added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableIsDirect(b *bool) *ReportPackageCreate

SetNillableIsDirect sets the "is_direct" field if the given value is not nil.

func (*ReportPackageCreate) SetNillableIsMalware added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableIsMalware(b *bool) *ReportPackageCreate

SetNillableIsMalware sets the "is_malware" field if the given value is not nil.

func (*ReportPackageCreate) SetNillableIsSuspicious added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableIsSuspicious(b *bool) *ReportPackageCreate

SetNillableIsSuspicious sets the "is_suspicious" field if the given value is not nil.

func (*ReportPackageCreate) SetNillableMalwareAnalysisID added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableMalwareAnalysisID(id *int) *ReportPackageCreate

SetNillableMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by ID if the given value is not nil.

func (*ReportPackageCreate) SetNillableUpdatedAt added in v1.12.0

func (rpc *ReportPackageCreate) SetNillableUpdatedAt(t *time.Time) *ReportPackageCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportPackageCreate) SetPackageDetails added in v1.12.0

func (rpc *ReportPackageCreate) SetPackageDetails(m map[string]interface{}) *ReportPackageCreate

SetPackageDetails sets the "package_details" field.

func (*ReportPackageCreate) SetPackageID added in v1.12.0

func (rpc *ReportPackageCreate) SetPackageID(s string) *ReportPackageCreate

SetPackageID sets the "package_id" field.

func (*ReportPackageCreate) SetPackageURL added in v1.12.0

func (rpc *ReportPackageCreate) SetPackageURL(s string) *ReportPackageCreate

SetPackageURL sets the "package_url" field.

func (*ReportPackageCreate) SetUpdatedAt added in v1.12.0

func (rpc *ReportPackageCreate) SetUpdatedAt(t time.Time) *ReportPackageCreate

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageCreate) SetVersion added in v1.12.0

func (rpc *ReportPackageCreate) SetVersion(s string) *ReportPackageCreate

SetVersion sets the "version" field.

type ReportPackageCreateBulk added in v1.12.0

type ReportPackageCreateBulk struct {
	// contains filtered or unexported fields
}

ReportPackageCreateBulk is the builder for creating many ReportPackage entities in bulk.

func (*ReportPackageCreateBulk) Exec added in v1.12.0

func (rpcb *ReportPackageCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportPackageCreateBulk) ExecX added in v1.12.0

func (rpcb *ReportPackageCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageCreateBulk) Save added in v1.12.0

Save creates the ReportPackage entities in the database.

func (*ReportPackageCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportPackageDelete added in v1.12.0

type ReportPackageDelete struct {
	// contains filtered or unexported fields
}

ReportPackageDelete is the builder for deleting a ReportPackage entity.

func (*ReportPackageDelete) Exec added in v1.12.0

func (rpd *ReportPackageDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportPackageDelete) ExecX added in v1.12.0

func (rpd *ReportPackageDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageDelete) Where added in v1.12.0

Where appends a list predicates to the ReportPackageDelete builder.

type ReportPackageDeleteOne added in v1.12.0

type ReportPackageDeleteOne struct {
	// contains filtered or unexported fields
}

ReportPackageDeleteOne is the builder for deleting a single ReportPackage entity.

func (*ReportPackageDeleteOne) Exec added in v1.12.0

func (rpdo *ReportPackageDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReportPackageDeleteOne) ExecX added in v1.12.0

func (rpdo *ReportPackageDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportPackageDelete builder.

type ReportPackageEdges added in v1.12.0

type ReportPackageEdges struct {
	// Manifests holds the value of the manifests edge.
	Manifests []*ReportPackageManifest `json:"manifests,omitempty"`
	// Vulnerabilities holds the value of the vulnerabilities edge.
	Vulnerabilities []*ReportVulnerability `json:"vulnerabilities,omitempty"`
	// Licenses holds the value of the licenses edge.
	Licenses []*ReportLicense `json:"licenses,omitempty"`
	// Dependencies holds the value of the dependencies edge.
	Dependencies []*ReportDependency `json:"dependencies,omitempty"`
	// MalwareAnalysis holds the value of the malware_analysis edge.
	MalwareAnalysis *ReportMalware `json:"malware_analysis,omitempty"`
	// Projects holds the value of the projects edge.
	Projects []*ReportProject `json:"projects,omitempty"`
	// SlsaProvenances holds the value of the slsa_provenances edge.
	SlsaProvenances []*ReportSlsaProvenance `json:"slsa_provenances,omitempty"`
	// contains filtered or unexported fields
}

ReportPackageEdges holds the relations/edges for other nodes in the graph.

func (ReportPackageEdges) DependenciesOrErr added in v1.12.0

func (e ReportPackageEdges) DependenciesOrErr() ([]*ReportDependency, error)

DependenciesOrErr returns the Dependencies value or an error if the edge was not loaded in eager-loading.

func (ReportPackageEdges) LicensesOrErr added in v1.12.0

func (e ReportPackageEdges) LicensesOrErr() ([]*ReportLicense, error)

LicensesOrErr returns the Licenses value or an error if the edge was not loaded in eager-loading.

func (ReportPackageEdges) MalwareAnalysisOrErr added in v1.12.0

func (e ReportPackageEdges) MalwareAnalysisOrErr() (*ReportMalware, error)

MalwareAnalysisOrErr returns the MalwareAnalysis value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReportPackageEdges) ManifestsOrErr added in v1.12.0

func (e ReportPackageEdges) ManifestsOrErr() ([]*ReportPackageManifest, error)

ManifestsOrErr returns the Manifests value or an error if the edge was not loaded in eager-loading.

func (ReportPackageEdges) ProjectsOrErr added in v1.12.0

func (e ReportPackageEdges) ProjectsOrErr() ([]*ReportProject, error)

ProjectsOrErr returns the Projects value or an error if the edge was not loaded in eager-loading.

func (ReportPackageEdges) SlsaProvenancesOrErr added in v1.12.0

func (e ReportPackageEdges) SlsaProvenancesOrErr() ([]*ReportSlsaProvenance, error)

SlsaProvenancesOrErr returns the SlsaProvenances value or an error if the edge was not loaded in eager-loading.

func (ReportPackageEdges) VulnerabilitiesOrErr added in v1.12.0

func (e ReportPackageEdges) VulnerabilitiesOrErr() ([]*ReportVulnerability, error)

VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge was not loaded in eager-loading.

type ReportPackageGroupBy added in v1.12.0

type ReportPackageGroupBy struct {
	// contains filtered or unexported fields
}

ReportPackageGroupBy is the group-by builder for ReportPackage entities.

func (*ReportPackageGroupBy) Aggregate added in v1.12.0

func (rpgb *ReportPackageGroupBy) Aggregate(fns ...AggregateFunc) *ReportPackageGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportPackageGroupBy) Bool added in v1.12.0

func (s *ReportPackageGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) BoolX added in v1.12.0

func (s *ReportPackageGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportPackageGroupBy) Bools added in v1.12.0

func (s *ReportPackageGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) BoolsX added in v1.12.0

func (s *ReportPackageGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportPackageGroupBy) Float64 added in v1.12.0

func (s *ReportPackageGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) Float64X added in v1.12.0

func (s *ReportPackageGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportPackageGroupBy) Float64s added in v1.12.0

func (s *ReportPackageGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) Float64sX added in v1.12.0

func (s *ReportPackageGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportPackageGroupBy) Int added in v1.12.0

func (s *ReportPackageGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) IntX added in v1.12.0

func (s *ReportPackageGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportPackageGroupBy) Ints added in v1.12.0

func (s *ReportPackageGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) IntsX added in v1.12.0

func (s *ReportPackageGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportPackageGroupBy) Scan added in v1.12.0

func (rpgb *ReportPackageGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportPackageGroupBy) ScanX added in v1.12.0

func (s *ReportPackageGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportPackageGroupBy) String added in v1.12.0

func (s *ReportPackageGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) StringX added in v1.12.0

func (s *ReportPackageGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportPackageGroupBy) Strings added in v1.12.0

func (s *ReportPackageGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportPackageGroupBy) StringsX added in v1.12.0

func (s *ReportPackageGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportPackageManifest added in v1.12.0

type ReportPackageManifest struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// ManifestID holds the value of the "manifest_id" field.
	ManifestID string `json:"manifest_id,omitempty"`
	// SourceType holds the value of the "source_type" field.
	SourceType string `json:"source_type,omitempty"`
	// Namespace holds the value of the "namespace" field.
	Namespace string `json:"namespace,omitempty"`
	// Path holds the value of the "path" field.
	Path string `json:"path,omitempty"`
	// DisplayPath holds the value of the "display_path" field.
	DisplayPath string `json:"display_path,omitempty"`
	// Ecosystem holds the value of the "ecosystem" field.
	Ecosystem string `json:"ecosystem,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 ReportPackageManifestQuery when eager-loading is set.
	Edges ReportPackageManifestEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportPackageManifest is the model entity for the ReportPackageManifest schema.

func (*ReportPackageManifest) QueryPackages added in v1.12.0

func (rpm *ReportPackageManifest) QueryPackages() *ReportPackageQuery

QueryPackages queries the "packages" edge of the ReportPackageManifest entity.

func (*ReportPackageManifest) String added in v1.12.0

func (rpm *ReportPackageManifest) String() string

String implements the fmt.Stringer.

func (*ReportPackageManifest) Unwrap added in v1.12.0

Unwrap unwraps the ReportPackageManifest 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 (*ReportPackageManifest) Update added in v1.12.0

Update returns a builder for updating this ReportPackageManifest. Note that you need to call ReportPackageManifest.Unwrap() before calling this method if this ReportPackageManifest was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportPackageManifest) Value added in v1.12.0

func (rpm *ReportPackageManifest) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportPackageManifest. This includes values selected through modifiers, order, etc.

type ReportPackageManifestClient added in v1.12.0

type ReportPackageManifestClient struct {
	// contains filtered or unexported fields
}

ReportPackageManifestClient is a client for the ReportPackageManifest schema.

func NewReportPackageManifestClient added in v1.12.0

func NewReportPackageManifestClient(c config) *ReportPackageManifestClient

NewReportPackageManifestClient returns a client for the ReportPackageManifest from the given config.

func (*ReportPackageManifestClient) Create added in v1.12.0

Create returns a builder for creating a ReportPackageManifest entity.

func (*ReportPackageManifestClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportPackageManifest entities.

func (*ReportPackageManifestClient) Delete added in v1.12.0

Delete returns a delete builder for ReportPackageManifest.

func (*ReportPackageManifestClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportPackageManifestClient) DeleteOneID added in v1.12.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportPackageManifestClient) Get added in v1.12.0

Get returns a ReportPackageManifest entity by its id.

func (*ReportPackageManifestClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportPackageManifestClient) Hooks added in v1.12.0

func (c *ReportPackageManifestClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportPackageManifestClient) Intercept added in v1.12.0

func (c *ReportPackageManifestClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportpackagemanifest.Intercept(f(g(h())))`.

func (*ReportPackageManifestClient) Interceptors added in v1.12.0

func (c *ReportPackageManifestClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportPackageManifestClient) MapCreateBulk added in v1.12.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportPackageManifestClient) Query added in v1.12.0

Query returns a query builder for ReportPackageManifest.

func (*ReportPackageManifestClient) QueryPackages added in v1.12.0

QueryPackages queries the packages edge of a ReportPackageManifest.

func (*ReportPackageManifestClient) Update added in v1.12.0

Update returns an update builder for ReportPackageManifest.

func (*ReportPackageManifestClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportPackageManifestClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportPackageManifestClient) Use added in v1.12.0

func (c *ReportPackageManifestClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportpackagemanifest.Hooks(f(g(h())))`.

type ReportPackageManifestCreate added in v1.12.0

type ReportPackageManifestCreate struct {
	// contains filtered or unexported fields
}

ReportPackageManifestCreate is the builder for creating a ReportPackageManifest entity.

func (*ReportPackageManifestCreate) AddPackageIDs added in v1.12.0

func (rpmc *ReportPackageManifestCreate) AddPackageIDs(ids ...int) *ReportPackageManifestCreate

AddPackageIDs adds the "packages" edge to the ReportPackage entity by IDs.

func (*ReportPackageManifestCreate) AddPackages added in v1.12.0

AddPackages adds the "packages" edges to the ReportPackage entity.

func (*ReportPackageManifestCreate) Exec added in v1.12.0

Exec executes the query.

func (*ReportPackageManifestCreate) ExecX added in v1.12.0

func (rpmc *ReportPackageManifestCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageManifestCreate) Mutation added in v1.12.0

Mutation returns the ReportPackageManifestMutation object of the builder.

func (*ReportPackageManifestCreate) Save added in v1.12.0

Save creates the ReportPackageManifest in the database.

func (*ReportPackageManifestCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportPackageManifestCreate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportPackageManifestCreate) SetDisplayPath added in v1.12.0

SetDisplayPath sets the "display_path" field.

func (*ReportPackageManifestCreate) SetEcosystem added in v1.12.0

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageManifestCreate) SetManifestID added in v1.12.0

SetManifestID sets the "manifest_id" field.

func (*ReportPackageManifestCreate) SetNamespace added in v1.12.0

SetNamespace sets the "namespace" field.

func (*ReportPackageManifestCreate) SetNillableCreatedAt added in v1.12.0

func (rpmc *ReportPackageManifestCreate) SetNillableCreatedAt(t *time.Time) *ReportPackageManifestCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportPackageManifestCreate) SetNillableUpdatedAt added in v1.12.0

func (rpmc *ReportPackageManifestCreate) SetNillableUpdatedAt(t *time.Time) *ReportPackageManifestCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportPackageManifestCreate) SetPath added in v1.12.0

SetPath sets the "path" field.

func (*ReportPackageManifestCreate) SetSourceType added in v1.12.0

SetSourceType sets the "source_type" field.

func (*ReportPackageManifestCreate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

type ReportPackageManifestCreateBulk added in v1.12.0

type ReportPackageManifestCreateBulk struct {
	// contains filtered or unexported fields
}

ReportPackageManifestCreateBulk is the builder for creating many ReportPackageManifest entities in bulk.

func (*ReportPackageManifestCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportPackageManifestCreateBulk) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageManifestCreateBulk) Save added in v1.12.0

Save creates the ReportPackageManifest entities in the database.

func (*ReportPackageManifestCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportPackageManifestDelete added in v1.12.0

type ReportPackageManifestDelete struct {
	// contains filtered or unexported fields
}

ReportPackageManifestDelete is the builder for deleting a ReportPackageManifest entity.

func (*ReportPackageManifestDelete) Exec added in v1.12.0

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportPackageManifestDelete) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageManifestDelete) Where added in v1.12.0

Where appends a list predicates to the ReportPackageManifestDelete builder.

type ReportPackageManifestDeleteOne added in v1.12.0

type ReportPackageManifestDeleteOne struct {
	// contains filtered or unexported fields
}

ReportPackageManifestDeleteOne is the builder for deleting a single ReportPackageManifest entity.

func (*ReportPackageManifestDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportPackageManifestDeleteOne) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageManifestDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportPackageManifestDelete builder.

type ReportPackageManifestEdges added in v1.12.0

type ReportPackageManifestEdges struct {
	// Packages holds the value of the packages edge.
	Packages []*ReportPackage `json:"packages,omitempty"`
	// contains filtered or unexported fields
}

ReportPackageManifestEdges holds the relations/edges for other nodes in the graph.

func (ReportPackageManifestEdges) PackagesOrErr added in v1.12.0

func (e ReportPackageManifestEdges) PackagesOrErr() ([]*ReportPackage, error)

PackagesOrErr returns the Packages value or an error if the edge was not loaded in eager-loading.

type ReportPackageManifestGroupBy added in v1.12.0

type ReportPackageManifestGroupBy struct {
	// contains filtered or unexported fields
}

ReportPackageManifestGroupBy is the group-by builder for ReportPackageManifest entities.

func (*ReportPackageManifestGroupBy) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportPackageManifestGroupBy) Bool added in v1.12.0

func (s *ReportPackageManifestGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) BoolX added in v1.12.0

func (s *ReportPackageManifestGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Bools added in v1.12.0

func (s *ReportPackageManifestGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) BoolsX added in v1.12.0

func (s *ReportPackageManifestGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Float64 added in v1.12.0

func (s *ReportPackageManifestGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) Float64X added in v1.12.0

func (s *ReportPackageManifestGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Float64s added in v1.12.0

func (s *ReportPackageManifestGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) Float64sX added in v1.12.0

func (s *ReportPackageManifestGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Int added in v1.12.0

func (s *ReportPackageManifestGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) IntX added in v1.12.0

func (s *ReportPackageManifestGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Ints added in v1.12.0

func (s *ReportPackageManifestGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) IntsX added in v1.12.0

func (s *ReportPackageManifestGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Scan added in v1.12.0

Scan applies the selector query and scans the result into the given value.

func (*ReportPackageManifestGroupBy) ScanX added in v1.12.0

func (s *ReportPackageManifestGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) String added in v1.12.0

func (s *ReportPackageManifestGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) StringX added in v1.12.0

func (s *ReportPackageManifestGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportPackageManifestGroupBy) Strings added in v1.12.0

func (s *ReportPackageManifestGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestGroupBy) StringsX added in v1.12.0

func (s *ReportPackageManifestGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportPackageManifestMutation added in v1.12.0

type ReportPackageManifestMutation struct {
	// contains filtered or unexported fields
}

ReportPackageManifestMutation represents an operation that mutates the ReportPackageManifest nodes in the graph.

func (*ReportPackageManifestMutation) AddField added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) AddPackageIDs added in v1.12.0

func (m *ReportPackageManifestMutation) AddPackageIDs(ids ...int)

AddPackageIDs adds the "packages" edge to the ReportPackage entity by ids.

func (*ReportPackageManifestMutation) AddedEdges added in v1.12.0

func (m *ReportPackageManifestMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportPackageManifestMutation) AddedField added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) AddedFields added in v1.12.0

func (m *ReportPackageManifestMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportPackageManifestMutation) AddedIDs added in v1.12.0

func (m *ReportPackageManifestMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportPackageManifestMutation) ClearCreatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportPackageManifestMutation) ClearEdge added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) ClearField added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) ClearPackages added in v1.12.0

func (m *ReportPackageManifestMutation) ClearPackages()

ClearPackages clears the "packages" edge to the ReportPackage entity.

func (*ReportPackageManifestMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportPackageManifestMutation) ClearedEdges added in v1.12.0

func (m *ReportPackageManifestMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportPackageManifestMutation) ClearedFields added in v1.12.0

func (m *ReportPackageManifestMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportPackageManifestMutation) Client added in v1.12.0

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 (*ReportPackageManifestMutation) CreatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportPackageManifestMutation) CreatedAtCleared added in v1.12.0

func (m *ReportPackageManifestMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportPackageManifestMutation) DisplayPath added in v1.12.0

func (m *ReportPackageManifestMutation) DisplayPath() (r string, exists bool)

DisplayPath returns the value of the "display_path" field in the mutation.

func (*ReportPackageManifestMutation) Ecosystem added in v1.12.0

func (m *ReportPackageManifestMutation) Ecosystem() (r string, exists bool)

Ecosystem returns the value of the "ecosystem" field in the mutation.

func (*ReportPackageManifestMutation) EdgeCleared added in v1.12.0

func (m *ReportPackageManifestMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportPackageManifestMutation) Field added in v1.12.0

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 (*ReportPackageManifestMutation) FieldCleared added in v1.12.0

func (m *ReportPackageManifestMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportPackageManifestMutation) Fields added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) ID added in v1.12.0

func (m *ReportPackageManifestMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportPackageManifestMutation) IDs added in v1.12.0

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 (*ReportPackageManifestMutation) ManifestID added in v1.12.0

func (m *ReportPackageManifestMutation) ManifestID() (r string, exists bool)

ManifestID returns the value of the "manifest_id" field in the mutation.

func (*ReportPackageManifestMutation) Namespace added in v1.12.0

func (m *ReportPackageManifestMutation) Namespace() (r string, exists bool)

Namespace returns the value of the "namespace" field in the mutation.

func (*ReportPackageManifestMutation) OldCreatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldDisplayPath added in v1.12.0

func (m *ReportPackageManifestMutation) OldDisplayPath(ctx context.Context) (v string, err error)

OldDisplayPath returns the old "display_path" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldEcosystem added in v1.12.0

func (m *ReportPackageManifestMutation) OldEcosystem(ctx context.Context) (v string, err error)

OldEcosystem returns the old "ecosystem" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldField added in v1.12.0

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 (*ReportPackageManifestMutation) OldManifestID added in v1.12.0

func (m *ReportPackageManifestMutation) OldManifestID(ctx context.Context) (v string, err error)

OldManifestID returns the old "manifest_id" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldNamespace added in v1.12.0

func (m *ReportPackageManifestMutation) OldNamespace(ctx context.Context) (v string, err error)

OldNamespace returns the old "namespace" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldPath added in v1.12.0

func (m *ReportPackageManifestMutation) OldPath(ctx context.Context) (v string, err error)

OldPath returns the old "path" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldSourceType added in v1.12.0

func (m *ReportPackageManifestMutation) OldSourceType(ctx context.Context) (v string, err error)

OldSourceType returns the old "source_type" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) OldUpdatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportPackageManifest entity. If the ReportPackageManifest 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 (*ReportPackageManifestMutation) Op added in v1.12.0

Op returns the operation name.

func (*ReportPackageManifestMutation) PackagesCleared added in v1.12.0

func (m *ReportPackageManifestMutation) PackagesCleared() bool

PackagesCleared reports if the "packages" edge to the ReportPackage entity was cleared.

func (*ReportPackageManifestMutation) PackagesIDs added in v1.12.0

func (m *ReportPackageManifestMutation) PackagesIDs() (ids []int)

PackagesIDs returns the "packages" edge IDs in the mutation.

func (*ReportPackageManifestMutation) Path added in v1.12.0

func (m *ReportPackageManifestMutation) Path() (r string, exists bool)

Path returns the value of the "path" field in the mutation.

func (*ReportPackageManifestMutation) RemovePackageIDs added in v1.12.0

func (m *ReportPackageManifestMutation) RemovePackageIDs(ids ...int)

RemovePackageIDs removes the "packages" edge to the ReportPackage entity by IDs.

func (*ReportPackageManifestMutation) RemovedEdges added in v1.12.0

func (m *ReportPackageManifestMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportPackageManifestMutation) RemovedIDs added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) RemovedPackagesIDs added in v1.12.0

func (m *ReportPackageManifestMutation) RemovedPackagesIDs() (ids []int)

RemovedPackages returns the removed IDs of the "packages" edge to the ReportPackage entity.

func (*ReportPackageManifestMutation) ResetCreatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportPackageManifestMutation) ResetDisplayPath added in v1.12.0

func (m *ReportPackageManifestMutation) ResetDisplayPath()

ResetDisplayPath resets all changes to the "display_path" field.

func (*ReportPackageManifestMutation) ResetEcosystem added in v1.12.0

func (m *ReportPackageManifestMutation) ResetEcosystem()

ResetEcosystem resets all changes to the "ecosystem" field.

func (*ReportPackageManifestMutation) ResetEdge added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) ResetField added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) ResetManifestID added in v1.12.0

func (m *ReportPackageManifestMutation) ResetManifestID()

ResetManifestID resets all changes to the "manifest_id" field.

func (*ReportPackageManifestMutation) ResetNamespace added in v1.12.0

func (m *ReportPackageManifestMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" field.

func (*ReportPackageManifestMutation) ResetPackages added in v1.12.0

func (m *ReportPackageManifestMutation) ResetPackages()

ResetPackages resets all changes to the "packages" edge.

func (*ReportPackageManifestMutation) ResetPath added in v1.12.0

func (m *ReportPackageManifestMutation) ResetPath()

ResetPath resets all changes to the "path" field.

func (*ReportPackageManifestMutation) ResetSourceType added in v1.12.0

func (m *ReportPackageManifestMutation) ResetSourceType()

ResetSourceType resets all changes to the "source_type" field.

func (*ReportPackageManifestMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportPackageManifestMutation) SetCreatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportPackageManifestMutation) SetDisplayPath added in v1.12.0

func (m *ReportPackageManifestMutation) SetDisplayPath(s string)

SetDisplayPath sets the "display_path" field.

func (*ReportPackageManifestMutation) SetEcosystem added in v1.12.0

func (m *ReportPackageManifestMutation) SetEcosystem(s string)

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageManifestMutation) SetField added in v1.12.0

func (m *ReportPackageManifestMutation) 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 (*ReportPackageManifestMutation) SetManifestID added in v1.12.0

func (m *ReportPackageManifestMutation) SetManifestID(s string)

SetManifestID sets the "manifest_id" field.

func (*ReportPackageManifestMutation) SetNamespace added in v1.12.0

func (m *ReportPackageManifestMutation) SetNamespace(s string)

SetNamespace sets the "namespace" field.

func (*ReportPackageManifestMutation) SetOp added in v1.12.0

func (m *ReportPackageManifestMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportPackageManifestMutation) SetPath added in v1.12.0

func (m *ReportPackageManifestMutation) SetPath(s string)

SetPath sets the "path" field.

func (*ReportPackageManifestMutation) SetSourceType added in v1.12.0

func (m *ReportPackageManifestMutation) SetSourceType(s string)

SetSourceType sets the "source_type" field.

func (*ReportPackageManifestMutation) SetUpdatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageManifestMutation) SourceType added in v1.12.0

func (m *ReportPackageManifestMutation) SourceType() (r string, exists bool)

SourceType returns the value of the "source_type" field in the mutation.

func (ReportPackageManifestMutation) Tx added in v1.12.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportPackageManifestMutation) Type added in v1.12.0

Type returns the node type of this mutation (ReportPackageManifest).

func (*ReportPackageManifestMutation) UpdatedAt added in v1.12.0

func (m *ReportPackageManifestMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportPackageManifestMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportPackageManifestMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportPackageManifestMutation) Where added in v1.12.0

Where appends a list predicates to the ReportPackageManifestMutation builder.

func (*ReportPackageManifestMutation) WhereP added in v1.12.0

func (m *ReportPackageManifestMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportPackageManifestMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportPackageManifestQuery added in v1.12.0

type ReportPackageManifestQuery struct {
	// contains filtered or unexported fields
}

ReportPackageManifestQuery is the builder for querying ReportPackageManifest entities.

func (*ReportPackageManifestQuery) Aggregate added in v1.12.0

Aggregate returns a ReportPackageManifestSelect configured with the given aggregations.

func (*ReportPackageManifestQuery) All added in v1.12.0

All executes the query and returns a list of ReportPackageManifests.

func (*ReportPackageManifestQuery) AllX added in v1.12.0

AllX is like All, but panics if an error occurs.

func (*ReportPackageManifestQuery) Clone added in v1.12.0

Clone returns a duplicate of the ReportPackageManifestQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportPackageManifestQuery) Count added in v1.12.0

func (rpmq *ReportPackageManifestQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportPackageManifestQuery) CountX added in v1.12.0

func (rpmq *ReportPackageManifestQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportPackageManifestQuery) Exist added in v1.12.0

func (rpmq *ReportPackageManifestQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportPackageManifestQuery) ExistX added in v1.12.0

func (rpmq *ReportPackageManifestQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportPackageManifestQuery) First added in v1.12.0

First returns the first ReportPackageManifest entity from the query. Returns a *NotFoundError when no ReportPackageManifest was found.

func (*ReportPackageManifestQuery) FirstID added in v1.12.0

func (rpmq *ReportPackageManifestQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportPackageManifest ID from the query. Returns a *NotFoundError when no ReportPackageManifest ID was found.

func (*ReportPackageManifestQuery) FirstIDX added in v1.12.0

func (rpmq *ReportPackageManifestQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportPackageManifestQuery) FirstX added in v1.12.0

FirstX is like First, but panics if an error occurs.

func (*ReportPackageManifestQuery) GroupBy added in v1.12.0

func (rpmq *ReportPackageManifestQuery) GroupBy(field string, fields ...string) *ReportPackageManifestGroupBy

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 {
	ManifestID string `json:"manifest_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReportPackageManifest.Query().
	GroupBy(reportpackagemanifest.FieldManifestID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportPackageManifestQuery) IDs added in v1.12.0

func (rpmq *ReportPackageManifestQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportPackageManifest IDs.

func (*ReportPackageManifestQuery) IDsX added in v1.12.0

func (rpmq *ReportPackageManifestQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportPackageManifestQuery) Limit added in v1.12.0

Limit the number of records to be returned by this query.

func (*ReportPackageManifestQuery) Offset added in v1.12.0

Offset to start from.

func (*ReportPackageManifestQuery) Only added in v1.12.0

Only returns a single ReportPackageManifest entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportPackageManifest entity is found. Returns a *NotFoundError when no ReportPackageManifest entities are found.

func (*ReportPackageManifestQuery) OnlyID added in v1.12.0

func (rpmq *ReportPackageManifestQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportPackageManifest ID in the query. Returns a *NotSingularError when more than one ReportPackageManifest ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportPackageManifestQuery) OnlyIDX added in v1.12.0

func (rpmq *ReportPackageManifestQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportPackageManifestQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportPackageManifestQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportPackageManifestQuery) QueryPackages added in v1.12.0

func (rpmq *ReportPackageManifestQuery) QueryPackages() *ReportPackageQuery

QueryPackages chains the current query on the "packages" edge.

func (*ReportPackageManifestQuery) Select added in v1.12.0

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 {
	ManifestID string `json:"manifest_id,omitempty"`
}

client.ReportPackageManifest.Query().
	Select(reportpackagemanifest.FieldManifestID).
	Scan(ctx, &v)

func (*ReportPackageManifestQuery) Unique added in v1.12.0

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 (*ReportPackageManifestQuery) Where added in v1.12.0

Where adds a new predicate for the ReportPackageManifestQuery builder.

func (*ReportPackageManifestQuery) WithPackages added in v1.12.0

func (rpmq *ReportPackageManifestQuery) WithPackages(opts ...func(*ReportPackageQuery)) *ReportPackageManifestQuery

WithPackages tells the query-builder to eager-load the nodes that are connected to the "packages" edge. The optional arguments are used to configure the query builder of the edge.

type ReportPackageManifestSelect added in v1.12.0

type ReportPackageManifestSelect struct {
	*ReportPackageManifestQuery
	// contains filtered or unexported fields
}

ReportPackageManifestSelect is the builder for selecting fields of ReportPackageManifest entities.

func (*ReportPackageManifestSelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportPackageManifestSelect) Bool added in v1.12.0

func (s *ReportPackageManifestSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) BoolX added in v1.12.0

func (s *ReportPackageManifestSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportPackageManifestSelect) Bools added in v1.12.0

func (s *ReportPackageManifestSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) BoolsX added in v1.12.0

func (s *ReportPackageManifestSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportPackageManifestSelect) Float64 added in v1.12.0

func (s *ReportPackageManifestSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) Float64X added in v1.12.0

func (s *ReportPackageManifestSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportPackageManifestSelect) Float64s added in v1.12.0

func (s *ReportPackageManifestSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) Float64sX added in v1.12.0

func (s *ReportPackageManifestSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportPackageManifestSelect) Int added in v1.12.0

func (s *ReportPackageManifestSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) IntX added in v1.12.0

func (s *ReportPackageManifestSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportPackageManifestSelect) Ints added in v1.12.0

func (s *ReportPackageManifestSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) IntsX added in v1.12.0

func (s *ReportPackageManifestSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportPackageManifestSelect) Scan added in v1.12.0

Scan applies the selector query and scans the result into the given value.

func (*ReportPackageManifestSelect) ScanX added in v1.12.0

func (s *ReportPackageManifestSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportPackageManifestSelect) String added in v1.12.0

func (s *ReportPackageManifestSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) StringX added in v1.12.0

func (s *ReportPackageManifestSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportPackageManifestSelect) Strings added in v1.12.0

func (s *ReportPackageManifestSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportPackageManifestSelect) StringsX added in v1.12.0

func (s *ReportPackageManifestSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportPackageManifestUpdate added in v1.12.0

type ReportPackageManifestUpdate struct {
	// contains filtered or unexported fields
}

ReportPackageManifestUpdate is the builder for updating ReportPackageManifest entities.

func (*ReportPackageManifestUpdate) AddPackageIDs added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) AddPackageIDs(ids ...int) *ReportPackageManifestUpdate

AddPackageIDs adds the "packages" edge to the ReportPackage entity by IDs.

func (*ReportPackageManifestUpdate) AddPackages added in v1.12.0

AddPackages adds the "packages" edges to the ReportPackage entity.

func (*ReportPackageManifestUpdate) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportPackageManifestUpdate) ClearPackages added in v1.12.0

ClearPackages clears all "packages" edges to the ReportPackage entity.

func (*ReportPackageManifestUpdate) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportPackageManifestUpdate) Exec added in v1.12.0

Exec executes the query.

func (*ReportPackageManifestUpdate) ExecX added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageManifestUpdate) Mutation added in v1.12.0

Mutation returns the ReportPackageManifestMutation object of the builder.

func (*ReportPackageManifestUpdate) RemovePackageIDs added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) RemovePackageIDs(ids ...int) *ReportPackageManifestUpdate

RemovePackageIDs removes the "packages" edge to ReportPackage entities by IDs.

func (*ReportPackageManifestUpdate) RemovePackages added in v1.12.0

RemovePackages removes "packages" edges to ReportPackage entities.

func (*ReportPackageManifestUpdate) Save added in v1.12.0

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportPackageManifestUpdate) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportPackageManifestUpdate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportPackageManifestUpdate) SetDisplayPath added in v1.12.0

SetDisplayPath sets the "display_path" field.

func (*ReportPackageManifestUpdate) SetEcosystem added in v1.12.0

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageManifestUpdate) SetManifestID added in v1.12.0

SetManifestID sets the "manifest_id" field.

func (*ReportPackageManifestUpdate) SetNamespace added in v1.12.0

SetNamespace sets the "namespace" field.

func (*ReportPackageManifestUpdate) SetNillableCreatedAt added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableCreatedAt(t *time.Time) *ReportPackageManifestUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillableDisplayPath added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableDisplayPath(s *string) *ReportPackageManifestUpdate

SetNillableDisplayPath sets the "display_path" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillableEcosystem added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableEcosystem(s *string) *ReportPackageManifestUpdate

SetNillableEcosystem sets the "ecosystem" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillableManifestID added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableManifestID(s *string) *ReportPackageManifestUpdate

SetNillableManifestID sets the "manifest_id" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillableNamespace added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableNamespace(s *string) *ReportPackageManifestUpdate

SetNillableNamespace sets the "namespace" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillablePath added in v1.12.0

SetNillablePath sets the "path" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillableSourceType added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableSourceType(s *string) *ReportPackageManifestUpdate

SetNillableSourceType sets the "source_type" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetNillableUpdatedAt added in v1.12.0

func (rpmu *ReportPackageManifestUpdate) SetNillableUpdatedAt(t *time.Time) *ReportPackageManifestUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportPackageManifestUpdate) SetPath added in v1.12.0

SetPath sets the "path" field.

func (*ReportPackageManifestUpdate) SetSourceType added in v1.12.0

SetSourceType sets the "source_type" field.

func (*ReportPackageManifestUpdate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageManifestUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportPackageManifestUpdate builder.

type ReportPackageManifestUpdateOne added in v1.12.0

type ReportPackageManifestUpdateOne struct {
	// contains filtered or unexported fields
}

ReportPackageManifestUpdateOne is the builder for updating a single ReportPackageManifest entity.

func (*ReportPackageManifestUpdateOne) AddPackageIDs added in v1.12.0

AddPackageIDs adds the "packages" edge to the ReportPackage entity by IDs.

func (*ReportPackageManifestUpdateOne) AddPackages added in v1.12.0

AddPackages adds the "packages" edges to the ReportPackage entity.

func (*ReportPackageManifestUpdateOne) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportPackageManifestUpdateOne) ClearPackages added in v1.12.0

ClearPackages clears all "packages" edges to the ReportPackage entity.

func (*ReportPackageManifestUpdateOne) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportPackageManifestUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportPackageManifestUpdateOne) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageManifestUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportPackageManifestMutation object of the builder.

func (*ReportPackageManifestUpdateOne) RemovePackageIDs added in v1.12.0

func (rpmuo *ReportPackageManifestUpdateOne) RemovePackageIDs(ids ...int) *ReportPackageManifestUpdateOne

RemovePackageIDs removes the "packages" edge to ReportPackage entities by IDs.

func (*ReportPackageManifestUpdateOne) RemovePackages added in v1.12.0

RemovePackages removes "packages" edges to ReportPackage entities.

func (*ReportPackageManifestUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportPackageManifest entity.

func (*ReportPackageManifestUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportPackageManifestUpdateOne) Select added in v1.12.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportPackageManifestUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportPackageManifestUpdateOne) SetDisplayPath added in v1.12.0

SetDisplayPath sets the "display_path" field.

func (*ReportPackageManifestUpdateOne) SetEcosystem added in v1.12.0

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageManifestUpdateOne) SetManifestID added in v1.12.0

SetManifestID sets the "manifest_id" field.

func (*ReportPackageManifestUpdateOne) SetNamespace added in v1.12.0

SetNamespace sets the "namespace" field.

func (*ReportPackageManifestUpdateOne) SetNillableCreatedAt added in v1.12.0

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillableDisplayPath added in v1.12.0

func (rpmuo *ReportPackageManifestUpdateOne) SetNillableDisplayPath(s *string) *ReportPackageManifestUpdateOne

SetNillableDisplayPath sets the "display_path" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillableEcosystem added in v1.12.0

func (rpmuo *ReportPackageManifestUpdateOne) SetNillableEcosystem(s *string) *ReportPackageManifestUpdateOne

SetNillableEcosystem sets the "ecosystem" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillableManifestID added in v1.12.0

func (rpmuo *ReportPackageManifestUpdateOne) SetNillableManifestID(s *string) *ReportPackageManifestUpdateOne

SetNillableManifestID sets the "manifest_id" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillableNamespace added in v1.12.0

func (rpmuo *ReportPackageManifestUpdateOne) SetNillableNamespace(s *string) *ReportPackageManifestUpdateOne

SetNillableNamespace sets the "namespace" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillablePath added in v1.12.0

SetNillablePath sets the "path" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillableSourceType added in v1.12.0

func (rpmuo *ReportPackageManifestUpdateOne) SetNillableSourceType(s *string) *ReportPackageManifestUpdateOne

SetNillableSourceType sets the "source_type" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetNillableUpdatedAt added in v1.12.0

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportPackageManifestUpdateOne) SetPath added in v1.12.0

SetPath sets the "path" field.

func (*ReportPackageManifestUpdateOne) SetSourceType added in v1.12.0

SetSourceType sets the "source_type" field.

func (*ReportPackageManifestUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageManifestUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportPackageManifestUpdate builder.

type ReportPackageManifests added in v1.12.0

type ReportPackageManifests []*ReportPackageManifest

ReportPackageManifests is a parsable slice of ReportPackageManifest.

type ReportPackageMutation added in v1.12.0

type ReportPackageMutation struct {
	// contains filtered or unexported fields
}

ReportPackageMutation represents an operation that mutates the ReportPackage nodes in the graph.

func (*ReportPackageMutation) AddDependencyIDs added in v1.12.0

func (m *ReportPackageMutation) AddDependencyIDs(ids ...int)

AddDependencyIDs adds the "dependencies" edge to the ReportDependency entity by ids.

func (*ReportPackageMutation) AddDepth added in v1.12.0

func (m *ReportPackageMutation) AddDepth(i int)

AddDepth adds i to the "depth" field.

func (*ReportPackageMutation) AddField added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) AddLicenseIDs added in v1.12.0

func (m *ReportPackageMutation) AddLicenseIDs(ids ...int)

AddLicenseIDs adds the "licenses" edge to the ReportLicense entity by ids.

func (*ReportPackageMutation) AddManifestIDs added in v1.12.0

func (m *ReportPackageMutation) AddManifestIDs(ids ...int)

AddManifestIDs adds the "manifests" edge to the ReportPackageManifest entity by ids.

func (*ReportPackageMutation) AddProjectIDs added in v1.12.0

func (m *ReportPackageMutation) AddProjectIDs(ids ...int)

AddProjectIDs adds the "projects" edge to the ReportProject entity by ids.

func (*ReportPackageMutation) AddSlsaProvenanceIDs added in v1.12.0

func (m *ReportPackageMutation) AddSlsaProvenanceIDs(ids ...int)

AddSlsaProvenanceIDs adds the "slsa_provenances" edge to the ReportSlsaProvenance entity by ids.

func (*ReportPackageMutation) AddVulnerabilityIDs added in v1.12.0

func (m *ReportPackageMutation) AddVulnerabilityIDs(ids ...int)

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReportVulnerability entity by ids.

func (*ReportPackageMutation) AddedDepth added in v1.12.0

func (m *ReportPackageMutation) AddedDepth() (r int, exists bool)

AddedDepth returns the value that was added to the "depth" field in this mutation.

func (*ReportPackageMutation) AddedEdges added in v1.12.0

func (m *ReportPackageMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportPackageMutation) AddedField added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) AddedFields added in v1.12.0

func (m *ReportPackageMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportPackageMutation) AddedIDs added in v1.12.0

func (m *ReportPackageMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportPackageMutation) ClearCodeAnalysis added in v1.12.0

func (m *ReportPackageMutation) ClearCodeAnalysis()

ClearCodeAnalysis clears the value of the "code_analysis" field.

func (*ReportPackageMutation) ClearCreatedAt added in v1.12.0

func (m *ReportPackageMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportPackageMutation) ClearDependencies added in v1.12.0

func (m *ReportPackageMutation) ClearDependencies()

ClearDependencies clears the "dependencies" edge to the ReportDependency entity.

func (*ReportPackageMutation) ClearEdge added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) ClearField added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) ClearInsightsV2 added in v1.12.0

func (m *ReportPackageMutation) ClearInsightsV2()

ClearInsightsV2 clears the value of the "insights_v2" field.

func (*ReportPackageMutation) ClearLicenses added in v1.12.0

func (m *ReportPackageMutation) ClearLicenses()

ClearLicenses clears the "licenses" edge to the ReportLicense entity.

func (*ReportPackageMutation) ClearMalwareAnalysis added in v1.12.0

func (m *ReportPackageMutation) ClearMalwareAnalysis()

ClearMalwareAnalysis clears the "malware_analysis" edge to the ReportMalware entity.

func (*ReportPackageMutation) ClearManifests added in v1.12.0

func (m *ReportPackageMutation) ClearManifests()

ClearManifests clears the "manifests" edge to the ReportPackageManifest entity.

func (*ReportPackageMutation) ClearPackageDetails added in v1.12.0

func (m *ReportPackageMutation) ClearPackageDetails()

ClearPackageDetails clears the value of the "package_details" field.

func (*ReportPackageMutation) ClearProjects added in v1.12.0

func (m *ReportPackageMutation) ClearProjects()

ClearProjects clears the "projects" edge to the ReportProject entity.

func (*ReportPackageMutation) ClearSlsaProvenances added in v1.12.0

func (m *ReportPackageMutation) ClearSlsaProvenances()

ClearSlsaProvenances clears the "slsa_provenances" edge to the ReportSlsaProvenance entity.

func (*ReportPackageMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportPackageMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportPackageMutation) ClearVulnerabilities added in v1.12.0

func (m *ReportPackageMutation) ClearVulnerabilities()

ClearVulnerabilities clears the "vulnerabilities" edge to the ReportVulnerability entity.

func (*ReportPackageMutation) ClearedEdges added in v1.12.0

func (m *ReportPackageMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportPackageMutation) ClearedFields added in v1.12.0

func (m *ReportPackageMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportPackageMutation) Client added in v1.12.0

func (m ReportPackageMutation) 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 (*ReportPackageMutation) CodeAnalysis added in v1.12.0

func (m *ReportPackageMutation) CodeAnalysis() (r map[string]interface{}, exists bool)

CodeAnalysis returns the value of the "code_analysis" field in the mutation.

func (*ReportPackageMutation) CodeAnalysisCleared added in v1.12.0

func (m *ReportPackageMutation) CodeAnalysisCleared() bool

CodeAnalysisCleared returns if the "code_analysis" field was cleared in this mutation.

func (*ReportPackageMutation) CreatedAt added in v1.12.0

func (m *ReportPackageMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportPackageMutation) CreatedAtCleared added in v1.12.0

func (m *ReportPackageMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportPackageMutation) DependenciesCleared added in v1.12.0

func (m *ReportPackageMutation) DependenciesCleared() bool

DependenciesCleared reports if the "dependencies" edge to the ReportDependency entity was cleared.

func (*ReportPackageMutation) DependenciesIDs added in v1.12.0

func (m *ReportPackageMutation) DependenciesIDs() (ids []int)

DependenciesIDs returns the "dependencies" edge IDs in the mutation.

func (*ReportPackageMutation) Depth added in v1.12.0

func (m *ReportPackageMutation) Depth() (r int, exists bool)

Depth returns the value of the "depth" field in the mutation.

func (*ReportPackageMutation) Ecosystem added in v1.12.0

func (m *ReportPackageMutation) Ecosystem() (r string, exists bool)

Ecosystem returns the value of the "ecosystem" field in the mutation.

func (*ReportPackageMutation) EdgeCleared added in v1.12.0

func (m *ReportPackageMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportPackageMutation) Field added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) FieldCleared added in v1.12.0

func (m *ReportPackageMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportPackageMutation) Fields added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) ID added in v1.12.0

func (m *ReportPackageMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportPackageMutation) IDs added in v1.12.0

func (m *ReportPackageMutation) IDs(ctx context.Context) ([]int, 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 (*ReportPackageMutation) InsightsV2 added in v1.12.0

func (m *ReportPackageMutation) InsightsV2() (r map[string]interface{}, exists bool)

InsightsV2 returns the value of the "insights_v2" field in the mutation.

func (*ReportPackageMutation) InsightsV2Cleared added in v1.12.0

func (m *ReportPackageMutation) InsightsV2Cleared() bool

InsightsV2Cleared returns if the "insights_v2" field was cleared in this mutation.

func (*ReportPackageMutation) IsDirect added in v1.12.0

func (m *ReportPackageMutation) IsDirect() (r bool, exists bool)

IsDirect returns the value of the "is_direct" field in the mutation.

func (*ReportPackageMutation) IsMalware added in v1.12.0

func (m *ReportPackageMutation) IsMalware() (r bool, exists bool)

IsMalware returns the value of the "is_malware" field in the mutation.

func (*ReportPackageMutation) IsSuspicious added in v1.12.0

func (m *ReportPackageMutation) IsSuspicious() (r bool, exists bool)

IsSuspicious returns the value of the "is_suspicious" field in the mutation.

func (*ReportPackageMutation) LicensesCleared added in v1.12.0

func (m *ReportPackageMutation) LicensesCleared() bool

LicensesCleared reports if the "licenses" edge to the ReportLicense entity was cleared.

func (*ReportPackageMutation) LicensesIDs added in v1.12.0

func (m *ReportPackageMutation) LicensesIDs() (ids []int)

LicensesIDs returns the "licenses" edge IDs in the mutation.

func (*ReportPackageMutation) MalwareAnalysisCleared added in v1.12.0

func (m *ReportPackageMutation) MalwareAnalysisCleared() bool

MalwareAnalysisCleared reports if the "malware_analysis" edge to the ReportMalware entity was cleared.

func (*ReportPackageMutation) MalwareAnalysisID added in v1.12.0

func (m *ReportPackageMutation) MalwareAnalysisID() (id int, exists bool)

MalwareAnalysisID returns the "malware_analysis" edge ID in the mutation.

func (*ReportPackageMutation) MalwareAnalysisIDs added in v1.12.0

func (m *ReportPackageMutation) MalwareAnalysisIDs() (ids []int)

MalwareAnalysisIDs returns the "malware_analysis" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use MalwareAnalysisID instead. It exists only for internal usage by the builders.

func (*ReportPackageMutation) ManifestsCleared added in v1.12.0

func (m *ReportPackageMutation) ManifestsCleared() bool

ManifestsCleared reports if the "manifests" edge to the ReportPackageManifest entity was cleared.

func (*ReportPackageMutation) ManifestsIDs added in v1.12.0

func (m *ReportPackageMutation) ManifestsIDs() (ids []int)

ManifestsIDs returns the "manifests" edge IDs in the mutation.

func (*ReportPackageMutation) Name added in v1.12.0

func (m *ReportPackageMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ReportPackageMutation) OldCodeAnalysis added in v1.12.0

func (m *ReportPackageMutation) OldCodeAnalysis(ctx context.Context) (v map[string]interface{}, err error)

OldCodeAnalysis returns the old "code_analysis" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldCreatedAt added in v1.12.0

func (m *ReportPackageMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldDepth added in v1.12.0

func (m *ReportPackageMutation) OldDepth(ctx context.Context) (v int, err error)

OldDepth returns the old "depth" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldEcosystem added in v1.12.0

func (m *ReportPackageMutation) OldEcosystem(ctx context.Context) (v string, err error)

OldEcosystem returns the old "ecosystem" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldField added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) OldInsightsV2 added in v1.12.0

func (m *ReportPackageMutation) OldInsightsV2(ctx context.Context) (v map[string]interface{}, err error)

OldInsightsV2 returns the old "insights_v2" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldIsDirect added in v1.12.0

func (m *ReportPackageMutation) OldIsDirect(ctx context.Context) (v bool, err error)

OldIsDirect returns the old "is_direct" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldIsMalware added in v1.12.0

func (m *ReportPackageMutation) OldIsMalware(ctx context.Context) (v bool, err error)

OldIsMalware returns the old "is_malware" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldIsSuspicious added in v1.12.0

func (m *ReportPackageMutation) OldIsSuspicious(ctx context.Context) (v bool, err error)

OldIsSuspicious returns the old "is_suspicious" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldName added in v1.12.0

func (m *ReportPackageMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldPackageDetails added in v1.12.0

func (m *ReportPackageMutation) OldPackageDetails(ctx context.Context) (v map[string]interface{}, err error)

OldPackageDetails returns the old "package_details" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldPackageID added in v1.12.0

func (m *ReportPackageMutation) OldPackageID(ctx context.Context) (v string, err error)

OldPackageID returns the old "package_id" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldPackageURL added in v1.12.0

func (m *ReportPackageMutation) OldPackageURL(ctx context.Context) (v string, err error)

OldPackageURL returns the old "package_url" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldUpdatedAt added in v1.12.0

func (m *ReportPackageMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) OldVersion added in v1.12.0

func (m *ReportPackageMutation) OldVersion(ctx context.Context) (v string, err error)

OldVersion returns the old "version" field's value of the ReportPackage entity. If the ReportPackage 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 (*ReportPackageMutation) Op added in v1.12.0

func (m *ReportPackageMutation) Op() Op

Op returns the operation name.

func (*ReportPackageMutation) PackageDetails added in v1.12.0

func (m *ReportPackageMutation) PackageDetails() (r map[string]interface{}, exists bool)

PackageDetails returns the value of the "package_details" field in the mutation.

func (*ReportPackageMutation) PackageDetailsCleared added in v1.12.0

func (m *ReportPackageMutation) PackageDetailsCleared() bool

PackageDetailsCleared returns if the "package_details" field was cleared in this mutation.

func (*ReportPackageMutation) PackageID added in v1.12.0

func (m *ReportPackageMutation) PackageID() (r string, exists bool)

PackageID returns the value of the "package_id" field in the mutation.

func (*ReportPackageMutation) PackageURL added in v1.12.0

func (m *ReportPackageMutation) PackageURL() (r string, exists bool)

PackageURL returns the value of the "package_url" field in the mutation.

func (*ReportPackageMutation) ProjectsCleared added in v1.12.0

func (m *ReportPackageMutation) ProjectsCleared() bool

ProjectsCleared reports if the "projects" edge to the ReportProject entity was cleared.

func (*ReportPackageMutation) ProjectsIDs added in v1.12.0

func (m *ReportPackageMutation) ProjectsIDs() (ids []int)

ProjectsIDs returns the "projects" edge IDs in the mutation.

func (*ReportPackageMutation) RemoveDependencyIDs added in v1.12.0

func (m *ReportPackageMutation) RemoveDependencyIDs(ids ...int)

RemoveDependencyIDs removes the "dependencies" edge to the ReportDependency entity by IDs.

func (*ReportPackageMutation) RemoveLicenseIDs added in v1.12.0

func (m *ReportPackageMutation) RemoveLicenseIDs(ids ...int)

RemoveLicenseIDs removes the "licenses" edge to the ReportLicense entity by IDs.

func (*ReportPackageMutation) RemoveManifestIDs added in v1.12.0

func (m *ReportPackageMutation) RemoveManifestIDs(ids ...int)

RemoveManifestIDs removes the "manifests" edge to the ReportPackageManifest entity by IDs.

func (*ReportPackageMutation) RemoveProjectIDs added in v1.12.0

func (m *ReportPackageMutation) RemoveProjectIDs(ids ...int)

RemoveProjectIDs removes the "projects" edge to the ReportProject entity by IDs.

func (*ReportPackageMutation) RemoveSlsaProvenanceIDs added in v1.12.0

func (m *ReportPackageMutation) RemoveSlsaProvenanceIDs(ids ...int)

RemoveSlsaProvenanceIDs removes the "slsa_provenances" edge to the ReportSlsaProvenance entity by IDs.

func (*ReportPackageMutation) RemoveVulnerabilityIDs added in v1.12.0

func (m *ReportPackageMutation) RemoveVulnerabilityIDs(ids ...int)

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to the ReportVulnerability entity by IDs.

func (*ReportPackageMutation) RemovedDependenciesIDs added in v1.12.0

func (m *ReportPackageMutation) RemovedDependenciesIDs() (ids []int)

RemovedDependencies returns the removed IDs of the "dependencies" edge to the ReportDependency entity.

func (*ReportPackageMutation) RemovedEdges added in v1.12.0

func (m *ReportPackageMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportPackageMutation) RemovedIDs added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) RemovedLicensesIDs added in v1.12.0

func (m *ReportPackageMutation) RemovedLicensesIDs() (ids []int)

RemovedLicenses returns the removed IDs of the "licenses" edge to the ReportLicense entity.

func (*ReportPackageMutation) RemovedManifestsIDs added in v1.12.0

func (m *ReportPackageMutation) RemovedManifestsIDs() (ids []int)

RemovedManifests returns the removed IDs of the "manifests" edge to the ReportPackageManifest entity.

func (*ReportPackageMutation) RemovedProjectsIDs added in v1.12.0

func (m *ReportPackageMutation) RemovedProjectsIDs() (ids []int)

RemovedProjects returns the removed IDs of the "projects" edge to the ReportProject entity.

func (*ReportPackageMutation) RemovedSlsaProvenancesIDs added in v1.12.0

func (m *ReportPackageMutation) RemovedSlsaProvenancesIDs() (ids []int)

RemovedSlsaProvenances returns the removed IDs of the "slsa_provenances" edge to the ReportSlsaProvenance entity.

func (*ReportPackageMutation) RemovedVulnerabilitiesIDs added in v1.12.0

func (m *ReportPackageMutation) RemovedVulnerabilitiesIDs() (ids []int)

RemovedVulnerabilities returns the removed IDs of the "vulnerabilities" edge to the ReportVulnerability entity.

func (*ReportPackageMutation) ResetCodeAnalysis added in v1.12.0

func (m *ReportPackageMutation) ResetCodeAnalysis()

ResetCodeAnalysis resets all changes to the "code_analysis" field.

func (*ReportPackageMutation) ResetCreatedAt added in v1.12.0

func (m *ReportPackageMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportPackageMutation) ResetDependencies added in v1.12.0

func (m *ReportPackageMutation) ResetDependencies()

ResetDependencies resets all changes to the "dependencies" edge.

func (*ReportPackageMutation) ResetDepth added in v1.12.0

func (m *ReportPackageMutation) ResetDepth()

ResetDepth resets all changes to the "depth" field.

func (*ReportPackageMutation) ResetEcosystem added in v1.12.0

func (m *ReportPackageMutation) ResetEcosystem()

ResetEcosystem resets all changes to the "ecosystem" field.

func (*ReportPackageMutation) ResetEdge added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) ResetField added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) ResetInsightsV2 added in v1.12.0

func (m *ReportPackageMutation) ResetInsightsV2()

ResetInsightsV2 resets all changes to the "insights_v2" field.

func (*ReportPackageMutation) ResetIsDirect added in v1.12.0

func (m *ReportPackageMutation) ResetIsDirect()

ResetIsDirect resets all changes to the "is_direct" field.

func (*ReportPackageMutation) ResetIsMalware added in v1.12.0

func (m *ReportPackageMutation) ResetIsMalware()

ResetIsMalware resets all changes to the "is_malware" field.

func (*ReportPackageMutation) ResetIsSuspicious added in v1.12.0

func (m *ReportPackageMutation) ResetIsSuspicious()

ResetIsSuspicious resets all changes to the "is_suspicious" field.

func (*ReportPackageMutation) ResetLicenses added in v1.12.0

func (m *ReportPackageMutation) ResetLicenses()

ResetLicenses resets all changes to the "licenses" edge.

func (*ReportPackageMutation) ResetMalwareAnalysis added in v1.12.0

func (m *ReportPackageMutation) ResetMalwareAnalysis()

ResetMalwareAnalysis resets all changes to the "malware_analysis" edge.

func (*ReportPackageMutation) ResetManifests added in v1.12.0

func (m *ReportPackageMutation) ResetManifests()

ResetManifests resets all changes to the "manifests" edge.

func (*ReportPackageMutation) ResetName added in v1.12.0

func (m *ReportPackageMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ReportPackageMutation) ResetPackageDetails added in v1.12.0

func (m *ReportPackageMutation) ResetPackageDetails()

ResetPackageDetails resets all changes to the "package_details" field.

func (*ReportPackageMutation) ResetPackageID added in v1.12.0

func (m *ReportPackageMutation) ResetPackageID()

ResetPackageID resets all changes to the "package_id" field.

func (*ReportPackageMutation) ResetPackageURL added in v1.12.0

func (m *ReportPackageMutation) ResetPackageURL()

ResetPackageURL resets all changes to the "package_url" field.

func (*ReportPackageMutation) ResetProjects added in v1.12.0

func (m *ReportPackageMutation) ResetProjects()

ResetProjects resets all changes to the "projects" edge.

func (*ReportPackageMutation) ResetSlsaProvenances added in v1.12.0

func (m *ReportPackageMutation) ResetSlsaProvenances()

ResetSlsaProvenances resets all changes to the "slsa_provenances" edge.

func (*ReportPackageMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportPackageMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportPackageMutation) ResetVersion added in v1.12.0

func (m *ReportPackageMutation) ResetVersion()

ResetVersion resets all changes to the "version" field.

func (*ReportPackageMutation) ResetVulnerabilities added in v1.12.0

func (m *ReportPackageMutation) ResetVulnerabilities()

ResetVulnerabilities resets all changes to the "vulnerabilities" edge.

func (*ReportPackageMutation) SetCodeAnalysis added in v1.12.0

func (m *ReportPackageMutation) SetCodeAnalysis(value map[string]interface{})

SetCodeAnalysis sets the "code_analysis" field.

func (*ReportPackageMutation) SetCreatedAt added in v1.12.0

func (m *ReportPackageMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportPackageMutation) SetDepth added in v1.12.0

func (m *ReportPackageMutation) SetDepth(i int)

SetDepth sets the "depth" field.

func (*ReportPackageMutation) SetEcosystem added in v1.12.0

func (m *ReportPackageMutation) SetEcosystem(s string)

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageMutation) SetField added in v1.12.0

func (m *ReportPackageMutation) 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 (*ReportPackageMutation) SetInsightsV2 added in v1.12.0

func (m *ReportPackageMutation) SetInsightsV2(value map[string]interface{})

SetInsightsV2 sets the "insights_v2" field.

func (*ReportPackageMutation) SetIsDirect added in v1.12.0

func (m *ReportPackageMutation) SetIsDirect(b bool)

SetIsDirect sets the "is_direct" field.

func (*ReportPackageMutation) SetIsMalware added in v1.12.0

func (m *ReportPackageMutation) SetIsMalware(b bool)

SetIsMalware sets the "is_malware" field.

func (*ReportPackageMutation) SetIsSuspicious added in v1.12.0

func (m *ReportPackageMutation) SetIsSuspicious(b bool)

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportPackageMutation) SetMalwareAnalysisID added in v1.12.0

func (m *ReportPackageMutation) SetMalwareAnalysisID(id int)

SetMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by id.

func (*ReportPackageMutation) SetName added in v1.12.0

func (m *ReportPackageMutation) SetName(s string)

SetName sets the "name" field.

func (*ReportPackageMutation) SetOp added in v1.12.0

func (m *ReportPackageMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportPackageMutation) SetPackageDetails added in v1.12.0

func (m *ReportPackageMutation) SetPackageDetails(value map[string]interface{})

SetPackageDetails sets the "package_details" field.

func (*ReportPackageMutation) SetPackageID added in v1.12.0

func (m *ReportPackageMutation) SetPackageID(s string)

SetPackageID sets the "package_id" field.

func (*ReportPackageMutation) SetPackageURL added in v1.12.0

func (m *ReportPackageMutation) SetPackageURL(s string)

SetPackageURL sets the "package_url" field.

func (*ReportPackageMutation) SetUpdatedAt added in v1.12.0

func (m *ReportPackageMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageMutation) SetVersion added in v1.12.0

func (m *ReportPackageMutation) SetVersion(s string)

SetVersion sets the "version" field.

func (*ReportPackageMutation) SlsaProvenancesCleared added in v1.12.0

func (m *ReportPackageMutation) SlsaProvenancesCleared() bool

SlsaProvenancesCleared reports if the "slsa_provenances" edge to the ReportSlsaProvenance entity was cleared.

func (*ReportPackageMutation) SlsaProvenancesIDs added in v1.12.0

func (m *ReportPackageMutation) SlsaProvenancesIDs() (ids []int)

SlsaProvenancesIDs returns the "slsa_provenances" edge IDs in the mutation.

func (ReportPackageMutation) Tx added in v1.12.0

func (m ReportPackageMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportPackageMutation) Type added in v1.12.0

func (m *ReportPackageMutation) Type() string

Type returns the node type of this mutation (ReportPackage).

func (*ReportPackageMutation) UpdatedAt added in v1.12.0

func (m *ReportPackageMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportPackageMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportPackageMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportPackageMutation) Version added in v1.12.0

func (m *ReportPackageMutation) Version() (r string, exists bool)

Version returns the value of the "version" field in the mutation.

func (*ReportPackageMutation) VulnerabilitiesCleared added in v1.12.0

func (m *ReportPackageMutation) VulnerabilitiesCleared() bool

VulnerabilitiesCleared reports if the "vulnerabilities" edge to the ReportVulnerability entity was cleared.

func (*ReportPackageMutation) VulnerabilitiesIDs added in v1.12.0

func (m *ReportPackageMutation) VulnerabilitiesIDs() (ids []int)

VulnerabilitiesIDs returns the "vulnerabilities" edge IDs in the mutation.

func (*ReportPackageMutation) Where added in v1.12.0

Where appends a list predicates to the ReportPackageMutation builder.

func (*ReportPackageMutation) WhereP added in v1.12.0

func (m *ReportPackageMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportPackageMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportPackageQuery added in v1.12.0

type ReportPackageQuery struct {
	// contains filtered or unexported fields
}

ReportPackageQuery is the builder for querying ReportPackage entities.

func (*ReportPackageQuery) Aggregate added in v1.12.0

func (rpq *ReportPackageQuery) Aggregate(fns ...AggregateFunc) *ReportPackageSelect

Aggregate returns a ReportPackageSelect configured with the given aggregations.

func (*ReportPackageQuery) All added in v1.12.0

All executes the query and returns a list of ReportPackages.

func (*ReportPackageQuery) AllX added in v1.12.0

func (rpq *ReportPackageQuery) AllX(ctx context.Context) []*ReportPackage

AllX is like All, but panics if an error occurs.

func (*ReportPackageQuery) Clone added in v1.12.0

func (rpq *ReportPackageQuery) Clone() *ReportPackageQuery

Clone returns a duplicate of the ReportPackageQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportPackageQuery) Count added in v1.12.0

func (rpq *ReportPackageQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportPackageQuery) CountX added in v1.12.0

func (rpq *ReportPackageQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportPackageQuery) Exist added in v1.12.0

func (rpq *ReportPackageQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportPackageQuery) ExistX added in v1.12.0

func (rpq *ReportPackageQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportPackageQuery) First added in v1.12.0

First returns the first ReportPackage entity from the query. Returns a *NotFoundError when no ReportPackage was found.

func (*ReportPackageQuery) FirstID added in v1.12.0

func (rpq *ReportPackageQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportPackage ID from the query. Returns a *NotFoundError when no ReportPackage ID was found.

func (*ReportPackageQuery) FirstIDX added in v1.12.0

func (rpq *ReportPackageQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportPackageQuery) FirstX added in v1.12.0

func (rpq *ReportPackageQuery) FirstX(ctx context.Context) *ReportPackage

FirstX is like First, but panics if an error occurs.

func (*ReportPackageQuery) GroupBy added in v1.12.0

func (rpq *ReportPackageQuery) GroupBy(field string, fields ...string) *ReportPackageGroupBy

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 {
	PackageID string `json:"package_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReportPackage.Query().
	GroupBy(reportpackage.FieldPackageID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportPackageQuery) IDs added in v1.12.0

func (rpq *ReportPackageQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportPackage IDs.

func (*ReportPackageQuery) IDsX added in v1.12.0

func (rpq *ReportPackageQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportPackageQuery) Limit added in v1.12.0

func (rpq *ReportPackageQuery) Limit(limit int) *ReportPackageQuery

Limit the number of records to be returned by this query.

func (*ReportPackageQuery) Offset added in v1.12.0

func (rpq *ReportPackageQuery) Offset(offset int) *ReportPackageQuery

Offset to start from.

func (*ReportPackageQuery) Only added in v1.12.0

Only returns a single ReportPackage entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportPackage entity is found. Returns a *NotFoundError when no ReportPackage entities are found.

func (*ReportPackageQuery) OnlyID added in v1.12.0

func (rpq *ReportPackageQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportPackage ID in the query. Returns a *NotSingularError when more than one ReportPackage ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportPackageQuery) OnlyIDX added in v1.12.0

func (rpq *ReportPackageQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportPackageQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportPackageQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportPackageQuery) QueryDependencies added in v1.12.0

func (rpq *ReportPackageQuery) QueryDependencies() *ReportDependencyQuery

QueryDependencies chains the current query on the "dependencies" edge.

func (*ReportPackageQuery) QueryLicenses added in v1.12.0

func (rpq *ReportPackageQuery) QueryLicenses() *ReportLicenseQuery

QueryLicenses chains the current query on the "licenses" edge.

func (*ReportPackageQuery) QueryMalwareAnalysis added in v1.12.0

func (rpq *ReportPackageQuery) QueryMalwareAnalysis() *ReportMalwareQuery

QueryMalwareAnalysis chains the current query on the "malware_analysis" edge.

func (*ReportPackageQuery) QueryManifests added in v1.12.0

func (rpq *ReportPackageQuery) QueryManifests() *ReportPackageManifestQuery

QueryManifests chains the current query on the "manifests" edge.

func (*ReportPackageQuery) QueryProjects added in v1.12.0

func (rpq *ReportPackageQuery) QueryProjects() *ReportProjectQuery

QueryProjects chains the current query on the "projects" edge.

func (*ReportPackageQuery) QuerySlsaProvenances added in v1.12.0

func (rpq *ReportPackageQuery) QuerySlsaProvenances() *ReportSlsaProvenanceQuery

QuerySlsaProvenances chains the current query on the "slsa_provenances" edge.

func (*ReportPackageQuery) QueryVulnerabilities added in v1.12.0

func (rpq *ReportPackageQuery) QueryVulnerabilities() *ReportVulnerabilityQuery

QueryVulnerabilities chains the current query on the "vulnerabilities" edge.

func (*ReportPackageQuery) Select added in v1.12.0

func (rpq *ReportPackageQuery) Select(fields ...string) *ReportPackageSelect

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 {
	PackageID string `json:"package_id,omitempty"`
}

client.ReportPackage.Query().
	Select(reportpackage.FieldPackageID).
	Scan(ctx, &v)

func (*ReportPackageQuery) Unique added in v1.12.0

func (rpq *ReportPackageQuery) Unique(unique bool) *ReportPackageQuery

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 (*ReportPackageQuery) Where added in v1.12.0

Where adds a new predicate for the ReportPackageQuery builder.

func (*ReportPackageQuery) WithDependencies added in v1.12.0

func (rpq *ReportPackageQuery) WithDependencies(opts ...func(*ReportDependencyQuery)) *ReportPackageQuery

WithDependencies tells the query-builder to eager-load the nodes that are connected to the "dependencies" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportPackageQuery) WithLicenses added in v1.12.0

func (rpq *ReportPackageQuery) WithLicenses(opts ...func(*ReportLicenseQuery)) *ReportPackageQuery

WithLicenses tells the query-builder to eager-load the nodes that are connected to the "licenses" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportPackageQuery) WithMalwareAnalysis added in v1.12.0

func (rpq *ReportPackageQuery) WithMalwareAnalysis(opts ...func(*ReportMalwareQuery)) *ReportPackageQuery

WithMalwareAnalysis tells the query-builder to eager-load the nodes that are connected to the "malware_analysis" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportPackageQuery) WithManifests added in v1.12.0

func (rpq *ReportPackageQuery) WithManifests(opts ...func(*ReportPackageManifestQuery)) *ReportPackageQuery

WithManifests tells the query-builder to eager-load the nodes that are connected to the "manifests" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportPackageQuery) WithProjects added in v1.12.0

func (rpq *ReportPackageQuery) WithProjects(opts ...func(*ReportProjectQuery)) *ReportPackageQuery

WithProjects tells the query-builder to eager-load the nodes that are connected to the "projects" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportPackageQuery) WithSlsaProvenances added in v1.12.0

func (rpq *ReportPackageQuery) WithSlsaProvenances(opts ...func(*ReportSlsaProvenanceQuery)) *ReportPackageQuery

WithSlsaProvenances tells the query-builder to eager-load the nodes that are connected to the "slsa_provenances" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportPackageQuery) WithVulnerabilities added in v1.12.0

func (rpq *ReportPackageQuery) WithVulnerabilities(opts ...func(*ReportVulnerabilityQuery)) *ReportPackageQuery

WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge.

type ReportPackageSelect added in v1.12.0

type ReportPackageSelect struct {
	*ReportPackageQuery
	// contains filtered or unexported fields
}

ReportPackageSelect is the builder for selecting fields of ReportPackage entities.

func (*ReportPackageSelect) Aggregate added in v1.12.0

func (rps *ReportPackageSelect) Aggregate(fns ...AggregateFunc) *ReportPackageSelect

Aggregate adds the given aggregation functions to the selector query.

func (*ReportPackageSelect) Bool added in v1.12.0

func (s *ReportPackageSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) BoolX added in v1.12.0

func (s *ReportPackageSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportPackageSelect) Bools added in v1.12.0

func (s *ReportPackageSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) BoolsX added in v1.12.0

func (s *ReportPackageSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportPackageSelect) Float64 added in v1.12.0

func (s *ReportPackageSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) Float64X added in v1.12.0

func (s *ReportPackageSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportPackageSelect) Float64s added in v1.12.0

func (s *ReportPackageSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) Float64sX added in v1.12.0

func (s *ReportPackageSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportPackageSelect) Int added in v1.12.0

func (s *ReportPackageSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) IntX added in v1.12.0

func (s *ReportPackageSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportPackageSelect) Ints added in v1.12.0

func (s *ReportPackageSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) IntsX added in v1.12.0

func (s *ReportPackageSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportPackageSelect) Scan added in v1.12.0

func (rps *ReportPackageSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportPackageSelect) ScanX added in v1.12.0

func (s *ReportPackageSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportPackageSelect) String added in v1.12.0

func (s *ReportPackageSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) StringX added in v1.12.0

func (s *ReportPackageSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportPackageSelect) Strings added in v1.12.0

func (s *ReportPackageSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportPackageSelect) StringsX added in v1.12.0

func (s *ReportPackageSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportPackageUpdate added in v1.12.0

type ReportPackageUpdate struct {
	// contains filtered or unexported fields
}

ReportPackageUpdate is the builder for updating ReportPackage entities.

func (*ReportPackageUpdate) AddDependencies added in v1.12.0

func (rpu *ReportPackageUpdate) AddDependencies(r ...*ReportDependency) *ReportPackageUpdate

AddDependencies adds the "dependencies" edges to the ReportDependency entity.

func (*ReportPackageUpdate) AddDependencyIDs added in v1.12.0

func (rpu *ReportPackageUpdate) AddDependencyIDs(ids ...int) *ReportPackageUpdate

AddDependencyIDs adds the "dependencies" edge to the ReportDependency entity by IDs.

func (*ReportPackageUpdate) AddDepth added in v1.12.0

func (rpu *ReportPackageUpdate) AddDepth(i int) *ReportPackageUpdate

AddDepth adds i to the "depth" field.

func (*ReportPackageUpdate) AddLicenseIDs added in v1.12.0

func (rpu *ReportPackageUpdate) AddLicenseIDs(ids ...int) *ReportPackageUpdate

AddLicenseIDs adds the "licenses" edge to the ReportLicense entity by IDs.

func (*ReportPackageUpdate) AddLicenses added in v1.12.0

func (rpu *ReportPackageUpdate) AddLicenses(r ...*ReportLicense) *ReportPackageUpdate

AddLicenses adds the "licenses" edges to the ReportLicense entity.

func (*ReportPackageUpdate) AddManifestIDs added in v1.12.0

func (rpu *ReportPackageUpdate) AddManifestIDs(ids ...int) *ReportPackageUpdate

AddManifestIDs adds the "manifests" edge to the ReportPackageManifest entity by IDs.

func (*ReportPackageUpdate) AddManifests added in v1.12.0

AddManifests adds the "manifests" edges to the ReportPackageManifest entity.

func (*ReportPackageUpdate) AddProjectIDs added in v1.12.0

func (rpu *ReportPackageUpdate) AddProjectIDs(ids ...int) *ReportPackageUpdate

AddProjectIDs adds the "projects" edge to the ReportProject entity by IDs.

func (*ReportPackageUpdate) AddProjects added in v1.12.0

func (rpu *ReportPackageUpdate) AddProjects(r ...*ReportProject) *ReportPackageUpdate

AddProjects adds the "projects" edges to the ReportProject entity.

func (*ReportPackageUpdate) AddSlsaProvenanceIDs added in v1.12.0

func (rpu *ReportPackageUpdate) AddSlsaProvenanceIDs(ids ...int) *ReportPackageUpdate

AddSlsaProvenanceIDs adds the "slsa_provenances" edge to the ReportSlsaProvenance entity by IDs.

func (*ReportPackageUpdate) AddSlsaProvenances added in v1.12.0

func (rpu *ReportPackageUpdate) AddSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdate

AddSlsaProvenances adds the "slsa_provenances" edges to the ReportSlsaProvenance entity.

func (*ReportPackageUpdate) AddVulnerabilities added in v1.12.0

func (rpu *ReportPackageUpdate) AddVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdate

AddVulnerabilities adds the "vulnerabilities" edges to the ReportVulnerability entity.

func (*ReportPackageUpdate) AddVulnerabilityIDs added in v1.12.0

func (rpu *ReportPackageUpdate) AddVulnerabilityIDs(ids ...int) *ReportPackageUpdate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReportVulnerability entity by IDs.

func (*ReportPackageUpdate) ClearCodeAnalysis added in v1.12.0

func (rpu *ReportPackageUpdate) ClearCodeAnalysis() *ReportPackageUpdate

ClearCodeAnalysis clears the value of the "code_analysis" field.

func (*ReportPackageUpdate) ClearCreatedAt added in v1.12.0

func (rpu *ReportPackageUpdate) ClearCreatedAt() *ReportPackageUpdate

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportPackageUpdate) ClearDependencies added in v1.12.0

func (rpu *ReportPackageUpdate) ClearDependencies() *ReportPackageUpdate

ClearDependencies clears all "dependencies" edges to the ReportDependency entity.

func (*ReportPackageUpdate) ClearInsightsV2 added in v1.12.0

func (rpu *ReportPackageUpdate) ClearInsightsV2() *ReportPackageUpdate

ClearInsightsV2 clears the value of the "insights_v2" field.

func (*ReportPackageUpdate) ClearLicenses added in v1.12.0

func (rpu *ReportPackageUpdate) ClearLicenses() *ReportPackageUpdate

ClearLicenses clears all "licenses" edges to the ReportLicense entity.

func (*ReportPackageUpdate) ClearMalwareAnalysis added in v1.12.0

func (rpu *ReportPackageUpdate) ClearMalwareAnalysis() *ReportPackageUpdate

ClearMalwareAnalysis clears the "malware_analysis" edge to the ReportMalware entity.

func (*ReportPackageUpdate) ClearManifests added in v1.12.0

func (rpu *ReportPackageUpdate) ClearManifests() *ReportPackageUpdate

ClearManifests clears all "manifests" edges to the ReportPackageManifest entity.

func (*ReportPackageUpdate) ClearPackageDetails added in v1.12.0

func (rpu *ReportPackageUpdate) ClearPackageDetails() *ReportPackageUpdate

ClearPackageDetails clears the value of the "package_details" field.

func (*ReportPackageUpdate) ClearProjects added in v1.12.0

func (rpu *ReportPackageUpdate) ClearProjects() *ReportPackageUpdate

ClearProjects clears all "projects" edges to the ReportProject entity.

func (*ReportPackageUpdate) ClearSlsaProvenances added in v1.12.0

func (rpu *ReportPackageUpdate) ClearSlsaProvenances() *ReportPackageUpdate

ClearSlsaProvenances clears all "slsa_provenances" edges to the ReportSlsaProvenance entity.

func (*ReportPackageUpdate) ClearUpdatedAt added in v1.12.0

func (rpu *ReportPackageUpdate) ClearUpdatedAt() *ReportPackageUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportPackageUpdate) ClearVulnerabilities added in v1.12.0

func (rpu *ReportPackageUpdate) ClearVulnerabilities() *ReportPackageUpdate

ClearVulnerabilities clears all "vulnerabilities" edges to the ReportVulnerability entity.

func (*ReportPackageUpdate) Exec added in v1.12.0

func (rpu *ReportPackageUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportPackageUpdate) ExecX added in v1.12.0

func (rpu *ReportPackageUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageUpdate) Mutation added in v1.12.0

func (rpu *ReportPackageUpdate) Mutation() *ReportPackageMutation

Mutation returns the ReportPackageMutation object of the builder.

func (*ReportPackageUpdate) RemoveDependencies added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveDependencies(r ...*ReportDependency) *ReportPackageUpdate

RemoveDependencies removes "dependencies" edges to ReportDependency entities.

func (*ReportPackageUpdate) RemoveDependencyIDs added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveDependencyIDs(ids ...int) *ReportPackageUpdate

RemoveDependencyIDs removes the "dependencies" edge to ReportDependency entities by IDs.

func (*ReportPackageUpdate) RemoveLicenseIDs added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveLicenseIDs(ids ...int) *ReportPackageUpdate

RemoveLicenseIDs removes the "licenses" edge to ReportLicense entities by IDs.

func (*ReportPackageUpdate) RemoveLicenses added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveLicenses(r ...*ReportLicense) *ReportPackageUpdate

RemoveLicenses removes "licenses" edges to ReportLicense entities.

func (*ReportPackageUpdate) RemoveManifestIDs added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveManifestIDs(ids ...int) *ReportPackageUpdate

RemoveManifestIDs removes the "manifests" edge to ReportPackageManifest entities by IDs.

func (*ReportPackageUpdate) RemoveManifests added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveManifests(r ...*ReportPackageManifest) *ReportPackageUpdate

RemoveManifests removes "manifests" edges to ReportPackageManifest entities.

func (*ReportPackageUpdate) RemoveProjectIDs added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveProjectIDs(ids ...int) *ReportPackageUpdate

RemoveProjectIDs removes the "projects" edge to ReportProject entities by IDs.

func (*ReportPackageUpdate) RemoveProjects added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveProjects(r ...*ReportProject) *ReportPackageUpdate

RemoveProjects removes "projects" edges to ReportProject entities.

func (*ReportPackageUpdate) RemoveSlsaProvenanceIDs added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveSlsaProvenanceIDs(ids ...int) *ReportPackageUpdate

RemoveSlsaProvenanceIDs removes the "slsa_provenances" edge to ReportSlsaProvenance entities by IDs.

func (*ReportPackageUpdate) RemoveSlsaProvenances added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdate

RemoveSlsaProvenances removes "slsa_provenances" edges to ReportSlsaProvenance entities.

func (*ReportPackageUpdate) RemoveVulnerabilities added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdate

RemoveVulnerabilities removes "vulnerabilities" edges to ReportVulnerability entities.

func (*ReportPackageUpdate) RemoveVulnerabilityIDs added in v1.12.0

func (rpu *ReportPackageUpdate) RemoveVulnerabilityIDs(ids ...int) *ReportPackageUpdate

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReportVulnerability entities by IDs.

func (*ReportPackageUpdate) Save added in v1.12.0

func (rpu *ReportPackageUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportPackageUpdate) SaveX added in v1.12.0

func (rpu *ReportPackageUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportPackageUpdate) SetCodeAnalysis added in v1.12.0

func (rpu *ReportPackageUpdate) SetCodeAnalysis(m map[string]interface{}) *ReportPackageUpdate

SetCodeAnalysis sets the "code_analysis" field.

func (*ReportPackageUpdate) SetCreatedAt added in v1.12.0

func (rpu *ReportPackageUpdate) SetCreatedAt(t time.Time) *ReportPackageUpdate

SetCreatedAt sets the "created_at" field.

func (*ReportPackageUpdate) SetDepth added in v1.12.0

func (rpu *ReportPackageUpdate) SetDepth(i int) *ReportPackageUpdate

SetDepth sets the "depth" field.

func (*ReportPackageUpdate) SetEcosystem added in v1.12.0

func (rpu *ReportPackageUpdate) SetEcosystem(s string) *ReportPackageUpdate

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageUpdate) SetInsightsV2 added in v1.12.0

func (rpu *ReportPackageUpdate) SetInsightsV2(m map[string]interface{}) *ReportPackageUpdate

SetInsightsV2 sets the "insights_v2" field.

func (*ReportPackageUpdate) SetIsDirect added in v1.12.0

func (rpu *ReportPackageUpdate) SetIsDirect(b bool) *ReportPackageUpdate

SetIsDirect sets the "is_direct" field.

func (*ReportPackageUpdate) SetIsMalware added in v1.12.0

func (rpu *ReportPackageUpdate) SetIsMalware(b bool) *ReportPackageUpdate

SetIsMalware sets the "is_malware" field.

func (*ReportPackageUpdate) SetIsSuspicious added in v1.12.0

func (rpu *ReportPackageUpdate) SetIsSuspicious(b bool) *ReportPackageUpdate

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportPackageUpdate) SetMalwareAnalysis added in v1.12.0

func (rpu *ReportPackageUpdate) SetMalwareAnalysis(r *ReportMalware) *ReportPackageUpdate

SetMalwareAnalysis sets the "malware_analysis" edge to the ReportMalware entity.

func (*ReportPackageUpdate) SetMalwareAnalysisID added in v1.12.0

func (rpu *ReportPackageUpdate) SetMalwareAnalysisID(id int) *ReportPackageUpdate

SetMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by ID.

func (*ReportPackageUpdate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportPackageUpdate) SetNillableCreatedAt added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableCreatedAt(t *time.Time) *ReportPackageUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableDepth added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableDepth(i *int) *ReportPackageUpdate

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableEcosystem added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableEcosystem(s *string) *ReportPackageUpdate

SetNillableEcosystem sets the "ecosystem" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableIsDirect added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableIsDirect(b *bool) *ReportPackageUpdate

SetNillableIsDirect sets the "is_direct" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableIsMalware added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableIsMalware(b *bool) *ReportPackageUpdate

SetNillableIsMalware sets the "is_malware" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableIsSuspicious added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableIsSuspicious(b *bool) *ReportPackageUpdate

SetNillableIsSuspicious sets the "is_suspicious" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableMalwareAnalysisID added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableMalwareAnalysisID(id *int) *ReportPackageUpdate

SetNillableMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by ID if the given value is not nil.

func (*ReportPackageUpdate) SetNillableName added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableName(s *string) *ReportPackageUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillablePackageID added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillablePackageID(s *string) *ReportPackageUpdate

SetNillablePackageID sets the "package_id" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillablePackageURL added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillablePackageURL(s *string) *ReportPackageUpdate

SetNillablePackageURL sets the "package_url" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableUpdatedAt added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableUpdatedAt(t *time.Time) *ReportPackageUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportPackageUpdate) SetNillableVersion added in v1.12.0

func (rpu *ReportPackageUpdate) SetNillableVersion(s *string) *ReportPackageUpdate

SetNillableVersion sets the "version" field if the given value is not nil.

func (*ReportPackageUpdate) SetPackageDetails added in v1.12.0

func (rpu *ReportPackageUpdate) SetPackageDetails(m map[string]interface{}) *ReportPackageUpdate

SetPackageDetails sets the "package_details" field.

func (*ReportPackageUpdate) SetPackageID added in v1.12.0

func (rpu *ReportPackageUpdate) SetPackageID(s string) *ReportPackageUpdate

SetPackageID sets the "package_id" field.

func (*ReportPackageUpdate) SetPackageURL added in v1.12.0

func (rpu *ReportPackageUpdate) SetPackageURL(s string) *ReportPackageUpdate

SetPackageURL sets the "package_url" field.

func (*ReportPackageUpdate) SetUpdatedAt added in v1.12.0

func (rpu *ReportPackageUpdate) SetUpdatedAt(t time.Time) *ReportPackageUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageUpdate) SetVersion added in v1.12.0

func (rpu *ReportPackageUpdate) SetVersion(s string) *ReportPackageUpdate

SetVersion sets the "version" field.

func (*ReportPackageUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportPackageUpdate builder.

type ReportPackageUpdateOne added in v1.12.0

type ReportPackageUpdateOne struct {
	// contains filtered or unexported fields
}

ReportPackageUpdateOne is the builder for updating a single ReportPackage entity.

func (*ReportPackageUpdateOne) AddDependencies added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddDependencies(r ...*ReportDependency) *ReportPackageUpdateOne

AddDependencies adds the "dependencies" edges to the ReportDependency entity.

func (*ReportPackageUpdateOne) AddDependencyIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddDependencyIDs(ids ...int) *ReportPackageUpdateOne

AddDependencyIDs adds the "dependencies" edge to the ReportDependency entity by IDs.

func (*ReportPackageUpdateOne) AddDepth added in v1.12.0

AddDepth adds i to the "depth" field.

func (*ReportPackageUpdateOne) AddLicenseIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddLicenseIDs(ids ...int) *ReportPackageUpdateOne

AddLicenseIDs adds the "licenses" edge to the ReportLicense entity by IDs.

func (*ReportPackageUpdateOne) AddLicenses added in v1.12.0

AddLicenses adds the "licenses" edges to the ReportLicense entity.

func (*ReportPackageUpdateOne) AddManifestIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddManifestIDs(ids ...int) *ReportPackageUpdateOne

AddManifestIDs adds the "manifests" edge to the ReportPackageManifest entity by IDs.

func (*ReportPackageUpdateOne) AddManifests added in v1.12.0

AddManifests adds the "manifests" edges to the ReportPackageManifest entity.

func (*ReportPackageUpdateOne) AddProjectIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddProjectIDs(ids ...int) *ReportPackageUpdateOne

AddProjectIDs adds the "projects" edge to the ReportProject entity by IDs.

func (*ReportPackageUpdateOne) AddProjects added in v1.12.0

AddProjects adds the "projects" edges to the ReportProject entity.

func (*ReportPackageUpdateOne) AddSlsaProvenanceIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddSlsaProvenanceIDs(ids ...int) *ReportPackageUpdateOne

AddSlsaProvenanceIDs adds the "slsa_provenances" edge to the ReportSlsaProvenance entity by IDs.

func (*ReportPackageUpdateOne) AddSlsaProvenances added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdateOne

AddSlsaProvenances adds the "slsa_provenances" edges to the ReportSlsaProvenance entity.

func (*ReportPackageUpdateOne) AddVulnerabilities added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdateOne

AddVulnerabilities adds the "vulnerabilities" edges to the ReportVulnerability entity.

func (*ReportPackageUpdateOne) AddVulnerabilityIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) AddVulnerabilityIDs(ids ...int) *ReportPackageUpdateOne

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReportVulnerability entity by IDs.

func (*ReportPackageUpdateOne) ClearCodeAnalysis added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearCodeAnalysis() *ReportPackageUpdateOne

ClearCodeAnalysis clears the value of the "code_analysis" field.

func (*ReportPackageUpdateOne) ClearCreatedAt added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearCreatedAt() *ReportPackageUpdateOne

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportPackageUpdateOne) ClearDependencies added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearDependencies() *ReportPackageUpdateOne

ClearDependencies clears all "dependencies" edges to the ReportDependency entity.

func (*ReportPackageUpdateOne) ClearInsightsV2 added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearInsightsV2() *ReportPackageUpdateOne

ClearInsightsV2 clears the value of the "insights_v2" field.

func (*ReportPackageUpdateOne) ClearLicenses added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearLicenses() *ReportPackageUpdateOne

ClearLicenses clears all "licenses" edges to the ReportLicense entity.

func (*ReportPackageUpdateOne) ClearMalwareAnalysis added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearMalwareAnalysis() *ReportPackageUpdateOne

ClearMalwareAnalysis clears the "malware_analysis" edge to the ReportMalware entity.

func (*ReportPackageUpdateOne) ClearManifests added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearManifests() *ReportPackageUpdateOne

ClearManifests clears all "manifests" edges to the ReportPackageManifest entity.

func (*ReportPackageUpdateOne) ClearPackageDetails added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearPackageDetails() *ReportPackageUpdateOne

ClearPackageDetails clears the value of the "package_details" field.

func (*ReportPackageUpdateOne) ClearProjects added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearProjects() *ReportPackageUpdateOne

ClearProjects clears all "projects" edges to the ReportProject entity.

func (*ReportPackageUpdateOne) ClearSlsaProvenances added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearSlsaProvenances() *ReportPackageUpdateOne

ClearSlsaProvenances clears all "slsa_provenances" edges to the ReportSlsaProvenance entity.

func (*ReportPackageUpdateOne) ClearUpdatedAt added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearUpdatedAt() *ReportPackageUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportPackageUpdateOne) ClearVulnerabilities added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ClearVulnerabilities() *ReportPackageUpdateOne

ClearVulnerabilities clears all "vulnerabilities" edges to the ReportVulnerability entity.

func (*ReportPackageUpdateOne) Exec added in v1.12.0

func (rpuo *ReportPackageUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReportPackageUpdateOne) ExecX added in v1.12.0

func (rpuo *ReportPackageUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportPackageUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportPackageMutation object of the builder.

func (*ReportPackageUpdateOne) RemoveDependencies added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveDependencies(r ...*ReportDependency) *ReportPackageUpdateOne

RemoveDependencies removes "dependencies" edges to ReportDependency entities.

func (*ReportPackageUpdateOne) RemoveDependencyIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveDependencyIDs(ids ...int) *ReportPackageUpdateOne

RemoveDependencyIDs removes the "dependencies" edge to ReportDependency entities by IDs.

func (*ReportPackageUpdateOne) RemoveLicenseIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveLicenseIDs(ids ...int) *ReportPackageUpdateOne

RemoveLicenseIDs removes the "licenses" edge to ReportLicense entities by IDs.

func (*ReportPackageUpdateOne) RemoveLicenses added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveLicenses(r ...*ReportLicense) *ReportPackageUpdateOne

RemoveLicenses removes "licenses" edges to ReportLicense entities.

func (*ReportPackageUpdateOne) RemoveManifestIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveManifestIDs(ids ...int) *ReportPackageUpdateOne

RemoveManifestIDs removes the "manifests" edge to ReportPackageManifest entities by IDs.

func (*ReportPackageUpdateOne) RemoveManifests added in v1.12.0

RemoveManifests removes "manifests" edges to ReportPackageManifest entities.

func (*ReportPackageUpdateOne) RemoveProjectIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveProjectIDs(ids ...int) *ReportPackageUpdateOne

RemoveProjectIDs removes the "projects" edge to ReportProject entities by IDs.

func (*ReportPackageUpdateOne) RemoveProjects added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveProjects(r ...*ReportProject) *ReportPackageUpdateOne

RemoveProjects removes "projects" edges to ReportProject entities.

func (*ReportPackageUpdateOne) RemoveSlsaProvenanceIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveSlsaProvenanceIDs(ids ...int) *ReportPackageUpdateOne

RemoveSlsaProvenanceIDs removes the "slsa_provenances" edge to ReportSlsaProvenance entities by IDs.

func (*ReportPackageUpdateOne) RemoveSlsaProvenances added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdateOne

RemoveSlsaProvenances removes "slsa_provenances" edges to ReportSlsaProvenance entities.

func (*ReportPackageUpdateOne) RemoveVulnerabilities added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdateOne

RemoveVulnerabilities removes "vulnerabilities" edges to ReportVulnerability entities.

func (*ReportPackageUpdateOne) RemoveVulnerabilityIDs added in v1.12.0

func (rpuo *ReportPackageUpdateOne) RemoveVulnerabilityIDs(ids ...int) *ReportPackageUpdateOne

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReportVulnerability entities by IDs.

func (*ReportPackageUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportPackage entity.

func (*ReportPackageUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportPackageUpdateOne) Select added in v1.12.0

func (rpuo *ReportPackageUpdateOne) Select(field string, fields ...string) *ReportPackageUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportPackageUpdateOne) SetCodeAnalysis added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetCodeAnalysis(m map[string]interface{}) *ReportPackageUpdateOne

SetCodeAnalysis sets the "code_analysis" field.

func (*ReportPackageUpdateOne) SetCreatedAt added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetCreatedAt(t time.Time) *ReportPackageUpdateOne

SetCreatedAt sets the "created_at" field.

func (*ReportPackageUpdateOne) SetDepth added in v1.12.0

SetDepth sets the "depth" field.

func (*ReportPackageUpdateOne) SetEcosystem added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetEcosystem(s string) *ReportPackageUpdateOne

SetEcosystem sets the "ecosystem" field.

func (*ReportPackageUpdateOne) SetInsightsV2 added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetInsightsV2(m map[string]interface{}) *ReportPackageUpdateOne

SetInsightsV2 sets the "insights_v2" field.

func (*ReportPackageUpdateOne) SetIsDirect added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetIsDirect(b bool) *ReportPackageUpdateOne

SetIsDirect sets the "is_direct" field.

func (*ReportPackageUpdateOne) SetIsMalware added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetIsMalware(b bool) *ReportPackageUpdateOne

SetIsMalware sets the "is_malware" field.

func (*ReportPackageUpdateOne) SetIsSuspicious added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetIsSuspicious(b bool) *ReportPackageUpdateOne

SetIsSuspicious sets the "is_suspicious" field.

func (*ReportPackageUpdateOne) SetMalwareAnalysis added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetMalwareAnalysis(r *ReportMalware) *ReportPackageUpdateOne

SetMalwareAnalysis sets the "malware_analysis" edge to the ReportMalware entity.

func (*ReportPackageUpdateOne) SetMalwareAnalysisID added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetMalwareAnalysisID(id int) *ReportPackageUpdateOne

SetMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by ID.

func (*ReportPackageUpdateOne) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportPackageUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportPackageUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableDepth added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableDepth(i *int) *ReportPackageUpdateOne

SetNillableDepth sets the "depth" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableEcosystem added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableEcosystem(s *string) *ReportPackageUpdateOne

SetNillableEcosystem sets the "ecosystem" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableIsDirect added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableIsDirect(b *bool) *ReportPackageUpdateOne

SetNillableIsDirect sets the "is_direct" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableIsMalware added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableIsMalware(b *bool) *ReportPackageUpdateOne

SetNillableIsMalware sets the "is_malware" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableIsSuspicious added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableIsSuspicious(b *bool) *ReportPackageUpdateOne

SetNillableIsSuspicious sets the "is_suspicious" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableMalwareAnalysisID added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableMalwareAnalysisID(id *int) *ReportPackageUpdateOne

SetNillableMalwareAnalysisID sets the "malware_analysis" edge to the ReportMalware entity by ID if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableName added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableName(s *string) *ReportPackageUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillablePackageID added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillablePackageID(s *string) *ReportPackageUpdateOne

SetNillablePackageID sets the "package_id" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillablePackageURL added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillablePackageURL(s *string) *ReportPackageUpdateOne

SetNillablePackageURL sets the "package_url" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportPackageUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetNillableVersion added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetNillableVersion(s *string) *ReportPackageUpdateOne

SetNillableVersion sets the "version" field if the given value is not nil.

func (*ReportPackageUpdateOne) SetPackageDetails added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetPackageDetails(m map[string]interface{}) *ReportPackageUpdateOne

SetPackageDetails sets the "package_details" field.

func (*ReportPackageUpdateOne) SetPackageID added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetPackageID(s string) *ReportPackageUpdateOne

SetPackageID sets the "package_id" field.

func (*ReportPackageUpdateOne) SetPackageURL added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetPackageURL(s string) *ReportPackageUpdateOne

SetPackageURL sets the "package_url" field.

func (*ReportPackageUpdateOne) SetUpdatedAt added in v1.12.0

func (rpuo *ReportPackageUpdateOne) SetUpdatedAt(t time.Time) *ReportPackageUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*ReportPackageUpdateOne) SetVersion added in v1.12.0

SetVersion sets the "version" field.

func (*ReportPackageUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportPackageUpdate builder.

type ReportPackages added in v1.12.0

type ReportPackages []*ReportPackage

ReportPackages is a parsable slice of ReportPackage.

type ReportProject added in v1.12.0

type ReportProject struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// URL holds the value of the "url" field.
	URL string `json:"url,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// Stars holds the value of the "stars" field.
	Stars int32 `json:"stars,omitempty"`
	// Forks holds the value of the "forks" field.
	Forks int32 `json:"forks,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 ReportProjectQuery when eager-loading is set.
	Edges ReportProjectEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportProject is the model entity for the ReportProject schema.

func (*ReportProject) QueryPackage added in v1.12.0

func (rp *ReportProject) QueryPackage() *ReportPackageQuery

QueryPackage queries the "package" edge of the ReportProject entity.

func (*ReportProject) QueryScorecard added in v1.12.0

func (rp *ReportProject) QueryScorecard() *ReportScorecardQuery

QueryScorecard queries the "scorecard" edge of the ReportProject entity.

func (*ReportProject) String added in v1.12.0

func (rp *ReportProject) String() string

String implements the fmt.Stringer.

func (*ReportProject) Unwrap added in v1.12.0

func (rp *ReportProject) Unwrap() *ReportProject

Unwrap unwraps the ReportProject 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 (*ReportProject) Update added in v1.12.0

func (rp *ReportProject) Update() *ReportProjectUpdateOne

Update returns a builder for updating this ReportProject. Note that you need to call ReportProject.Unwrap() before calling this method if this ReportProject was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportProject) Value added in v1.12.0

func (rp *ReportProject) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportProject. This includes values selected through modifiers, order, etc.

type ReportProjectClient added in v1.12.0

type ReportProjectClient struct {
	// contains filtered or unexported fields
}

ReportProjectClient is a client for the ReportProject schema.

func NewReportProjectClient added in v1.12.0

func NewReportProjectClient(c config) *ReportProjectClient

NewReportProjectClient returns a client for the ReportProject from the given config.

func (*ReportProjectClient) Create added in v1.12.0

Create returns a builder for creating a ReportProject entity.

func (*ReportProjectClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportProject entities.

func (*ReportProjectClient) Delete added in v1.12.0

Delete returns a delete builder for ReportProject.

func (*ReportProjectClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportProjectClient) DeleteOneID added in v1.12.0

func (c *ReportProjectClient) DeleteOneID(id int) *ReportProjectDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportProjectClient) Get added in v1.12.0

Get returns a ReportProject entity by its id.

func (*ReportProjectClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportProjectClient) Hooks added in v1.12.0

func (c *ReportProjectClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportProjectClient) Intercept added in v1.12.0

func (c *ReportProjectClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportproject.Intercept(f(g(h())))`.

func (*ReportProjectClient) Interceptors added in v1.12.0

func (c *ReportProjectClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportProjectClient) MapCreateBulk added in v1.12.0

func (c *ReportProjectClient) MapCreateBulk(slice any, setFunc func(*ReportProjectCreate, int)) *ReportProjectCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportProjectClient) Query added in v1.12.0

Query returns a query builder for ReportProject.

func (*ReportProjectClient) QueryPackage added in v1.12.0

QueryPackage queries the package edge of a ReportProject.

func (*ReportProjectClient) QueryScorecard added in v1.12.0

func (c *ReportProjectClient) QueryScorecard(rp *ReportProject) *ReportScorecardQuery

QueryScorecard queries the scorecard edge of a ReportProject.

func (*ReportProjectClient) Update added in v1.12.0

Update returns an update builder for ReportProject.

func (*ReportProjectClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportProjectClient) UpdateOneID added in v1.12.0

func (c *ReportProjectClient) UpdateOneID(id int) *ReportProjectUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReportProjectClient) Use added in v1.12.0

func (c *ReportProjectClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportproject.Hooks(f(g(h())))`.

type ReportProjectCreate added in v1.12.0

type ReportProjectCreate struct {
	// contains filtered or unexported fields
}

ReportProjectCreate is the builder for creating a ReportProject entity.

func (*ReportProjectCreate) Exec added in v1.12.0

func (rpc *ReportProjectCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportProjectCreate) ExecX added in v1.12.0

func (rpc *ReportProjectCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportProjectCreate) Mutation added in v1.12.0

func (rpc *ReportProjectCreate) Mutation() *ReportProjectMutation

Mutation returns the ReportProjectMutation object of the builder.

func (*ReportProjectCreate) Save added in v1.12.0

Save creates the ReportProject in the database.

func (*ReportProjectCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportProjectCreate) SetCreatedAt added in v1.12.0

func (rpc *ReportProjectCreate) SetCreatedAt(t time.Time) *ReportProjectCreate

SetCreatedAt sets the "created_at" field.

func (*ReportProjectCreate) SetDescription added in v1.12.0

func (rpc *ReportProjectCreate) SetDescription(s string) *ReportProjectCreate

SetDescription sets the "description" field.

func (*ReportProjectCreate) SetForks added in v1.12.0

func (rpc *ReportProjectCreate) SetForks(i int32) *ReportProjectCreate

SetForks sets the "forks" field.

func (*ReportProjectCreate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportProjectCreate) SetNillableCreatedAt added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableCreatedAt(t *time.Time) *ReportProjectCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportProjectCreate) SetNillableDescription added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableDescription(s *string) *ReportProjectCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ReportProjectCreate) SetNillableForks added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableForks(i *int32) *ReportProjectCreate

SetNillableForks sets the "forks" field if the given value is not nil.

func (*ReportProjectCreate) SetNillablePackageID added in v1.12.0

func (rpc *ReportProjectCreate) SetNillablePackageID(id *int) *ReportProjectCreate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportProjectCreate) SetNillableScorecardID added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableScorecardID(id *int) *ReportProjectCreate

SetNillableScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID if the given value is not nil.

func (*ReportProjectCreate) SetNillableStars added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableStars(i *int32) *ReportProjectCreate

SetNillableStars sets the "stars" field if the given value is not nil.

func (*ReportProjectCreate) SetNillableURL added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableURL(s *string) *ReportProjectCreate

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportProjectCreate) SetNillableUpdatedAt added in v1.12.0

func (rpc *ReportProjectCreate) SetNillableUpdatedAt(t *time.Time) *ReportProjectCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportProjectCreate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportProjectCreate) SetPackageID added in v1.12.0

func (rpc *ReportProjectCreate) SetPackageID(id int) *ReportProjectCreate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportProjectCreate) SetScorecard added in v1.12.0

SetScorecard sets the "scorecard" edge to the ReportScorecard entity.

func (*ReportProjectCreate) SetScorecardID added in v1.12.0

func (rpc *ReportProjectCreate) SetScorecardID(id int) *ReportProjectCreate

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.

func (*ReportProjectCreate) SetStars added in v1.12.0

func (rpc *ReportProjectCreate) SetStars(i int32) *ReportProjectCreate

SetStars sets the "stars" field.

func (*ReportProjectCreate) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportProjectCreate) SetUpdatedAt added in v1.12.0

func (rpc *ReportProjectCreate) SetUpdatedAt(t time.Time) *ReportProjectCreate

SetUpdatedAt sets the "updated_at" field.

type ReportProjectCreateBulk added in v1.12.0

type ReportProjectCreateBulk struct {
	// contains filtered or unexported fields
}

ReportProjectCreateBulk is the builder for creating many ReportProject entities in bulk.

func (*ReportProjectCreateBulk) Exec added in v1.12.0

func (rpcb *ReportProjectCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportProjectCreateBulk) ExecX added in v1.12.0

func (rpcb *ReportProjectCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportProjectCreateBulk) Save added in v1.12.0

Save creates the ReportProject entities in the database.

func (*ReportProjectCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportProjectDelete added in v1.12.0

type ReportProjectDelete struct {
	// contains filtered or unexported fields
}

ReportProjectDelete is the builder for deleting a ReportProject entity.

func (*ReportProjectDelete) Exec added in v1.12.0

func (rpd *ReportProjectDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportProjectDelete) ExecX added in v1.12.0

func (rpd *ReportProjectDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportProjectDelete) Where added in v1.12.0

Where appends a list predicates to the ReportProjectDelete builder.

type ReportProjectDeleteOne added in v1.12.0

type ReportProjectDeleteOne struct {
	// contains filtered or unexported fields
}

ReportProjectDeleteOne is the builder for deleting a single ReportProject entity.

func (*ReportProjectDeleteOne) Exec added in v1.12.0

func (rpdo *ReportProjectDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReportProjectDeleteOne) ExecX added in v1.12.0

func (rpdo *ReportProjectDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportProjectDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportProjectDelete builder.

type ReportProjectEdges added in v1.12.0

type ReportProjectEdges struct {
	// Package holds the value of the package edge.
	Package *ReportPackage `json:"package,omitempty"`
	// Scorecard holds the value of the scorecard edge.
	Scorecard *ReportScorecard `json:"scorecard,omitempty"`
	// contains filtered or unexported fields
}

ReportProjectEdges holds the relations/edges for other nodes in the graph.

func (ReportProjectEdges) PackageOrErr added in v1.12.0

func (e ReportProjectEdges) PackageOrErr() (*ReportPackage, error)

PackageOrErr returns the Package value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReportProjectEdges) ScorecardOrErr added in v1.12.0

func (e ReportProjectEdges) ScorecardOrErr() (*ReportScorecard, error)

ScorecardOrErr returns the Scorecard value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReportProjectGroupBy added in v1.12.0

type ReportProjectGroupBy struct {
	// contains filtered or unexported fields
}

ReportProjectGroupBy is the group-by builder for ReportProject entities.

func (*ReportProjectGroupBy) Aggregate added in v1.12.0

func (rpgb *ReportProjectGroupBy) Aggregate(fns ...AggregateFunc) *ReportProjectGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportProjectGroupBy) Bool added in v1.12.0

func (s *ReportProjectGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) BoolX added in v1.12.0

func (s *ReportProjectGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportProjectGroupBy) Bools added in v1.12.0

func (s *ReportProjectGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) BoolsX added in v1.12.0

func (s *ReportProjectGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportProjectGroupBy) Float64 added in v1.12.0

func (s *ReportProjectGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) Float64X added in v1.12.0

func (s *ReportProjectGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportProjectGroupBy) Float64s added in v1.12.0

func (s *ReportProjectGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) Float64sX added in v1.12.0

func (s *ReportProjectGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportProjectGroupBy) Int added in v1.12.0

func (s *ReportProjectGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) IntX added in v1.12.0

func (s *ReportProjectGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportProjectGroupBy) Ints added in v1.12.0

func (s *ReportProjectGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) IntsX added in v1.12.0

func (s *ReportProjectGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportProjectGroupBy) Scan added in v1.12.0

func (rpgb *ReportProjectGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportProjectGroupBy) ScanX added in v1.12.0

func (s *ReportProjectGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportProjectGroupBy) String added in v1.12.0

func (s *ReportProjectGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) StringX added in v1.12.0

func (s *ReportProjectGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportProjectGroupBy) Strings added in v1.12.0

func (s *ReportProjectGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportProjectGroupBy) StringsX added in v1.12.0

func (s *ReportProjectGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportProjectMutation added in v1.12.0

type ReportProjectMutation struct {
	// contains filtered or unexported fields
}

ReportProjectMutation represents an operation that mutates the ReportProject nodes in the graph.

func (*ReportProjectMutation) AddField added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) AddForks added in v1.12.0

func (m *ReportProjectMutation) AddForks(i int32)

AddForks adds i to the "forks" field.

func (*ReportProjectMutation) AddStars added in v1.12.0

func (m *ReportProjectMutation) AddStars(i int32)

AddStars adds i to the "stars" field.

func (*ReportProjectMutation) AddedEdges added in v1.12.0

func (m *ReportProjectMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportProjectMutation) AddedField added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) AddedFields added in v1.12.0

func (m *ReportProjectMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportProjectMutation) AddedForks added in v1.12.0

func (m *ReportProjectMutation) AddedForks() (r int32, exists bool)

AddedForks returns the value that was added to the "forks" field in this mutation.

func (*ReportProjectMutation) AddedIDs added in v1.12.0

func (m *ReportProjectMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportProjectMutation) AddedStars added in v1.12.0

func (m *ReportProjectMutation) AddedStars() (r int32, exists bool)

AddedStars returns the value that was added to the "stars" field in this mutation.

func (*ReportProjectMutation) ClearCreatedAt added in v1.12.0

func (m *ReportProjectMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportProjectMutation) ClearDescription added in v1.12.0

func (m *ReportProjectMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*ReportProjectMutation) ClearEdge added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) ClearField added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) ClearForks added in v1.12.0

func (m *ReportProjectMutation) ClearForks()

ClearForks clears the value of the "forks" field.

func (*ReportProjectMutation) ClearPackage added in v1.12.0

func (m *ReportProjectMutation) ClearPackage()

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportProjectMutation) ClearScorecard added in v1.12.0

func (m *ReportProjectMutation) ClearScorecard()

ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.

func (*ReportProjectMutation) ClearStars added in v1.12.0

func (m *ReportProjectMutation) ClearStars()

ClearStars clears the value of the "stars" field.

func (*ReportProjectMutation) ClearURL added in v1.12.0

func (m *ReportProjectMutation) ClearURL()

ClearURL clears the value of the "url" field.

func (*ReportProjectMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportProjectMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportProjectMutation) ClearedEdges added in v1.12.0

func (m *ReportProjectMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportProjectMutation) ClearedFields added in v1.12.0

func (m *ReportProjectMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportProjectMutation) Client added in v1.12.0

func (m ReportProjectMutation) 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 (*ReportProjectMutation) CreatedAt added in v1.12.0

func (m *ReportProjectMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportProjectMutation) CreatedAtCleared added in v1.12.0

func (m *ReportProjectMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportProjectMutation) Description added in v1.12.0

func (m *ReportProjectMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*ReportProjectMutation) DescriptionCleared added in v1.12.0

func (m *ReportProjectMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*ReportProjectMutation) EdgeCleared added in v1.12.0

func (m *ReportProjectMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportProjectMutation) Field added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) FieldCleared added in v1.12.0

func (m *ReportProjectMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportProjectMutation) Fields added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) Forks added in v1.12.0

func (m *ReportProjectMutation) Forks() (r int32, exists bool)

Forks returns the value of the "forks" field in the mutation.

func (*ReportProjectMutation) ForksCleared added in v1.12.0

func (m *ReportProjectMutation) ForksCleared() bool

ForksCleared returns if the "forks" field was cleared in this mutation.

func (*ReportProjectMutation) ID added in v1.12.0

func (m *ReportProjectMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportProjectMutation) IDs added in v1.12.0

func (m *ReportProjectMutation) IDs(ctx context.Context) ([]int, 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 (*ReportProjectMutation) Name added in v1.12.0

func (m *ReportProjectMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ReportProjectMutation) OldCreatedAt added in v1.12.0

func (m *ReportProjectMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) OldDescription added in v1.12.0

func (m *ReportProjectMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) OldField added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) OldForks added in v1.12.0

func (m *ReportProjectMutation) OldForks(ctx context.Context) (v int32, err error)

OldForks returns the old "forks" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) OldName added in v1.12.0

func (m *ReportProjectMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) OldStars added in v1.12.0

func (m *ReportProjectMutation) OldStars(ctx context.Context) (v int32, err error)

OldStars returns the old "stars" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) OldURL added in v1.12.0

func (m *ReportProjectMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) OldUpdatedAt added in v1.12.0

func (m *ReportProjectMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportProject entity. If the ReportProject 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 (*ReportProjectMutation) Op added in v1.12.0

func (m *ReportProjectMutation) Op() Op

Op returns the operation name.

func (*ReportProjectMutation) PackageCleared added in v1.12.0

func (m *ReportProjectMutation) PackageCleared() bool

PackageCleared reports if the "package" edge to the ReportPackage entity was cleared.

func (*ReportProjectMutation) PackageID added in v1.12.0

func (m *ReportProjectMutation) PackageID() (id int, exists bool)

PackageID returns the "package" edge ID in the mutation.

func (*ReportProjectMutation) PackageIDs added in v1.12.0

func (m *ReportProjectMutation) PackageIDs() (ids []int)

PackageIDs returns the "package" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PackageID instead. It exists only for internal usage by the builders.

func (*ReportProjectMutation) RemovedEdges added in v1.12.0

func (m *ReportProjectMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportProjectMutation) RemovedIDs added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) ResetCreatedAt added in v1.12.0

func (m *ReportProjectMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportProjectMutation) ResetDescription added in v1.12.0

func (m *ReportProjectMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*ReportProjectMutation) ResetEdge added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) ResetField added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) ResetForks added in v1.12.0

func (m *ReportProjectMutation) ResetForks()

ResetForks resets all changes to the "forks" field.

func (*ReportProjectMutation) ResetName added in v1.12.0

func (m *ReportProjectMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ReportProjectMutation) ResetPackage added in v1.12.0

func (m *ReportProjectMutation) ResetPackage()

ResetPackage resets all changes to the "package" edge.

func (*ReportProjectMutation) ResetScorecard added in v1.12.0

func (m *ReportProjectMutation) ResetScorecard()

ResetScorecard resets all changes to the "scorecard" edge.

func (*ReportProjectMutation) ResetStars added in v1.12.0

func (m *ReportProjectMutation) ResetStars()

ResetStars resets all changes to the "stars" field.

func (*ReportProjectMutation) ResetURL added in v1.12.0

func (m *ReportProjectMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*ReportProjectMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportProjectMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportProjectMutation) ScorecardCleared added in v1.12.0

func (m *ReportProjectMutation) ScorecardCleared() bool

ScorecardCleared reports if the "scorecard" edge to the ReportScorecard entity was cleared.

func (*ReportProjectMutation) ScorecardID added in v1.12.0

func (m *ReportProjectMutation) ScorecardID() (id int, exists bool)

ScorecardID returns the "scorecard" edge ID in the mutation.

func (*ReportProjectMutation) ScorecardIDs added in v1.12.0

func (m *ReportProjectMutation) ScorecardIDs() (ids []int)

ScorecardIDs returns the "scorecard" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ScorecardID instead. It exists only for internal usage by the builders.

func (*ReportProjectMutation) SetCreatedAt added in v1.12.0

func (m *ReportProjectMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportProjectMutation) SetDescription added in v1.12.0

func (m *ReportProjectMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*ReportProjectMutation) SetField added in v1.12.0

func (m *ReportProjectMutation) 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 (*ReportProjectMutation) SetForks added in v1.12.0

func (m *ReportProjectMutation) SetForks(i int32)

SetForks sets the "forks" field.

func (*ReportProjectMutation) SetName added in v1.12.0

func (m *ReportProjectMutation) SetName(s string)

SetName sets the "name" field.

func (*ReportProjectMutation) SetOp added in v1.12.0

func (m *ReportProjectMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportProjectMutation) SetPackageID added in v1.12.0

func (m *ReportProjectMutation) SetPackageID(id int)

SetPackageID sets the "package" edge to the ReportPackage entity by id.

func (*ReportProjectMutation) SetScorecardID added in v1.12.0

func (m *ReportProjectMutation) SetScorecardID(id int)

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by id.

func (*ReportProjectMutation) SetStars added in v1.12.0

func (m *ReportProjectMutation) SetStars(i int32)

SetStars sets the "stars" field.

func (*ReportProjectMutation) SetURL added in v1.12.0

func (m *ReportProjectMutation) SetURL(s string)

SetURL sets the "url" field.

func (*ReportProjectMutation) SetUpdatedAt added in v1.12.0

func (m *ReportProjectMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReportProjectMutation) Stars added in v1.12.0

func (m *ReportProjectMutation) Stars() (r int32, exists bool)

Stars returns the value of the "stars" field in the mutation.

func (*ReportProjectMutation) StarsCleared added in v1.12.0

func (m *ReportProjectMutation) StarsCleared() bool

StarsCleared returns if the "stars" field was cleared in this mutation.

func (ReportProjectMutation) Tx added in v1.12.0

func (m ReportProjectMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportProjectMutation) Type added in v1.12.0

func (m *ReportProjectMutation) Type() string

Type returns the node type of this mutation (ReportProject).

func (*ReportProjectMutation) URL added in v1.12.0

func (m *ReportProjectMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*ReportProjectMutation) URLCleared added in v1.12.0

func (m *ReportProjectMutation) URLCleared() bool

URLCleared returns if the "url" field was cleared in this mutation.

func (*ReportProjectMutation) UpdatedAt added in v1.12.0

func (m *ReportProjectMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportProjectMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportProjectMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportProjectMutation) Where added in v1.12.0

Where appends a list predicates to the ReportProjectMutation builder.

func (*ReportProjectMutation) WhereP added in v1.12.0

func (m *ReportProjectMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportProjectMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportProjectQuery added in v1.12.0

type ReportProjectQuery struct {
	// contains filtered or unexported fields
}

ReportProjectQuery is the builder for querying ReportProject entities.

func (*ReportProjectQuery) Aggregate added in v1.12.0

func (rpq *ReportProjectQuery) Aggregate(fns ...AggregateFunc) *ReportProjectSelect

Aggregate returns a ReportProjectSelect configured with the given aggregations.

func (*ReportProjectQuery) All added in v1.12.0

All executes the query and returns a list of ReportProjects.

func (*ReportProjectQuery) AllX added in v1.12.0

func (rpq *ReportProjectQuery) AllX(ctx context.Context) []*ReportProject

AllX is like All, but panics if an error occurs.

func (*ReportProjectQuery) Clone added in v1.12.0

func (rpq *ReportProjectQuery) Clone() *ReportProjectQuery

Clone returns a duplicate of the ReportProjectQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportProjectQuery) Count added in v1.12.0

func (rpq *ReportProjectQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportProjectQuery) CountX added in v1.12.0

func (rpq *ReportProjectQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportProjectQuery) Exist added in v1.12.0

func (rpq *ReportProjectQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportProjectQuery) ExistX added in v1.12.0

func (rpq *ReportProjectQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportProjectQuery) First added in v1.12.0

First returns the first ReportProject entity from the query. Returns a *NotFoundError when no ReportProject was found.

func (*ReportProjectQuery) FirstID added in v1.12.0

func (rpq *ReportProjectQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportProject ID from the query. Returns a *NotFoundError when no ReportProject ID was found.

func (*ReportProjectQuery) FirstIDX added in v1.12.0

func (rpq *ReportProjectQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportProjectQuery) FirstX added in v1.12.0

func (rpq *ReportProjectQuery) FirstX(ctx context.Context) *ReportProject

FirstX is like First, but panics if an error occurs.

func (*ReportProjectQuery) GroupBy added in v1.12.0

func (rpq *ReportProjectQuery) GroupBy(field string, fields ...string) *ReportProjectGroupBy

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.ReportProject.Query().
	GroupBy(reportproject.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportProjectQuery) IDs added in v1.12.0

func (rpq *ReportProjectQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportProject IDs.

func (*ReportProjectQuery) IDsX added in v1.12.0

func (rpq *ReportProjectQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportProjectQuery) Limit added in v1.12.0

func (rpq *ReportProjectQuery) Limit(limit int) *ReportProjectQuery

Limit the number of records to be returned by this query.

func (*ReportProjectQuery) Offset added in v1.12.0

func (rpq *ReportProjectQuery) Offset(offset int) *ReportProjectQuery

Offset to start from.

func (*ReportProjectQuery) Only added in v1.12.0

Only returns a single ReportProject entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportProject entity is found. Returns a *NotFoundError when no ReportProject entities are found.

func (*ReportProjectQuery) OnlyID added in v1.12.0

func (rpq *ReportProjectQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportProject ID in the query. Returns a *NotSingularError when more than one ReportProject ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportProjectQuery) OnlyIDX added in v1.12.0

func (rpq *ReportProjectQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportProjectQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportProjectQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportProjectQuery) QueryPackage added in v1.12.0

func (rpq *ReportProjectQuery) QueryPackage() *ReportPackageQuery

QueryPackage chains the current query on the "package" edge.

func (*ReportProjectQuery) QueryScorecard added in v1.12.0

func (rpq *ReportProjectQuery) QueryScorecard() *ReportScorecardQuery

QueryScorecard chains the current query on the "scorecard" edge.

func (*ReportProjectQuery) Select added in v1.12.0

func (rpq *ReportProjectQuery) Select(fields ...string) *ReportProjectSelect

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.ReportProject.Query().
	Select(reportproject.FieldName).
	Scan(ctx, &v)

func (*ReportProjectQuery) Unique added in v1.12.0

func (rpq *ReportProjectQuery) Unique(unique bool) *ReportProjectQuery

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 (*ReportProjectQuery) Where added in v1.12.0

Where adds a new predicate for the ReportProjectQuery builder.

func (*ReportProjectQuery) WithPackage added in v1.12.0

func (rpq *ReportProjectQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportProjectQuery

WithPackage tells the query-builder to eager-load the nodes that are connected to the "package" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportProjectQuery) WithScorecard added in v1.12.0

func (rpq *ReportProjectQuery) WithScorecard(opts ...func(*ReportScorecardQuery)) *ReportProjectQuery

WithScorecard tells the query-builder to eager-load the nodes that are connected to the "scorecard" edge. The optional arguments are used to configure the query builder of the edge.

type ReportProjectSelect added in v1.12.0

type ReportProjectSelect struct {
	*ReportProjectQuery
	// contains filtered or unexported fields
}

ReportProjectSelect is the builder for selecting fields of ReportProject entities.

func (*ReportProjectSelect) Aggregate added in v1.12.0

func (rps *ReportProjectSelect) Aggregate(fns ...AggregateFunc) *ReportProjectSelect

Aggregate adds the given aggregation functions to the selector query.

func (*ReportProjectSelect) Bool added in v1.12.0

func (s *ReportProjectSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) BoolX added in v1.12.0

func (s *ReportProjectSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportProjectSelect) Bools added in v1.12.0

func (s *ReportProjectSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) BoolsX added in v1.12.0

func (s *ReportProjectSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportProjectSelect) Float64 added in v1.12.0

func (s *ReportProjectSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) Float64X added in v1.12.0

func (s *ReportProjectSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportProjectSelect) Float64s added in v1.12.0

func (s *ReportProjectSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) Float64sX added in v1.12.0

func (s *ReportProjectSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportProjectSelect) Int added in v1.12.0

func (s *ReportProjectSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) IntX added in v1.12.0

func (s *ReportProjectSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportProjectSelect) Ints added in v1.12.0

func (s *ReportProjectSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) IntsX added in v1.12.0

func (s *ReportProjectSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportProjectSelect) Scan added in v1.12.0

func (rps *ReportProjectSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportProjectSelect) ScanX added in v1.12.0

func (s *ReportProjectSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportProjectSelect) String added in v1.12.0

func (s *ReportProjectSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) StringX added in v1.12.0

func (s *ReportProjectSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportProjectSelect) Strings added in v1.12.0

func (s *ReportProjectSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportProjectSelect) StringsX added in v1.12.0

func (s *ReportProjectSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportProjectUpdate added in v1.12.0

type ReportProjectUpdate struct {
	// contains filtered or unexported fields
}

ReportProjectUpdate is the builder for updating ReportProject entities.

func (*ReportProjectUpdate) AddForks added in v1.12.0

func (rpu *ReportProjectUpdate) AddForks(i int32) *ReportProjectUpdate

AddForks adds i to the "forks" field.

func (*ReportProjectUpdate) AddStars added in v1.12.0

func (rpu *ReportProjectUpdate) AddStars(i int32) *ReportProjectUpdate

AddStars adds i to the "stars" field.

func (*ReportProjectUpdate) ClearCreatedAt added in v1.12.0

func (rpu *ReportProjectUpdate) ClearCreatedAt() *ReportProjectUpdate

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportProjectUpdate) ClearDescription added in v1.12.0

func (rpu *ReportProjectUpdate) ClearDescription() *ReportProjectUpdate

ClearDescription clears the value of the "description" field.

func (*ReportProjectUpdate) ClearForks added in v1.12.0

func (rpu *ReportProjectUpdate) ClearForks() *ReportProjectUpdate

ClearForks clears the value of the "forks" field.

func (*ReportProjectUpdate) ClearPackage added in v1.12.0

func (rpu *ReportProjectUpdate) ClearPackage() *ReportProjectUpdate

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportProjectUpdate) ClearScorecard added in v1.12.0

func (rpu *ReportProjectUpdate) ClearScorecard() *ReportProjectUpdate

ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.

func (*ReportProjectUpdate) ClearStars added in v1.12.0

func (rpu *ReportProjectUpdate) ClearStars() *ReportProjectUpdate

ClearStars clears the value of the "stars" field.

func (*ReportProjectUpdate) ClearURL added in v1.12.0

func (rpu *ReportProjectUpdate) ClearURL() *ReportProjectUpdate

ClearURL clears the value of the "url" field.

func (*ReportProjectUpdate) ClearUpdatedAt added in v1.12.0

func (rpu *ReportProjectUpdate) ClearUpdatedAt() *ReportProjectUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportProjectUpdate) Exec added in v1.12.0

func (rpu *ReportProjectUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportProjectUpdate) ExecX added in v1.12.0

func (rpu *ReportProjectUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportProjectUpdate) Mutation added in v1.12.0

func (rpu *ReportProjectUpdate) Mutation() *ReportProjectMutation

Mutation returns the ReportProjectMutation object of the builder.

func (*ReportProjectUpdate) Save added in v1.12.0

func (rpu *ReportProjectUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportProjectUpdate) SaveX added in v1.12.0

func (rpu *ReportProjectUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportProjectUpdate) SetCreatedAt added in v1.12.0

func (rpu *ReportProjectUpdate) SetCreatedAt(t time.Time) *ReportProjectUpdate

SetCreatedAt sets the "created_at" field.

func (*ReportProjectUpdate) SetDescription added in v1.12.0

func (rpu *ReportProjectUpdate) SetDescription(s string) *ReportProjectUpdate

SetDescription sets the "description" field.

func (*ReportProjectUpdate) SetForks added in v1.12.0

func (rpu *ReportProjectUpdate) SetForks(i int32) *ReportProjectUpdate

SetForks sets the "forks" field.

func (*ReportProjectUpdate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportProjectUpdate) SetNillableCreatedAt added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableCreatedAt(t *time.Time) *ReportProjectUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportProjectUpdate) SetNillableDescription added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableDescription(s *string) *ReportProjectUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ReportProjectUpdate) SetNillableForks added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableForks(i *int32) *ReportProjectUpdate

SetNillableForks sets the "forks" field if the given value is not nil.

func (*ReportProjectUpdate) SetNillableName added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableName(s *string) *ReportProjectUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportProjectUpdate) SetNillablePackageID added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillablePackageID(id *int) *ReportProjectUpdate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportProjectUpdate) SetNillableScorecardID added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableScorecardID(id *int) *ReportProjectUpdate

SetNillableScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID if the given value is not nil.

func (*ReportProjectUpdate) SetNillableStars added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableStars(i *int32) *ReportProjectUpdate

SetNillableStars sets the "stars" field if the given value is not nil.

func (*ReportProjectUpdate) SetNillableURL added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableURL(s *string) *ReportProjectUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportProjectUpdate) SetNillableUpdatedAt added in v1.12.0

func (rpu *ReportProjectUpdate) SetNillableUpdatedAt(t *time.Time) *ReportProjectUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportProjectUpdate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportProjectUpdate) SetPackageID added in v1.12.0

func (rpu *ReportProjectUpdate) SetPackageID(id int) *ReportProjectUpdate

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportProjectUpdate) SetScorecard added in v1.12.0

SetScorecard sets the "scorecard" edge to the ReportScorecard entity.

func (*ReportProjectUpdate) SetScorecardID added in v1.12.0

func (rpu *ReportProjectUpdate) SetScorecardID(id int) *ReportProjectUpdate

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.

func (*ReportProjectUpdate) SetStars added in v1.12.0

func (rpu *ReportProjectUpdate) SetStars(i int32) *ReportProjectUpdate

SetStars sets the "stars" field.

func (*ReportProjectUpdate) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportProjectUpdate) SetUpdatedAt added in v1.12.0

func (rpu *ReportProjectUpdate) SetUpdatedAt(t time.Time) *ReportProjectUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ReportProjectUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportProjectUpdate builder.

type ReportProjectUpdateOne added in v1.12.0

type ReportProjectUpdateOne struct {
	// contains filtered or unexported fields
}

ReportProjectUpdateOne is the builder for updating a single ReportProject entity.

func (*ReportProjectUpdateOne) AddForks added in v1.12.0

AddForks adds i to the "forks" field.

func (*ReportProjectUpdateOne) AddStars added in v1.12.0

AddStars adds i to the "stars" field.

func (*ReportProjectUpdateOne) ClearCreatedAt added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearCreatedAt() *ReportProjectUpdateOne

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportProjectUpdateOne) ClearDescription added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearDescription() *ReportProjectUpdateOne

ClearDescription clears the value of the "description" field.

func (*ReportProjectUpdateOne) ClearForks added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearForks() *ReportProjectUpdateOne

ClearForks clears the value of the "forks" field.

func (*ReportProjectUpdateOne) ClearPackage added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearPackage() *ReportProjectUpdateOne

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportProjectUpdateOne) ClearScorecard added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearScorecard() *ReportProjectUpdateOne

ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.

func (*ReportProjectUpdateOne) ClearStars added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearStars() *ReportProjectUpdateOne

ClearStars clears the value of the "stars" field.

func (*ReportProjectUpdateOne) ClearURL added in v1.12.0

ClearURL clears the value of the "url" field.

func (*ReportProjectUpdateOne) ClearUpdatedAt added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ClearUpdatedAt() *ReportProjectUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportProjectUpdateOne) Exec added in v1.12.0

func (rpuo *ReportProjectUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReportProjectUpdateOne) ExecX added in v1.12.0

func (rpuo *ReportProjectUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportProjectUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportProjectMutation object of the builder.

func (*ReportProjectUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportProject entity.

func (*ReportProjectUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportProjectUpdateOne) Select added in v1.12.0

func (rpuo *ReportProjectUpdateOne) Select(field string, fields ...string) *ReportProjectUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportProjectUpdateOne) SetCreatedAt added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetCreatedAt(t time.Time) *ReportProjectUpdateOne

SetCreatedAt sets the "created_at" field.

func (*ReportProjectUpdateOne) SetDescription added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetDescription(s string) *ReportProjectUpdateOne

SetDescription sets the "description" field.

func (*ReportProjectUpdateOne) SetForks added in v1.12.0

SetForks sets the "forks" field.

func (*ReportProjectUpdateOne) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportProjectUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportProjectUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableDescription added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableDescription(s *string) *ReportProjectUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableForks added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableForks(i *int32) *ReportProjectUpdateOne

SetNillableForks sets the "forks" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableName added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableName(s *string) *ReportProjectUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillablePackageID added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillablePackageID(id *int) *ReportProjectUpdateOne

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableScorecardID added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableScorecardID(id *int) *ReportProjectUpdateOne

SetNillableScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableStars added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableStars(i *int32) *ReportProjectUpdateOne

SetNillableStars sets the "stars" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableURL added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableURL(s *string) *ReportProjectUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportProjectUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportProjectUpdateOne) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportProjectUpdateOne) SetPackageID added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetPackageID(id int) *ReportProjectUpdateOne

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportProjectUpdateOne) SetScorecard added in v1.12.0

SetScorecard sets the "scorecard" edge to the ReportScorecard entity.

func (*ReportProjectUpdateOne) SetScorecardID added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetScorecardID(id int) *ReportProjectUpdateOne

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.

func (*ReportProjectUpdateOne) SetStars added in v1.12.0

SetStars sets the "stars" field.

func (*ReportProjectUpdateOne) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportProjectUpdateOne) SetUpdatedAt added in v1.12.0

func (rpuo *ReportProjectUpdateOne) SetUpdatedAt(t time.Time) *ReportProjectUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*ReportProjectUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportProjectUpdate builder.

type ReportProjects added in v1.12.0

type ReportProjects []*ReportProject

ReportProjects is a parsable slice of ReportProject.

type ReportScorecard added in v1.12.0

type ReportScorecard struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Overall scorecard score
	Score float32 `json:"score,omitempty"`
	// Version of the scorecard tool used
	ScorecardVersion string `json:"scorecard_version,omitempty"`
	// Repository name
	RepoName string `json:"repo_name,omitempty"`
	// Repository commit SHA
	RepoCommit string `json:"repo_commit,omitempty"`
	// Date published by OpenSSF scorecard
	Date string `json:"date,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 ReportScorecardQuery when eager-loading is set.
	Edges ReportScorecardEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportScorecard is the model entity for the ReportScorecard schema.

func (*ReportScorecard) QueryChecks added in v1.12.0

func (rs *ReportScorecard) QueryChecks() *ReportScorecardCheckQuery

QueryChecks queries the "checks" edge of the ReportScorecard entity.

func (*ReportScorecard) QueryProject added in v1.12.0

func (rs *ReportScorecard) QueryProject() *ReportProjectQuery

QueryProject queries the "project" edge of the ReportScorecard entity.

func (*ReportScorecard) String added in v1.12.0

func (rs *ReportScorecard) String() string

String implements the fmt.Stringer.

func (*ReportScorecard) Unwrap added in v1.12.0

func (rs *ReportScorecard) Unwrap() *ReportScorecard

Unwrap unwraps the ReportScorecard 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 (*ReportScorecard) Update added in v1.12.0

Update returns a builder for updating this ReportScorecard. Note that you need to call ReportScorecard.Unwrap() before calling this method if this ReportScorecard was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportScorecard) Value added in v1.12.0

func (rs *ReportScorecard) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportScorecard. This includes values selected through modifiers, order, etc.

type ReportScorecardCheck added in v1.12.0

type ReportScorecardCheck struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name of the scorecard check
	Name string `json:"name,omitempty"`
	// Score for this check
	Score float32 `json:"score,omitempty"`
	// Reason for the score
	Reason string `json:"reason,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 ReportScorecardCheckQuery when eager-loading is set.
	Edges ReportScorecardCheckEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportScorecardCheck is the model entity for the ReportScorecardCheck schema.

func (*ReportScorecardCheck) QueryScorecard added in v1.12.0

func (rsc *ReportScorecardCheck) QueryScorecard() *ReportScorecardQuery

QueryScorecard queries the "scorecard" edge of the ReportScorecardCheck entity.

func (*ReportScorecardCheck) String added in v1.12.0

func (rsc *ReportScorecardCheck) String() string

String implements the fmt.Stringer.

func (*ReportScorecardCheck) Unwrap added in v1.12.0

Unwrap unwraps the ReportScorecardCheck 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 (*ReportScorecardCheck) Update added in v1.12.0

Update returns a builder for updating this ReportScorecardCheck. Note that you need to call ReportScorecardCheck.Unwrap() before calling this method if this ReportScorecardCheck was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportScorecardCheck) Value added in v1.12.0

func (rsc *ReportScorecardCheck) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportScorecardCheck. This includes values selected through modifiers, order, etc.

type ReportScorecardCheckClient added in v1.12.0

type ReportScorecardCheckClient struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckClient is a client for the ReportScorecardCheck schema.

func NewReportScorecardCheckClient added in v1.12.0

func NewReportScorecardCheckClient(c config) *ReportScorecardCheckClient

NewReportScorecardCheckClient returns a client for the ReportScorecardCheck from the given config.

func (*ReportScorecardCheckClient) Create added in v1.12.0

Create returns a builder for creating a ReportScorecardCheck entity.

func (*ReportScorecardCheckClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportScorecardCheck entities.

func (*ReportScorecardCheckClient) Delete added in v1.12.0

Delete returns a delete builder for ReportScorecardCheck.

func (*ReportScorecardCheckClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportScorecardCheckClient) DeleteOneID added in v1.12.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportScorecardCheckClient) Get added in v1.12.0

Get returns a ReportScorecardCheck entity by its id.

func (*ReportScorecardCheckClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportScorecardCheckClient) Hooks added in v1.12.0

func (c *ReportScorecardCheckClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportScorecardCheckClient) Intercept added in v1.12.0

func (c *ReportScorecardCheckClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportscorecardcheck.Intercept(f(g(h())))`.

func (*ReportScorecardCheckClient) Interceptors added in v1.12.0

func (c *ReportScorecardCheckClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportScorecardCheckClient) MapCreateBulk added in v1.12.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportScorecardCheckClient) Query added in v1.12.0

Query returns a query builder for ReportScorecardCheck.

func (*ReportScorecardCheckClient) QueryScorecard added in v1.12.0

QueryScorecard queries the scorecard edge of a ReportScorecardCheck.

func (*ReportScorecardCheckClient) Update added in v1.12.0

Update returns an update builder for ReportScorecardCheck.

func (*ReportScorecardCheckClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportScorecardCheckClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportScorecardCheckClient) Use added in v1.12.0

func (c *ReportScorecardCheckClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportscorecardcheck.Hooks(f(g(h())))`.

type ReportScorecardCheckCreate added in v1.12.0

type ReportScorecardCheckCreate struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckCreate is the builder for creating a ReportScorecardCheck entity.

func (*ReportScorecardCheckCreate) Exec added in v1.12.0

Exec executes the query.

func (*ReportScorecardCheckCreate) ExecX added in v1.12.0

func (rscc *ReportScorecardCheckCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCheckCreate) Mutation added in v1.12.0

Mutation returns the ReportScorecardCheckMutation object of the builder.

func (*ReportScorecardCheckCreate) Save added in v1.12.0

Save creates the ReportScorecardCheck in the database.

func (*ReportScorecardCheckCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportScorecardCheckCreate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardCheckCreate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportScorecardCheckCreate) SetNillableCreatedAt added in v1.12.0

func (rscc *ReportScorecardCheckCreate) SetNillableCreatedAt(t *time.Time) *ReportScorecardCheckCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportScorecardCheckCreate) SetNillableReason added in v1.12.0

func (rscc *ReportScorecardCheckCreate) SetNillableReason(s *string) *ReportScorecardCheckCreate

SetNillableReason sets the "reason" field if the given value is not nil.

func (*ReportScorecardCheckCreate) SetNillableScorecardID added in v1.12.0

func (rscc *ReportScorecardCheckCreate) SetNillableScorecardID(id *int) *ReportScorecardCheckCreate

SetNillableScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID if the given value is not nil.

func (*ReportScorecardCheckCreate) SetNillableUpdatedAt added in v1.12.0

func (rscc *ReportScorecardCheckCreate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCheckCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportScorecardCheckCreate) SetReason added in v1.12.0

SetReason sets the "reason" field.

func (*ReportScorecardCheckCreate) SetScore added in v1.12.0

SetScore sets the "score" field.

func (*ReportScorecardCheckCreate) SetScorecard added in v1.12.0

SetScorecard sets the "scorecard" edge to the ReportScorecard entity.

func (*ReportScorecardCheckCreate) SetScorecardID added in v1.12.0

func (rscc *ReportScorecardCheckCreate) SetScorecardID(id int) *ReportScorecardCheckCreate

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.

func (*ReportScorecardCheckCreate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

type ReportScorecardCheckCreateBulk added in v1.12.0

type ReportScorecardCheckCreateBulk struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckCreateBulk is the builder for creating many ReportScorecardCheck entities in bulk.

func (*ReportScorecardCheckCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportScorecardCheckCreateBulk) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCheckCreateBulk) Save added in v1.12.0

Save creates the ReportScorecardCheck entities in the database.

func (*ReportScorecardCheckCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportScorecardCheckDelete added in v1.12.0

type ReportScorecardCheckDelete struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckDelete is the builder for deleting a ReportScorecardCheck entity.

func (*ReportScorecardCheckDelete) Exec added in v1.12.0

func (rscd *ReportScorecardCheckDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportScorecardCheckDelete) ExecX added in v1.12.0

func (rscd *ReportScorecardCheckDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCheckDelete) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardCheckDelete builder.

type ReportScorecardCheckDeleteOne added in v1.12.0

type ReportScorecardCheckDeleteOne struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckDeleteOne is the builder for deleting a single ReportScorecardCheck entity.

func (*ReportScorecardCheckDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportScorecardCheckDeleteOne) ExecX added in v1.12.0

func (rscdo *ReportScorecardCheckDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCheckDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardCheckDelete builder.

type ReportScorecardCheckEdges added in v1.12.0

type ReportScorecardCheckEdges struct {
	// Scorecard holds the value of the scorecard edge.
	Scorecard *ReportScorecard `json:"scorecard,omitempty"`
	// contains filtered or unexported fields
}

ReportScorecardCheckEdges holds the relations/edges for other nodes in the graph.

func (ReportScorecardCheckEdges) ScorecardOrErr added in v1.12.0

func (e ReportScorecardCheckEdges) ScorecardOrErr() (*ReportScorecard, error)

ScorecardOrErr returns the Scorecard value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReportScorecardCheckGroupBy added in v1.12.0

type ReportScorecardCheckGroupBy struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckGroupBy is the group-by builder for ReportScorecardCheck entities.

func (*ReportScorecardCheckGroupBy) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportScorecardCheckGroupBy) Bool added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) BoolX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Bools added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) BoolsX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Float64 added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) Float64X added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Float64s added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) Float64sX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Int added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) IntX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Ints added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) IntsX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Scan added in v1.12.0

func (rscgb *ReportScorecardCheckGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportScorecardCheckGroupBy) ScanX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) String added in v1.12.0

func (s *ReportScorecardCheckGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) StringX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportScorecardCheckGroupBy) Strings added in v1.12.0

func (s *ReportScorecardCheckGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckGroupBy) StringsX added in v1.12.0

func (s *ReportScorecardCheckGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportScorecardCheckMutation added in v1.12.0

type ReportScorecardCheckMutation struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckMutation represents an operation that mutates the ReportScorecardCheck nodes in the graph.

func (*ReportScorecardCheckMutation) AddField added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) AddScore added in v1.12.0

func (m *ReportScorecardCheckMutation) AddScore(f float32)

AddScore adds f to the "score" field.

func (*ReportScorecardCheckMutation) AddedEdges added in v1.12.0

func (m *ReportScorecardCheckMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportScorecardCheckMutation) AddedField added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) AddedFields added in v1.12.0

func (m *ReportScorecardCheckMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportScorecardCheckMutation) AddedIDs added in v1.12.0

func (m *ReportScorecardCheckMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportScorecardCheckMutation) AddedScore added in v1.12.0

func (m *ReportScorecardCheckMutation) AddedScore() (r float32, exists bool)

AddedScore returns the value that was added to the "score" field in this mutation.

func (*ReportScorecardCheckMutation) ClearCreatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportScorecardCheckMutation) ClearEdge added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) ClearField added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) ClearReason added in v1.12.0

func (m *ReportScorecardCheckMutation) ClearReason()

ClearReason clears the value of the "reason" field.

func (*ReportScorecardCheckMutation) ClearScorecard added in v1.12.0

func (m *ReportScorecardCheckMutation) ClearScorecard()

ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.

func (*ReportScorecardCheckMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportScorecardCheckMutation) ClearedEdges added in v1.12.0

func (m *ReportScorecardCheckMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportScorecardCheckMutation) ClearedFields added in v1.12.0

func (m *ReportScorecardCheckMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportScorecardCheckMutation) Client added in v1.12.0

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 (*ReportScorecardCheckMutation) CreatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportScorecardCheckMutation) CreatedAtCleared added in v1.12.0

func (m *ReportScorecardCheckMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportScorecardCheckMutation) EdgeCleared added in v1.12.0

func (m *ReportScorecardCheckMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportScorecardCheckMutation) Field added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) FieldCleared added in v1.12.0

func (m *ReportScorecardCheckMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportScorecardCheckMutation) Fields added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) ID added in v1.12.0

func (m *ReportScorecardCheckMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportScorecardCheckMutation) IDs added in v1.12.0

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 (*ReportScorecardCheckMutation) Name added in v1.12.0

func (m *ReportScorecardCheckMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ReportScorecardCheckMutation) OldCreatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportScorecardCheck entity. If the ReportScorecardCheck 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 (*ReportScorecardCheckMutation) OldField added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) OldName added in v1.12.0

func (m *ReportScorecardCheckMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the ReportScorecardCheck entity. If the ReportScorecardCheck 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 (*ReportScorecardCheckMutation) OldReason added in v1.12.0

func (m *ReportScorecardCheckMutation) OldReason(ctx context.Context) (v string, err error)

OldReason returns the old "reason" field's value of the ReportScorecardCheck entity. If the ReportScorecardCheck 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 (*ReportScorecardCheckMutation) OldScore added in v1.12.0

func (m *ReportScorecardCheckMutation) OldScore(ctx context.Context) (v float32, err error)

OldScore returns the old "score" field's value of the ReportScorecardCheck entity. If the ReportScorecardCheck 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 (*ReportScorecardCheckMutation) OldUpdatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportScorecardCheck entity. If the ReportScorecardCheck 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 (*ReportScorecardCheckMutation) Op added in v1.12.0

Op returns the operation name.

func (*ReportScorecardCheckMutation) Reason added in v1.12.0

func (m *ReportScorecardCheckMutation) Reason() (r string, exists bool)

Reason returns the value of the "reason" field in the mutation.

func (*ReportScorecardCheckMutation) ReasonCleared added in v1.12.0

func (m *ReportScorecardCheckMutation) ReasonCleared() bool

ReasonCleared returns if the "reason" field was cleared in this mutation.

func (*ReportScorecardCheckMutation) RemovedEdges added in v1.12.0

func (m *ReportScorecardCheckMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportScorecardCheckMutation) RemovedIDs added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) ResetCreatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportScorecardCheckMutation) ResetEdge added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) ResetField added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) ResetName added in v1.12.0

func (m *ReportScorecardCheckMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ReportScorecardCheckMutation) ResetReason added in v1.12.0

func (m *ReportScorecardCheckMutation) ResetReason()

ResetReason resets all changes to the "reason" field.

func (*ReportScorecardCheckMutation) ResetScore added in v1.12.0

func (m *ReportScorecardCheckMutation) ResetScore()

ResetScore resets all changes to the "score" field.

func (*ReportScorecardCheckMutation) ResetScorecard added in v1.12.0

func (m *ReportScorecardCheckMutation) ResetScorecard()

ResetScorecard resets all changes to the "scorecard" edge.

func (*ReportScorecardCheckMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportScorecardCheckMutation) Score added in v1.12.0

func (m *ReportScorecardCheckMutation) Score() (r float32, exists bool)

Score returns the value of the "score" field in the mutation.

func (*ReportScorecardCheckMutation) ScorecardCleared added in v1.12.0

func (m *ReportScorecardCheckMutation) ScorecardCleared() bool

ScorecardCleared reports if the "scorecard" edge to the ReportScorecard entity was cleared.

func (*ReportScorecardCheckMutation) ScorecardID added in v1.12.0

func (m *ReportScorecardCheckMutation) ScorecardID() (id int, exists bool)

ScorecardID returns the "scorecard" edge ID in the mutation.

func (*ReportScorecardCheckMutation) ScorecardIDs added in v1.12.0

func (m *ReportScorecardCheckMutation) ScorecardIDs() (ids []int)

ScorecardIDs returns the "scorecard" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ScorecardID instead. It exists only for internal usage by the builders.

func (*ReportScorecardCheckMutation) SetCreatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardCheckMutation) SetField added in v1.12.0

func (m *ReportScorecardCheckMutation) 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 (*ReportScorecardCheckMutation) SetName added in v1.12.0

func (m *ReportScorecardCheckMutation) SetName(s string)

SetName sets the "name" field.

func (*ReportScorecardCheckMutation) SetOp added in v1.12.0

func (m *ReportScorecardCheckMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportScorecardCheckMutation) SetReason added in v1.12.0

func (m *ReportScorecardCheckMutation) SetReason(s string)

SetReason sets the "reason" field.

func (*ReportScorecardCheckMutation) SetScore added in v1.12.0

func (m *ReportScorecardCheckMutation) SetScore(f float32)

SetScore sets the "score" field.

func (*ReportScorecardCheckMutation) SetScorecardID added in v1.12.0

func (m *ReportScorecardCheckMutation) SetScorecardID(id int)

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by id.

func (*ReportScorecardCheckMutation) SetUpdatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (ReportScorecardCheckMutation) Tx added in v1.12.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportScorecardCheckMutation) Type added in v1.12.0

Type returns the node type of this mutation (ReportScorecardCheck).

func (*ReportScorecardCheckMutation) UpdatedAt added in v1.12.0

func (m *ReportScorecardCheckMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportScorecardCheckMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportScorecardCheckMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportScorecardCheckMutation) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardCheckMutation builder.

func (*ReportScorecardCheckMutation) WhereP added in v1.12.0

func (m *ReportScorecardCheckMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportScorecardCheckMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportScorecardCheckQuery added in v1.12.0

type ReportScorecardCheckQuery struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckQuery is the builder for querying ReportScorecardCheck entities.

func (*ReportScorecardCheckQuery) Aggregate added in v1.12.0

Aggregate returns a ReportScorecardCheckSelect configured with the given aggregations.

func (*ReportScorecardCheckQuery) All added in v1.12.0

All executes the query and returns a list of ReportScorecardChecks.

func (*ReportScorecardCheckQuery) AllX added in v1.12.0

AllX is like All, but panics if an error occurs.

func (*ReportScorecardCheckQuery) Clone added in v1.12.0

Clone returns a duplicate of the ReportScorecardCheckQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportScorecardCheckQuery) Count added in v1.12.0

func (rscq *ReportScorecardCheckQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportScorecardCheckQuery) CountX added in v1.12.0

func (rscq *ReportScorecardCheckQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportScorecardCheckQuery) Exist added in v1.12.0

func (rscq *ReportScorecardCheckQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportScorecardCheckQuery) ExistX added in v1.12.0

func (rscq *ReportScorecardCheckQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportScorecardCheckQuery) First added in v1.12.0

First returns the first ReportScorecardCheck entity from the query. Returns a *NotFoundError when no ReportScorecardCheck was found.

func (*ReportScorecardCheckQuery) FirstID added in v1.12.0

func (rscq *ReportScorecardCheckQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportScorecardCheck ID from the query. Returns a *NotFoundError when no ReportScorecardCheck ID was found.

func (*ReportScorecardCheckQuery) FirstIDX added in v1.12.0

func (rscq *ReportScorecardCheckQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportScorecardCheckQuery) FirstX added in v1.12.0

FirstX is like First, but panics if an error occurs.

func (*ReportScorecardCheckQuery) GroupBy added in v1.12.0

func (rscq *ReportScorecardCheckQuery) GroupBy(field string, fields ...string) *ReportScorecardCheckGroupBy

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.ReportScorecardCheck.Query().
	GroupBy(reportscorecardcheck.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportScorecardCheckQuery) IDs added in v1.12.0

func (rscq *ReportScorecardCheckQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportScorecardCheck IDs.

func (*ReportScorecardCheckQuery) IDsX added in v1.12.0

func (rscq *ReportScorecardCheckQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportScorecardCheckQuery) Limit added in v1.12.0

Limit the number of records to be returned by this query.

func (*ReportScorecardCheckQuery) Offset added in v1.12.0

Offset to start from.

func (*ReportScorecardCheckQuery) Only added in v1.12.0

Only returns a single ReportScorecardCheck entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportScorecardCheck entity is found. Returns a *NotFoundError when no ReportScorecardCheck entities are found.

func (*ReportScorecardCheckQuery) OnlyID added in v1.12.0

func (rscq *ReportScorecardCheckQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportScorecardCheck ID in the query. Returns a *NotSingularError when more than one ReportScorecardCheck ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportScorecardCheckQuery) OnlyIDX added in v1.12.0

func (rscq *ReportScorecardCheckQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportScorecardCheckQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportScorecardCheckQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportScorecardCheckQuery) QueryScorecard added in v1.12.0

func (rscq *ReportScorecardCheckQuery) QueryScorecard() *ReportScorecardQuery

QueryScorecard chains the current query on the "scorecard" edge.

func (*ReportScorecardCheckQuery) Select added in v1.12.0

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.ReportScorecardCheck.Query().
	Select(reportscorecardcheck.FieldName).
	Scan(ctx, &v)

func (*ReportScorecardCheckQuery) Unique added in v1.12.0

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 (*ReportScorecardCheckQuery) Where added in v1.12.0

Where adds a new predicate for the ReportScorecardCheckQuery builder.

func (*ReportScorecardCheckQuery) WithScorecard added in v1.12.0

func (rscq *ReportScorecardCheckQuery) WithScorecard(opts ...func(*ReportScorecardQuery)) *ReportScorecardCheckQuery

WithScorecard tells the query-builder to eager-load the nodes that are connected to the "scorecard" edge. The optional arguments are used to configure the query builder of the edge.

type ReportScorecardCheckSelect added in v1.12.0

type ReportScorecardCheckSelect struct {
	*ReportScorecardCheckQuery
	// contains filtered or unexported fields
}

ReportScorecardCheckSelect is the builder for selecting fields of ReportScorecardCheck entities.

func (*ReportScorecardCheckSelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportScorecardCheckSelect) Bool added in v1.12.0

func (s *ReportScorecardCheckSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) BoolX added in v1.12.0

func (s *ReportScorecardCheckSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Bools added in v1.12.0

func (s *ReportScorecardCheckSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) BoolsX added in v1.12.0

func (s *ReportScorecardCheckSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Float64 added in v1.12.0

func (s *ReportScorecardCheckSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) Float64X added in v1.12.0

func (s *ReportScorecardCheckSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Float64s added in v1.12.0

func (s *ReportScorecardCheckSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) Float64sX added in v1.12.0

func (s *ReportScorecardCheckSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Int added in v1.12.0

func (s *ReportScorecardCheckSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) IntX added in v1.12.0

func (s *ReportScorecardCheckSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Ints added in v1.12.0

func (s *ReportScorecardCheckSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) IntsX added in v1.12.0

func (s *ReportScorecardCheckSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Scan added in v1.12.0

func (rscs *ReportScorecardCheckSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportScorecardCheckSelect) ScanX added in v1.12.0

func (s *ReportScorecardCheckSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportScorecardCheckSelect) String added in v1.12.0

func (s *ReportScorecardCheckSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) StringX added in v1.12.0

func (s *ReportScorecardCheckSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportScorecardCheckSelect) Strings added in v1.12.0

func (s *ReportScorecardCheckSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportScorecardCheckSelect) StringsX added in v1.12.0

func (s *ReportScorecardCheckSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportScorecardCheckUpdate added in v1.12.0

type ReportScorecardCheckUpdate struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckUpdate is the builder for updating ReportScorecardCheck entities.

func (*ReportScorecardCheckUpdate) AddScore added in v1.12.0

AddScore adds f to the "score" field.

func (*ReportScorecardCheckUpdate) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportScorecardCheckUpdate) ClearReason added in v1.12.0

ClearReason clears the value of the "reason" field.

func (*ReportScorecardCheckUpdate) ClearScorecard added in v1.12.0

ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.

func (*ReportScorecardCheckUpdate) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportScorecardCheckUpdate) Exec added in v1.12.0

Exec executes the query.

func (*ReportScorecardCheckUpdate) ExecX added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCheckUpdate) Mutation added in v1.12.0

Mutation returns the ReportScorecardCheckMutation object of the builder.

func (*ReportScorecardCheckUpdate) Save added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportScorecardCheckUpdate) SaveX added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportScorecardCheckUpdate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardCheckUpdate) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportScorecardCheckUpdate) SetNillableCreatedAt added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) SetNillableCreatedAt(t *time.Time) *ReportScorecardCheckUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportScorecardCheckUpdate) SetNillableName added in v1.12.0

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportScorecardCheckUpdate) SetNillableReason added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) SetNillableReason(s *string) *ReportScorecardCheckUpdate

SetNillableReason sets the "reason" field if the given value is not nil.

func (*ReportScorecardCheckUpdate) SetNillableScore added in v1.12.0

SetNillableScore sets the "score" field if the given value is not nil.

func (*ReportScorecardCheckUpdate) SetNillableScorecardID added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) SetNillableScorecardID(id *int) *ReportScorecardCheckUpdate

SetNillableScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID if the given value is not nil.

func (*ReportScorecardCheckUpdate) SetNillableUpdatedAt added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCheckUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportScorecardCheckUpdate) SetReason added in v1.12.0

SetReason sets the "reason" field.

func (*ReportScorecardCheckUpdate) SetScore added in v1.12.0

SetScore sets the "score" field.

func (*ReportScorecardCheckUpdate) SetScorecard added in v1.12.0

SetScorecard sets the "scorecard" edge to the ReportScorecard entity.

func (*ReportScorecardCheckUpdate) SetScorecardID added in v1.12.0

func (rscu *ReportScorecardCheckUpdate) SetScorecardID(id int) *ReportScorecardCheckUpdate

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.

func (*ReportScorecardCheckUpdate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportScorecardCheckUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardCheckUpdate builder.

type ReportScorecardCheckUpdateOne added in v1.12.0

type ReportScorecardCheckUpdateOne struct {
	// contains filtered or unexported fields
}

ReportScorecardCheckUpdateOne is the builder for updating a single ReportScorecardCheck entity.

func (*ReportScorecardCheckUpdateOne) AddScore added in v1.12.0

AddScore adds f to the "score" field.

func (*ReportScorecardCheckUpdateOne) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportScorecardCheckUpdateOne) ClearReason added in v1.12.0

ClearReason clears the value of the "reason" field.

func (*ReportScorecardCheckUpdateOne) ClearScorecard added in v1.12.0

ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.

func (*ReportScorecardCheckUpdateOne) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportScorecardCheckUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportScorecardCheckUpdateOne) ExecX added in v1.12.0

func (rscuo *ReportScorecardCheckUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCheckUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportScorecardCheckMutation object of the builder.

func (*ReportScorecardCheckUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportScorecardCheck entity.

func (*ReportScorecardCheckUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportScorecardCheckUpdateOne) Select added in v1.12.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportScorecardCheckUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardCheckUpdateOne) SetName added in v1.12.0

SetName sets the "name" field.

func (*ReportScorecardCheckUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rscuo *ReportScorecardCheckUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportScorecardCheckUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportScorecardCheckUpdateOne) SetNillableName added in v1.12.0

SetNillableName sets the "name" field if the given value is not nil.

func (*ReportScorecardCheckUpdateOne) SetNillableReason added in v1.12.0

SetNillableReason sets the "reason" field if the given value is not nil.

func (*ReportScorecardCheckUpdateOne) SetNillableScore added in v1.12.0

SetNillableScore sets the "score" field if the given value is not nil.

func (*ReportScorecardCheckUpdateOne) SetNillableScorecardID added in v1.12.0

func (rscuo *ReportScorecardCheckUpdateOne) SetNillableScorecardID(id *int) *ReportScorecardCheckUpdateOne

SetNillableScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID if the given value is not nil.

func (*ReportScorecardCheckUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rscuo *ReportScorecardCheckUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCheckUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportScorecardCheckUpdateOne) SetReason added in v1.12.0

SetReason sets the "reason" field.

func (*ReportScorecardCheckUpdateOne) SetScore added in v1.12.0

SetScore sets the "score" field.

func (*ReportScorecardCheckUpdateOne) SetScorecard added in v1.12.0

SetScorecard sets the "scorecard" edge to the ReportScorecard entity.

func (*ReportScorecardCheckUpdateOne) SetScorecardID added in v1.12.0

SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.

func (*ReportScorecardCheckUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportScorecardCheckUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardCheckUpdate builder.

type ReportScorecardChecks added in v1.12.0

type ReportScorecardChecks []*ReportScorecardCheck

ReportScorecardChecks is a parsable slice of ReportScorecardCheck.

type ReportScorecardClient added in v1.12.0

type ReportScorecardClient struct {
	// contains filtered or unexported fields
}

ReportScorecardClient is a client for the ReportScorecard schema.

func NewReportScorecardClient added in v1.12.0

func NewReportScorecardClient(c config) *ReportScorecardClient

NewReportScorecardClient returns a client for the ReportScorecard from the given config.

func (*ReportScorecardClient) Create added in v1.12.0

Create returns a builder for creating a ReportScorecard entity.

func (*ReportScorecardClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportScorecard entities.

func (*ReportScorecardClient) Delete added in v1.12.0

Delete returns a delete builder for ReportScorecard.

func (*ReportScorecardClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportScorecardClient) DeleteOneID added in v1.12.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportScorecardClient) Get added in v1.12.0

Get returns a ReportScorecard entity by its id.

func (*ReportScorecardClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportScorecardClient) Hooks added in v1.12.0

func (c *ReportScorecardClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportScorecardClient) Intercept added in v1.12.0

func (c *ReportScorecardClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportscorecard.Intercept(f(g(h())))`.

func (*ReportScorecardClient) Interceptors added in v1.12.0

func (c *ReportScorecardClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportScorecardClient) MapCreateBulk added in v1.12.0

func (c *ReportScorecardClient) MapCreateBulk(slice any, setFunc func(*ReportScorecardCreate, int)) *ReportScorecardCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportScorecardClient) Query added in v1.12.0

Query returns a query builder for ReportScorecard.

func (*ReportScorecardClient) QueryChecks added in v1.12.0

QueryChecks queries the checks edge of a ReportScorecard.

func (*ReportScorecardClient) QueryProject added in v1.12.0

QueryProject queries the project edge of a ReportScorecard.

func (*ReportScorecardClient) Update added in v1.12.0

Update returns an update builder for ReportScorecard.

func (*ReportScorecardClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportScorecardClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportScorecardClient) Use added in v1.12.0

func (c *ReportScorecardClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportscorecard.Hooks(f(g(h())))`.

type ReportScorecardCreate added in v1.12.0

type ReportScorecardCreate struct {
	// contains filtered or unexported fields
}

ReportScorecardCreate is the builder for creating a ReportScorecard entity.

func (*ReportScorecardCreate) AddCheckIDs added in v1.12.0

func (rsc *ReportScorecardCreate) AddCheckIDs(ids ...int) *ReportScorecardCreate

AddCheckIDs adds the "checks" edge to the ReportScorecardCheck entity by IDs.

func (*ReportScorecardCreate) AddChecks added in v1.12.0

AddChecks adds the "checks" edges to the ReportScorecardCheck entity.

func (*ReportScorecardCreate) Exec added in v1.12.0

func (rsc *ReportScorecardCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportScorecardCreate) ExecX added in v1.12.0

func (rsc *ReportScorecardCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCreate) Mutation added in v1.12.0

Mutation returns the ReportScorecardMutation object of the builder.

func (*ReportScorecardCreate) Save added in v1.12.0

Save creates the ReportScorecard in the database.

func (*ReportScorecardCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportScorecardCreate) SetCreatedAt added in v1.12.0

func (rsc *ReportScorecardCreate) SetCreatedAt(t time.Time) *ReportScorecardCreate

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardCreate) SetDate added in v1.12.0

SetDate sets the "date" field.

func (*ReportScorecardCreate) SetNillableCreatedAt added in v1.12.0

func (rsc *ReportScorecardCreate) SetNillableCreatedAt(t *time.Time) *ReportScorecardCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportScorecardCreate) SetNillableDate added in v1.12.0

func (rsc *ReportScorecardCreate) SetNillableDate(s *string) *ReportScorecardCreate

SetNillableDate sets the "date" field if the given value is not nil.

func (*ReportScorecardCreate) SetNillableProjectID added in v1.12.0

func (rsc *ReportScorecardCreate) SetNillableProjectID(id *int) *ReportScorecardCreate

SetNillableProjectID sets the "project" edge to the ReportProject entity by ID if the given value is not nil.

func (*ReportScorecardCreate) SetNillableUpdatedAt added in v1.12.0

func (rsc *ReportScorecardCreate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportScorecardCreate) SetProject added in v1.12.0

SetProject sets the "project" edge to the ReportProject entity.

func (*ReportScorecardCreate) SetProjectID added in v1.12.0

func (rsc *ReportScorecardCreate) SetProjectID(id int) *ReportScorecardCreate

SetProjectID sets the "project" edge to the ReportProject entity by ID.

func (*ReportScorecardCreate) SetRepoCommit added in v1.12.0

func (rsc *ReportScorecardCreate) SetRepoCommit(s string) *ReportScorecardCreate

SetRepoCommit sets the "repo_commit" field.

func (*ReportScorecardCreate) SetRepoName added in v1.12.0

func (rsc *ReportScorecardCreate) SetRepoName(s string) *ReportScorecardCreate

SetRepoName sets the "repo_name" field.

func (*ReportScorecardCreate) SetScore added in v1.12.0

SetScore sets the "score" field.

func (*ReportScorecardCreate) SetScorecardVersion added in v1.12.0

func (rsc *ReportScorecardCreate) SetScorecardVersion(s string) *ReportScorecardCreate

SetScorecardVersion sets the "scorecard_version" field.

func (*ReportScorecardCreate) SetUpdatedAt added in v1.12.0

func (rsc *ReportScorecardCreate) SetUpdatedAt(t time.Time) *ReportScorecardCreate

SetUpdatedAt sets the "updated_at" field.

type ReportScorecardCreateBulk added in v1.12.0

type ReportScorecardCreateBulk struct {
	// contains filtered or unexported fields
}

ReportScorecardCreateBulk is the builder for creating many ReportScorecard entities in bulk.

func (*ReportScorecardCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportScorecardCreateBulk) ExecX added in v1.12.0

func (rscb *ReportScorecardCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardCreateBulk) Save added in v1.12.0

Save creates the ReportScorecard entities in the database.

func (*ReportScorecardCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportScorecardDelete added in v1.12.0

type ReportScorecardDelete struct {
	// contains filtered or unexported fields
}

ReportScorecardDelete is the builder for deleting a ReportScorecard entity.

func (*ReportScorecardDelete) Exec added in v1.12.0

func (rsd *ReportScorecardDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportScorecardDelete) ExecX added in v1.12.0

func (rsd *ReportScorecardDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardDelete) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardDelete builder.

type ReportScorecardDeleteOne added in v1.12.0

type ReportScorecardDeleteOne struct {
	// contains filtered or unexported fields
}

ReportScorecardDeleteOne is the builder for deleting a single ReportScorecard entity.

func (*ReportScorecardDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportScorecardDeleteOne) ExecX added in v1.12.0

func (rsdo *ReportScorecardDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardDelete builder.

type ReportScorecardEdges added in v1.12.0

type ReportScorecardEdges struct {
	// Project holds the value of the project edge.
	Project *ReportProject `json:"project,omitempty"`
	// Checks holds the value of the checks edge.
	Checks []*ReportScorecardCheck `json:"checks,omitempty"`
	// contains filtered or unexported fields
}

ReportScorecardEdges holds the relations/edges for other nodes in the graph.

func (ReportScorecardEdges) ChecksOrErr added in v1.12.0

func (e ReportScorecardEdges) ChecksOrErr() ([]*ReportScorecardCheck, error)

ChecksOrErr returns the Checks value or an error if the edge was not loaded in eager-loading.

func (ReportScorecardEdges) ProjectOrErr added in v1.12.0

func (e ReportScorecardEdges) ProjectOrErr() (*ReportProject, error)

ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReportScorecardGroupBy added in v1.12.0

type ReportScorecardGroupBy struct {
	// contains filtered or unexported fields
}

ReportScorecardGroupBy is the group-by builder for ReportScorecard entities.

func (*ReportScorecardGroupBy) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportScorecardGroupBy) Bool added in v1.12.0

func (s *ReportScorecardGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) BoolX added in v1.12.0

func (s *ReportScorecardGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportScorecardGroupBy) Bools added in v1.12.0

func (s *ReportScorecardGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) BoolsX added in v1.12.0

func (s *ReportScorecardGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportScorecardGroupBy) Float64 added in v1.12.0

func (s *ReportScorecardGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) Float64X added in v1.12.0

func (s *ReportScorecardGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportScorecardGroupBy) Float64s added in v1.12.0

func (s *ReportScorecardGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) Float64sX added in v1.12.0

func (s *ReportScorecardGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportScorecardGroupBy) Int added in v1.12.0

func (s *ReportScorecardGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) IntX added in v1.12.0

func (s *ReportScorecardGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportScorecardGroupBy) Ints added in v1.12.0

func (s *ReportScorecardGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) IntsX added in v1.12.0

func (s *ReportScorecardGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportScorecardGroupBy) Scan added in v1.12.0

func (rsgb *ReportScorecardGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportScorecardGroupBy) ScanX added in v1.12.0

func (s *ReportScorecardGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportScorecardGroupBy) String added in v1.12.0

func (s *ReportScorecardGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) StringX added in v1.12.0

func (s *ReportScorecardGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportScorecardGroupBy) Strings added in v1.12.0

func (s *ReportScorecardGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportScorecardGroupBy) StringsX added in v1.12.0

func (s *ReportScorecardGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportScorecardMutation added in v1.12.0

type ReportScorecardMutation struct {
	// contains filtered or unexported fields
}

ReportScorecardMutation represents an operation that mutates the ReportScorecard nodes in the graph.

func (*ReportScorecardMutation) AddCheckIDs added in v1.12.0

func (m *ReportScorecardMutation) AddCheckIDs(ids ...int)

AddCheckIDs adds the "checks" edge to the ReportScorecardCheck entity by ids.

func (*ReportScorecardMutation) AddField added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) AddScore added in v1.12.0

func (m *ReportScorecardMutation) AddScore(f float32)

AddScore adds f to the "score" field.

func (*ReportScorecardMutation) AddedEdges added in v1.12.0

func (m *ReportScorecardMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportScorecardMutation) AddedField added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) AddedFields added in v1.12.0

func (m *ReportScorecardMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportScorecardMutation) AddedIDs added in v1.12.0

func (m *ReportScorecardMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportScorecardMutation) AddedScore added in v1.12.0

func (m *ReportScorecardMutation) AddedScore() (r float32, exists bool)

AddedScore returns the value that was added to the "score" field in this mutation.

func (*ReportScorecardMutation) ChecksCleared added in v1.12.0

func (m *ReportScorecardMutation) ChecksCleared() bool

ChecksCleared reports if the "checks" edge to the ReportScorecardCheck entity was cleared.

func (*ReportScorecardMutation) ChecksIDs added in v1.12.0

func (m *ReportScorecardMutation) ChecksIDs() (ids []int)

ChecksIDs returns the "checks" edge IDs in the mutation.

func (*ReportScorecardMutation) ClearChecks added in v1.12.0

func (m *ReportScorecardMutation) ClearChecks()

ClearChecks clears the "checks" edge to the ReportScorecardCheck entity.

func (*ReportScorecardMutation) ClearCreatedAt added in v1.12.0

func (m *ReportScorecardMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportScorecardMutation) ClearDate added in v1.12.0

func (m *ReportScorecardMutation) ClearDate()

ClearDate clears the value of the "date" field.

func (*ReportScorecardMutation) ClearEdge added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) ClearField added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) ClearProject added in v1.12.0

func (m *ReportScorecardMutation) ClearProject()

ClearProject clears the "project" edge to the ReportProject entity.

func (*ReportScorecardMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportScorecardMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportScorecardMutation) ClearedEdges added in v1.12.0

func (m *ReportScorecardMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportScorecardMutation) ClearedFields added in v1.12.0

func (m *ReportScorecardMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportScorecardMutation) Client added in v1.12.0

func (m ReportScorecardMutation) 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 (*ReportScorecardMutation) CreatedAt added in v1.12.0

func (m *ReportScorecardMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportScorecardMutation) CreatedAtCleared added in v1.12.0

func (m *ReportScorecardMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportScorecardMutation) Date added in v1.12.0

func (m *ReportScorecardMutation) Date() (r string, exists bool)

Date returns the value of the "date" field in the mutation.

func (*ReportScorecardMutation) DateCleared added in v1.12.0

func (m *ReportScorecardMutation) DateCleared() bool

DateCleared returns if the "date" field was cleared in this mutation.

func (*ReportScorecardMutation) EdgeCleared added in v1.12.0

func (m *ReportScorecardMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportScorecardMutation) Field added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) FieldCleared added in v1.12.0

func (m *ReportScorecardMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportScorecardMutation) Fields added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) ID added in v1.12.0

func (m *ReportScorecardMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportScorecardMutation) IDs added in v1.12.0

func (m *ReportScorecardMutation) IDs(ctx context.Context) ([]int, 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 (*ReportScorecardMutation) OldCreatedAt added in v1.12.0

func (m *ReportScorecardMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) OldDate added in v1.12.0

func (m *ReportScorecardMutation) OldDate(ctx context.Context) (v string, err error)

OldDate returns the old "date" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) OldField added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) OldRepoCommit added in v1.12.0

func (m *ReportScorecardMutation) OldRepoCommit(ctx context.Context) (v string, err error)

OldRepoCommit returns the old "repo_commit" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) OldRepoName added in v1.12.0

func (m *ReportScorecardMutation) OldRepoName(ctx context.Context) (v string, err error)

OldRepoName returns the old "repo_name" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) OldScore added in v1.12.0

func (m *ReportScorecardMutation) OldScore(ctx context.Context) (v float32, err error)

OldScore returns the old "score" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) OldScorecardVersion added in v1.12.0

func (m *ReportScorecardMutation) OldScorecardVersion(ctx context.Context) (v string, err error)

OldScorecardVersion returns the old "scorecard_version" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) OldUpdatedAt added in v1.12.0

func (m *ReportScorecardMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportScorecard entity. If the ReportScorecard 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 (*ReportScorecardMutation) Op added in v1.12.0

func (m *ReportScorecardMutation) Op() Op

Op returns the operation name.

func (*ReportScorecardMutation) ProjectCleared added in v1.12.0

func (m *ReportScorecardMutation) ProjectCleared() bool

ProjectCleared reports if the "project" edge to the ReportProject entity was cleared.

func (*ReportScorecardMutation) ProjectID added in v1.12.0

func (m *ReportScorecardMutation) ProjectID() (id int, exists bool)

ProjectID returns the "project" edge ID in the mutation.

func (*ReportScorecardMutation) ProjectIDs added in v1.12.0

func (m *ReportScorecardMutation) ProjectIDs() (ids []int)

ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.

func (*ReportScorecardMutation) RemoveCheckIDs added in v1.12.0

func (m *ReportScorecardMutation) RemoveCheckIDs(ids ...int)

RemoveCheckIDs removes the "checks" edge to the ReportScorecardCheck entity by IDs.

func (*ReportScorecardMutation) RemovedChecksIDs added in v1.12.0

func (m *ReportScorecardMutation) RemovedChecksIDs() (ids []int)

RemovedChecks returns the removed IDs of the "checks" edge to the ReportScorecardCheck entity.

func (*ReportScorecardMutation) RemovedEdges added in v1.12.0

func (m *ReportScorecardMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportScorecardMutation) RemovedIDs added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) RepoCommit added in v1.12.0

func (m *ReportScorecardMutation) RepoCommit() (r string, exists bool)

RepoCommit returns the value of the "repo_commit" field in the mutation.

func (*ReportScorecardMutation) RepoName added in v1.12.0

func (m *ReportScorecardMutation) RepoName() (r string, exists bool)

RepoName returns the value of the "repo_name" field in the mutation.

func (*ReportScorecardMutation) ResetChecks added in v1.12.0

func (m *ReportScorecardMutation) ResetChecks()

ResetChecks resets all changes to the "checks" edge.

func (*ReportScorecardMutation) ResetCreatedAt added in v1.12.0

func (m *ReportScorecardMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportScorecardMutation) ResetDate added in v1.12.0

func (m *ReportScorecardMutation) ResetDate()

ResetDate resets all changes to the "date" field.

func (*ReportScorecardMutation) ResetEdge added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) ResetField added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) ResetProject added in v1.12.0

func (m *ReportScorecardMutation) ResetProject()

ResetProject resets all changes to the "project" edge.

func (*ReportScorecardMutation) ResetRepoCommit added in v1.12.0

func (m *ReportScorecardMutation) ResetRepoCommit()

ResetRepoCommit resets all changes to the "repo_commit" field.

func (*ReportScorecardMutation) ResetRepoName added in v1.12.0

func (m *ReportScorecardMutation) ResetRepoName()

ResetRepoName resets all changes to the "repo_name" field.

func (*ReportScorecardMutation) ResetScore added in v1.12.0

func (m *ReportScorecardMutation) ResetScore()

ResetScore resets all changes to the "score" field.

func (*ReportScorecardMutation) ResetScorecardVersion added in v1.12.0

func (m *ReportScorecardMutation) ResetScorecardVersion()

ResetScorecardVersion resets all changes to the "scorecard_version" field.

func (*ReportScorecardMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportScorecardMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportScorecardMutation) Score added in v1.12.0

func (m *ReportScorecardMutation) Score() (r float32, exists bool)

Score returns the value of the "score" field in the mutation.

func (*ReportScorecardMutation) ScorecardVersion added in v1.12.0

func (m *ReportScorecardMutation) ScorecardVersion() (r string, exists bool)

ScorecardVersion returns the value of the "scorecard_version" field in the mutation.

func (*ReportScorecardMutation) SetCreatedAt added in v1.12.0

func (m *ReportScorecardMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardMutation) SetDate added in v1.12.0

func (m *ReportScorecardMutation) SetDate(s string)

SetDate sets the "date" field.

func (*ReportScorecardMutation) SetField added in v1.12.0

func (m *ReportScorecardMutation) 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 (*ReportScorecardMutation) SetOp added in v1.12.0

func (m *ReportScorecardMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportScorecardMutation) SetProjectID added in v1.12.0

func (m *ReportScorecardMutation) SetProjectID(id int)

SetProjectID sets the "project" edge to the ReportProject entity by id.

func (*ReportScorecardMutation) SetRepoCommit added in v1.12.0

func (m *ReportScorecardMutation) SetRepoCommit(s string)

SetRepoCommit sets the "repo_commit" field.

func (*ReportScorecardMutation) SetRepoName added in v1.12.0

func (m *ReportScorecardMutation) SetRepoName(s string)

SetRepoName sets the "repo_name" field.

func (*ReportScorecardMutation) SetScore added in v1.12.0

func (m *ReportScorecardMutation) SetScore(f float32)

SetScore sets the "score" field.

func (*ReportScorecardMutation) SetScorecardVersion added in v1.12.0

func (m *ReportScorecardMutation) SetScorecardVersion(s string)

SetScorecardVersion sets the "scorecard_version" field.

func (*ReportScorecardMutation) SetUpdatedAt added in v1.12.0

func (m *ReportScorecardMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (ReportScorecardMutation) Tx added in v1.12.0

func (m ReportScorecardMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportScorecardMutation) Type added in v1.12.0

func (m *ReportScorecardMutation) Type() string

Type returns the node type of this mutation (ReportScorecard).

func (*ReportScorecardMutation) UpdatedAt added in v1.12.0

func (m *ReportScorecardMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportScorecardMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportScorecardMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportScorecardMutation) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardMutation builder.

func (*ReportScorecardMutation) WhereP added in v1.12.0

func (m *ReportScorecardMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportScorecardMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportScorecardQuery added in v1.12.0

type ReportScorecardQuery struct {
	// contains filtered or unexported fields
}

ReportScorecardQuery is the builder for querying ReportScorecard entities.

func (*ReportScorecardQuery) Aggregate added in v1.12.0

Aggregate returns a ReportScorecardSelect configured with the given aggregations.

func (*ReportScorecardQuery) All added in v1.12.0

All executes the query and returns a list of ReportScorecards.

func (*ReportScorecardQuery) AllX added in v1.12.0

AllX is like All, but panics if an error occurs.

func (*ReportScorecardQuery) Clone added in v1.12.0

Clone returns a duplicate of the ReportScorecardQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportScorecardQuery) Count added in v1.12.0

func (rsq *ReportScorecardQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportScorecardQuery) CountX added in v1.12.0

func (rsq *ReportScorecardQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportScorecardQuery) Exist added in v1.12.0

func (rsq *ReportScorecardQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportScorecardQuery) ExistX added in v1.12.0

func (rsq *ReportScorecardQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportScorecardQuery) First added in v1.12.0

First returns the first ReportScorecard entity from the query. Returns a *NotFoundError when no ReportScorecard was found.

func (*ReportScorecardQuery) FirstID added in v1.12.0

func (rsq *ReportScorecardQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportScorecard ID from the query. Returns a *NotFoundError when no ReportScorecard ID was found.

func (*ReportScorecardQuery) FirstIDX added in v1.12.0

func (rsq *ReportScorecardQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportScorecardQuery) FirstX added in v1.12.0

FirstX is like First, but panics if an error occurs.

func (*ReportScorecardQuery) GroupBy added in v1.12.0

func (rsq *ReportScorecardQuery) GroupBy(field string, fields ...string) *ReportScorecardGroupBy

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 {
	Score float32 `json:"score,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReportScorecard.Query().
	GroupBy(reportscorecard.FieldScore).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportScorecardQuery) IDs added in v1.12.0

func (rsq *ReportScorecardQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportScorecard IDs.

func (*ReportScorecardQuery) IDsX added in v1.12.0

func (rsq *ReportScorecardQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportScorecardQuery) Limit added in v1.12.0

func (rsq *ReportScorecardQuery) Limit(limit int) *ReportScorecardQuery

Limit the number of records to be returned by this query.

func (*ReportScorecardQuery) Offset added in v1.12.0

func (rsq *ReportScorecardQuery) Offset(offset int) *ReportScorecardQuery

Offset to start from.

func (*ReportScorecardQuery) Only added in v1.12.0

Only returns a single ReportScorecard entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportScorecard entity is found. Returns a *NotFoundError when no ReportScorecard entities are found.

func (*ReportScorecardQuery) OnlyID added in v1.12.0

func (rsq *ReportScorecardQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportScorecard ID in the query. Returns a *NotSingularError when more than one ReportScorecard ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportScorecardQuery) OnlyIDX added in v1.12.0

func (rsq *ReportScorecardQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportScorecardQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportScorecardQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportScorecardQuery) QueryChecks added in v1.12.0

func (rsq *ReportScorecardQuery) QueryChecks() *ReportScorecardCheckQuery

QueryChecks chains the current query on the "checks" edge.

func (*ReportScorecardQuery) QueryProject added in v1.12.0

func (rsq *ReportScorecardQuery) QueryProject() *ReportProjectQuery

QueryProject chains the current query on the "project" edge.

func (*ReportScorecardQuery) Select added in v1.12.0

func (rsq *ReportScorecardQuery) Select(fields ...string) *ReportScorecardSelect

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 {
	Score float32 `json:"score,omitempty"`
}

client.ReportScorecard.Query().
	Select(reportscorecard.FieldScore).
	Scan(ctx, &v)

func (*ReportScorecardQuery) Unique added in v1.12.0

func (rsq *ReportScorecardQuery) Unique(unique bool) *ReportScorecardQuery

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 (*ReportScorecardQuery) Where added in v1.12.0

Where adds a new predicate for the ReportScorecardQuery builder.

func (*ReportScorecardQuery) WithChecks added in v1.12.0

func (rsq *ReportScorecardQuery) WithChecks(opts ...func(*ReportScorecardCheckQuery)) *ReportScorecardQuery

WithChecks tells the query-builder to eager-load the nodes that are connected to the "checks" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReportScorecardQuery) WithProject added in v1.12.0

func (rsq *ReportScorecardQuery) WithProject(opts ...func(*ReportProjectQuery)) *ReportScorecardQuery

WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.

type ReportScorecardSelect added in v1.12.0

type ReportScorecardSelect struct {
	*ReportScorecardQuery
	// contains filtered or unexported fields
}

ReportScorecardSelect is the builder for selecting fields of ReportScorecard entities.

func (*ReportScorecardSelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportScorecardSelect) Bool added in v1.12.0

func (s *ReportScorecardSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) BoolX added in v1.12.0

func (s *ReportScorecardSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportScorecardSelect) Bools added in v1.12.0

func (s *ReportScorecardSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) BoolsX added in v1.12.0

func (s *ReportScorecardSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportScorecardSelect) Float64 added in v1.12.0

func (s *ReportScorecardSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) Float64X added in v1.12.0

func (s *ReportScorecardSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportScorecardSelect) Float64s added in v1.12.0

func (s *ReportScorecardSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) Float64sX added in v1.12.0

func (s *ReportScorecardSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportScorecardSelect) Int added in v1.12.0

func (s *ReportScorecardSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) IntX added in v1.12.0

func (s *ReportScorecardSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportScorecardSelect) Ints added in v1.12.0

func (s *ReportScorecardSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) IntsX added in v1.12.0

func (s *ReportScorecardSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportScorecardSelect) Scan added in v1.12.0

func (rss *ReportScorecardSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportScorecardSelect) ScanX added in v1.12.0

func (s *ReportScorecardSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportScorecardSelect) String added in v1.12.0

func (s *ReportScorecardSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) StringX added in v1.12.0

func (s *ReportScorecardSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportScorecardSelect) Strings added in v1.12.0

func (s *ReportScorecardSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportScorecardSelect) StringsX added in v1.12.0

func (s *ReportScorecardSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportScorecardUpdate added in v1.12.0

type ReportScorecardUpdate struct {
	// contains filtered or unexported fields
}

ReportScorecardUpdate is the builder for updating ReportScorecard entities.

func (*ReportScorecardUpdate) AddCheckIDs added in v1.12.0

func (rsu *ReportScorecardUpdate) AddCheckIDs(ids ...int) *ReportScorecardUpdate

AddCheckIDs adds the "checks" edge to the ReportScorecardCheck entity by IDs.

func (*ReportScorecardUpdate) AddChecks added in v1.12.0

AddChecks adds the "checks" edges to the ReportScorecardCheck entity.

func (*ReportScorecardUpdate) AddScore added in v1.12.0

AddScore adds f to the "score" field.

func (*ReportScorecardUpdate) ClearChecks added in v1.12.0

func (rsu *ReportScorecardUpdate) ClearChecks() *ReportScorecardUpdate

ClearChecks clears all "checks" edges to the ReportScorecardCheck entity.

func (*ReportScorecardUpdate) ClearCreatedAt added in v1.12.0

func (rsu *ReportScorecardUpdate) ClearCreatedAt() *ReportScorecardUpdate

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportScorecardUpdate) ClearDate added in v1.12.0

func (rsu *ReportScorecardUpdate) ClearDate() *ReportScorecardUpdate

ClearDate clears the value of the "date" field.

func (*ReportScorecardUpdate) ClearProject added in v1.12.0

func (rsu *ReportScorecardUpdate) ClearProject() *ReportScorecardUpdate

ClearProject clears the "project" edge to the ReportProject entity.

func (*ReportScorecardUpdate) ClearUpdatedAt added in v1.12.0

func (rsu *ReportScorecardUpdate) ClearUpdatedAt() *ReportScorecardUpdate

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportScorecardUpdate) Exec added in v1.12.0

func (rsu *ReportScorecardUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReportScorecardUpdate) ExecX added in v1.12.0

func (rsu *ReportScorecardUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardUpdate) Mutation added in v1.12.0

Mutation returns the ReportScorecardMutation object of the builder.

func (*ReportScorecardUpdate) RemoveCheckIDs added in v1.12.0

func (rsu *ReportScorecardUpdate) RemoveCheckIDs(ids ...int) *ReportScorecardUpdate

RemoveCheckIDs removes the "checks" edge to ReportScorecardCheck entities by IDs.

func (*ReportScorecardUpdate) RemoveChecks added in v1.12.0

RemoveChecks removes "checks" edges to ReportScorecardCheck entities.

func (*ReportScorecardUpdate) Save added in v1.12.0

func (rsu *ReportScorecardUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportScorecardUpdate) SaveX added in v1.12.0

func (rsu *ReportScorecardUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportScorecardUpdate) SetCreatedAt added in v1.12.0

func (rsu *ReportScorecardUpdate) SetCreatedAt(t time.Time) *ReportScorecardUpdate

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardUpdate) SetDate added in v1.12.0

SetDate sets the "date" field.

func (*ReportScorecardUpdate) SetNillableCreatedAt added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableCreatedAt(t *time.Time) *ReportScorecardUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableDate added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableDate(s *string) *ReportScorecardUpdate

SetNillableDate sets the "date" field if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableProjectID added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableProjectID(id *int) *ReportScorecardUpdate

SetNillableProjectID sets the "project" edge to the ReportProject entity by ID if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableRepoCommit added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableRepoCommit(s *string) *ReportScorecardUpdate

SetNillableRepoCommit sets the "repo_commit" field if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableRepoName added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableRepoName(s *string) *ReportScorecardUpdate

SetNillableRepoName sets the "repo_name" field if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableScore added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableScore(f *float32) *ReportScorecardUpdate

SetNillableScore sets the "score" field if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableScorecardVersion added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableScorecardVersion(s *string) *ReportScorecardUpdate

SetNillableScorecardVersion sets the "scorecard_version" field if the given value is not nil.

func (*ReportScorecardUpdate) SetNillableUpdatedAt added in v1.12.0

func (rsu *ReportScorecardUpdate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportScorecardUpdate) SetProject added in v1.12.0

SetProject sets the "project" edge to the ReportProject entity.

func (*ReportScorecardUpdate) SetProjectID added in v1.12.0

func (rsu *ReportScorecardUpdate) SetProjectID(id int) *ReportScorecardUpdate

SetProjectID sets the "project" edge to the ReportProject entity by ID.

func (*ReportScorecardUpdate) SetRepoCommit added in v1.12.0

func (rsu *ReportScorecardUpdate) SetRepoCommit(s string) *ReportScorecardUpdate

SetRepoCommit sets the "repo_commit" field.

func (*ReportScorecardUpdate) SetRepoName added in v1.12.0

func (rsu *ReportScorecardUpdate) SetRepoName(s string) *ReportScorecardUpdate

SetRepoName sets the "repo_name" field.

func (*ReportScorecardUpdate) SetScore added in v1.12.0

SetScore sets the "score" field.

func (*ReportScorecardUpdate) SetScorecardVersion added in v1.12.0

func (rsu *ReportScorecardUpdate) SetScorecardVersion(s string) *ReportScorecardUpdate

SetScorecardVersion sets the "scorecard_version" field.

func (*ReportScorecardUpdate) SetUpdatedAt added in v1.12.0

func (rsu *ReportScorecardUpdate) SetUpdatedAt(t time.Time) *ReportScorecardUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ReportScorecardUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardUpdate builder.

type ReportScorecardUpdateOne added in v1.12.0

type ReportScorecardUpdateOne struct {
	// contains filtered or unexported fields
}

ReportScorecardUpdateOne is the builder for updating a single ReportScorecard entity.

func (*ReportScorecardUpdateOne) AddCheckIDs added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) AddCheckIDs(ids ...int) *ReportScorecardUpdateOne

AddCheckIDs adds the "checks" edge to the ReportScorecardCheck entity by IDs.

func (*ReportScorecardUpdateOne) AddChecks added in v1.12.0

AddChecks adds the "checks" edges to the ReportScorecardCheck entity.

func (*ReportScorecardUpdateOne) AddScore added in v1.12.0

AddScore adds f to the "score" field.

func (*ReportScorecardUpdateOne) ClearChecks added in v1.12.0

ClearChecks clears all "checks" edges to the ReportScorecardCheck entity.

func (*ReportScorecardUpdateOne) ClearCreatedAt added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) ClearCreatedAt() *ReportScorecardUpdateOne

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportScorecardUpdateOne) ClearDate added in v1.12.0

ClearDate clears the value of the "date" field.

func (*ReportScorecardUpdateOne) ClearProject added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) ClearProject() *ReportScorecardUpdateOne

ClearProject clears the "project" edge to the ReportProject entity.

func (*ReportScorecardUpdateOne) ClearUpdatedAt added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) ClearUpdatedAt() *ReportScorecardUpdateOne

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportScorecardUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportScorecardUpdateOne) ExecX added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportScorecardUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportScorecardMutation object of the builder.

func (*ReportScorecardUpdateOne) RemoveCheckIDs added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) RemoveCheckIDs(ids ...int) *ReportScorecardUpdateOne

RemoveCheckIDs removes the "checks" edge to ReportScorecardCheck entities by IDs.

func (*ReportScorecardUpdateOne) RemoveChecks added in v1.12.0

RemoveChecks removes "checks" edges to ReportScorecardCheck entities.

func (*ReportScorecardUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportScorecard entity.

func (*ReportScorecardUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportScorecardUpdateOne) Select added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) Select(field string, fields ...string) *ReportScorecardUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportScorecardUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportScorecardUpdateOne) SetDate added in v1.12.0

SetDate sets the "date" field.

func (*ReportScorecardUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportScorecardUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableDate added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableDate(s *string) *ReportScorecardUpdateOne

SetNillableDate sets the "date" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableProjectID added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableProjectID(id *int) *ReportScorecardUpdateOne

SetNillableProjectID sets the "project" edge to the ReportProject entity by ID if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableRepoCommit added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableRepoCommit(s *string) *ReportScorecardUpdateOne

SetNillableRepoCommit sets the "repo_commit" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableRepoName added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableRepoName(s *string) *ReportScorecardUpdateOne

SetNillableRepoName sets the "repo_name" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableScore added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableScore(f *float32) *ReportScorecardUpdateOne

SetNillableScore sets the "score" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableScorecardVersion added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableScorecardVersion(s *string) *ReportScorecardUpdateOne

SetNillableScorecardVersion sets the "scorecard_version" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportScorecardUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportScorecardUpdateOne) SetProject added in v1.12.0

SetProject sets the "project" edge to the ReportProject entity.

func (*ReportScorecardUpdateOne) SetProjectID added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetProjectID(id int) *ReportScorecardUpdateOne

SetProjectID sets the "project" edge to the ReportProject entity by ID.

func (*ReportScorecardUpdateOne) SetRepoCommit added in v1.12.0

SetRepoCommit sets the "repo_commit" field.

func (*ReportScorecardUpdateOne) SetRepoName added in v1.12.0

SetRepoName sets the "repo_name" field.

func (*ReportScorecardUpdateOne) SetScore added in v1.12.0

SetScore sets the "score" field.

func (*ReportScorecardUpdateOne) SetScorecardVersion added in v1.12.0

func (rsuo *ReportScorecardUpdateOne) SetScorecardVersion(s string) *ReportScorecardUpdateOne

SetScorecardVersion sets the "scorecard_version" field.

func (*ReportScorecardUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportScorecardUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportScorecardUpdate builder.

type ReportScorecards added in v1.12.0

type ReportScorecards []*ReportScorecard

ReportScorecards is a parsable slice of ReportScorecard.

type ReportSlsaProvenance added in v1.12.0

type ReportSlsaProvenance struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Source repository URL
	SourceRepository string `json:"source_repository,omitempty"`
	// Git commit SHA
	CommitSha string `json:"commit_sha,omitempty"`
	// SLSA provenance URL
	URL string `json:"url,omitempty"`
	// Whether the provenance is verified
	Verified bool `json:"verified,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 ReportSlsaProvenanceQuery when eager-loading is set.
	Edges ReportSlsaProvenanceEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportSlsaProvenance is the model entity for the ReportSlsaProvenance schema.

func (*ReportSlsaProvenance) QueryPackage added in v1.12.0

func (rsp *ReportSlsaProvenance) QueryPackage() *ReportPackageQuery

QueryPackage queries the "package" edge of the ReportSlsaProvenance entity.

func (*ReportSlsaProvenance) String added in v1.12.0

func (rsp *ReportSlsaProvenance) String() string

String implements the fmt.Stringer.

func (*ReportSlsaProvenance) Unwrap added in v1.12.0

Unwrap unwraps the ReportSlsaProvenance 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 (*ReportSlsaProvenance) Update added in v1.12.0

Update returns a builder for updating this ReportSlsaProvenance. Note that you need to call ReportSlsaProvenance.Unwrap() before calling this method if this ReportSlsaProvenance was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportSlsaProvenance) Value added in v1.12.0

func (rsp *ReportSlsaProvenance) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportSlsaProvenance. This includes values selected through modifiers, order, etc.

type ReportSlsaProvenanceClient added in v1.12.0

type ReportSlsaProvenanceClient struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceClient is a client for the ReportSlsaProvenance schema.

func NewReportSlsaProvenanceClient added in v1.12.0

func NewReportSlsaProvenanceClient(c config) *ReportSlsaProvenanceClient

NewReportSlsaProvenanceClient returns a client for the ReportSlsaProvenance from the given config.

func (*ReportSlsaProvenanceClient) Create added in v1.12.0

Create returns a builder for creating a ReportSlsaProvenance entity.

func (*ReportSlsaProvenanceClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportSlsaProvenance entities.

func (*ReportSlsaProvenanceClient) Delete added in v1.12.0

Delete returns a delete builder for ReportSlsaProvenance.

func (*ReportSlsaProvenanceClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportSlsaProvenanceClient) DeleteOneID added in v1.12.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportSlsaProvenanceClient) Get added in v1.12.0

Get returns a ReportSlsaProvenance entity by its id.

func (*ReportSlsaProvenanceClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportSlsaProvenanceClient) Hooks added in v1.12.0

func (c *ReportSlsaProvenanceClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportSlsaProvenanceClient) Intercept added in v1.12.0

func (c *ReportSlsaProvenanceClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportslsaprovenance.Intercept(f(g(h())))`.

func (*ReportSlsaProvenanceClient) Interceptors added in v1.12.0

func (c *ReportSlsaProvenanceClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportSlsaProvenanceClient) MapCreateBulk added in v1.12.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportSlsaProvenanceClient) Query added in v1.12.0

Query returns a query builder for ReportSlsaProvenance.

func (*ReportSlsaProvenanceClient) QueryPackage added in v1.12.0

QueryPackage queries the package edge of a ReportSlsaProvenance.

func (*ReportSlsaProvenanceClient) Update added in v1.12.0

Update returns an update builder for ReportSlsaProvenance.

func (*ReportSlsaProvenanceClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportSlsaProvenanceClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportSlsaProvenanceClient) Use added in v1.12.0

func (c *ReportSlsaProvenanceClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportslsaprovenance.Hooks(f(g(h())))`.

type ReportSlsaProvenanceCreate added in v1.12.0

type ReportSlsaProvenanceCreate struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceCreate is the builder for creating a ReportSlsaProvenance entity.

func (*ReportSlsaProvenanceCreate) Exec added in v1.12.0

Exec executes the query.

func (*ReportSlsaProvenanceCreate) ExecX added in v1.12.0

func (rspc *ReportSlsaProvenanceCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportSlsaProvenanceCreate) Mutation added in v1.12.0

Mutation returns the ReportSlsaProvenanceMutation object of the builder.

func (*ReportSlsaProvenanceCreate) Save added in v1.12.0

Save creates the ReportSlsaProvenance in the database.

func (*ReportSlsaProvenanceCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportSlsaProvenanceCreate) SetCommitSha added in v1.12.0

SetCommitSha sets the "commit_sha" field.

func (*ReportSlsaProvenanceCreate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportSlsaProvenanceCreate) SetNillableCreatedAt added in v1.12.0

func (rspc *ReportSlsaProvenanceCreate) SetNillableCreatedAt(t *time.Time) *ReportSlsaProvenanceCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportSlsaProvenanceCreate) SetNillablePackageID added in v1.12.0

func (rspc *ReportSlsaProvenanceCreate) SetNillablePackageID(id *int) *ReportSlsaProvenanceCreate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportSlsaProvenanceCreate) SetNillableUpdatedAt added in v1.12.0

func (rspc *ReportSlsaProvenanceCreate) SetNillableUpdatedAt(t *time.Time) *ReportSlsaProvenanceCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportSlsaProvenanceCreate) SetNillableVerified added in v1.12.0

func (rspc *ReportSlsaProvenanceCreate) SetNillableVerified(b *bool) *ReportSlsaProvenanceCreate

SetNillableVerified sets the "verified" field if the given value is not nil.

func (*ReportSlsaProvenanceCreate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportSlsaProvenanceCreate) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportSlsaProvenanceCreate) SetSourceRepository added in v1.12.0

func (rspc *ReportSlsaProvenanceCreate) SetSourceRepository(s string) *ReportSlsaProvenanceCreate

SetSourceRepository sets the "source_repository" field.

func (*ReportSlsaProvenanceCreate) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportSlsaProvenanceCreate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportSlsaProvenanceCreate) SetVerified added in v1.12.0

SetVerified sets the "verified" field.

type ReportSlsaProvenanceCreateBulk added in v1.12.0

type ReportSlsaProvenanceCreateBulk struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceCreateBulk is the builder for creating many ReportSlsaProvenance entities in bulk.

func (*ReportSlsaProvenanceCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportSlsaProvenanceCreateBulk) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportSlsaProvenanceCreateBulk) Save added in v1.12.0

Save creates the ReportSlsaProvenance entities in the database.

func (*ReportSlsaProvenanceCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportSlsaProvenanceDelete added in v1.12.0

type ReportSlsaProvenanceDelete struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceDelete is the builder for deleting a ReportSlsaProvenance entity.

func (*ReportSlsaProvenanceDelete) Exec added in v1.12.0

func (rspd *ReportSlsaProvenanceDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportSlsaProvenanceDelete) ExecX added in v1.12.0

func (rspd *ReportSlsaProvenanceDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportSlsaProvenanceDelete) Where added in v1.12.0

Where appends a list predicates to the ReportSlsaProvenanceDelete builder.

type ReportSlsaProvenanceDeleteOne added in v1.12.0

type ReportSlsaProvenanceDeleteOne struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceDeleteOne is the builder for deleting a single ReportSlsaProvenance entity.

func (*ReportSlsaProvenanceDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportSlsaProvenanceDeleteOne) ExecX added in v1.12.0

func (rspdo *ReportSlsaProvenanceDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportSlsaProvenanceDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportSlsaProvenanceDelete builder.

type ReportSlsaProvenanceEdges added in v1.12.0

type ReportSlsaProvenanceEdges struct {
	// Package holds the value of the package edge.
	Package *ReportPackage `json:"package,omitempty"`
	// contains filtered or unexported fields
}

ReportSlsaProvenanceEdges holds the relations/edges for other nodes in the graph.

func (ReportSlsaProvenanceEdges) PackageOrErr added in v1.12.0

func (e ReportSlsaProvenanceEdges) PackageOrErr() (*ReportPackage, error)

PackageOrErr returns the Package value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReportSlsaProvenanceGroupBy added in v1.12.0

type ReportSlsaProvenanceGroupBy struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceGroupBy is the group-by builder for ReportSlsaProvenance entities.

func (*ReportSlsaProvenanceGroupBy) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportSlsaProvenanceGroupBy) Bool added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) BoolX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Bools added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) BoolsX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Float64 added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) Float64X added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Float64s added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) Float64sX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Int added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) IntX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Ints added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) IntsX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Scan added in v1.12.0

func (rspgb *ReportSlsaProvenanceGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportSlsaProvenanceGroupBy) ScanX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) String added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) StringX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportSlsaProvenanceGroupBy) Strings added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceGroupBy) StringsX added in v1.12.0

func (s *ReportSlsaProvenanceGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportSlsaProvenanceMutation added in v1.12.0

type ReportSlsaProvenanceMutation struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceMutation represents an operation that mutates the ReportSlsaProvenance nodes in the graph.

func (*ReportSlsaProvenanceMutation) AddField added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) AddedEdges added in v1.12.0

func (m *ReportSlsaProvenanceMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportSlsaProvenanceMutation) AddedField added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) AddedFields added in v1.12.0

func (m *ReportSlsaProvenanceMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportSlsaProvenanceMutation) AddedIDs added in v1.12.0

func (m *ReportSlsaProvenanceMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportSlsaProvenanceMutation) ClearCreatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportSlsaProvenanceMutation) ClearEdge added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) ClearField added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) ClearPackage added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ClearPackage()

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportSlsaProvenanceMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportSlsaProvenanceMutation) ClearedEdges added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportSlsaProvenanceMutation) ClearedFields added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportSlsaProvenanceMutation) Client added in v1.12.0

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 (*ReportSlsaProvenanceMutation) CommitSha added in v1.12.0

func (m *ReportSlsaProvenanceMutation) CommitSha() (r string, exists bool)

CommitSha returns the value of the "commit_sha" field in the mutation.

func (*ReportSlsaProvenanceMutation) CreatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportSlsaProvenanceMutation) CreatedAtCleared added in v1.12.0

func (m *ReportSlsaProvenanceMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportSlsaProvenanceMutation) EdgeCleared added in v1.12.0

func (m *ReportSlsaProvenanceMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportSlsaProvenanceMutation) Field added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) FieldCleared added in v1.12.0

func (m *ReportSlsaProvenanceMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportSlsaProvenanceMutation) Fields added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) ID added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportSlsaProvenanceMutation) IDs added in v1.12.0

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 (*ReportSlsaProvenanceMutation) OldCommitSha added in v1.12.0

func (m *ReportSlsaProvenanceMutation) OldCommitSha(ctx context.Context) (v string, err error)

OldCommitSha returns the old "commit_sha" field's value of the ReportSlsaProvenance entity. If the ReportSlsaProvenance 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 (*ReportSlsaProvenanceMutation) OldCreatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportSlsaProvenance entity. If the ReportSlsaProvenance 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 (*ReportSlsaProvenanceMutation) OldField added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) OldSourceRepository added in v1.12.0

func (m *ReportSlsaProvenanceMutation) OldSourceRepository(ctx context.Context) (v string, err error)

OldSourceRepository returns the old "source_repository" field's value of the ReportSlsaProvenance entity. If the ReportSlsaProvenance 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 (*ReportSlsaProvenanceMutation) OldURL added in v1.12.0

func (m *ReportSlsaProvenanceMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the ReportSlsaProvenance entity. If the ReportSlsaProvenance 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 (*ReportSlsaProvenanceMutation) OldUpdatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportSlsaProvenance entity. If the ReportSlsaProvenance 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 (*ReportSlsaProvenanceMutation) OldVerified added in v1.12.0

func (m *ReportSlsaProvenanceMutation) OldVerified(ctx context.Context) (v bool, err error)

OldVerified returns the old "verified" field's value of the ReportSlsaProvenance entity. If the ReportSlsaProvenance 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 (*ReportSlsaProvenanceMutation) Op added in v1.12.0

Op returns the operation name.

func (*ReportSlsaProvenanceMutation) PackageCleared added in v1.12.0

func (m *ReportSlsaProvenanceMutation) PackageCleared() bool

PackageCleared reports if the "package" edge to the ReportPackage entity was cleared.

func (*ReportSlsaProvenanceMutation) PackageID added in v1.12.0

func (m *ReportSlsaProvenanceMutation) PackageID() (id int, exists bool)

PackageID returns the "package" edge ID in the mutation.

func (*ReportSlsaProvenanceMutation) PackageIDs added in v1.12.0

func (m *ReportSlsaProvenanceMutation) PackageIDs() (ids []int)

PackageIDs returns the "package" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PackageID instead. It exists only for internal usage by the builders.

func (*ReportSlsaProvenanceMutation) RemovedEdges added in v1.12.0

func (m *ReportSlsaProvenanceMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportSlsaProvenanceMutation) RemovedIDs added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) ResetCommitSha added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetCommitSha()

ResetCommitSha resets all changes to the "commit_sha" field.

func (*ReportSlsaProvenanceMutation) ResetCreatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportSlsaProvenanceMutation) ResetEdge added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) ResetField added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) ResetPackage added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetPackage()

ResetPackage resets all changes to the "package" edge.

func (*ReportSlsaProvenanceMutation) ResetSourceRepository added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetSourceRepository()

ResetSourceRepository resets all changes to the "source_repository" field.

func (*ReportSlsaProvenanceMutation) ResetURL added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*ReportSlsaProvenanceMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportSlsaProvenanceMutation) ResetVerified added in v1.12.0

func (m *ReportSlsaProvenanceMutation) ResetVerified()

ResetVerified resets all changes to the "verified" field.

func (*ReportSlsaProvenanceMutation) SetCommitSha added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetCommitSha(s string)

SetCommitSha sets the "commit_sha" field.

func (*ReportSlsaProvenanceMutation) SetCreatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportSlsaProvenanceMutation) SetField added in v1.12.0

func (m *ReportSlsaProvenanceMutation) 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 (*ReportSlsaProvenanceMutation) SetOp added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportSlsaProvenanceMutation) SetPackageID added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetPackageID(id int)

SetPackageID sets the "package" edge to the ReportPackage entity by id.

func (*ReportSlsaProvenanceMutation) SetSourceRepository added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetSourceRepository(s string)

SetSourceRepository sets the "source_repository" field.

func (*ReportSlsaProvenanceMutation) SetURL added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetURL(s string)

SetURL sets the "url" field.

func (*ReportSlsaProvenanceMutation) SetUpdatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReportSlsaProvenanceMutation) SetVerified added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SetVerified(b bool)

SetVerified sets the "verified" field.

func (*ReportSlsaProvenanceMutation) SourceRepository added in v1.12.0

func (m *ReportSlsaProvenanceMutation) SourceRepository() (r string, exists bool)

SourceRepository returns the value of the "source_repository" field in the mutation.

func (ReportSlsaProvenanceMutation) Tx added in v1.12.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportSlsaProvenanceMutation) Type added in v1.12.0

Type returns the node type of this mutation (ReportSlsaProvenance).

func (*ReportSlsaProvenanceMutation) URL added in v1.12.0

func (m *ReportSlsaProvenanceMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*ReportSlsaProvenanceMutation) UpdatedAt added in v1.12.0

func (m *ReportSlsaProvenanceMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportSlsaProvenanceMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportSlsaProvenanceMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportSlsaProvenanceMutation) Verified added in v1.12.0

func (m *ReportSlsaProvenanceMutation) Verified() (r bool, exists bool)

Verified returns the value of the "verified" field in the mutation.

func (*ReportSlsaProvenanceMutation) Where added in v1.12.0

Where appends a list predicates to the ReportSlsaProvenanceMutation builder.

func (*ReportSlsaProvenanceMutation) WhereP added in v1.12.0

func (m *ReportSlsaProvenanceMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportSlsaProvenanceMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportSlsaProvenanceQuery added in v1.12.0

type ReportSlsaProvenanceQuery struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceQuery is the builder for querying ReportSlsaProvenance entities.

func (*ReportSlsaProvenanceQuery) Aggregate added in v1.12.0

Aggregate returns a ReportSlsaProvenanceSelect configured with the given aggregations.

func (*ReportSlsaProvenanceQuery) All added in v1.12.0

All executes the query and returns a list of ReportSlsaProvenances.

func (*ReportSlsaProvenanceQuery) AllX added in v1.12.0

AllX is like All, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) Clone added in v1.12.0

Clone returns a duplicate of the ReportSlsaProvenanceQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportSlsaProvenanceQuery) Count added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportSlsaProvenanceQuery) CountX added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) Exist added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportSlsaProvenanceQuery) ExistX added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) First added in v1.12.0

First returns the first ReportSlsaProvenance entity from the query. Returns a *NotFoundError when no ReportSlsaProvenance was found.

func (*ReportSlsaProvenanceQuery) FirstID added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportSlsaProvenance ID from the query. Returns a *NotFoundError when no ReportSlsaProvenance ID was found.

func (*ReportSlsaProvenanceQuery) FirstIDX added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) FirstX added in v1.12.0

FirstX is like First, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) GroupBy added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) GroupBy(field string, fields ...string) *ReportSlsaProvenanceGroupBy

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 {
	SourceRepository string `json:"source_repository,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReportSlsaProvenance.Query().
	GroupBy(reportslsaprovenance.FieldSourceRepository).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportSlsaProvenanceQuery) IDs added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportSlsaProvenance IDs.

func (*ReportSlsaProvenanceQuery) IDsX added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) Limit added in v1.12.0

Limit the number of records to be returned by this query.

func (*ReportSlsaProvenanceQuery) Offset added in v1.12.0

Offset to start from.

func (*ReportSlsaProvenanceQuery) Only added in v1.12.0

Only returns a single ReportSlsaProvenance entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportSlsaProvenance entity is found. Returns a *NotFoundError when no ReportSlsaProvenance entities are found.

func (*ReportSlsaProvenanceQuery) OnlyID added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportSlsaProvenance ID in the query. Returns a *NotSingularError when more than one ReportSlsaProvenance ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportSlsaProvenanceQuery) OnlyIDX added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportSlsaProvenanceQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportSlsaProvenanceQuery) QueryPackage added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) QueryPackage() *ReportPackageQuery

QueryPackage chains the current query on the "package" edge.

func (*ReportSlsaProvenanceQuery) Select added in v1.12.0

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 {
	SourceRepository string `json:"source_repository,omitempty"`
}

client.ReportSlsaProvenance.Query().
	Select(reportslsaprovenance.FieldSourceRepository).
	Scan(ctx, &v)

func (*ReportSlsaProvenanceQuery) Unique added in v1.12.0

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 (*ReportSlsaProvenanceQuery) Where added in v1.12.0

Where adds a new predicate for the ReportSlsaProvenanceQuery builder.

func (*ReportSlsaProvenanceQuery) WithPackage added in v1.12.0

func (rspq *ReportSlsaProvenanceQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportSlsaProvenanceQuery

WithPackage tells the query-builder to eager-load the nodes that are connected to the "package" edge. The optional arguments are used to configure the query builder of the edge.

type ReportSlsaProvenanceSelect added in v1.12.0

type ReportSlsaProvenanceSelect struct {
	*ReportSlsaProvenanceQuery
	// contains filtered or unexported fields
}

ReportSlsaProvenanceSelect is the builder for selecting fields of ReportSlsaProvenance entities.

func (*ReportSlsaProvenanceSelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportSlsaProvenanceSelect) Bool added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) BoolX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Bools added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) BoolsX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Float64 added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) Float64X added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Float64s added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) Float64sX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Int added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) IntX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Ints added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) IntsX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Scan added in v1.12.0

func (rsps *ReportSlsaProvenanceSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportSlsaProvenanceSelect) ScanX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) String added in v1.12.0

func (s *ReportSlsaProvenanceSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) StringX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportSlsaProvenanceSelect) Strings added in v1.12.0

func (s *ReportSlsaProvenanceSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportSlsaProvenanceSelect) StringsX added in v1.12.0

func (s *ReportSlsaProvenanceSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportSlsaProvenanceUpdate added in v1.12.0

type ReportSlsaProvenanceUpdate struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceUpdate is the builder for updating ReportSlsaProvenance entities.

func (*ReportSlsaProvenanceUpdate) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportSlsaProvenanceUpdate) ClearPackage added in v1.12.0

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportSlsaProvenanceUpdate) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportSlsaProvenanceUpdate) Exec added in v1.12.0

Exec executes the query.

func (*ReportSlsaProvenanceUpdate) ExecX added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportSlsaProvenanceUpdate) Mutation added in v1.12.0

Mutation returns the ReportSlsaProvenanceMutation object of the builder.

func (*ReportSlsaProvenanceUpdate) Save added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportSlsaProvenanceUpdate) SaveX added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportSlsaProvenanceUpdate) SetCommitSha added in v1.12.0

SetCommitSha sets the "commit_sha" field.

func (*ReportSlsaProvenanceUpdate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportSlsaProvenanceUpdate) SetNillableCommitSha added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetNillableCommitSha(s *string) *ReportSlsaProvenanceUpdate

SetNillableCommitSha sets the "commit_sha" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetNillableCreatedAt added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetNillableCreatedAt(t *time.Time) *ReportSlsaProvenanceUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetNillablePackageID added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetNillablePackageID(id *int) *ReportSlsaProvenanceUpdate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetNillableSourceRepository added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetNillableSourceRepository(s *string) *ReportSlsaProvenanceUpdate

SetNillableSourceRepository sets the "source_repository" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetNillableURL added in v1.12.0

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetNillableUpdatedAt added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetNillableUpdatedAt(t *time.Time) *ReportSlsaProvenanceUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetNillableVerified added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetNillableVerified(b *bool) *ReportSlsaProvenanceUpdate

SetNillableVerified sets the "verified" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportSlsaProvenanceUpdate) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportSlsaProvenanceUpdate) SetSourceRepository added in v1.12.0

func (rspu *ReportSlsaProvenanceUpdate) SetSourceRepository(s string) *ReportSlsaProvenanceUpdate

SetSourceRepository sets the "source_repository" field.

func (*ReportSlsaProvenanceUpdate) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportSlsaProvenanceUpdate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportSlsaProvenanceUpdate) SetVerified added in v1.12.0

SetVerified sets the "verified" field.

func (*ReportSlsaProvenanceUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportSlsaProvenanceUpdate builder.

type ReportSlsaProvenanceUpdateOne added in v1.12.0

type ReportSlsaProvenanceUpdateOne struct {
	// contains filtered or unexported fields
}

ReportSlsaProvenanceUpdateOne is the builder for updating a single ReportSlsaProvenance entity.

func (*ReportSlsaProvenanceUpdateOne) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportSlsaProvenanceUpdateOne) ClearPackage added in v1.12.0

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportSlsaProvenanceUpdateOne) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportSlsaProvenanceUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportSlsaProvenanceUpdateOne) ExecX added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportSlsaProvenanceUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportSlsaProvenanceMutation object of the builder.

func (*ReportSlsaProvenanceUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportSlsaProvenance entity.

func (*ReportSlsaProvenanceUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportSlsaProvenanceUpdateOne) Select added in v1.12.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportSlsaProvenanceUpdateOne) SetCommitSha added in v1.12.0

SetCommitSha sets the "commit_sha" field.

func (*ReportSlsaProvenanceUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportSlsaProvenanceUpdateOne) SetNillableCommitSha added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableCommitSha(s *string) *ReportSlsaProvenanceUpdateOne

SetNillableCommitSha sets the "commit_sha" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportSlsaProvenanceUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetNillablePackageID added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillablePackageID(id *int) *ReportSlsaProvenanceUpdateOne

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetNillableSourceRepository added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableSourceRepository(s *string) *ReportSlsaProvenanceUpdateOne

SetNillableSourceRepository sets the "source_repository" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetNillableURL added in v1.12.0

SetNillableURL sets the "url" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportSlsaProvenanceUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetNillableVerified added in v1.12.0

func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableVerified(b *bool) *ReportSlsaProvenanceUpdateOne

SetNillableVerified sets the "verified" field if the given value is not nil.

func (*ReportSlsaProvenanceUpdateOne) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportSlsaProvenanceUpdateOne) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportSlsaProvenanceUpdateOne) SetSourceRepository added in v1.12.0

SetSourceRepository sets the "source_repository" field.

func (*ReportSlsaProvenanceUpdateOne) SetURL added in v1.12.0

SetURL sets the "url" field.

func (*ReportSlsaProvenanceUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportSlsaProvenanceUpdateOne) SetVerified added in v1.12.0

SetVerified sets the "verified" field.

func (*ReportSlsaProvenanceUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportSlsaProvenanceUpdate builder.

type ReportSlsaProvenances added in v1.12.0

type ReportSlsaProvenances []*ReportSlsaProvenance

ReportSlsaProvenances is a parsable slice of ReportSlsaProvenance.

type ReportVulnerabilities added in v1.12.0

type ReportVulnerabilities []*ReportVulnerability

ReportVulnerabilities is a parsable slice of ReportVulnerability.

type ReportVulnerability added in v1.12.0

type ReportVulnerability struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// VulnerabilityID holds the value of the "vulnerability_id" field.
	VulnerabilityID string `json:"vulnerability_id,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// Aliases holds the value of the "aliases" field.
	Aliases []string `json:"aliases,omitempty"`
	// Severity holds the value of the "severity" field.
	Severity string `json:"severity,omitempty"`
	// SeverityType holds the value of the "severity_type" field.
	SeverityType string `json:"severity_type,omitempty"`
	// CvssScore holds the value of the "cvss_score" field.
	CvssScore float64 `json:"cvss_score,omitempty"`
	// SeverityDetails holds the value of the "severity_details" field.
	SeverityDetails map[string]interface{} `json:"severity_details,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 ReportVulnerabilityQuery when eager-loading is set.
	Edges ReportVulnerabilityEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReportVulnerability is the model entity for the ReportVulnerability schema.

func (*ReportVulnerability) QueryPackage added in v1.12.0

func (rv *ReportVulnerability) QueryPackage() *ReportPackageQuery

QueryPackage queries the "package" edge of the ReportVulnerability entity.

func (*ReportVulnerability) String added in v1.12.0

func (rv *ReportVulnerability) String() string

String implements the fmt.Stringer.

func (*ReportVulnerability) Unwrap added in v1.12.0

Unwrap unwraps the ReportVulnerability 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 (*ReportVulnerability) Update added in v1.12.0

Update returns a builder for updating this ReportVulnerability. Note that you need to call ReportVulnerability.Unwrap() before calling this method if this ReportVulnerability was returned from a transaction, and the transaction was committed or rolled back.

func (*ReportVulnerability) Value added in v1.12.0

func (rv *ReportVulnerability) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReportVulnerability. This includes values selected through modifiers, order, etc.

type ReportVulnerabilityClient added in v1.12.0

type ReportVulnerabilityClient struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityClient is a client for the ReportVulnerability schema.

func NewReportVulnerabilityClient added in v1.12.0

func NewReportVulnerabilityClient(c config) *ReportVulnerabilityClient

NewReportVulnerabilityClient returns a client for the ReportVulnerability from the given config.

func (*ReportVulnerabilityClient) Create added in v1.12.0

Create returns a builder for creating a ReportVulnerability entity.

func (*ReportVulnerabilityClient) CreateBulk added in v1.12.0

CreateBulk returns a builder for creating a bulk of ReportVulnerability entities.

func (*ReportVulnerabilityClient) Delete added in v1.12.0

Delete returns a delete builder for ReportVulnerability.

func (*ReportVulnerabilityClient) DeleteOne added in v1.12.0

DeleteOne returns a builder for deleting the given entity.

func (*ReportVulnerabilityClient) DeleteOneID added in v1.12.0

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReportVulnerabilityClient) Get added in v1.12.0

Get returns a ReportVulnerability entity by its id.

func (*ReportVulnerabilityClient) GetX added in v1.12.0

GetX is like Get, but panics if an error occurs.

func (*ReportVulnerabilityClient) Hooks added in v1.12.0

func (c *ReportVulnerabilityClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReportVulnerabilityClient) Intercept added in v1.12.0

func (c *ReportVulnerabilityClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `reportvulnerability.Intercept(f(g(h())))`.

func (*ReportVulnerabilityClient) Interceptors added in v1.12.0

func (c *ReportVulnerabilityClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReportVulnerabilityClient) MapCreateBulk added in v1.12.0

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReportVulnerabilityClient) Query added in v1.12.0

Query returns a query builder for ReportVulnerability.

func (*ReportVulnerabilityClient) QueryPackage added in v1.12.0

QueryPackage queries the package edge of a ReportVulnerability.

func (*ReportVulnerabilityClient) Update added in v1.12.0

Update returns an update builder for ReportVulnerability.

func (*ReportVulnerabilityClient) UpdateOne added in v1.12.0

UpdateOne returns an update builder for the given entity.

func (*ReportVulnerabilityClient) UpdateOneID added in v1.12.0

UpdateOneID returns an update builder for the given id.

func (*ReportVulnerabilityClient) Use added in v1.12.0

func (c *ReportVulnerabilityClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `reportvulnerability.Hooks(f(g(h())))`.

type ReportVulnerabilityCreate added in v1.12.0

type ReportVulnerabilityCreate struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityCreate is the builder for creating a ReportVulnerability entity.

func (*ReportVulnerabilityCreate) Exec added in v1.12.0

Exec executes the query.

func (*ReportVulnerabilityCreate) ExecX added in v1.12.0

func (rvc *ReportVulnerabilityCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportVulnerabilityCreate) Mutation added in v1.12.0

Mutation returns the ReportVulnerabilityMutation object of the builder.

func (*ReportVulnerabilityCreate) Save added in v1.12.0

Save creates the ReportVulnerability in the database.

func (*ReportVulnerabilityCreate) SaveX added in v1.12.0

SaveX calls Save and panics if Save returns an error.

func (*ReportVulnerabilityCreate) SetAliases added in v1.12.0

SetAliases sets the "aliases" field.

func (*ReportVulnerabilityCreate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportVulnerabilityCreate) SetCvssScore added in v1.12.0

SetCvssScore sets the "cvss_score" field.

func (*ReportVulnerabilityCreate) SetDescription added in v1.12.0

SetDescription sets the "description" field.

func (*ReportVulnerabilityCreate) SetNillableCreatedAt added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillableCreatedAt(t *time.Time) *ReportVulnerabilityCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportVulnerabilityCreate) SetNillableCvssScore added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillableCvssScore(f *float64) *ReportVulnerabilityCreate

SetNillableCvssScore sets the "cvss_score" field if the given value is not nil.

func (*ReportVulnerabilityCreate) SetNillableDescription added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillableDescription(s *string) *ReportVulnerabilityCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ReportVulnerabilityCreate) SetNillablePackageID added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillablePackageID(id *int) *ReportVulnerabilityCreate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportVulnerabilityCreate) SetNillableSeverity added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillableSeverity(s *string) *ReportVulnerabilityCreate

SetNillableSeverity sets the "severity" field if the given value is not nil.

func (*ReportVulnerabilityCreate) SetNillableSeverityType added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillableSeverityType(s *string) *ReportVulnerabilityCreate

SetNillableSeverityType sets the "severity_type" field if the given value is not nil.

func (*ReportVulnerabilityCreate) SetNillableUpdatedAt added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetNillableUpdatedAt(t *time.Time) *ReportVulnerabilityCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportVulnerabilityCreate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportVulnerabilityCreate) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportVulnerabilityCreate) SetSeverity added in v1.12.0

SetSeverity sets the "severity" field.

func (*ReportVulnerabilityCreate) SetSeverityDetails added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetSeverityDetails(m map[string]interface{}) *ReportVulnerabilityCreate

SetSeverityDetails sets the "severity_details" field.

func (*ReportVulnerabilityCreate) SetSeverityType added in v1.12.0

SetSeverityType sets the "severity_type" field.

func (*ReportVulnerabilityCreate) SetTitle added in v1.12.0

SetTitle sets the "title" field.

func (*ReportVulnerabilityCreate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportVulnerabilityCreate) SetVulnerabilityID added in v1.12.0

func (rvc *ReportVulnerabilityCreate) SetVulnerabilityID(s string) *ReportVulnerabilityCreate

SetVulnerabilityID sets the "vulnerability_id" field.

type ReportVulnerabilityCreateBulk added in v1.12.0

type ReportVulnerabilityCreateBulk struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityCreateBulk is the builder for creating many ReportVulnerability entities in bulk.

func (*ReportVulnerabilityCreateBulk) Exec added in v1.12.0

Exec executes the query.

func (*ReportVulnerabilityCreateBulk) ExecX added in v1.12.0

ExecX is like Exec, but panics if an error occurs.

func (*ReportVulnerabilityCreateBulk) Save added in v1.12.0

Save creates the ReportVulnerability entities in the database.

func (*ReportVulnerabilityCreateBulk) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

type ReportVulnerabilityDelete added in v1.12.0

type ReportVulnerabilityDelete struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityDelete is the builder for deleting a ReportVulnerability entity.

func (*ReportVulnerabilityDelete) Exec added in v1.12.0

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReportVulnerabilityDelete) ExecX added in v1.12.0

func (rvd *ReportVulnerabilityDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReportVulnerabilityDelete) Where added in v1.12.0

Where appends a list predicates to the ReportVulnerabilityDelete builder.

type ReportVulnerabilityDeleteOne added in v1.12.0

type ReportVulnerabilityDeleteOne struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityDeleteOne is the builder for deleting a single ReportVulnerability entity.

func (*ReportVulnerabilityDeleteOne) Exec added in v1.12.0

Exec executes the deletion query.

func (*ReportVulnerabilityDeleteOne) ExecX added in v1.12.0

func (rvdo *ReportVulnerabilityDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportVulnerabilityDeleteOne) Where added in v1.12.0

Where appends a list predicates to the ReportVulnerabilityDelete builder.

type ReportVulnerabilityEdges added in v1.12.0

type ReportVulnerabilityEdges struct {
	// Package holds the value of the package edge.
	Package *ReportPackage `json:"package,omitempty"`
	// contains filtered or unexported fields
}

ReportVulnerabilityEdges holds the relations/edges for other nodes in the graph.

func (ReportVulnerabilityEdges) PackageOrErr added in v1.12.0

func (e ReportVulnerabilityEdges) PackageOrErr() (*ReportPackage, error)

PackageOrErr returns the Package value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReportVulnerabilityGroupBy added in v1.12.0

type ReportVulnerabilityGroupBy struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityGroupBy is the group-by builder for ReportVulnerability entities.

func (*ReportVulnerabilityGroupBy) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the group-by query.

func (*ReportVulnerabilityGroupBy) Bool added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) BoolX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Bools added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) BoolsX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Float64 added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) Float64X added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Float64s added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) Float64sX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Int added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) IntX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Ints added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) IntsX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Scan added in v1.12.0

func (rvgb *ReportVulnerabilityGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReportVulnerabilityGroupBy) ScanX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) String added in v1.12.0

func (s *ReportVulnerabilityGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) StringX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportVulnerabilityGroupBy) Strings added in v1.12.0

func (s *ReportVulnerabilityGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilityGroupBy) StringsX added in v1.12.0

func (s *ReportVulnerabilityGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportVulnerabilityMutation added in v1.12.0

type ReportVulnerabilityMutation struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityMutation represents an operation that mutates the ReportVulnerability nodes in the graph.

func (*ReportVulnerabilityMutation) AddCvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) AddCvssScore(f float64)

AddCvssScore adds f to the "cvss_score" field.

func (*ReportVulnerabilityMutation) AddField added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) AddedCvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) AddedCvssScore() (r float64, exists bool)

AddedCvssScore returns the value that was added to the "cvss_score" field in this mutation.

func (*ReportVulnerabilityMutation) AddedEdges added in v1.12.0

func (m *ReportVulnerabilityMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReportVulnerabilityMutation) AddedField added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) AddedFields added in v1.12.0

func (m *ReportVulnerabilityMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReportVulnerabilityMutation) AddedIDs added in v1.12.0

func (m *ReportVulnerabilityMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReportVulnerabilityMutation) Aliases added in v1.12.0

func (m *ReportVulnerabilityMutation) Aliases() (r []string, exists bool)

Aliases returns the value of the "aliases" field in the mutation.

func (*ReportVulnerabilityMutation) AliasesCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) AliasesCleared() bool

AliasesCleared returns if the "aliases" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) AppendAliases added in v1.12.0

func (m *ReportVulnerabilityMutation) AppendAliases(s []string)

AppendAliases adds s to the "aliases" field.

func (*ReportVulnerabilityMutation) AppendedAliases added in v1.12.0

func (m *ReportVulnerabilityMutation) AppendedAliases() ([]string, bool)

AppendedAliases returns the list of values that were appended to the "aliases" field in this mutation.

func (*ReportVulnerabilityMutation) ClearAliases added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearAliases()

ClearAliases clears the value of the "aliases" field.

func (*ReportVulnerabilityMutation) ClearCreatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearCreatedAt()

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportVulnerabilityMutation) ClearCvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearCvssScore()

ClearCvssScore clears the value of the "cvss_score" field.

func (*ReportVulnerabilityMutation) ClearDescription added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*ReportVulnerabilityMutation) ClearEdge added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) ClearField added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) ClearPackage added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearPackage()

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportVulnerabilityMutation) ClearSeverity added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearSeverity()

ClearSeverity clears the value of the "severity" field.

func (*ReportVulnerabilityMutation) ClearSeverityDetails added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearSeverityDetails()

ClearSeverityDetails clears the value of the "severity_details" field.

func (*ReportVulnerabilityMutation) ClearSeverityType added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearSeverityType()

ClearSeverityType clears the value of the "severity_type" field.

func (*ReportVulnerabilityMutation) ClearUpdatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearUpdatedAt()

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportVulnerabilityMutation) ClearedEdges added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReportVulnerabilityMutation) ClearedFields added in v1.12.0

func (m *ReportVulnerabilityMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReportVulnerabilityMutation) Client added in v1.12.0

func (m ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) CreatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReportVulnerabilityMutation) CreatedAtCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) CreatedAtCleared() bool

CreatedAtCleared returns if the "created_at" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) CvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) CvssScore() (r float64, exists bool)

CvssScore returns the value of the "cvss_score" field in the mutation.

func (*ReportVulnerabilityMutation) CvssScoreCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) CvssScoreCleared() bool

CvssScoreCleared returns if the "cvss_score" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) Description added in v1.12.0

func (m *ReportVulnerabilityMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*ReportVulnerabilityMutation) DescriptionCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) EdgeCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReportVulnerabilityMutation) Field added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) FieldCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReportVulnerabilityMutation) Fields added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) ID added in v1.12.0

func (m *ReportVulnerabilityMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReportVulnerabilityMutation) IDs added in v1.12.0

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 (*ReportVulnerabilityMutation) OldAliases added in v1.12.0

func (m *ReportVulnerabilityMutation) OldAliases(ctx context.Context) (v []string, err error)

OldAliases returns the old "aliases" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldCreatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldCvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) OldCvssScore(ctx context.Context) (v float64, err error)

OldCvssScore returns the old "cvss_score" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldDescription added in v1.12.0

func (m *ReportVulnerabilityMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldField added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) OldSeverity added in v1.12.0

func (m *ReportVulnerabilityMutation) OldSeverity(ctx context.Context) (v string, err error)

OldSeverity returns the old "severity" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldSeverityDetails added in v1.12.0

func (m *ReportVulnerabilityMutation) OldSeverityDetails(ctx context.Context) (v map[string]interface{}, err error)

OldSeverityDetails returns the old "severity_details" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldSeverityType added in v1.12.0

func (m *ReportVulnerabilityMutation) OldSeverityType(ctx context.Context) (v string, err error)

OldSeverityType returns the old "severity_type" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldTitle added in v1.12.0

func (m *ReportVulnerabilityMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldUpdatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) OldVulnerabilityID added in v1.12.0

func (m *ReportVulnerabilityMutation) OldVulnerabilityID(ctx context.Context) (v string, err error)

OldVulnerabilityID returns the old "vulnerability_id" field's value of the ReportVulnerability entity. If the ReportVulnerability 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 (*ReportVulnerabilityMutation) Op added in v1.12.0

Op returns the operation name.

func (*ReportVulnerabilityMutation) PackageCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) PackageCleared() bool

PackageCleared reports if the "package" edge to the ReportPackage entity was cleared.

func (*ReportVulnerabilityMutation) PackageID added in v1.12.0

func (m *ReportVulnerabilityMutation) PackageID() (id int, exists bool)

PackageID returns the "package" edge ID in the mutation.

func (*ReportVulnerabilityMutation) PackageIDs added in v1.12.0

func (m *ReportVulnerabilityMutation) PackageIDs() (ids []int)

PackageIDs returns the "package" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PackageID instead. It exists only for internal usage by the builders.

func (*ReportVulnerabilityMutation) RemovedEdges added in v1.12.0

func (m *ReportVulnerabilityMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReportVulnerabilityMutation) RemovedIDs added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) ResetAliases added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetAliases()

ResetAliases resets all changes to the "aliases" field.

func (*ReportVulnerabilityMutation) ResetCreatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReportVulnerabilityMutation) ResetCvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetCvssScore()

ResetCvssScore resets all changes to the "cvss_score" field.

func (*ReportVulnerabilityMutation) ResetDescription added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*ReportVulnerabilityMutation) ResetEdge added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) ResetField added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) ResetPackage added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetPackage()

ResetPackage resets all changes to the "package" edge.

func (*ReportVulnerabilityMutation) ResetSeverity added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetSeverity()

ResetSeverity resets all changes to the "severity" field.

func (*ReportVulnerabilityMutation) ResetSeverityDetails added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetSeverityDetails()

ResetSeverityDetails resets all changes to the "severity_details" field.

func (*ReportVulnerabilityMutation) ResetSeverityType added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetSeverityType()

ResetSeverityType resets all changes to the "severity_type" field.

func (*ReportVulnerabilityMutation) ResetTitle added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*ReportVulnerabilityMutation) ResetUpdatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReportVulnerabilityMutation) ResetVulnerabilityID added in v1.12.0

func (m *ReportVulnerabilityMutation) ResetVulnerabilityID()

ResetVulnerabilityID resets all changes to the "vulnerability_id" field.

func (*ReportVulnerabilityMutation) SetAliases added in v1.12.0

func (m *ReportVulnerabilityMutation) SetAliases(s []string)

SetAliases sets the "aliases" field.

func (*ReportVulnerabilityMutation) SetCreatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReportVulnerabilityMutation) SetCvssScore added in v1.12.0

func (m *ReportVulnerabilityMutation) SetCvssScore(f float64)

SetCvssScore sets the "cvss_score" field.

func (*ReportVulnerabilityMutation) SetDescription added in v1.12.0

func (m *ReportVulnerabilityMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*ReportVulnerabilityMutation) SetField added in v1.12.0

func (m *ReportVulnerabilityMutation) 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 (*ReportVulnerabilityMutation) SetOp added in v1.12.0

func (m *ReportVulnerabilityMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReportVulnerabilityMutation) SetPackageID added in v1.12.0

func (m *ReportVulnerabilityMutation) SetPackageID(id int)

SetPackageID sets the "package" edge to the ReportPackage entity by id.

func (*ReportVulnerabilityMutation) SetSeverity added in v1.12.0

func (m *ReportVulnerabilityMutation) SetSeverity(s string)

SetSeverity sets the "severity" field.

func (*ReportVulnerabilityMutation) SetSeverityDetails added in v1.12.0

func (m *ReportVulnerabilityMutation) SetSeverityDetails(value map[string]interface{})

SetSeverityDetails sets the "severity_details" field.

func (*ReportVulnerabilityMutation) SetSeverityType added in v1.12.0

func (m *ReportVulnerabilityMutation) SetSeverityType(s string)

SetSeverityType sets the "severity_type" field.

func (*ReportVulnerabilityMutation) SetTitle added in v1.12.0

func (m *ReportVulnerabilityMutation) SetTitle(s string)

SetTitle sets the "title" field.

func (*ReportVulnerabilityMutation) SetUpdatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReportVulnerabilityMutation) SetVulnerabilityID added in v1.12.0

func (m *ReportVulnerabilityMutation) SetVulnerabilityID(s string)

SetVulnerabilityID sets the "vulnerability_id" field.

func (*ReportVulnerabilityMutation) Severity added in v1.12.0

func (m *ReportVulnerabilityMutation) Severity() (r string, exists bool)

Severity returns the value of the "severity" field in the mutation.

func (*ReportVulnerabilityMutation) SeverityCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) SeverityCleared() bool

SeverityCleared returns if the "severity" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) SeverityDetails added in v1.12.0

func (m *ReportVulnerabilityMutation) SeverityDetails() (r map[string]interface{}, exists bool)

SeverityDetails returns the value of the "severity_details" field in the mutation.

func (*ReportVulnerabilityMutation) SeverityDetailsCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) SeverityDetailsCleared() bool

SeverityDetailsCleared returns if the "severity_details" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) SeverityType added in v1.12.0

func (m *ReportVulnerabilityMutation) SeverityType() (r string, exists bool)

SeverityType returns the value of the "severity_type" field in the mutation.

func (*ReportVulnerabilityMutation) SeverityTypeCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) SeverityTypeCleared() bool

SeverityTypeCleared returns if the "severity_type" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) Title added in v1.12.0

func (m *ReportVulnerabilityMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (ReportVulnerabilityMutation) Tx added in v1.12.0

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReportVulnerabilityMutation) Type added in v1.12.0

Type returns the node type of this mutation (ReportVulnerability).

func (*ReportVulnerabilityMutation) UpdatedAt added in v1.12.0

func (m *ReportVulnerabilityMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReportVulnerabilityMutation) UpdatedAtCleared added in v1.12.0

func (m *ReportVulnerabilityMutation) UpdatedAtCleared() bool

UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation.

func (*ReportVulnerabilityMutation) VulnerabilityID added in v1.12.0

func (m *ReportVulnerabilityMutation) VulnerabilityID() (r string, exists bool)

VulnerabilityID returns the value of the "vulnerability_id" field in the mutation.

func (*ReportVulnerabilityMutation) Where added in v1.12.0

Where appends a list predicates to the ReportVulnerabilityMutation builder.

func (*ReportVulnerabilityMutation) WhereP added in v1.12.0

func (m *ReportVulnerabilityMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReportVulnerabilityMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReportVulnerabilityQuery added in v1.12.0

type ReportVulnerabilityQuery struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityQuery is the builder for querying ReportVulnerability entities.

func (*ReportVulnerabilityQuery) Aggregate added in v1.12.0

Aggregate returns a ReportVulnerabilitySelect configured with the given aggregations.

func (*ReportVulnerabilityQuery) All added in v1.12.0

All executes the query and returns a list of ReportVulnerabilities.

func (*ReportVulnerabilityQuery) AllX added in v1.12.0

AllX is like All, but panics if an error occurs.

func (*ReportVulnerabilityQuery) Clone added in v1.12.0

Clone returns a duplicate of the ReportVulnerabilityQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReportVulnerabilityQuery) Count added in v1.12.0

func (rvq *ReportVulnerabilityQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReportVulnerabilityQuery) CountX added in v1.12.0

func (rvq *ReportVulnerabilityQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReportVulnerabilityQuery) Exist added in v1.12.0

func (rvq *ReportVulnerabilityQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReportVulnerabilityQuery) ExistX added in v1.12.0

func (rvq *ReportVulnerabilityQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReportVulnerabilityQuery) First added in v1.12.0

First returns the first ReportVulnerability entity from the query. Returns a *NotFoundError when no ReportVulnerability was found.

func (*ReportVulnerabilityQuery) FirstID added in v1.12.0

func (rvq *ReportVulnerabilityQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReportVulnerability ID from the query. Returns a *NotFoundError when no ReportVulnerability ID was found.

func (*ReportVulnerabilityQuery) FirstIDX added in v1.12.0

func (rvq *ReportVulnerabilityQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReportVulnerabilityQuery) FirstX added in v1.12.0

FirstX is like First, but panics if an error occurs.

func (*ReportVulnerabilityQuery) GroupBy added in v1.12.0

func (rvq *ReportVulnerabilityQuery) GroupBy(field string, fields ...string) *ReportVulnerabilityGroupBy

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 {
	VulnerabilityID string `json:"vulnerability_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReportVulnerability.Query().
	GroupBy(reportvulnerability.FieldVulnerabilityID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReportVulnerabilityQuery) IDs added in v1.12.0

func (rvq *ReportVulnerabilityQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReportVulnerability IDs.

func (*ReportVulnerabilityQuery) IDsX added in v1.12.0

func (rvq *ReportVulnerabilityQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReportVulnerabilityQuery) Limit added in v1.12.0

Limit the number of records to be returned by this query.

func (*ReportVulnerabilityQuery) Offset added in v1.12.0

Offset to start from.

func (*ReportVulnerabilityQuery) Only added in v1.12.0

Only returns a single ReportVulnerability entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReportVulnerability entity is found. Returns a *NotFoundError when no ReportVulnerability entities are found.

func (*ReportVulnerabilityQuery) OnlyID added in v1.12.0

func (rvq *ReportVulnerabilityQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReportVulnerability ID in the query. Returns a *NotSingularError when more than one ReportVulnerability ID is found. Returns a *NotFoundError when no entities are found.

func (*ReportVulnerabilityQuery) OnlyIDX added in v1.12.0

func (rvq *ReportVulnerabilityQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReportVulnerabilityQuery) OnlyX added in v1.12.0

OnlyX is like Only, but panics if an error occurs.

func (*ReportVulnerabilityQuery) Order added in v1.12.0

Order specifies how the records should be ordered.

func (*ReportVulnerabilityQuery) QueryPackage added in v1.12.0

func (rvq *ReportVulnerabilityQuery) QueryPackage() *ReportPackageQuery

QueryPackage chains the current query on the "package" edge.

func (*ReportVulnerabilityQuery) Select added in v1.12.0

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 {
	VulnerabilityID string `json:"vulnerability_id,omitempty"`
}

client.ReportVulnerability.Query().
	Select(reportvulnerability.FieldVulnerabilityID).
	Scan(ctx, &v)

func (*ReportVulnerabilityQuery) Unique added in v1.12.0

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 (*ReportVulnerabilityQuery) Where added in v1.12.0

Where adds a new predicate for the ReportVulnerabilityQuery builder.

func (*ReportVulnerabilityQuery) WithPackage added in v1.12.0

func (rvq *ReportVulnerabilityQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportVulnerabilityQuery

WithPackage tells the query-builder to eager-load the nodes that are connected to the "package" edge. The optional arguments are used to configure the query builder of the edge.

type ReportVulnerabilitySelect added in v1.12.0

type ReportVulnerabilitySelect struct {
	*ReportVulnerabilityQuery
	// contains filtered or unexported fields
}

ReportVulnerabilitySelect is the builder for selecting fields of ReportVulnerability entities.

func (*ReportVulnerabilitySelect) Aggregate added in v1.12.0

Aggregate adds the given aggregation functions to the selector query.

func (*ReportVulnerabilitySelect) Bool added in v1.12.0

func (s *ReportVulnerabilitySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) BoolX added in v1.12.0

func (s *ReportVulnerabilitySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Bools added in v1.12.0

func (s *ReportVulnerabilitySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) BoolsX added in v1.12.0

func (s *ReportVulnerabilitySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Float64 added in v1.12.0

func (s *ReportVulnerabilitySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) Float64X added in v1.12.0

func (s *ReportVulnerabilitySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Float64s added in v1.12.0

func (s *ReportVulnerabilitySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) Float64sX added in v1.12.0

func (s *ReportVulnerabilitySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Int added in v1.12.0

func (s *ReportVulnerabilitySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) IntX added in v1.12.0

func (s *ReportVulnerabilitySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Ints added in v1.12.0

func (s *ReportVulnerabilitySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) IntsX added in v1.12.0

func (s *ReportVulnerabilitySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Scan added in v1.12.0

Scan applies the selector query and scans the result into the given value.

func (*ReportVulnerabilitySelect) ScanX added in v1.12.0

func (s *ReportVulnerabilitySelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReportVulnerabilitySelect) String added in v1.12.0

func (s *ReportVulnerabilitySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) StringX added in v1.12.0

func (s *ReportVulnerabilitySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReportVulnerabilitySelect) Strings added in v1.12.0

func (s *ReportVulnerabilitySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReportVulnerabilitySelect) StringsX added in v1.12.0

func (s *ReportVulnerabilitySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReportVulnerabilityUpdate added in v1.12.0

type ReportVulnerabilityUpdate struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityUpdate is the builder for updating ReportVulnerability entities.

func (*ReportVulnerabilityUpdate) AddCvssScore added in v1.12.0

AddCvssScore adds f to the "cvss_score" field.

func (*ReportVulnerabilityUpdate) AppendAliases added in v1.12.0

AppendAliases appends s to the "aliases" field.

func (*ReportVulnerabilityUpdate) ClearAliases added in v1.12.0

ClearAliases clears the value of the "aliases" field.

func (*ReportVulnerabilityUpdate) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportVulnerabilityUpdate) ClearCvssScore added in v1.12.0

ClearCvssScore clears the value of the "cvss_score" field.

func (*ReportVulnerabilityUpdate) ClearDescription added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) ClearDescription() *ReportVulnerabilityUpdate

ClearDescription clears the value of the "description" field.

func (*ReportVulnerabilityUpdate) ClearPackage added in v1.12.0

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportVulnerabilityUpdate) ClearSeverity added in v1.12.0

ClearSeverity clears the value of the "severity" field.

func (*ReportVulnerabilityUpdate) ClearSeverityDetails added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) ClearSeverityDetails() *ReportVulnerabilityUpdate

ClearSeverityDetails clears the value of the "severity_details" field.

func (*ReportVulnerabilityUpdate) ClearSeverityType added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) ClearSeverityType() *ReportVulnerabilityUpdate

ClearSeverityType clears the value of the "severity_type" field.

func (*ReportVulnerabilityUpdate) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportVulnerabilityUpdate) Exec added in v1.12.0

Exec executes the query.

func (*ReportVulnerabilityUpdate) ExecX added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportVulnerabilityUpdate) Mutation added in v1.12.0

Mutation returns the ReportVulnerabilityMutation object of the builder.

func (*ReportVulnerabilityUpdate) Save added in v1.12.0

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReportVulnerabilityUpdate) SaveX added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReportVulnerabilityUpdate) SetAliases added in v1.12.0

SetAliases sets the "aliases" field.

func (*ReportVulnerabilityUpdate) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportVulnerabilityUpdate) SetCvssScore added in v1.12.0

SetCvssScore sets the "cvss_score" field.

func (*ReportVulnerabilityUpdate) SetDescription added in v1.12.0

SetDescription sets the "description" field.

func (*ReportVulnerabilityUpdate) SetNillableCreatedAt added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableCreatedAt(t *time.Time) *ReportVulnerabilityUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableCvssScore added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableCvssScore(f *float64) *ReportVulnerabilityUpdate

SetNillableCvssScore sets the "cvss_score" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableDescription added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableDescription(s *string) *ReportVulnerabilityUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillablePackageID added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillablePackageID(id *int) *ReportVulnerabilityUpdate

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableSeverity added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableSeverity(s *string) *ReportVulnerabilityUpdate

SetNillableSeverity sets the "severity" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableSeverityType added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableSeverityType(s *string) *ReportVulnerabilityUpdate

SetNillableSeverityType sets the "severity_type" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableTitle added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableTitle(s *string) *ReportVulnerabilityUpdate

SetNillableTitle sets the "title" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableUpdatedAt added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableUpdatedAt(t *time.Time) *ReportVulnerabilityUpdate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetNillableVulnerabilityID added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetNillableVulnerabilityID(s *string) *ReportVulnerabilityUpdate

SetNillableVulnerabilityID sets the "vulnerability_id" field if the given value is not nil.

func (*ReportVulnerabilityUpdate) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportVulnerabilityUpdate) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportVulnerabilityUpdate) SetSeverity added in v1.12.0

SetSeverity sets the "severity" field.

func (*ReportVulnerabilityUpdate) SetSeverityDetails added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetSeverityDetails(m map[string]interface{}) *ReportVulnerabilityUpdate

SetSeverityDetails sets the "severity_details" field.

func (*ReportVulnerabilityUpdate) SetSeverityType added in v1.12.0

SetSeverityType sets the "severity_type" field.

func (*ReportVulnerabilityUpdate) SetTitle added in v1.12.0

SetTitle sets the "title" field.

func (*ReportVulnerabilityUpdate) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportVulnerabilityUpdate) SetVulnerabilityID added in v1.12.0

func (rvu *ReportVulnerabilityUpdate) SetVulnerabilityID(s string) *ReportVulnerabilityUpdate

SetVulnerabilityID sets the "vulnerability_id" field.

func (*ReportVulnerabilityUpdate) Where added in v1.12.0

Where appends a list predicates to the ReportVulnerabilityUpdate builder.

type ReportVulnerabilityUpdateOne added in v1.12.0

type ReportVulnerabilityUpdateOne struct {
	// contains filtered or unexported fields
}

ReportVulnerabilityUpdateOne is the builder for updating a single ReportVulnerability entity.

func (*ReportVulnerabilityUpdateOne) AddCvssScore added in v1.12.0

AddCvssScore adds f to the "cvss_score" field.

func (*ReportVulnerabilityUpdateOne) AppendAliases added in v1.12.0

AppendAliases appends s to the "aliases" field.

func (*ReportVulnerabilityUpdateOne) ClearAliases added in v1.12.0

ClearAliases clears the value of the "aliases" field.

func (*ReportVulnerabilityUpdateOne) ClearCreatedAt added in v1.12.0

ClearCreatedAt clears the value of the "created_at" field.

func (*ReportVulnerabilityUpdateOne) ClearCvssScore added in v1.12.0

ClearCvssScore clears the value of the "cvss_score" field.

func (*ReportVulnerabilityUpdateOne) ClearDescription added in v1.12.0

ClearDescription clears the value of the "description" field.

func (*ReportVulnerabilityUpdateOne) ClearPackage added in v1.12.0

ClearPackage clears the "package" edge to the ReportPackage entity.

func (*ReportVulnerabilityUpdateOne) ClearSeverity added in v1.12.0

ClearSeverity clears the value of the "severity" field.

func (*ReportVulnerabilityUpdateOne) ClearSeverityDetails added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) ClearSeverityDetails() *ReportVulnerabilityUpdateOne

ClearSeverityDetails clears the value of the "severity_details" field.

func (*ReportVulnerabilityUpdateOne) ClearSeverityType added in v1.12.0

ClearSeverityType clears the value of the "severity_type" field.

func (*ReportVulnerabilityUpdateOne) ClearUpdatedAt added in v1.12.0

ClearUpdatedAt clears the value of the "updated_at" field.

func (*ReportVulnerabilityUpdateOne) Exec added in v1.12.0

Exec executes the query on the entity.

func (*ReportVulnerabilityUpdateOne) ExecX added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReportVulnerabilityUpdateOne) Mutation added in v1.12.0

Mutation returns the ReportVulnerabilityMutation object of the builder.

func (*ReportVulnerabilityUpdateOne) Save added in v1.12.0

Save executes the query and returns the updated ReportVulnerability entity.

func (*ReportVulnerabilityUpdateOne) SaveX added in v1.12.0

SaveX is like Save, but panics if an error occurs.

func (*ReportVulnerabilityUpdateOne) Select added in v1.12.0

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReportVulnerabilityUpdateOne) SetAliases added in v1.12.0

SetAliases sets the "aliases" field.

func (*ReportVulnerabilityUpdateOne) SetCreatedAt added in v1.12.0

SetCreatedAt sets the "created_at" field.

func (*ReportVulnerabilityUpdateOne) SetCvssScore added in v1.12.0

SetCvssScore sets the "cvss_score" field.

func (*ReportVulnerabilityUpdateOne) SetDescription added in v1.12.0

SetDescription sets the "description" field.

func (*ReportVulnerabilityUpdateOne) SetNillableCreatedAt added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportVulnerabilityUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableCvssScore added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableCvssScore(f *float64) *ReportVulnerabilityUpdateOne

SetNillableCvssScore sets the "cvss_score" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableDescription added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableDescription(s *string) *ReportVulnerabilityUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillablePackageID added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillablePackageID(id *int) *ReportVulnerabilityUpdateOne

SetNillablePackageID sets the "package" edge to the ReportPackage entity by ID if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableSeverity added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableSeverity(s *string) *ReportVulnerabilityUpdateOne

SetNillableSeverity sets the "severity" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableSeverityType added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableSeverityType(s *string) *ReportVulnerabilityUpdateOne

SetNillableSeverityType sets the "severity_type" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableTitle added in v1.12.0

SetNillableTitle sets the "title" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableUpdatedAt added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportVulnerabilityUpdateOne

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetNillableVulnerabilityID added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetNillableVulnerabilityID(s *string) *ReportVulnerabilityUpdateOne

SetNillableVulnerabilityID sets the "vulnerability_id" field if the given value is not nil.

func (*ReportVulnerabilityUpdateOne) SetPackage added in v1.12.0

SetPackage sets the "package" edge to the ReportPackage entity.

func (*ReportVulnerabilityUpdateOne) SetPackageID added in v1.12.0

SetPackageID sets the "package" edge to the ReportPackage entity by ID.

func (*ReportVulnerabilityUpdateOne) SetSeverity added in v1.12.0

SetSeverity sets the "severity" field.

func (*ReportVulnerabilityUpdateOne) SetSeverityDetails added in v1.12.0

func (rvuo *ReportVulnerabilityUpdateOne) SetSeverityDetails(m map[string]interface{}) *ReportVulnerabilityUpdateOne

SetSeverityDetails sets the "severity_details" field.

func (*ReportVulnerabilityUpdateOne) SetSeverityType added in v1.12.0

SetSeverityType sets the "severity_type" field.

func (*ReportVulnerabilityUpdateOne) SetTitle added in v1.12.0

SetTitle sets the "title" field.

func (*ReportVulnerabilityUpdateOne) SetUpdatedAt added in v1.12.0

SetUpdatedAt sets the "updated_at" field.

func (*ReportVulnerabilityUpdateOne) SetVulnerabilityID added in v1.12.0

SetVulnerabilityID sets the "vulnerability_id" field.

func (*ReportVulnerabilityUpdateOne) Where added in v1.12.0

Where appends a list predicates to the ReportVulnerabilityUpdate builder.

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 {

	// CodeSourceFile is the client for interacting with the CodeSourceFile builders.
	CodeSourceFile *CodeSourceFileClient
	// DepsUsageEvidence is the client for interacting with the DepsUsageEvidence builders.
	DepsUsageEvidence *DepsUsageEvidenceClient
	// ReportDependency is the client for interacting with the ReportDependency builders.
	ReportDependency *ReportDependencyClient
	// ReportDependencyGraph is the client for interacting with the ReportDependencyGraph builders.
	ReportDependencyGraph *ReportDependencyGraphClient
	// ReportLicense is the client for interacting with the ReportLicense builders.
	ReportLicense *ReportLicenseClient
	// ReportMalware is the client for interacting with the ReportMalware builders.
	ReportMalware *ReportMalwareClient
	// ReportPackage is the client for interacting with the ReportPackage builders.
	ReportPackage *ReportPackageClient
	// ReportPackageManifest is the client for interacting with the ReportPackageManifest builders.
	ReportPackageManifest *ReportPackageManifestClient
	// ReportProject is the client for interacting with the ReportProject builders.
	ReportProject *ReportProjectClient
	// ReportScorecard is the client for interacting with the ReportScorecard builders.
	ReportScorecard *ReportScorecardClient
	// ReportScorecardCheck is the client for interacting with the ReportScorecardCheck builders.
	ReportScorecardCheck *ReportScorecardCheckClient
	// ReportSlsaProvenance is the client for interacting with the ReportSlsaProvenance builders.
	ReportSlsaProvenance *ReportSlsaProvenanceClient
	// ReportVulnerability is the client for interacting with the ReportVulnerability builders.
	ReportVulnerability *ReportVulnerabilityClient
	// contains filtered or unexported fields
}

Tx is a transactional client that is created by calling Client.Tx().

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field or edge fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL