Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CodeSourceFile
- type CodeSourceFileClient
- func (c *CodeSourceFileClient) Create() *CodeSourceFileCreate
- func (c *CodeSourceFileClient) CreateBulk(builders ...*CodeSourceFileCreate) *CodeSourceFileCreateBulk
- func (c *CodeSourceFileClient) Delete() *CodeSourceFileDelete
- func (c *CodeSourceFileClient) DeleteOne(csf *CodeSourceFile) *CodeSourceFileDeleteOne
- func (c *CodeSourceFileClient) DeleteOneID(id int) *CodeSourceFileDeleteOne
- func (c *CodeSourceFileClient) Get(ctx context.Context, id int) (*CodeSourceFile, error)
- func (c *CodeSourceFileClient) GetX(ctx context.Context, id int) *CodeSourceFile
- func (c *CodeSourceFileClient) Hooks() []Hook
- func (c *CodeSourceFileClient) Intercept(interceptors ...Interceptor)
- func (c *CodeSourceFileClient) Interceptors() []Interceptor
- func (c *CodeSourceFileClient) MapCreateBulk(slice any, setFunc func(*CodeSourceFileCreate, int)) *CodeSourceFileCreateBulk
- func (c *CodeSourceFileClient) Query() *CodeSourceFileQuery
- func (c *CodeSourceFileClient) QueryDepsUsageEvidences(csf *CodeSourceFile) *DepsUsageEvidenceQuery
- func (c *CodeSourceFileClient) Update() *CodeSourceFileUpdate
- func (c *CodeSourceFileClient) UpdateOne(csf *CodeSourceFile) *CodeSourceFileUpdateOne
- func (c *CodeSourceFileClient) UpdateOneID(id int) *CodeSourceFileUpdateOne
- func (c *CodeSourceFileClient) Use(hooks ...Hook)
- type CodeSourceFileCreate
- func (csfc *CodeSourceFileCreate) AddDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileCreate
- func (csfc *CodeSourceFileCreate) AddDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileCreate
- func (csfc *CodeSourceFileCreate) Exec(ctx context.Context) error
- func (csfc *CodeSourceFileCreate) ExecX(ctx context.Context)
- func (csfc *CodeSourceFileCreate) Mutation() *CodeSourceFileMutation
- func (csfc *CodeSourceFileCreate) Save(ctx context.Context) (*CodeSourceFile, error)
- func (csfc *CodeSourceFileCreate) SaveX(ctx context.Context) *CodeSourceFile
- func (csfc *CodeSourceFileCreate) SetPath(s string) *CodeSourceFileCreate
- type CodeSourceFileCreateBulk
- func (csfcb *CodeSourceFileCreateBulk) Exec(ctx context.Context) error
- func (csfcb *CodeSourceFileCreateBulk) ExecX(ctx context.Context)
- func (csfcb *CodeSourceFileCreateBulk) Save(ctx context.Context) ([]*CodeSourceFile, error)
- func (csfcb *CodeSourceFileCreateBulk) SaveX(ctx context.Context) []*CodeSourceFile
- type CodeSourceFileDelete
- type CodeSourceFileDeleteOne
- type CodeSourceFileEdges
- type CodeSourceFileGroupBy
- func (csfgb *CodeSourceFileGroupBy) Aggregate(fns ...AggregateFunc) *CodeSourceFileGroupBy
- func (s *CodeSourceFileGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CodeSourceFileGroupBy) BoolX(ctx context.Context) bool
- func (s *CodeSourceFileGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CodeSourceFileGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CodeSourceFileGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CodeSourceFileGroupBy) Float64X(ctx context.Context) float64
- func (s *CodeSourceFileGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CodeSourceFileGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CodeSourceFileGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CodeSourceFileGroupBy) IntX(ctx context.Context) int
- func (s *CodeSourceFileGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CodeSourceFileGroupBy) IntsX(ctx context.Context) []int
- func (csfgb *CodeSourceFileGroupBy) Scan(ctx context.Context, v any) error
- func (s *CodeSourceFileGroupBy) ScanX(ctx context.Context, v any)
- func (s *CodeSourceFileGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CodeSourceFileGroupBy) StringX(ctx context.Context) string
- func (s *CodeSourceFileGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CodeSourceFileGroupBy) StringsX(ctx context.Context) []string
- type CodeSourceFileMutation
- func (m *CodeSourceFileMutation) AddDepsUsageEvidenceIDs(ids ...int)
- func (m *CodeSourceFileMutation) AddField(name string, value ent.Value) error
- func (m *CodeSourceFileMutation) AddedEdges() []string
- func (m *CodeSourceFileMutation) AddedField(name string) (ent.Value, bool)
- func (m *CodeSourceFileMutation) AddedFields() []string
- func (m *CodeSourceFileMutation) AddedIDs(name string) []ent.Value
- func (m *CodeSourceFileMutation) ClearDepsUsageEvidences()
- func (m *CodeSourceFileMutation) ClearEdge(name string) error
- func (m *CodeSourceFileMutation) ClearField(name string) error
- func (m *CodeSourceFileMutation) ClearedEdges() []string
- func (m *CodeSourceFileMutation) ClearedFields() []string
- func (m CodeSourceFileMutation) Client() *Client
- func (m *CodeSourceFileMutation) DepsUsageEvidencesCleared() bool
- func (m *CodeSourceFileMutation) DepsUsageEvidencesIDs() (ids []int)
- func (m *CodeSourceFileMutation) EdgeCleared(name string) bool
- func (m *CodeSourceFileMutation) Field(name string) (ent.Value, bool)
- func (m *CodeSourceFileMutation) FieldCleared(name string) bool
- func (m *CodeSourceFileMutation) Fields() []string
- func (m *CodeSourceFileMutation) ID() (id int, exists bool)
- func (m *CodeSourceFileMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CodeSourceFileMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CodeSourceFileMutation) OldPath(ctx context.Context) (v string, err error)
- func (m *CodeSourceFileMutation) Op() Op
- func (m *CodeSourceFileMutation) Path() (r string, exists bool)
- func (m *CodeSourceFileMutation) RemoveDepsUsageEvidenceIDs(ids ...int)
- func (m *CodeSourceFileMutation) RemovedDepsUsageEvidencesIDs() (ids []int)
- func (m *CodeSourceFileMutation) RemovedEdges() []string
- func (m *CodeSourceFileMutation) RemovedIDs(name string) []ent.Value
- func (m *CodeSourceFileMutation) ResetDepsUsageEvidences()
- func (m *CodeSourceFileMutation) ResetEdge(name string) error
- func (m *CodeSourceFileMutation) ResetField(name string) error
- func (m *CodeSourceFileMutation) ResetPath()
- func (m *CodeSourceFileMutation) SetField(name string, value ent.Value) error
- func (m *CodeSourceFileMutation) SetOp(op Op)
- func (m *CodeSourceFileMutation) SetPath(s string)
- func (m CodeSourceFileMutation) Tx() (*Tx, error)
- func (m *CodeSourceFileMutation) Type() string
- func (m *CodeSourceFileMutation) Where(ps ...predicate.CodeSourceFile)
- func (m *CodeSourceFileMutation) WhereP(ps ...func(*sql.Selector))
- type CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) Aggregate(fns ...AggregateFunc) *CodeSourceFileSelect
- func (csfq *CodeSourceFileQuery) All(ctx context.Context) ([]*CodeSourceFile, error)
- func (csfq *CodeSourceFileQuery) AllX(ctx context.Context) []*CodeSourceFile
- func (csfq *CodeSourceFileQuery) Clone() *CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) Count(ctx context.Context) (int, error)
- func (csfq *CodeSourceFileQuery) CountX(ctx context.Context) int
- func (csfq *CodeSourceFileQuery) Exist(ctx context.Context) (bool, error)
- func (csfq *CodeSourceFileQuery) ExistX(ctx context.Context) bool
- func (csfq *CodeSourceFileQuery) First(ctx context.Context) (*CodeSourceFile, error)
- func (csfq *CodeSourceFileQuery) FirstID(ctx context.Context) (id int, err error)
- func (csfq *CodeSourceFileQuery) FirstIDX(ctx context.Context) int
- func (csfq *CodeSourceFileQuery) FirstX(ctx context.Context) *CodeSourceFile
- func (csfq *CodeSourceFileQuery) GroupBy(field string, fields ...string) *CodeSourceFileGroupBy
- func (csfq *CodeSourceFileQuery) IDs(ctx context.Context) (ids []int, err error)
- func (csfq *CodeSourceFileQuery) IDsX(ctx context.Context) []int
- func (csfq *CodeSourceFileQuery) Limit(limit int) *CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) Offset(offset int) *CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) Only(ctx context.Context) (*CodeSourceFile, error)
- func (csfq *CodeSourceFileQuery) OnlyID(ctx context.Context) (id int, err error)
- func (csfq *CodeSourceFileQuery) OnlyIDX(ctx context.Context) int
- func (csfq *CodeSourceFileQuery) OnlyX(ctx context.Context) *CodeSourceFile
- func (csfq *CodeSourceFileQuery) Order(o ...codesourcefile.OrderOption) *CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) QueryDepsUsageEvidences() *DepsUsageEvidenceQuery
- func (csfq *CodeSourceFileQuery) Select(fields ...string) *CodeSourceFileSelect
- func (csfq *CodeSourceFileQuery) Unique(unique bool) *CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileQuery
- func (csfq *CodeSourceFileQuery) WithDepsUsageEvidences(opts ...func(*DepsUsageEvidenceQuery)) *CodeSourceFileQuery
- type CodeSourceFileSelect
- func (csfs *CodeSourceFileSelect) Aggregate(fns ...AggregateFunc) *CodeSourceFileSelect
- func (s *CodeSourceFileSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CodeSourceFileSelect) BoolX(ctx context.Context) bool
- func (s *CodeSourceFileSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CodeSourceFileSelect) BoolsX(ctx context.Context) []bool
- func (s *CodeSourceFileSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CodeSourceFileSelect) Float64X(ctx context.Context) float64
- func (s *CodeSourceFileSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CodeSourceFileSelect) Float64sX(ctx context.Context) []float64
- func (s *CodeSourceFileSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CodeSourceFileSelect) IntX(ctx context.Context) int
- func (s *CodeSourceFileSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CodeSourceFileSelect) IntsX(ctx context.Context) []int
- func (csfs *CodeSourceFileSelect) Scan(ctx context.Context, v any) error
- func (s *CodeSourceFileSelect) ScanX(ctx context.Context, v any)
- func (s *CodeSourceFileSelect) String(ctx context.Context) (_ string, err error)
- func (s *CodeSourceFileSelect) StringX(ctx context.Context) string
- func (s *CodeSourceFileSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CodeSourceFileSelect) StringsX(ctx context.Context) []string
- type CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) AddDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) AddDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) ClearDepsUsageEvidences() *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) Exec(ctx context.Context) error
- func (csfu *CodeSourceFileUpdate) ExecX(ctx context.Context)
- func (csfu *CodeSourceFileUpdate) Mutation() *CodeSourceFileMutation
- func (csfu *CodeSourceFileUpdate) RemoveDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) RemoveDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) Save(ctx context.Context) (int, error)
- func (csfu *CodeSourceFileUpdate) SaveX(ctx context.Context) int
- func (csfu *CodeSourceFileUpdate) SetNillablePath(s *string) *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) SetPath(s string) *CodeSourceFileUpdate
- func (csfu *CodeSourceFileUpdate) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileUpdate
- type CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) AddDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) AddDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) ClearDepsUsageEvidences() *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) Exec(ctx context.Context) error
- func (csfuo *CodeSourceFileUpdateOne) ExecX(ctx context.Context)
- func (csfuo *CodeSourceFileUpdateOne) Mutation() *CodeSourceFileMutation
- func (csfuo *CodeSourceFileUpdateOne) RemoveDepsUsageEvidenceIDs(ids ...int) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) RemoveDepsUsageEvidences(d ...*DepsUsageEvidence) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) Save(ctx context.Context) (*CodeSourceFile, error)
- func (csfuo *CodeSourceFileUpdateOne) SaveX(ctx context.Context) *CodeSourceFile
- func (csfuo *CodeSourceFileUpdateOne) Select(field string, fields ...string) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) SetNillablePath(s *string) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) SetPath(s string) *CodeSourceFileUpdateOne
- func (csfuo *CodeSourceFileUpdateOne) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileUpdateOne
- type CodeSourceFiles
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type DepsUsageEvidence
- func (due *DepsUsageEvidence) QueryUsedIn() *CodeSourceFileQuery
- func (due *DepsUsageEvidence) String() string
- func (due *DepsUsageEvidence) Unwrap() *DepsUsageEvidence
- func (due *DepsUsageEvidence) Update() *DepsUsageEvidenceUpdateOne
- func (due *DepsUsageEvidence) Value(name string) (ent.Value, error)
- type DepsUsageEvidenceClient
- func (c *DepsUsageEvidenceClient) Create() *DepsUsageEvidenceCreate
- func (c *DepsUsageEvidenceClient) CreateBulk(builders ...*DepsUsageEvidenceCreate) *DepsUsageEvidenceCreateBulk
- func (c *DepsUsageEvidenceClient) Delete() *DepsUsageEvidenceDelete
- func (c *DepsUsageEvidenceClient) DeleteOne(due *DepsUsageEvidence) *DepsUsageEvidenceDeleteOne
- func (c *DepsUsageEvidenceClient) DeleteOneID(id int) *DepsUsageEvidenceDeleteOne
- func (c *DepsUsageEvidenceClient) Get(ctx context.Context, id int) (*DepsUsageEvidence, error)
- func (c *DepsUsageEvidenceClient) GetX(ctx context.Context, id int) *DepsUsageEvidence
- func (c *DepsUsageEvidenceClient) Hooks() []Hook
- func (c *DepsUsageEvidenceClient) Intercept(interceptors ...Interceptor)
- func (c *DepsUsageEvidenceClient) Interceptors() []Interceptor
- func (c *DepsUsageEvidenceClient) MapCreateBulk(slice any, setFunc func(*DepsUsageEvidenceCreate, int)) *DepsUsageEvidenceCreateBulk
- func (c *DepsUsageEvidenceClient) Query() *DepsUsageEvidenceQuery
- func (c *DepsUsageEvidenceClient) QueryUsedIn(due *DepsUsageEvidence) *CodeSourceFileQuery
- func (c *DepsUsageEvidenceClient) Update() *DepsUsageEvidenceUpdate
- func (c *DepsUsageEvidenceClient) UpdateOne(due *DepsUsageEvidence) *DepsUsageEvidenceUpdateOne
- func (c *DepsUsageEvidenceClient) UpdateOneID(id int) *DepsUsageEvidenceUpdateOne
- func (c *DepsUsageEvidenceClient) Use(hooks ...Hook)
- type DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) Exec(ctx context.Context) error
- func (duec *DepsUsageEvidenceCreate) ExecX(ctx context.Context)
- func (duec *DepsUsageEvidenceCreate) Mutation() *DepsUsageEvidenceMutation
- func (duec *DepsUsageEvidenceCreate) Save(ctx context.Context) (*DepsUsageEvidence, error)
- func (duec *DepsUsageEvidenceCreate) SaveX(ctx context.Context) *DepsUsageEvidence
- func (duec *DepsUsageEvidenceCreate) SetIdentifier(s string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetIsWildCardUsage(b bool) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetLine(u uint) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetModuleAlias(s string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetModuleItem(s string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetModuleName(s string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetNillableIdentifier(s *string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetNillableIsWildCardUsage(b *bool) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetNillableModuleAlias(s *string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetNillableModuleItem(s *string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetNillablePackageHint(s *string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetPackageHint(s string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetUsageFilePath(s string) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetUsedIn(c *CodeSourceFile) *DepsUsageEvidenceCreate
- func (duec *DepsUsageEvidenceCreate) SetUsedInID(id int) *DepsUsageEvidenceCreate
- type DepsUsageEvidenceCreateBulk
- func (duecb *DepsUsageEvidenceCreateBulk) Exec(ctx context.Context) error
- func (duecb *DepsUsageEvidenceCreateBulk) ExecX(ctx context.Context)
- func (duecb *DepsUsageEvidenceCreateBulk) Save(ctx context.Context) ([]*DepsUsageEvidence, error)
- func (duecb *DepsUsageEvidenceCreateBulk) SaveX(ctx context.Context) []*DepsUsageEvidence
- type DepsUsageEvidenceDelete
- type DepsUsageEvidenceDeleteOne
- type DepsUsageEvidenceEdges
- type DepsUsageEvidenceGroupBy
- func (duegb *DepsUsageEvidenceGroupBy) Aggregate(fns ...AggregateFunc) *DepsUsageEvidenceGroupBy
- func (s *DepsUsageEvidenceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DepsUsageEvidenceGroupBy) BoolX(ctx context.Context) bool
- func (s *DepsUsageEvidenceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DepsUsageEvidenceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DepsUsageEvidenceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DepsUsageEvidenceGroupBy) Float64X(ctx context.Context) float64
- func (s *DepsUsageEvidenceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DepsUsageEvidenceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DepsUsageEvidenceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DepsUsageEvidenceGroupBy) IntX(ctx context.Context) int
- func (s *DepsUsageEvidenceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DepsUsageEvidenceGroupBy) IntsX(ctx context.Context) []int
- func (duegb *DepsUsageEvidenceGroupBy) Scan(ctx context.Context, v any) error
- func (s *DepsUsageEvidenceGroupBy) ScanX(ctx context.Context, v any)
- func (s *DepsUsageEvidenceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DepsUsageEvidenceGroupBy) StringX(ctx context.Context) string
- func (s *DepsUsageEvidenceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DepsUsageEvidenceGroupBy) StringsX(ctx context.Context) []string
- type DepsUsageEvidenceMutation
- func (m *DepsUsageEvidenceMutation) AddField(name string, value ent.Value) error
- func (m *DepsUsageEvidenceMutation) AddLine(u int)
- func (m *DepsUsageEvidenceMutation) AddedEdges() []string
- func (m *DepsUsageEvidenceMutation) AddedField(name string) (ent.Value, bool)
- func (m *DepsUsageEvidenceMutation) AddedFields() []string
- func (m *DepsUsageEvidenceMutation) AddedIDs(name string) []ent.Value
- func (m *DepsUsageEvidenceMutation) AddedLine() (r int, exists bool)
- func (m *DepsUsageEvidenceMutation) ClearEdge(name string) error
- func (m *DepsUsageEvidenceMutation) ClearField(name string) error
- func (m *DepsUsageEvidenceMutation) ClearIdentifier()
- func (m *DepsUsageEvidenceMutation) ClearIsWildCardUsage()
- func (m *DepsUsageEvidenceMutation) ClearModuleAlias()
- func (m *DepsUsageEvidenceMutation) ClearModuleItem()
- func (m *DepsUsageEvidenceMutation) ClearPackageHint()
- func (m *DepsUsageEvidenceMutation) ClearUsedIn()
- func (m *DepsUsageEvidenceMutation) ClearedEdges() []string
- func (m *DepsUsageEvidenceMutation) ClearedFields() []string
- func (m DepsUsageEvidenceMutation) Client() *Client
- func (m *DepsUsageEvidenceMutation) EdgeCleared(name string) bool
- func (m *DepsUsageEvidenceMutation) Field(name string) (ent.Value, bool)
- func (m *DepsUsageEvidenceMutation) FieldCleared(name string) bool
- func (m *DepsUsageEvidenceMutation) Fields() []string
- func (m *DepsUsageEvidenceMutation) ID() (id int, exists bool)
- func (m *DepsUsageEvidenceMutation) IDs(ctx context.Context) ([]int, error)
- func (m *DepsUsageEvidenceMutation) Identifier() (r string, exists bool)
- func (m *DepsUsageEvidenceMutation) IdentifierCleared() bool
- func (m *DepsUsageEvidenceMutation) IsWildCardUsage() (r bool, exists bool)
- func (m *DepsUsageEvidenceMutation) IsWildCardUsageCleared() bool
- func (m *DepsUsageEvidenceMutation) Line() (r uint, exists bool)
- func (m *DepsUsageEvidenceMutation) ModuleAlias() (r string, exists bool)
- func (m *DepsUsageEvidenceMutation) ModuleAliasCleared() bool
- func (m *DepsUsageEvidenceMutation) ModuleItem() (r string, exists bool)
- func (m *DepsUsageEvidenceMutation) ModuleItemCleared() bool
- func (m *DepsUsageEvidenceMutation) ModuleName() (r string, exists bool)
- func (m *DepsUsageEvidenceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DepsUsageEvidenceMutation) OldIdentifier(ctx context.Context) (v *string, err error)
- func (m *DepsUsageEvidenceMutation) OldIsWildCardUsage(ctx context.Context) (v bool, err error)
- func (m *DepsUsageEvidenceMutation) OldLine(ctx context.Context) (v uint, err error)
- func (m *DepsUsageEvidenceMutation) OldModuleAlias(ctx context.Context) (v *string, err error)
- func (m *DepsUsageEvidenceMutation) OldModuleItem(ctx context.Context) (v *string, err error)
- func (m *DepsUsageEvidenceMutation) OldModuleName(ctx context.Context) (v string, err error)
- func (m *DepsUsageEvidenceMutation) OldPackageHint(ctx context.Context) (v *string, err error)
- func (m *DepsUsageEvidenceMutation) OldUsageFilePath(ctx context.Context) (v string, err error)
- func (m *DepsUsageEvidenceMutation) Op() Op
- func (m *DepsUsageEvidenceMutation) PackageHint() (r string, exists bool)
- func (m *DepsUsageEvidenceMutation) PackageHintCleared() bool
- func (m *DepsUsageEvidenceMutation) RemovedEdges() []string
- func (m *DepsUsageEvidenceMutation) RemovedIDs(name string) []ent.Value
- func (m *DepsUsageEvidenceMutation) ResetEdge(name string) error
- func (m *DepsUsageEvidenceMutation) ResetField(name string) error
- func (m *DepsUsageEvidenceMutation) ResetIdentifier()
- func (m *DepsUsageEvidenceMutation) ResetIsWildCardUsage()
- func (m *DepsUsageEvidenceMutation) ResetLine()
- func (m *DepsUsageEvidenceMutation) ResetModuleAlias()
- func (m *DepsUsageEvidenceMutation) ResetModuleItem()
- func (m *DepsUsageEvidenceMutation) ResetModuleName()
- func (m *DepsUsageEvidenceMutation) ResetPackageHint()
- func (m *DepsUsageEvidenceMutation) ResetUsageFilePath()
- func (m *DepsUsageEvidenceMutation) ResetUsedIn()
- func (m *DepsUsageEvidenceMutation) SetField(name string, value ent.Value) error
- func (m *DepsUsageEvidenceMutation) SetIdentifier(s string)
- func (m *DepsUsageEvidenceMutation) SetIsWildCardUsage(b bool)
- func (m *DepsUsageEvidenceMutation) SetLine(u uint)
- func (m *DepsUsageEvidenceMutation) SetModuleAlias(s string)
- func (m *DepsUsageEvidenceMutation) SetModuleItem(s string)
- func (m *DepsUsageEvidenceMutation) SetModuleName(s string)
- func (m *DepsUsageEvidenceMutation) SetOp(op Op)
- func (m *DepsUsageEvidenceMutation) SetPackageHint(s string)
- func (m *DepsUsageEvidenceMutation) SetUsageFilePath(s string)
- func (m *DepsUsageEvidenceMutation) SetUsedInID(id int)
- func (m DepsUsageEvidenceMutation) Tx() (*Tx, error)
- func (m *DepsUsageEvidenceMutation) Type() string
- func (m *DepsUsageEvidenceMutation) UsageFilePath() (r string, exists bool)
- func (m *DepsUsageEvidenceMutation) UsedInCleared() bool
- func (m *DepsUsageEvidenceMutation) UsedInID() (id int, exists bool)
- func (m *DepsUsageEvidenceMutation) UsedInIDs() (ids []int)
- func (m *DepsUsageEvidenceMutation) Where(ps ...predicate.DepsUsageEvidence)
- func (m *DepsUsageEvidenceMutation) WhereP(ps ...func(*sql.Selector))
- type DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) Aggregate(fns ...AggregateFunc) *DepsUsageEvidenceSelect
- func (dueq *DepsUsageEvidenceQuery) All(ctx context.Context) ([]*DepsUsageEvidence, error)
- func (dueq *DepsUsageEvidenceQuery) AllX(ctx context.Context) []*DepsUsageEvidence
- func (dueq *DepsUsageEvidenceQuery) Clone() *DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) Count(ctx context.Context) (int, error)
- func (dueq *DepsUsageEvidenceQuery) CountX(ctx context.Context) int
- func (dueq *DepsUsageEvidenceQuery) Exist(ctx context.Context) (bool, error)
- func (dueq *DepsUsageEvidenceQuery) ExistX(ctx context.Context) bool
- func (dueq *DepsUsageEvidenceQuery) First(ctx context.Context) (*DepsUsageEvidence, error)
- func (dueq *DepsUsageEvidenceQuery) FirstID(ctx context.Context) (id int, err error)
- func (dueq *DepsUsageEvidenceQuery) FirstIDX(ctx context.Context) int
- func (dueq *DepsUsageEvidenceQuery) FirstX(ctx context.Context) *DepsUsageEvidence
- func (dueq *DepsUsageEvidenceQuery) GroupBy(field string, fields ...string) *DepsUsageEvidenceGroupBy
- func (dueq *DepsUsageEvidenceQuery) IDs(ctx context.Context) (ids []int, err error)
- func (dueq *DepsUsageEvidenceQuery) IDsX(ctx context.Context) []int
- func (dueq *DepsUsageEvidenceQuery) Limit(limit int) *DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) Offset(offset int) *DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) Only(ctx context.Context) (*DepsUsageEvidence, error)
- func (dueq *DepsUsageEvidenceQuery) OnlyID(ctx context.Context) (id int, err error)
- func (dueq *DepsUsageEvidenceQuery) OnlyIDX(ctx context.Context) int
- func (dueq *DepsUsageEvidenceQuery) OnlyX(ctx context.Context) *DepsUsageEvidence
- func (dueq *DepsUsageEvidenceQuery) Order(o ...depsusageevidence.OrderOption) *DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) QueryUsedIn() *CodeSourceFileQuery
- func (dueq *DepsUsageEvidenceQuery) Select(fields ...string) *DepsUsageEvidenceSelect
- func (dueq *DepsUsageEvidenceQuery) Unique(unique bool) *DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceQuery
- func (dueq *DepsUsageEvidenceQuery) WithUsedIn(opts ...func(*CodeSourceFileQuery)) *DepsUsageEvidenceQuery
- type DepsUsageEvidenceSelect
- func (dues *DepsUsageEvidenceSelect) Aggregate(fns ...AggregateFunc) *DepsUsageEvidenceSelect
- func (s *DepsUsageEvidenceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DepsUsageEvidenceSelect) BoolX(ctx context.Context) bool
- func (s *DepsUsageEvidenceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DepsUsageEvidenceSelect) BoolsX(ctx context.Context) []bool
- func (s *DepsUsageEvidenceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DepsUsageEvidenceSelect) Float64X(ctx context.Context) float64
- func (s *DepsUsageEvidenceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DepsUsageEvidenceSelect) Float64sX(ctx context.Context) []float64
- func (s *DepsUsageEvidenceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DepsUsageEvidenceSelect) IntX(ctx context.Context) int
- func (s *DepsUsageEvidenceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DepsUsageEvidenceSelect) IntsX(ctx context.Context) []int
- func (dues *DepsUsageEvidenceSelect) Scan(ctx context.Context, v any) error
- func (s *DepsUsageEvidenceSelect) ScanX(ctx context.Context, v any)
- func (s *DepsUsageEvidenceSelect) String(ctx context.Context) (_ string, err error)
- func (s *DepsUsageEvidenceSelect) StringX(ctx context.Context) string
- func (s *DepsUsageEvidenceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DepsUsageEvidenceSelect) StringsX(ctx context.Context) []string
- type DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) AddLine(u int) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) ClearIdentifier() *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) ClearIsWildCardUsage() *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) ClearModuleAlias() *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) ClearModuleItem() *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) ClearPackageHint() *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) ClearUsedIn() *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) Exec(ctx context.Context) error
- func (dueu *DepsUsageEvidenceUpdate) ExecX(ctx context.Context)
- func (dueu *DepsUsageEvidenceUpdate) Mutation() *DepsUsageEvidenceMutation
- func (dueu *DepsUsageEvidenceUpdate) Save(ctx context.Context) (int, error)
- func (dueu *DepsUsageEvidenceUpdate) SaveX(ctx context.Context) int
- func (dueu *DepsUsageEvidenceUpdate) SetIdentifier(s string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetIsWildCardUsage(b bool) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetLine(u uint) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetModuleAlias(s string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetModuleItem(s string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetModuleName(s string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableIdentifier(s *string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableIsWildCardUsage(b *bool) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableLine(u *uint) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableModuleAlias(s *string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableModuleItem(s *string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableModuleName(s *string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillablePackageHint(s *string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetNillableUsageFilePath(s *string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetPackageHint(s string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetUsageFilePath(s string) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetUsedIn(c *CodeSourceFile) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) SetUsedInID(id int) *DepsUsageEvidenceUpdate
- func (dueu *DepsUsageEvidenceUpdate) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceUpdate
- type DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) AddLine(u int) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) ClearIdentifier() *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) ClearIsWildCardUsage() *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) ClearModuleAlias() *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) ClearModuleItem() *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) ClearPackageHint() *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) ClearUsedIn() *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) Exec(ctx context.Context) error
- func (dueuo *DepsUsageEvidenceUpdateOne) ExecX(ctx context.Context)
- func (dueuo *DepsUsageEvidenceUpdateOne) Mutation() *DepsUsageEvidenceMutation
- func (dueuo *DepsUsageEvidenceUpdateOne) Save(ctx context.Context) (*DepsUsageEvidence, error)
- func (dueuo *DepsUsageEvidenceUpdateOne) SaveX(ctx context.Context) *DepsUsageEvidence
- func (dueuo *DepsUsageEvidenceUpdateOne) Select(field string, fields ...string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetIdentifier(s string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetIsWildCardUsage(b bool) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetLine(u uint) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetModuleAlias(s string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetModuleItem(s string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetModuleName(s string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableIdentifier(s *string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableIsWildCardUsage(b *bool) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableLine(u *uint) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableModuleAlias(s *string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableModuleItem(s *string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableModuleName(s *string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillablePackageHint(s *string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetNillableUsageFilePath(s *string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetPackageHint(s string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetUsageFilePath(s string) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetUsedIn(c *CodeSourceFile) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) SetUsedInID(id int) *DepsUsageEvidenceUpdateOne
- func (dueuo *DepsUsageEvidenceUpdateOne) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceUpdateOne
- type DepsUsageEvidences
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type ReportDependencies
- type ReportDependency
- type ReportDependencyClient
- func (c *ReportDependencyClient) Create() *ReportDependencyCreate
- func (c *ReportDependencyClient) CreateBulk(builders ...*ReportDependencyCreate) *ReportDependencyCreateBulk
- func (c *ReportDependencyClient) Delete() *ReportDependencyDelete
- func (c *ReportDependencyClient) DeleteOne(rd *ReportDependency) *ReportDependencyDeleteOne
- func (c *ReportDependencyClient) DeleteOneID(id int) *ReportDependencyDeleteOne
- func (c *ReportDependencyClient) Get(ctx context.Context, id int) (*ReportDependency, error)
- func (c *ReportDependencyClient) GetX(ctx context.Context, id int) *ReportDependency
- func (c *ReportDependencyClient) Hooks() []Hook
- func (c *ReportDependencyClient) Intercept(interceptors ...Interceptor)
- func (c *ReportDependencyClient) Interceptors() []Interceptor
- func (c *ReportDependencyClient) MapCreateBulk(slice any, setFunc func(*ReportDependencyCreate, int)) *ReportDependencyCreateBulk
- func (c *ReportDependencyClient) Query() *ReportDependencyQuery
- func (c *ReportDependencyClient) QueryPackage(rd *ReportDependency) *ReportPackageQuery
- func (c *ReportDependencyClient) Update() *ReportDependencyUpdate
- func (c *ReportDependencyClient) UpdateOne(rd *ReportDependency) *ReportDependencyUpdateOne
- func (c *ReportDependencyClient) UpdateOneID(id int) *ReportDependencyUpdateOne
- func (c *ReportDependencyClient) Use(hooks ...Hook)
- type ReportDependencyCreate
- func (rdc *ReportDependencyCreate) Exec(ctx context.Context) error
- func (rdc *ReportDependencyCreate) ExecX(ctx context.Context)
- func (rdc *ReportDependencyCreate) Mutation() *ReportDependencyMutation
- func (rdc *ReportDependencyCreate) Save(ctx context.Context) (*ReportDependency, error)
- func (rdc *ReportDependencyCreate) SaveX(ctx context.Context) *ReportDependency
- func (rdc *ReportDependencyCreate) SetCreatedAt(t time.Time) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetDependencyEcosystem(s string) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetDependencyName(s string) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetDependencyPackageID(s string) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetDependencyType(s string) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetDependencyVersion(s string) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetDepth(i int) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetNillableCreatedAt(t *time.Time) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetNillableDependencyType(s *string) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetNillableDepth(i *int) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetNillablePackageID(id *int) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetPackage(r *ReportPackage) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetPackageID(id int) *ReportDependencyCreate
- func (rdc *ReportDependencyCreate) SetUpdatedAt(t time.Time) *ReportDependencyCreate
- type ReportDependencyCreateBulk
- func (rdcb *ReportDependencyCreateBulk) Exec(ctx context.Context) error
- func (rdcb *ReportDependencyCreateBulk) ExecX(ctx context.Context)
- func (rdcb *ReportDependencyCreateBulk) Save(ctx context.Context) ([]*ReportDependency, error)
- func (rdcb *ReportDependencyCreateBulk) SaveX(ctx context.Context) []*ReportDependency
- type ReportDependencyDelete
- type ReportDependencyDeleteOne
- type ReportDependencyEdges
- type ReportDependencyGraph
- type ReportDependencyGraphClient
- func (c *ReportDependencyGraphClient) Create() *ReportDependencyGraphCreate
- func (c *ReportDependencyGraphClient) CreateBulk(builders ...*ReportDependencyGraphCreate) *ReportDependencyGraphCreateBulk
- func (c *ReportDependencyGraphClient) Delete() *ReportDependencyGraphDelete
- func (c *ReportDependencyGraphClient) DeleteOne(rdg *ReportDependencyGraph) *ReportDependencyGraphDeleteOne
- func (c *ReportDependencyGraphClient) DeleteOneID(id int) *ReportDependencyGraphDeleteOne
- func (c *ReportDependencyGraphClient) Get(ctx context.Context, id int) (*ReportDependencyGraph, error)
- func (c *ReportDependencyGraphClient) GetX(ctx context.Context, id int) *ReportDependencyGraph
- func (c *ReportDependencyGraphClient) Hooks() []Hook
- func (c *ReportDependencyGraphClient) Intercept(interceptors ...Interceptor)
- func (c *ReportDependencyGraphClient) Interceptors() []Interceptor
- func (c *ReportDependencyGraphClient) MapCreateBulk(slice any, setFunc func(*ReportDependencyGraphCreate, int)) *ReportDependencyGraphCreateBulk
- func (c *ReportDependencyGraphClient) Query() *ReportDependencyGraphQuery
- func (c *ReportDependencyGraphClient) Update() *ReportDependencyGraphUpdate
- func (c *ReportDependencyGraphClient) UpdateOne(rdg *ReportDependencyGraph) *ReportDependencyGraphUpdateOne
- func (c *ReportDependencyGraphClient) UpdateOneID(id int) *ReportDependencyGraphUpdateOne
- func (c *ReportDependencyGraphClient) Use(hooks ...Hook)
- type ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) Exec(ctx context.Context) error
- func (rdgc *ReportDependencyGraphCreate) ExecX(ctx context.Context)
- func (rdgc *ReportDependencyGraphCreate) Mutation() *ReportDependencyGraphMutation
- func (rdgc *ReportDependencyGraphCreate) Save(ctx context.Context) (*ReportDependencyGraph, error)
- func (rdgc *ReportDependencyGraphCreate) SaveX(ctx context.Context) *ReportDependencyGraph
- func (rdgc *ReportDependencyGraphCreate) SetCreatedAt(t time.Time) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetDependencyType(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetDepth(i int) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetFromPackageEcosystem(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetFromPackageID(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetFromPackageName(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetFromPackageVersion(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetIsDirect(b bool) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetIsRootEdge(b bool) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetManifestID(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableCreatedAt(t *time.Time) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableDependencyType(s *string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableDepth(i *int) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableIsDirect(b *bool) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableIsRootEdge(b *bool) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetNillableVersionConstraint(s *string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetToPackageEcosystem(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetToPackageID(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetToPackageName(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetToPackageVersion(s string) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetUpdatedAt(t time.Time) *ReportDependencyGraphCreate
- func (rdgc *ReportDependencyGraphCreate) SetVersionConstraint(s string) *ReportDependencyGraphCreate
- type ReportDependencyGraphCreateBulk
- func (rdgcb *ReportDependencyGraphCreateBulk) Exec(ctx context.Context) error
- func (rdgcb *ReportDependencyGraphCreateBulk) ExecX(ctx context.Context)
- func (rdgcb *ReportDependencyGraphCreateBulk) Save(ctx context.Context) ([]*ReportDependencyGraph, error)
- func (rdgcb *ReportDependencyGraphCreateBulk) SaveX(ctx context.Context) []*ReportDependencyGraph
- type ReportDependencyGraphDelete
- type ReportDependencyGraphDeleteOne
- type ReportDependencyGraphGroupBy
- func (rdggb *ReportDependencyGraphGroupBy) Aggregate(fns ...AggregateFunc) *ReportDependencyGraphGroupBy
- func (s *ReportDependencyGraphGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportDependencyGraphGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportDependencyGraphGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportDependencyGraphGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportDependencyGraphGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportDependencyGraphGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportDependencyGraphGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportDependencyGraphGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportDependencyGraphGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportDependencyGraphGroupBy) IntX(ctx context.Context) int
- func (s *ReportDependencyGraphGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportDependencyGraphGroupBy) IntsX(ctx context.Context) []int
- func (rdggb *ReportDependencyGraphGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportDependencyGraphGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportDependencyGraphGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportDependencyGraphGroupBy) StringX(ctx context.Context) string
- func (s *ReportDependencyGraphGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportDependencyGraphGroupBy) StringsX(ctx context.Context) []string
- type ReportDependencyGraphMutation
- func (m *ReportDependencyGraphMutation) AddDepth(i int)
- func (m *ReportDependencyGraphMutation) AddField(name string, value ent.Value) error
- func (m *ReportDependencyGraphMutation) AddedDepth() (r int, exists bool)
- func (m *ReportDependencyGraphMutation) AddedEdges() []string
- func (m *ReportDependencyGraphMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportDependencyGraphMutation) AddedFields() []string
- func (m *ReportDependencyGraphMutation) AddedIDs(name string) []ent.Value
- func (m *ReportDependencyGraphMutation) ClearCreatedAt()
- func (m *ReportDependencyGraphMutation) ClearDependencyType()
- func (m *ReportDependencyGraphMutation) ClearEdge(name string) error
- func (m *ReportDependencyGraphMutation) ClearField(name string) error
- func (m *ReportDependencyGraphMutation) ClearUpdatedAt()
- func (m *ReportDependencyGraphMutation) ClearVersionConstraint()
- func (m *ReportDependencyGraphMutation) ClearedEdges() []string
- func (m *ReportDependencyGraphMutation) ClearedFields() []string
- func (m ReportDependencyGraphMutation) Client() *Client
- func (m *ReportDependencyGraphMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportDependencyGraphMutation) CreatedAtCleared() bool
- func (m *ReportDependencyGraphMutation) DependencyType() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) DependencyTypeCleared() bool
- func (m *ReportDependencyGraphMutation) Depth() (r int, exists bool)
- func (m *ReportDependencyGraphMutation) EdgeCleared(name string) bool
- func (m *ReportDependencyGraphMutation) Field(name string) (ent.Value, bool)
- func (m *ReportDependencyGraphMutation) FieldCleared(name string) bool
- func (m *ReportDependencyGraphMutation) Fields() []string
- func (m *ReportDependencyGraphMutation) FromPackageEcosystem() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) FromPackageID() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) FromPackageName() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) FromPackageVersion() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) ID() (id int, exists bool)
- func (m *ReportDependencyGraphMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportDependencyGraphMutation) IsDirect() (r bool, exists bool)
- func (m *ReportDependencyGraphMutation) IsRootEdge() (r bool, exists bool)
- func (m *ReportDependencyGraphMutation) ManifestID() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportDependencyGraphMutation) OldDependencyType(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldDepth(ctx context.Context) (v int, err error)
- func (m *ReportDependencyGraphMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportDependencyGraphMutation) OldFromPackageEcosystem(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldFromPackageID(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldFromPackageName(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldFromPackageVersion(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldIsDirect(ctx context.Context) (v bool, err error)
- func (m *ReportDependencyGraphMutation) OldIsRootEdge(ctx context.Context) (v bool, err error)
- func (m *ReportDependencyGraphMutation) OldManifestID(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldToPackageEcosystem(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldToPackageID(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldToPackageName(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldToPackageVersion(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportDependencyGraphMutation) OldVersionConstraint(ctx context.Context) (v string, err error)
- func (m *ReportDependencyGraphMutation) Op() Op
- func (m *ReportDependencyGraphMutation) RemovedEdges() []string
- func (m *ReportDependencyGraphMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportDependencyGraphMutation) ResetCreatedAt()
- func (m *ReportDependencyGraphMutation) ResetDependencyType()
- func (m *ReportDependencyGraphMutation) ResetDepth()
- func (m *ReportDependencyGraphMutation) ResetEdge(name string) error
- func (m *ReportDependencyGraphMutation) ResetField(name string) error
- func (m *ReportDependencyGraphMutation) ResetFromPackageEcosystem()
- func (m *ReportDependencyGraphMutation) ResetFromPackageID()
- func (m *ReportDependencyGraphMutation) ResetFromPackageName()
- func (m *ReportDependencyGraphMutation) ResetFromPackageVersion()
- func (m *ReportDependencyGraphMutation) ResetIsDirect()
- func (m *ReportDependencyGraphMutation) ResetIsRootEdge()
- func (m *ReportDependencyGraphMutation) ResetManifestID()
- func (m *ReportDependencyGraphMutation) ResetToPackageEcosystem()
- func (m *ReportDependencyGraphMutation) ResetToPackageID()
- func (m *ReportDependencyGraphMutation) ResetToPackageName()
- func (m *ReportDependencyGraphMutation) ResetToPackageVersion()
- func (m *ReportDependencyGraphMutation) ResetUpdatedAt()
- func (m *ReportDependencyGraphMutation) ResetVersionConstraint()
- func (m *ReportDependencyGraphMutation) SetCreatedAt(t time.Time)
- func (m *ReportDependencyGraphMutation) SetDependencyType(s string)
- func (m *ReportDependencyGraphMutation) SetDepth(i int)
- func (m *ReportDependencyGraphMutation) SetField(name string, value ent.Value) error
- func (m *ReportDependencyGraphMutation) SetFromPackageEcosystem(s string)
- func (m *ReportDependencyGraphMutation) SetFromPackageID(s string)
- func (m *ReportDependencyGraphMutation) SetFromPackageName(s string)
- func (m *ReportDependencyGraphMutation) SetFromPackageVersion(s string)
- func (m *ReportDependencyGraphMutation) SetIsDirect(b bool)
- func (m *ReportDependencyGraphMutation) SetIsRootEdge(b bool)
- func (m *ReportDependencyGraphMutation) SetManifestID(s string)
- func (m *ReportDependencyGraphMutation) SetOp(op Op)
- func (m *ReportDependencyGraphMutation) SetToPackageEcosystem(s string)
- func (m *ReportDependencyGraphMutation) SetToPackageID(s string)
- func (m *ReportDependencyGraphMutation) SetToPackageName(s string)
- func (m *ReportDependencyGraphMutation) SetToPackageVersion(s string)
- func (m *ReportDependencyGraphMutation) SetUpdatedAt(t time.Time)
- func (m *ReportDependencyGraphMutation) SetVersionConstraint(s string)
- func (m *ReportDependencyGraphMutation) ToPackageEcosystem() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) ToPackageID() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) ToPackageName() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) ToPackageVersion() (r string, exists bool)
- func (m ReportDependencyGraphMutation) Tx() (*Tx, error)
- func (m *ReportDependencyGraphMutation) Type() string
- func (m *ReportDependencyGraphMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportDependencyGraphMutation) UpdatedAtCleared() bool
- func (m *ReportDependencyGraphMutation) VersionConstraint() (r string, exists bool)
- func (m *ReportDependencyGraphMutation) VersionConstraintCleared() bool
- func (m *ReportDependencyGraphMutation) Where(ps ...predicate.ReportDependencyGraph)
- func (m *ReportDependencyGraphMutation) WhereP(ps ...func(*sql.Selector))
- type ReportDependencyGraphQuery
- func (rdgq *ReportDependencyGraphQuery) Aggregate(fns ...AggregateFunc) *ReportDependencyGraphSelect
- func (rdgq *ReportDependencyGraphQuery) All(ctx context.Context) ([]*ReportDependencyGraph, error)
- func (rdgq *ReportDependencyGraphQuery) AllX(ctx context.Context) []*ReportDependencyGraph
- func (rdgq *ReportDependencyGraphQuery) Clone() *ReportDependencyGraphQuery
- func (rdgq *ReportDependencyGraphQuery) Count(ctx context.Context) (int, error)
- func (rdgq *ReportDependencyGraphQuery) CountX(ctx context.Context) int
- func (rdgq *ReportDependencyGraphQuery) Exist(ctx context.Context) (bool, error)
- func (rdgq *ReportDependencyGraphQuery) ExistX(ctx context.Context) bool
- func (rdgq *ReportDependencyGraphQuery) First(ctx context.Context) (*ReportDependencyGraph, error)
- func (rdgq *ReportDependencyGraphQuery) FirstID(ctx context.Context) (id int, err error)
- func (rdgq *ReportDependencyGraphQuery) FirstIDX(ctx context.Context) int
- func (rdgq *ReportDependencyGraphQuery) FirstX(ctx context.Context) *ReportDependencyGraph
- func (rdgq *ReportDependencyGraphQuery) GroupBy(field string, fields ...string) *ReportDependencyGraphGroupBy
- func (rdgq *ReportDependencyGraphQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rdgq *ReportDependencyGraphQuery) IDsX(ctx context.Context) []int
- func (rdgq *ReportDependencyGraphQuery) Limit(limit int) *ReportDependencyGraphQuery
- func (rdgq *ReportDependencyGraphQuery) Offset(offset int) *ReportDependencyGraphQuery
- func (rdgq *ReportDependencyGraphQuery) Only(ctx context.Context) (*ReportDependencyGraph, error)
- func (rdgq *ReportDependencyGraphQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rdgq *ReportDependencyGraphQuery) OnlyIDX(ctx context.Context) int
- func (rdgq *ReportDependencyGraphQuery) OnlyX(ctx context.Context) *ReportDependencyGraph
- func (rdgq *ReportDependencyGraphQuery) Order(o ...reportdependencygraph.OrderOption) *ReportDependencyGraphQuery
- func (rdgq *ReportDependencyGraphQuery) Select(fields ...string) *ReportDependencyGraphSelect
- func (rdgq *ReportDependencyGraphQuery) Unique(unique bool) *ReportDependencyGraphQuery
- func (rdgq *ReportDependencyGraphQuery) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphQuery
- type ReportDependencyGraphSelect
- func (rdgs *ReportDependencyGraphSelect) Aggregate(fns ...AggregateFunc) *ReportDependencyGraphSelect
- func (s *ReportDependencyGraphSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportDependencyGraphSelect) BoolX(ctx context.Context) bool
- func (s *ReportDependencyGraphSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportDependencyGraphSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportDependencyGraphSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportDependencyGraphSelect) Float64X(ctx context.Context) float64
- func (s *ReportDependencyGraphSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportDependencyGraphSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportDependencyGraphSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportDependencyGraphSelect) IntX(ctx context.Context) int
- func (s *ReportDependencyGraphSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportDependencyGraphSelect) IntsX(ctx context.Context) []int
- func (rdgs *ReportDependencyGraphSelect) Scan(ctx context.Context, v any) error
- func (s *ReportDependencyGraphSelect) ScanX(ctx context.Context, v any)
- func (s *ReportDependencyGraphSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportDependencyGraphSelect) StringX(ctx context.Context) string
- func (s *ReportDependencyGraphSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportDependencyGraphSelect) StringsX(ctx context.Context) []string
- type ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) AddDepth(i int) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) ClearCreatedAt() *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) ClearDependencyType() *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) ClearUpdatedAt() *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) ClearVersionConstraint() *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) Exec(ctx context.Context) error
- func (rdgu *ReportDependencyGraphUpdate) ExecX(ctx context.Context)
- func (rdgu *ReportDependencyGraphUpdate) Mutation() *ReportDependencyGraphMutation
- func (rdgu *ReportDependencyGraphUpdate) Save(ctx context.Context) (int, error)
- func (rdgu *ReportDependencyGraphUpdate) SaveX(ctx context.Context) int
- func (rdgu *ReportDependencyGraphUpdate) SetCreatedAt(t time.Time) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetDependencyType(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetDepth(i int) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetFromPackageEcosystem(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetFromPackageID(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetFromPackageName(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetFromPackageVersion(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetIsDirect(b bool) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetIsRootEdge(b bool) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetManifestID(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableCreatedAt(t *time.Time) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableDependencyType(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableDepth(i *int) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageEcosystem(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageID(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageName(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableFromPackageVersion(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableIsDirect(b *bool) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableIsRootEdge(b *bool) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableManifestID(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageEcosystem(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageID(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageName(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableToPackageVersion(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetNillableVersionConstraint(s *string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetToPackageEcosystem(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetToPackageID(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetToPackageName(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetToPackageVersion(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetUpdatedAt(t time.Time) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) SetVersionConstraint(s string) *ReportDependencyGraphUpdate
- func (rdgu *ReportDependencyGraphUpdate) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphUpdate
- type ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) AddDepth(i int) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) ClearCreatedAt() *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) ClearDependencyType() *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) ClearUpdatedAt() *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) ClearVersionConstraint() *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) Exec(ctx context.Context) error
- func (rdguo *ReportDependencyGraphUpdateOne) ExecX(ctx context.Context)
- func (rdguo *ReportDependencyGraphUpdateOne) Mutation() *ReportDependencyGraphMutation
- func (rdguo *ReportDependencyGraphUpdateOne) Save(ctx context.Context) (*ReportDependencyGraph, error)
- func (rdguo *ReportDependencyGraphUpdateOne) SaveX(ctx context.Context) *ReportDependencyGraph
- func (rdguo *ReportDependencyGraphUpdateOne) Select(field string, fields ...string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetCreatedAt(t time.Time) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetDependencyType(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetDepth(i int) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageEcosystem(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageID(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageName(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageVersion(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetIsDirect(b bool) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetIsRootEdge(b bool) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetManifestID(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableDependencyType(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableDepth(i *int) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageEcosystem(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageID(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageName(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableFromPackageVersion(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableIsDirect(b *bool) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableIsRootEdge(b *bool) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableManifestID(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageEcosystem(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageID(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageName(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableToPackageVersion(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetNillableVersionConstraint(s *string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageEcosystem(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageID(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageName(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageVersion(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetUpdatedAt(t time.Time) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) SetVersionConstraint(s string) *ReportDependencyGraphUpdateOne
- func (rdguo *ReportDependencyGraphUpdateOne) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphUpdateOne
- type ReportDependencyGraphs
- type ReportDependencyGroupBy
- func (rdgb *ReportDependencyGroupBy) Aggregate(fns ...AggregateFunc) *ReportDependencyGroupBy
- func (s *ReportDependencyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportDependencyGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportDependencyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportDependencyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportDependencyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportDependencyGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportDependencyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportDependencyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportDependencyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportDependencyGroupBy) IntX(ctx context.Context) int
- func (s *ReportDependencyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportDependencyGroupBy) IntsX(ctx context.Context) []int
- func (rdgb *ReportDependencyGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportDependencyGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportDependencyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportDependencyGroupBy) StringX(ctx context.Context) string
- func (s *ReportDependencyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportDependencyGroupBy) StringsX(ctx context.Context) []string
- type ReportDependencyMutation
- func (m *ReportDependencyMutation) AddDepth(i int)
- func (m *ReportDependencyMutation) AddField(name string, value ent.Value) error
- func (m *ReportDependencyMutation) AddedDepth() (r int, exists bool)
- func (m *ReportDependencyMutation) AddedEdges() []string
- func (m *ReportDependencyMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportDependencyMutation) AddedFields() []string
- func (m *ReportDependencyMutation) AddedIDs(name string) []ent.Value
- func (m *ReportDependencyMutation) ClearCreatedAt()
- func (m *ReportDependencyMutation) ClearDependencyType()
- func (m *ReportDependencyMutation) ClearEdge(name string) error
- func (m *ReportDependencyMutation) ClearField(name string) error
- func (m *ReportDependencyMutation) ClearPackage()
- func (m *ReportDependencyMutation) ClearUpdatedAt()
- func (m *ReportDependencyMutation) ClearedEdges() []string
- func (m *ReportDependencyMutation) ClearedFields() []string
- func (m ReportDependencyMutation) Client() *Client
- func (m *ReportDependencyMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportDependencyMutation) CreatedAtCleared() bool
- func (m *ReportDependencyMutation) DependencyEcosystem() (r string, exists bool)
- func (m *ReportDependencyMutation) DependencyName() (r string, exists bool)
- func (m *ReportDependencyMutation) DependencyPackageID() (r string, exists bool)
- func (m *ReportDependencyMutation) DependencyType() (r string, exists bool)
- func (m *ReportDependencyMutation) DependencyTypeCleared() bool
- func (m *ReportDependencyMutation) DependencyVersion() (r string, exists bool)
- func (m *ReportDependencyMutation) Depth() (r int, exists bool)
- func (m *ReportDependencyMutation) EdgeCleared(name string) bool
- func (m *ReportDependencyMutation) Field(name string) (ent.Value, bool)
- func (m *ReportDependencyMutation) FieldCleared(name string) bool
- func (m *ReportDependencyMutation) Fields() []string
- func (m *ReportDependencyMutation) ID() (id int, exists bool)
- func (m *ReportDependencyMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportDependencyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportDependencyMutation) OldDependencyEcosystem(ctx context.Context) (v string, err error)
- func (m *ReportDependencyMutation) OldDependencyName(ctx context.Context) (v string, err error)
- func (m *ReportDependencyMutation) OldDependencyPackageID(ctx context.Context) (v string, err error)
- func (m *ReportDependencyMutation) OldDependencyType(ctx context.Context) (v string, err error)
- func (m *ReportDependencyMutation) OldDependencyVersion(ctx context.Context) (v string, err error)
- func (m *ReportDependencyMutation) OldDepth(ctx context.Context) (v int, err error)
- func (m *ReportDependencyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportDependencyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportDependencyMutation) Op() Op
- func (m *ReportDependencyMutation) PackageCleared() bool
- func (m *ReportDependencyMutation) PackageID() (id int, exists bool)
- func (m *ReportDependencyMutation) PackageIDs() (ids []int)
- func (m *ReportDependencyMutation) RemovedEdges() []string
- func (m *ReportDependencyMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportDependencyMutation) ResetCreatedAt()
- func (m *ReportDependencyMutation) ResetDependencyEcosystem()
- func (m *ReportDependencyMutation) ResetDependencyName()
- func (m *ReportDependencyMutation) ResetDependencyPackageID()
- func (m *ReportDependencyMutation) ResetDependencyType()
- func (m *ReportDependencyMutation) ResetDependencyVersion()
- func (m *ReportDependencyMutation) ResetDepth()
- func (m *ReportDependencyMutation) ResetEdge(name string) error
- func (m *ReportDependencyMutation) ResetField(name string) error
- func (m *ReportDependencyMutation) ResetPackage()
- func (m *ReportDependencyMutation) ResetUpdatedAt()
- func (m *ReportDependencyMutation) SetCreatedAt(t time.Time)
- func (m *ReportDependencyMutation) SetDependencyEcosystem(s string)
- func (m *ReportDependencyMutation) SetDependencyName(s string)
- func (m *ReportDependencyMutation) SetDependencyPackageID(s string)
- func (m *ReportDependencyMutation) SetDependencyType(s string)
- func (m *ReportDependencyMutation) SetDependencyVersion(s string)
- func (m *ReportDependencyMutation) SetDepth(i int)
- func (m *ReportDependencyMutation) SetField(name string, value ent.Value) error
- func (m *ReportDependencyMutation) SetOp(op Op)
- func (m *ReportDependencyMutation) SetPackageID(id int)
- func (m *ReportDependencyMutation) SetUpdatedAt(t time.Time)
- func (m ReportDependencyMutation) Tx() (*Tx, error)
- func (m *ReportDependencyMutation) Type() string
- func (m *ReportDependencyMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportDependencyMutation) UpdatedAtCleared() bool
- func (m *ReportDependencyMutation) Where(ps ...predicate.ReportDependency)
- func (m *ReportDependencyMutation) WhereP(ps ...func(*sql.Selector))
- type ReportDependencyQuery
- func (rdq *ReportDependencyQuery) Aggregate(fns ...AggregateFunc) *ReportDependencySelect
- func (rdq *ReportDependencyQuery) All(ctx context.Context) ([]*ReportDependency, error)
- func (rdq *ReportDependencyQuery) AllX(ctx context.Context) []*ReportDependency
- func (rdq *ReportDependencyQuery) Clone() *ReportDependencyQuery
- func (rdq *ReportDependencyQuery) Count(ctx context.Context) (int, error)
- func (rdq *ReportDependencyQuery) CountX(ctx context.Context) int
- func (rdq *ReportDependencyQuery) Exist(ctx context.Context) (bool, error)
- func (rdq *ReportDependencyQuery) ExistX(ctx context.Context) bool
- func (rdq *ReportDependencyQuery) First(ctx context.Context) (*ReportDependency, error)
- func (rdq *ReportDependencyQuery) FirstID(ctx context.Context) (id int, err error)
- func (rdq *ReportDependencyQuery) FirstIDX(ctx context.Context) int
- func (rdq *ReportDependencyQuery) FirstX(ctx context.Context) *ReportDependency
- func (rdq *ReportDependencyQuery) GroupBy(field string, fields ...string) *ReportDependencyGroupBy
- func (rdq *ReportDependencyQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rdq *ReportDependencyQuery) IDsX(ctx context.Context) []int
- func (rdq *ReportDependencyQuery) Limit(limit int) *ReportDependencyQuery
- func (rdq *ReportDependencyQuery) Offset(offset int) *ReportDependencyQuery
- func (rdq *ReportDependencyQuery) Only(ctx context.Context) (*ReportDependency, error)
- func (rdq *ReportDependencyQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rdq *ReportDependencyQuery) OnlyIDX(ctx context.Context) int
- func (rdq *ReportDependencyQuery) OnlyX(ctx context.Context) *ReportDependency
- func (rdq *ReportDependencyQuery) Order(o ...reportdependency.OrderOption) *ReportDependencyQuery
- func (rdq *ReportDependencyQuery) QueryPackage() *ReportPackageQuery
- func (rdq *ReportDependencyQuery) Select(fields ...string) *ReportDependencySelect
- func (rdq *ReportDependencyQuery) Unique(unique bool) *ReportDependencyQuery
- func (rdq *ReportDependencyQuery) Where(ps ...predicate.ReportDependency) *ReportDependencyQuery
- func (rdq *ReportDependencyQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportDependencyQuery
- type ReportDependencySelect
- func (rds *ReportDependencySelect) Aggregate(fns ...AggregateFunc) *ReportDependencySelect
- func (s *ReportDependencySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportDependencySelect) BoolX(ctx context.Context) bool
- func (s *ReportDependencySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportDependencySelect) BoolsX(ctx context.Context) []bool
- func (s *ReportDependencySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportDependencySelect) Float64X(ctx context.Context) float64
- func (s *ReportDependencySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportDependencySelect) Float64sX(ctx context.Context) []float64
- func (s *ReportDependencySelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportDependencySelect) IntX(ctx context.Context) int
- func (s *ReportDependencySelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportDependencySelect) IntsX(ctx context.Context) []int
- func (rds *ReportDependencySelect) Scan(ctx context.Context, v any) error
- func (s *ReportDependencySelect) ScanX(ctx context.Context, v any)
- func (s *ReportDependencySelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportDependencySelect) StringX(ctx context.Context) string
- func (s *ReportDependencySelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportDependencySelect) StringsX(ctx context.Context) []string
- type ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) AddDepth(i int) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) ClearCreatedAt() *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) ClearDependencyType() *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) ClearPackage() *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) ClearUpdatedAt() *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) Exec(ctx context.Context) error
- func (rdu *ReportDependencyUpdate) ExecX(ctx context.Context)
- func (rdu *ReportDependencyUpdate) Mutation() *ReportDependencyMutation
- func (rdu *ReportDependencyUpdate) Save(ctx context.Context) (int, error)
- func (rdu *ReportDependencyUpdate) SaveX(ctx context.Context) int
- func (rdu *ReportDependencyUpdate) SetCreatedAt(t time.Time) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetDependencyEcosystem(s string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetDependencyName(s string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetDependencyPackageID(s string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetDependencyType(s string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetDependencyVersion(s string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetDepth(i int) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableCreatedAt(t *time.Time) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableDependencyEcosystem(s *string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableDependencyName(s *string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableDependencyPackageID(s *string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableDependencyType(s *string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableDependencyVersion(s *string) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableDepth(i *int) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillablePackageID(id *int) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetNillableUpdatedAt(t *time.Time) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetPackage(r *ReportPackage) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetPackageID(id int) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) SetUpdatedAt(t time.Time) *ReportDependencyUpdate
- func (rdu *ReportDependencyUpdate) Where(ps ...predicate.ReportDependency) *ReportDependencyUpdate
- type ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) AddDepth(i int) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) ClearCreatedAt() *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) ClearDependencyType() *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) ClearPackage() *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) ClearUpdatedAt() *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) Exec(ctx context.Context) error
- func (rduo *ReportDependencyUpdateOne) ExecX(ctx context.Context)
- func (rduo *ReportDependencyUpdateOne) Mutation() *ReportDependencyMutation
- func (rduo *ReportDependencyUpdateOne) Save(ctx context.Context) (*ReportDependency, error)
- func (rduo *ReportDependencyUpdateOne) SaveX(ctx context.Context) *ReportDependency
- func (rduo *ReportDependencyUpdateOne) Select(field string, fields ...string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetCreatedAt(t time.Time) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetDependencyEcosystem(s string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetDependencyName(s string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetDependencyPackageID(s string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetDependencyType(s string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetDependencyVersion(s string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetDepth(i int) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableDependencyEcosystem(s *string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableDependencyName(s *string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableDependencyPackageID(s *string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableDependencyType(s *string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableDependencyVersion(s *string) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableDepth(i *int) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillablePackageID(id *int) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetPackage(r *ReportPackage) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetPackageID(id int) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) SetUpdatedAt(t time.Time) *ReportDependencyUpdateOne
- func (rduo *ReportDependencyUpdateOne) Where(ps ...predicate.ReportDependency) *ReportDependencyUpdateOne
- type ReportLicense
- type ReportLicenseClient
- func (c *ReportLicenseClient) Create() *ReportLicenseCreate
- func (c *ReportLicenseClient) CreateBulk(builders ...*ReportLicenseCreate) *ReportLicenseCreateBulk
- func (c *ReportLicenseClient) Delete() *ReportLicenseDelete
- func (c *ReportLicenseClient) DeleteOne(rl *ReportLicense) *ReportLicenseDeleteOne
- func (c *ReportLicenseClient) DeleteOneID(id int) *ReportLicenseDeleteOne
- func (c *ReportLicenseClient) Get(ctx context.Context, id int) (*ReportLicense, error)
- func (c *ReportLicenseClient) GetX(ctx context.Context, id int) *ReportLicense
- func (c *ReportLicenseClient) Hooks() []Hook
- func (c *ReportLicenseClient) Intercept(interceptors ...Interceptor)
- func (c *ReportLicenseClient) Interceptors() []Interceptor
- func (c *ReportLicenseClient) MapCreateBulk(slice any, setFunc func(*ReportLicenseCreate, int)) *ReportLicenseCreateBulk
- func (c *ReportLicenseClient) Query() *ReportLicenseQuery
- func (c *ReportLicenseClient) QueryPackage(rl *ReportLicense) *ReportPackageQuery
- func (c *ReportLicenseClient) Update() *ReportLicenseUpdate
- func (c *ReportLicenseClient) UpdateOne(rl *ReportLicense) *ReportLicenseUpdateOne
- func (c *ReportLicenseClient) UpdateOneID(id int) *ReportLicenseUpdateOne
- func (c *ReportLicenseClient) Use(hooks ...Hook)
- type ReportLicenseCreate
- func (rlc *ReportLicenseCreate) Exec(ctx context.Context) error
- func (rlc *ReportLicenseCreate) ExecX(ctx context.Context)
- func (rlc *ReportLicenseCreate) Mutation() *ReportLicenseMutation
- func (rlc *ReportLicenseCreate) Save(ctx context.Context) (*ReportLicense, error)
- func (rlc *ReportLicenseCreate) SaveX(ctx context.Context) *ReportLicense
- func (rlc *ReportLicenseCreate) SetCreatedAt(t time.Time) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetLicenseID(s string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetName(s string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetNillableCreatedAt(t *time.Time) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetNillableName(s *string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetNillablePackageID(id *int) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetNillableSpdxID(s *string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetNillableURL(s *string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetNillableUpdatedAt(t *time.Time) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetPackage(r *ReportPackage) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetPackageID(id int) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetSpdxID(s string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetURL(s string) *ReportLicenseCreate
- func (rlc *ReportLicenseCreate) SetUpdatedAt(t time.Time) *ReportLicenseCreate
- type ReportLicenseCreateBulk
- func (rlcb *ReportLicenseCreateBulk) Exec(ctx context.Context) error
- func (rlcb *ReportLicenseCreateBulk) ExecX(ctx context.Context)
- func (rlcb *ReportLicenseCreateBulk) Save(ctx context.Context) ([]*ReportLicense, error)
- func (rlcb *ReportLicenseCreateBulk) SaveX(ctx context.Context) []*ReportLicense
- type ReportLicenseDelete
- type ReportLicenseDeleteOne
- type ReportLicenseEdges
- type ReportLicenseGroupBy
- func (rlgb *ReportLicenseGroupBy) Aggregate(fns ...AggregateFunc) *ReportLicenseGroupBy
- func (s *ReportLicenseGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportLicenseGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportLicenseGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportLicenseGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportLicenseGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportLicenseGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportLicenseGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportLicenseGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportLicenseGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportLicenseGroupBy) IntX(ctx context.Context) int
- func (s *ReportLicenseGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportLicenseGroupBy) IntsX(ctx context.Context) []int
- func (rlgb *ReportLicenseGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportLicenseGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportLicenseGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportLicenseGroupBy) StringX(ctx context.Context) string
- func (s *ReportLicenseGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportLicenseGroupBy) StringsX(ctx context.Context) []string
- type ReportLicenseMutation
- func (m *ReportLicenseMutation) AddField(name string, value ent.Value) error
- func (m *ReportLicenseMutation) AddedEdges() []string
- func (m *ReportLicenseMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportLicenseMutation) AddedFields() []string
- func (m *ReportLicenseMutation) AddedIDs(name string) []ent.Value
- func (m *ReportLicenseMutation) ClearCreatedAt()
- func (m *ReportLicenseMutation) ClearEdge(name string) error
- func (m *ReportLicenseMutation) ClearField(name string) error
- func (m *ReportLicenseMutation) ClearName()
- func (m *ReportLicenseMutation) ClearPackage()
- func (m *ReportLicenseMutation) ClearSpdxID()
- func (m *ReportLicenseMutation) ClearURL()
- func (m *ReportLicenseMutation) ClearUpdatedAt()
- func (m *ReportLicenseMutation) ClearedEdges() []string
- func (m *ReportLicenseMutation) ClearedFields() []string
- func (m ReportLicenseMutation) Client() *Client
- func (m *ReportLicenseMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportLicenseMutation) CreatedAtCleared() bool
- func (m *ReportLicenseMutation) EdgeCleared(name string) bool
- func (m *ReportLicenseMutation) Field(name string) (ent.Value, bool)
- func (m *ReportLicenseMutation) FieldCleared(name string) bool
- func (m *ReportLicenseMutation) Fields() []string
- func (m *ReportLicenseMutation) ID() (id int, exists bool)
- func (m *ReportLicenseMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportLicenseMutation) LicenseID() (r string, exists bool)
- func (m *ReportLicenseMutation) Name() (r string, exists bool)
- func (m *ReportLicenseMutation) NameCleared() bool
- func (m *ReportLicenseMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportLicenseMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportLicenseMutation) OldLicenseID(ctx context.Context) (v string, err error)
- func (m *ReportLicenseMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ReportLicenseMutation) OldSpdxID(ctx context.Context) (v string, err error)
- func (m *ReportLicenseMutation) OldURL(ctx context.Context) (v string, err error)
- func (m *ReportLicenseMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportLicenseMutation) Op() Op
- func (m *ReportLicenseMutation) PackageCleared() bool
- func (m *ReportLicenseMutation) PackageID() (id int, exists bool)
- func (m *ReportLicenseMutation) PackageIDs() (ids []int)
- func (m *ReportLicenseMutation) RemovedEdges() []string
- func (m *ReportLicenseMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportLicenseMutation) ResetCreatedAt()
- func (m *ReportLicenseMutation) ResetEdge(name string) error
- func (m *ReportLicenseMutation) ResetField(name string) error
- func (m *ReportLicenseMutation) ResetLicenseID()
- func (m *ReportLicenseMutation) ResetName()
- func (m *ReportLicenseMutation) ResetPackage()
- func (m *ReportLicenseMutation) ResetSpdxID()
- func (m *ReportLicenseMutation) ResetURL()
- func (m *ReportLicenseMutation) ResetUpdatedAt()
- func (m *ReportLicenseMutation) SetCreatedAt(t time.Time)
- func (m *ReportLicenseMutation) SetField(name string, value ent.Value) error
- func (m *ReportLicenseMutation) SetLicenseID(s string)
- func (m *ReportLicenseMutation) SetName(s string)
- func (m *ReportLicenseMutation) SetOp(op Op)
- func (m *ReportLicenseMutation) SetPackageID(id int)
- func (m *ReportLicenseMutation) SetSpdxID(s string)
- func (m *ReportLicenseMutation) SetURL(s string)
- func (m *ReportLicenseMutation) SetUpdatedAt(t time.Time)
- func (m *ReportLicenseMutation) SpdxID() (r string, exists bool)
- func (m *ReportLicenseMutation) SpdxIDCleared() bool
- func (m ReportLicenseMutation) Tx() (*Tx, error)
- func (m *ReportLicenseMutation) Type() string
- func (m *ReportLicenseMutation) URL() (r string, exists bool)
- func (m *ReportLicenseMutation) URLCleared() bool
- func (m *ReportLicenseMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportLicenseMutation) UpdatedAtCleared() bool
- func (m *ReportLicenseMutation) Where(ps ...predicate.ReportLicense)
- func (m *ReportLicenseMutation) WhereP(ps ...func(*sql.Selector))
- type ReportLicenseQuery
- func (rlq *ReportLicenseQuery) Aggregate(fns ...AggregateFunc) *ReportLicenseSelect
- func (rlq *ReportLicenseQuery) All(ctx context.Context) ([]*ReportLicense, error)
- func (rlq *ReportLicenseQuery) AllX(ctx context.Context) []*ReportLicense
- func (rlq *ReportLicenseQuery) Clone() *ReportLicenseQuery
- func (rlq *ReportLicenseQuery) Count(ctx context.Context) (int, error)
- func (rlq *ReportLicenseQuery) CountX(ctx context.Context) int
- func (rlq *ReportLicenseQuery) Exist(ctx context.Context) (bool, error)
- func (rlq *ReportLicenseQuery) ExistX(ctx context.Context) bool
- func (rlq *ReportLicenseQuery) First(ctx context.Context) (*ReportLicense, error)
- func (rlq *ReportLicenseQuery) FirstID(ctx context.Context) (id int, err error)
- func (rlq *ReportLicenseQuery) FirstIDX(ctx context.Context) int
- func (rlq *ReportLicenseQuery) FirstX(ctx context.Context) *ReportLicense
- func (rlq *ReportLicenseQuery) GroupBy(field string, fields ...string) *ReportLicenseGroupBy
- func (rlq *ReportLicenseQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rlq *ReportLicenseQuery) IDsX(ctx context.Context) []int
- func (rlq *ReportLicenseQuery) Limit(limit int) *ReportLicenseQuery
- func (rlq *ReportLicenseQuery) Offset(offset int) *ReportLicenseQuery
- func (rlq *ReportLicenseQuery) Only(ctx context.Context) (*ReportLicense, error)
- func (rlq *ReportLicenseQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rlq *ReportLicenseQuery) OnlyIDX(ctx context.Context) int
- func (rlq *ReportLicenseQuery) OnlyX(ctx context.Context) *ReportLicense
- func (rlq *ReportLicenseQuery) Order(o ...reportlicense.OrderOption) *ReportLicenseQuery
- func (rlq *ReportLicenseQuery) QueryPackage() *ReportPackageQuery
- func (rlq *ReportLicenseQuery) Select(fields ...string) *ReportLicenseSelect
- func (rlq *ReportLicenseQuery) Unique(unique bool) *ReportLicenseQuery
- func (rlq *ReportLicenseQuery) Where(ps ...predicate.ReportLicense) *ReportLicenseQuery
- func (rlq *ReportLicenseQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportLicenseQuery
- type ReportLicenseSelect
- func (rls *ReportLicenseSelect) Aggregate(fns ...AggregateFunc) *ReportLicenseSelect
- func (s *ReportLicenseSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportLicenseSelect) BoolX(ctx context.Context) bool
- func (s *ReportLicenseSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportLicenseSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportLicenseSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportLicenseSelect) Float64X(ctx context.Context) float64
- func (s *ReportLicenseSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportLicenseSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportLicenseSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportLicenseSelect) IntX(ctx context.Context) int
- func (s *ReportLicenseSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportLicenseSelect) IntsX(ctx context.Context) []int
- func (rls *ReportLicenseSelect) Scan(ctx context.Context, v any) error
- func (s *ReportLicenseSelect) ScanX(ctx context.Context, v any)
- func (s *ReportLicenseSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportLicenseSelect) StringX(ctx context.Context) string
- func (s *ReportLicenseSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportLicenseSelect) StringsX(ctx context.Context) []string
- type ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) ClearCreatedAt() *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) ClearName() *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) ClearPackage() *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) ClearSpdxID() *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) ClearURL() *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) ClearUpdatedAt() *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) Exec(ctx context.Context) error
- func (rlu *ReportLicenseUpdate) ExecX(ctx context.Context)
- func (rlu *ReportLicenseUpdate) Mutation() *ReportLicenseMutation
- func (rlu *ReportLicenseUpdate) Save(ctx context.Context) (int, error)
- func (rlu *ReportLicenseUpdate) SaveX(ctx context.Context) int
- func (rlu *ReportLicenseUpdate) SetCreatedAt(t time.Time) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetLicenseID(s string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetName(s string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillableCreatedAt(t *time.Time) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillableLicenseID(s *string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillableName(s *string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillablePackageID(id *int) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillableSpdxID(s *string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillableURL(s *string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetNillableUpdatedAt(t *time.Time) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetPackage(r *ReportPackage) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetPackageID(id int) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetSpdxID(s string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetURL(s string) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) SetUpdatedAt(t time.Time) *ReportLicenseUpdate
- func (rlu *ReportLicenseUpdate) Where(ps ...predicate.ReportLicense) *ReportLicenseUpdate
- type ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) ClearCreatedAt() *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) ClearName() *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) ClearPackage() *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) ClearSpdxID() *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) ClearURL() *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) ClearUpdatedAt() *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) Exec(ctx context.Context) error
- func (rluo *ReportLicenseUpdateOne) ExecX(ctx context.Context)
- func (rluo *ReportLicenseUpdateOne) Mutation() *ReportLicenseMutation
- func (rluo *ReportLicenseUpdateOne) Save(ctx context.Context) (*ReportLicense, error)
- func (rluo *ReportLicenseUpdateOne) SaveX(ctx context.Context) *ReportLicense
- func (rluo *ReportLicenseUpdateOne) Select(field string, fields ...string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetCreatedAt(t time.Time) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetLicenseID(s string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetName(s string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillableLicenseID(s *string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillableName(s *string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillablePackageID(id *int) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillableSpdxID(s *string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillableURL(s *string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetPackage(r *ReportPackage) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetPackageID(id int) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetSpdxID(s string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetURL(s string) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) SetUpdatedAt(t time.Time) *ReportLicenseUpdateOne
- func (rluo *ReportLicenseUpdateOne) Where(ps ...predicate.ReportLicense) *ReportLicenseUpdateOne
- type ReportLicenses
- type ReportMalware
- type ReportMalwareClient
- func (c *ReportMalwareClient) Create() *ReportMalwareCreate
- func (c *ReportMalwareClient) CreateBulk(builders ...*ReportMalwareCreate) *ReportMalwareCreateBulk
- func (c *ReportMalwareClient) Delete() *ReportMalwareDelete
- func (c *ReportMalwareClient) DeleteOne(rm *ReportMalware) *ReportMalwareDeleteOne
- func (c *ReportMalwareClient) DeleteOneID(id int) *ReportMalwareDeleteOne
- func (c *ReportMalwareClient) Get(ctx context.Context, id int) (*ReportMalware, error)
- func (c *ReportMalwareClient) GetX(ctx context.Context, id int) *ReportMalware
- func (c *ReportMalwareClient) Hooks() []Hook
- func (c *ReportMalwareClient) Intercept(interceptors ...Interceptor)
- func (c *ReportMalwareClient) Interceptors() []Interceptor
- func (c *ReportMalwareClient) MapCreateBulk(slice any, setFunc func(*ReportMalwareCreate, int)) *ReportMalwareCreateBulk
- func (c *ReportMalwareClient) Query() *ReportMalwareQuery
- func (c *ReportMalwareClient) QueryPackage(rm *ReportMalware) *ReportPackageQuery
- func (c *ReportMalwareClient) Update() *ReportMalwareUpdate
- func (c *ReportMalwareClient) UpdateOne(rm *ReportMalware) *ReportMalwareUpdateOne
- func (c *ReportMalwareClient) UpdateOneID(id int) *ReportMalwareUpdateOne
- func (c *ReportMalwareClient) Use(hooks ...Hook)
- type ReportMalwareCreate
- func (rmc *ReportMalwareCreate) Exec(ctx context.Context) error
- func (rmc *ReportMalwareCreate) ExecX(ctx context.Context)
- func (rmc *ReportMalwareCreate) Mutation() *ReportMalwareMutation
- func (rmc *ReportMalwareCreate) Save(ctx context.Context) (*ReportMalware, error)
- func (rmc *ReportMalwareCreate) SaveX(ctx context.Context) *ReportMalware
- func (rmc *ReportMalwareCreate) SetAnalysisID(s string) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetConfidence(s string) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetCreatedAt(t time.Time) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetIsMalware(b bool) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetIsSuspicious(b bool) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetNillableConfidence(s *string) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetNillableCreatedAt(t *time.Time) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetNillableIsMalware(b *bool) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetNillableIsSuspicious(b *bool) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetNillablePackageID(id *int) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetNillableUpdatedAt(t *time.Time) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetPackage(r *ReportPackage) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetPackageID(id int) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetReport(m map[string]interface{}) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetUpdatedAt(t time.Time) *ReportMalwareCreate
- func (rmc *ReportMalwareCreate) SetVerificationRecord(m map[string]interface{}) *ReportMalwareCreate
- type ReportMalwareCreateBulk
- func (rmcb *ReportMalwareCreateBulk) Exec(ctx context.Context) error
- func (rmcb *ReportMalwareCreateBulk) ExecX(ctx context.Context)
- func (rmcb *ReportMalwareCreateBulk) Save(ctx context.Context) ([]*ReportMalware, error)
- func (rmcb *ReportMalwareCreateBulk) SaveX(ctx context.Context) []*ReportMalware
- type ReportMalwareDelete
- type ReportMalwareDeleteOne
- type ReportMalwareEdges
- type ReportMalwareGroupBy
- func (rmgb *ReportMalwareGroupBy) Aggregate(fns ...AggregateFunc) *ReportMalwareGroupBy
- func (s *ReportMalwareGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportMalwareGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportMalwareGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportMalwareGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportMalwareGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportMalwareGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportMalwareGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportMalwareGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportMalwareGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportMalwareGroupBy) IntX(ctx context.Context) int
- func (s *ReportMalwareGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportMalwareGroupBy) IntsX(ctx context.Context) []int
- func (rmgb *ReportMalwareGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportMalwareGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportMalwareGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportMalwareGroupBy) StringX(ctx context.Context) string
- func (s *ReportMalwareGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportMalwareGroupBy) StringsX(ctx context.Context) []string
- type ReportMalwareMutation
- func (m *ReportMalwareMutation) AddField(name string, value ent.Value) error
- func (m *ReportMalwareMutation) AddedEdges() []string
- func (m *ReportMalwareMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportMalwareMutation) AddedFields() []string
- func (m *ReportMalwareMutation) AddedIDs(name string) []ent.Value
- func (m *ReportMalwareMutation) AnalysisID() (r string, exists bool)
- func (m *ReportMalwareMutation) ClearConfidence()
- func (m *ReportMalwareMutation) ClearCreatedAt()
- func (m *ReportMalwareMutation) ClearEdge(name string) error
- func (m *ReportMalwareMutation) ClearField(name string) error
- func (m *ReportMalwareMutation) ClearPackage()
- func (m *ReportMalwareMutation) ClearReport()
- func (m *ReportMalwareMutation) ClearUpdatedAt()
- func (m *ReportMalwareMutation) ClearVerificationRecord()
- func (m *ReportMalwareMutation) ClearedEdges() []string
- func (m *ReportMalwareMutation) ClearedFields() []string
- func (m ReportMalwareMutation) Client() *Client
- func (m *ReportMalwareMutation) Confidence() (r string, exists bool)
- func (m *ReportMalwareMutation) ConfidenceCleared() bool
- func (m *ReportMalwareMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportMalwareMutation) CreatedAtCleared() bool
- func (m *ReportMalwareMutation) EdgeCleared(name string) bool
- func (m *ReportMalwareMutation) Field(name string) (ent.Value, bool)
- func (m *ReportMalwareMutation) FieldCleared(name string) bool
- func (m *ReportMalwareMutation) Fields() []string
- func (m *ReportMalwareMutation) ID() (id int, exists bool)
- func (m *ReportMalwareMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportMalwareMutation) IsMalware() (r bool, exists bool)
- func (m *ReportMalwareMutation) IsSuspicious() (r bool, exists bool)
- func (m *ReportMalwareMutation) OldAnalysisID(ctx context.Context) (v string, err error)
- func (m *ReportMalwareMutation) OldConfidence(ctx context.Context) (v string, err error)
- func (m *ReportMalwareMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportMalwareMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportMalwareMutation) OldIsMalware(ctx context.Context) (v bool, err error)
- func (m *ReportMalwareMutation) OldIsSuspicious(ctx context.Context) (v bool, err error)
- func (m *ReportMalwareMutation) OldReport(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ReportMalwareMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportMalwareMutation) OldVerificationRecord(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ReportMalwareMutation) Op() Op
- func (m *ReportMalwareMutation) PackageCleared() bool
- func (m *ReportMalwareMutation) PackageID() (id int, exists bool)
- func (m *ReportMalwareMutation) PackageIDs() (ids []int)
- func (m *ReportMalwareMutation) RemovedEdges() []string
- func (m *ReportMalwareMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportMalwareMutation) Report() (r map[string]interface{}, exists bool)
- func (m *ReportMalwareMutation) ReportCleared() bool
- func (m *ReportMalwareMutation) ResetAnalysisID()
- func (m *ReportMalwareMutation) ResetConfidence()
- func (m *ReportMalwareMutation) ResetCreatedAt()
- func (m *ReportMalwareMutation) ResetEdge(name string) error
- func (m *ReportMalwareMutation) ResetField(name string) error
- func (m *ReportMalwareMutation) ResetIsMalware()
- func (m *ReportMalwareMutation) ResetIsSuspicious()
- func (m *ReportMalwareMutation) ResetPackage()
- func (m *ReportMalwareMutation) ResetReport()
- func (m *ReportMalwareMutation) ResetUpdatedAt()
- func (m *ReportMalwareMutation) ResetVerificationRecord()
- func (m *ReportMalwareMutation) SetAnalysisID(s string)
- func (m *ReportMalwareMutation) SetConfidence(s string)
- func (m *ReportMalwareMutation) SetCreatedAt(t time.Time)
- func (m *ReportMalwareMutation) SetField(name string, value ent.Value) error
- func (m *ReportMalwareMutation) SetIsMalware(b bool)
- func (m *ReportMalwareMutation) SetIsSuspicious(b bool)
- func (m *ReportMalwareMutation) SetOp(op Op)
- func (m *ReportMalwareMutation) SetPackageID(id int)
- func (m *ReportMalwareMutation) SetReport(value map[string]interface{})
- func (m *ReportMalwareMutation) SetUpdatedAt(t time.Time)
- func (m *ReportMalwareMutation) SetVerificationRecord(value map[string]interface{})
- func (m ReportMalwareMutation) Tx() (*Tx, error)
- func (m *ReportMalwareMutation) Type() string
- func (m *ReportMalwareMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportMalwareMutation) UpdatedAtCleared() bool
- func (m *ReportMalwareMutation) VerificationRecord() (r map[string]interface{}, exists bool)
- func (m *ReportMalwareMutation) VerificationRecordCleared() bool
- func (m *ReportMalwareMutation) Where(ps ...predicate.ReportMalware)
- func (m *ReportMalwareMutation) WhereP(ps ...func(*sql.Selector))
- type ReportMalwareQuery
- func (rmq *ReportMalwareQuery) Aggregate(fns ...AggregateFunc) *ReportMalwareSelect
- func (rmq *ReportMalwareQuery) All(ctx context.Context) ([]*ReportMalware, error)
- func (rmq *ReportMalwareQuery) AllX(ctx context.Context) []*ReportMalware
- func (rmq *ReportMalwareQuery) Clone() *ReportMalwareQuery
- func (rmq *ReportMalwareQuery) Count(ctx context.Context) (int, error)
- func (rmq *ReportMalwareQuery) CountX(ctx context.Context) int
- func (rmq *ReportMalwareQuery) Exist(ctx context.Context) (bool, error)
- func (rmq *ReportMalwareQuery) ExistX(ctx context.Context) bool
- func (rmq *ReportMalwareQuery) First(ctx context.Context) (*ReportMalware, error)
- func (rmq *ReportMalwareQuery) FirstID(ctx context.Context) (id int, err error)
- func (rmq *ReportMalwareQuery) FirstIDX(ctx context.Context) int
- func (rmq *ReportMalwareQuery) FirstX(ctx context.Context) *ReportMalware
- func (rmq *ReportMalwareQuery) GroupBy(field string, fields ...string) *ReportMalwareGroupBy
- func (rmq *ReportMalwareQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rmq *ReportMalwareQuery) IDsX(ctx context.Context) []int
- func (rmq *ReportMalwareQuery) Limit(limit int) *ReportMalwareQuery
- func (rmq *ReportMalwareQuery) Offset(offset int) *ReportMalwareQuery
- func (rmq *ReportMalwareQuery) Only(ctx context.Context) (*ReportMalware, error)
- func (rmq *ReportMalwareQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rmq *ReportMalwareQuery) OnlyIDX(ctx context.Context) int
- func (rmq *ReportMalwareQuery) OnlyX(ctx context.Context) *ReportMalware
- func (rmq *ReportMalwareQuery) Order(o ...reportmalware.OrderOption) *ReportMalwareQuery
- func (rmq *ReportMalwareQuery) QueryPackage() *ReportPackageQuery
- func (rmq *ReportMalwareQuery) Select(fields ...string) *ReportMalwareSelect
- func (rmq *ReportMalwareQuery) Unique(unique bool) *ReportMalwareQuery
- func (rmq *ReportMalwareQuery) Where(ps ...predicate.ReportMalware) *ReportMalwareQuery
- func (rmq *ReportMalwareQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportMalwareQuery
- type ReportMalwareSelect
- func (rms *ReportMalwareSelect) Aggregate(fns ...AggregateFunc) *ReportMalwareSelect
- func (s *ReportMalwareSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportMalwareSelect) BoolX(ctx context.Context) bool
- func (s *ReportMalwareSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportMalwareSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportMalwareSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportMalwareSelect) Float64X(ctx context.Context) float64
- func (s *ReportMalwareSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportMalwareSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportMalwareSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportMalwareSelect) IntX(ctx context.Context) int
- func (s *ReportMalwareSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportMalwareSelect) IntsX(ctx context.Context) []int
- func (rms *ReportMalwareSelect) Scan(ctx context.Context, v any) error
- func (s *ReportMalwareSelect) ScanX(ctx context.Context, v any)
- func (s *ReportMalwareSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportMalwareSelect) StringX(ctx context.Context) string
- func (s *ReportMalwareSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportMalwareSelect) StringsX(ctx context.Context) []string
- type ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) ClearConfidence() *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) ClearCreatedAt() *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) ClearPackage() *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) ClearReport() *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) ClearUpdatedAt() *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) ClearVerificationRecord() *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) Exec(ctx context.Context) error
- func (rmu *ReportMalwareUpdate) ExecX(ctx context.Context)
- func (rmu *ReportMalwareUpdate) Mutation() *ReportMalwareMutation
- func (rmu *ReportMalwareUpdate) Save(ctx context.Context) (int, error)
- func (rmu *ReportMalwareUpdate) SaveX(ctx context.Context) int
- func (rmu *ReportMalwareUpdate) SetAnalysisID(s string) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetConfidence(s string) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetCreatedAt(t time.Time) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetIsMalware(b bool) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetIsSuspicious(b bool) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillableAnalysisID(s *string) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillableConfidence(s *string) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillableCreatedAt(t *time.Time) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillableIsMalware(b *bool) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillableIsSuspicious(b *bool) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillablePackageID(id *int) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetNillableUpdatedAt(t *time.Time) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetPackage(r *ReportPackage) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetPackageID(id int) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetReport(m map[string]interface{}) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetUpdatedAt(t time.Time) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) SetVerificationRecord(m map[string]interface{}) *ReportMalwareUpdate
- func (rmu *ReportMalwareUpdate) Where(ps ...predicate.ReportMalware) *ReportMalwareUpdate
- type ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) ClearConfidence() *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) ClearCreatedAt() *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) ClearPackage() *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) ClearReport() *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) ClearUpdatedAt() *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) ClearVerificationRecord() *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) Exec(ctx context.Context) error
- func (rmuo *ReportMalwareUpdateOne) ExecX(ctx context.Context)
- func (rmuo *ReportMalwareUpdateOne) Mutation() *ReportMalwareMutation
- func (rmuo *ReportMalwareUpdateOne) Save(ctx context.Context) (*ReportMalware, error)
- func (rmuo *ReportMalwareUpdateOne) SaveX(ctx context.Context) *ReportMalware
- func (rmuo *ReportMalwareUpdateOne) Select(field string, fields ...string) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetAnalysisID(s string) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetConfidence(s string) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetCreatedAt(t time.Time) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetIsMalware(b bool) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetIsSuspicious(b bool) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillableAnalysisID(s *string) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillableConfidence(s *string) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillableIsMalware(b *bool) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillableIsSuspicious(b *bool) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillablePackageID(id *int) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetPackage(r *ReportPackage) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetPackageID(id int) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetReport(m map[string]interface{}) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetUpdatedAt(t time.Time) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) SetVerificationRecord(m map[string]interface{}) *ReportMalwareUpdateOne
- func (rmuo *ReportMalwareUpdateOne) Where(ps ...predicate.ReportMalware) *ReportMalwareUpdateOne
- type ReportMalwares
- type ReportPackage
- func (rp *ReportPackage) QueryDependencies() *ReportDependencyQuery
- func (rp *ReportPackage) QueryLicenses() *ReportLicenseQuery
- func (rp *ReportPackage) QueryMalwareAnalysis() *ReportMalwareQuery
- func (rp *ReportPackage) QueryManifests() *ReportPackageManifestQuery
- func (rp *ReportPackage) QueryProjects() *ReportProjectQuery
- func (rp *ReportPackage) QuerySlsaProvenances() *ReportSlsaProvenanceQuery
- func (rp *ReportPackage) QueryVulnerabilities() *ReportVulnerabilityQuery
- func (rp *ReportPackage) String() string
- func (rp *ReportPackage) Unwrap() *ReportPackage
- func (rp *ReportPackage) Update() *ReportPackageUpdateOne
- func (rp *ReportPackage) Value(name string) (ent.Value, error)
- type ReportPackageClient
- func (c *ReportPackageClient) Create() *ReportPackageCreate
- func (c *ReportPackageClient) CreateBulk(builders ...*ReportPackageCreate) *ReportPackageCreateBulk
- func (c *ReportPackageClient) Delete() *ReportPackageDelete
- func (c *ReportPackageClient) DeleteOne(rp *ReportPackage) *ReportPackageDeleteOne
- func (c *ReportPackageClient) DeleteOneID(id int) *ReportPackageDeleteOne
- func (c *ReportPackageClient) Get(ctx context.Context, id int) (*ReportPackage, error)
- func (c *ReportPackageClient) GetX(ctx context.Context, id int) *ReportPackage
- func (c *ReportPackageClient) Hooks() []Hook
- func (c *ReportPackageClient) Intercept(interceptors ...Interceptor)
- func (c *ReportPackageClient) Interceptors() []Interceptor
- func (c *ReportPackageClient) MapCreateBulk(slice any, setFunc func(*ReportPackageCreate, int)) *ReportPackageCreateBulk
- func (c *ReportPackageClient) Query() *ReportPackageQuery
- func (c *ReportPackageClient) QueryDependencies(rp *ReportPackage) *ReportDependencyQuery
- func (c *ReportPackageClient) QueryLicenses(rp *ReportPackage) *ReportLicenseQuery
- func (c *ReportPackageClient) QueryMalwareAnalysis(rp *ReportPackage) *ReportMalwareQuery
- func (c *ReportPackageClient) QueryManifests(rp *ReportPackage) *ReportPackageManifestQuery
- func (c *ReportPackageClient) QueryProjects(rp *ReportPackage) *ReportProjectQuery
- func (c *ReportPackageClient) QuerySlsaProvenances(rp *ReportPackage) *ReportSlsaProvenanceQuery
- func (c *ReportPackageClient) QueryVulnerabilities(rp *ReportPackage) *ReportVulnerabilityQuery
- func (c *ReportPackageClient) Update() *ReportPackageUpdate
- func (c *ReportPackageClient) UpdateOne(rp *ReportPackage) *ReportPackageUpdateOne
- func (c *ReportPackageClient) UpdateOneID(id int) *ReportPackageUpdateOne
- func (c *ReportPackageClient) Use(hooks ...Hook)
- type ReportPackageCreate
- func (rpc *ReportPackageCreate) AddDependencies(r ...*ReportDependency) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddDependencyIDs(ids ...int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddLicenseIDs(ids ...int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddLicenses(r ...*ReportLicense) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddManifestIDs(ids ...int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddManifests(r ...*ReportPackageManifest) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddProjectIDs(ids ...int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddProjects(r ...*ReportProject) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddSlsaProvenanceIDs(ids ...int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddVulnerabilities(r ...*ReportVulnerability) *ReportPackageCreate
- func (rpc *ReportPackageCreate) AddVulnerabilityIDs(ids ...int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) Exec(ctx context.Context) error
- func (rpc *ReportPackageCreate) ExecX(ctx context.Context)
- func (rpc *ReportPackageCreate) Mutation() *ReportPackageMutation
- func (rpc *ReportPackageCreate) Save(ctx context.Context) (*ReportPackage, error)
- func (rpc *ReportPackageCreate) SaveX(ctx context.Context) *ReportPackage
- func (rpc *ReportPackageCreate) SetCodeAnalysis(m map[string]interface{}) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetCreatedAt(t time.Time) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetDepth(i int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetEcosystem(s string) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetInsightsV2(m map[string]interface{}) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetIsDirect(b bool) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetIsMalware(b bool) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetIsSuspicious(b bool) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetMalwareAnalysis(r *ReportMalware) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetMalwareAnalysisID(id int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetName(s string) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableCreatedAt(t *time.Time) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableDepth(i *int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableIsDirect(b *bool) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableIsMalware(b *bool) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableIsSuspicious(b *bool) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableMalwareAnalysisID(id *int) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetNillableUpdatedAt(t *time.Time) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetPackageDetails(m map[string]interface{}) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetPackageID(s string) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetPackageURL(s string) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetUpdatedAt(t time.Time) *ReportPackageCreate
- func (rpc *ReportPackageCreate) SetVersion(s string) *ReportPackageCreate
- type ReportPackageCreateBulk
- func (rpcb *ReportPackageCreateBulk) Exec(ctx context.Context) error
- func (rpcb *ReportPackageCreateBulk) ExecX(ctx context.Context)
- func (rpcb *ReportPackageCreateBulk) Save(ctx context.Context) ([]*ReportPackage, error)
- func (rpcb *ReportPackageCreateBulk) SaveX(ctx context.Context) []*ReportPackage
- type ReportPackageDelete
- type ReportPackageDeleteOne
- type ReportPackageEdges
- func (e ReportPackageEdges) DependenciesOrErr() ([]*ReportDependency, error)
- func (e ReportPackageEdges) LicensesOrErr() ([]*ReportLicense, error)
- func (e ReportPackageEdges) MalwareAnalysisOrErr() (*ReportMalware, error)
- func (e ReportPackageEdges) ManifestsOrErr() ([]*ReportPackageManifest, error)
- func (e ReportPackageEdges) ProjectsOrErr() ([]*ReportProject, error)
- func (e ReportPackageEdges) SlsaProvenancesOrErr() ([]*ReportSlsaProvenance, error)
- func (e ReportPackageEdges) VulnerabilitiesOrErr() ([]*ReportVulnerability, error)
- type ReportPackageGroupBy
- func (rpgb *ReportPackageGroupBy) Aggregate(fns ...AggregateFunc) *ReportPackageGroupBy
- func (s *ReportPackageGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportPackageGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportPackageGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportPackageGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportPackageGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportPackageGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportPackageGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportPackageGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportPackageGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportPackageGroupBy) IntX(ctx context.Context) int
- func (s *ReportPackageGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportPackageGroupBy) IntsX(ctx context.Context) []int
- func (rpgb *ReportPackageGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportPackageGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportPackageGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportPackageGroupBy) StringX(ctx context.Context) string
- func (s *ReportPackageGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportPackageGroupBy) StringsX(ctx context.Context) []string
- type ReportPackageManifest
- func (rpm *ReportPackageManifest) QueryPackages() *ReportPackageQuery
- func (rpm *ReportPackageManifest) String() string
- func (rpm *ReportPackageManifest) Unwrap() *ReportPackageManifest
- func (rpm *ReportPackageManifest) Update() *ReportPackageManifestUpdateOne
- func (rpm *ReportPackageManifest) Value(name string) (ent.Value, error)
- type ReportPackageManifestClient
- func (c *ReportPackageManifestClient) Create() *ReportPackageManifestCreate
- func (c *ReportPackageManifestClient) CreateBulk(builders ...*ReportPackageManifestCreate) *ReportPackageManifestCreateBulk
- func (c *ReportPackageManifestClient) Delete() *ReportPackageManifestDelete
- func (c *ReportPackageManifestClient) DeleteOne(rpm *ReportPackageManifest) *ReportPackageManifestDeleteOne
- func (c *ReportPackageManifestClient) DeleteOneID(id int) *ReportPackageManifestDeleteOne
- func (c *ReportPackageManifestClient) Get(ctx context.Context, id int) (*ReportPackageManifest, error)
- func (c *ReportPackageManifestClient) GetX(ctx context.Context, id int) *ReportPackageManifest
- func (c *ReportPackageManifestClient) Hooks() []Hook
- func (c *ReportPackageManifestClient) Intercept(interceptors ...Interceptor)
- func (c *ReportPackageManifestClient) Interceptors() []Interceptor
- func (c *ReportPackageManifestClient) MapCreateBulk(slice any, setFunc func(*ReportPackageManifestCreate, int)) *ReportPackageManifestCreateBulk
- func (c *ReportPackageManifestClient) Query() *ReportPackageManifestQuery
- func (c *ReportPackageManifestClient) QueryPackages(rpm *ReportPackageManifest) *ReportPackageQuery
- func (c *ReportPackageManifestClient) Update() *ReportPackageManifestUpdate
- func (c *ReportPackageManifestClient) UpdateOne(rpm *ReportPackageManifest) *ReportPackageManifestUpdateOne
- func (c *ReportPackageManifestClient) UpdateOneID(id int) *ReportPackageManifestUpdateOne
- func (c *ReportPackageManifestClient) Use(hooks ...Hook)
- type ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) AddPackageIDs(ids ...int) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) AddPackages(r ...*ReportPackage) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) Exec(ctx context.Context) error
- func (rpmc *ReportPackageManifestCreate) ExecX(ctx context.Context)
- func (rpmc *ReportPackageManifestCreate) Mutation() *ReportPackageManifestMutation
- func (rpmc *ReportPackageManifestCreate) Save(ctx context.Context) (*ReportPackageManifest, error)
- func (rpmc *ReportPackageManifestCreate) SaveX(ctx context.Context) *ReportPackageManifest
- func (rpmc *ReportPackageManifestCreate) SetCreatedAt(t time.Time) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetDisplayPath(s string) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetEcosystem(s string) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetManifestID(s string) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetNamespace(s string) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetNillableCreatedAt(t *time.Time) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetNillableUpdatedAt(t *time.Time) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetPath(s string) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetSourceType(s string) *ReportPackageManifestCreate
- func (rpmc *ReportPackageManifestCreate) SetUpdatedAt(t time.Time) *ReportPackageManifestCreate
- type ReportPackageManifestCreateBulk
- func (rpmcb *ReportPackageManifestCreateBulk) Exec(ctx context.Context) error
- func (rpmcb *ReportPackageManifestCreateBulk) ExecX(ctx context.Context)
- func (rpmcb *ReportPackageManifestCreateBulk) Save(ctx context.Context) ([]*ReportPackageManifest, error)
- func (rpmcb *ReportPackageManifestCreateBulk) SaveX(ctx context.Context) []*ReportPackageManifest
- type ReportPackageManifestDelete
- type ReportPackageManifestDeleteOne
- type ReportPackageManifestEdges
- type ReportPackageManifestGroupBy
- func (rpmgb *ReportPackageManifestGroupBy) Aggregate(fns ...AggregateFunc) *ReportPackageManifestGroupBy
- func (s *ReportPackageManifestGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportPackageManifestGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportPackageManifestGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportPackageManifestGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportPackageManifestGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportPackageManifestGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportPackageManifestGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportPackageManifestGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportPackageManifestGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportPackageManifestGroupBy) IntX(ctx context.Context) int
- func (s *ReportPackageManifestGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportPackageManifestGroupBy) IntsX(ctx context.Context) []int
- func (rpmgb *ReportPackageManifestGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportPackageManifestGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportPackageManifestGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportPackageManifestGroupBy) StringX(ctx context.Context) string
- func (s *ReportPackageManifestGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportPackageManifestGroupBy) StringsX(ctx context.Context) []string
- type ReportPackageManifestMutation
- func (m *ReportPackageManifestMutation) AddField(name string, value ent.Value) error
- func (m *ReportPackageManifestMutation) AddPackageIDs(ids ...int)
- func (m *ReportPackageManifestMutation) AddedEdges() []string
- func (m *ReportPackageManifestMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportPackageManifestMutation) AddedFields() []string
- func (m *ReportPackageManifestMutation) AddedIDs(name string) []ent.Value
- func (m *ReportPackageManifestMutation) ClearCreatedAt()
- func (m *ReportPackageManifestMutation) ClearEdge(name string) error
- func (m *ReportPackageManifestMutation) ClearField(name string) error
- func (m *ReportPackageManifestMutation) ClearPackages()
- func (m *ReportPackageManifestMutation) ClearUpdatedAt()
- func (m *ReportPackageManifestMutation) ClearedEdges() []string
- func (m *ReportPackageManifestMutation) ClearedFields() []string
- func (m ReportPackageManifestMutation) Client() *Client
- func (m *ReportPackageManifestMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportPackageManifestMutation) CreatedAtCleared() bool
- func (m *ReportPackageManifestMutation) DisplayPath() (r string, exists bool)
- func (m *ReportPackageManifestMutation) Ecosystem() (r string, exists bool)
- func (m *ReportPackageManifestMutation) EdgeCleared(name string) bool
- func (m *ReportPackageManifestMutation) Field(name string) (ent.Value, bool)
- func (m *ReportPackageManifestMutation) FieldCleared(name string) bool
- func (m *ReportPackageManifestMutation) Fields() []string
- func (m *ReportPackageManifestMutation) ID() (id int, exists bool)
- func (m *ReportPackageManifestMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportPackageManifestMutation) ManifestID() (r string, exists bool)
- func (m *ReportPackageManifestMutation) Namespace() (r string, exists bool)
- func (m *ReportPackageManifestMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportPackageManifestMutation) OldDisplayPath(ctx context.Context) (v string, err error)
- func (m *ReportPackageManifestMutation) OldEcosystem(ctx context.Context) (v string, err error)
- func (m *ReportPackageManifestMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportPackageManifestMutation) OldManifestID(ctx context.Context) (v string, err error)
- func (m *ReportPackageManifestMutation) OldNamespace(ctx context.Context) (v string, err error)
- func (m *ReportPackageManifestMutation) OldPath(ctx context.Context) (v string, err error)
- func (m *ReportPackageManifestMutation) OldSourceType(ctx context.Context) (v string, err error)
- func (m *ReportPackageManifestMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportPackageManifestMutation) Op() Op
- func (m *ReportPackageManifestMutation) PackagesCleared() bool
- func (m *ReportPackageManifestMutation) PackagesIDs() (ids []int)
- func (m *ReportPackageManifestMutation) Path() (r string, exists bool)
- func (m *ReportPackageManifestMutation) RemovePackageIDs(ids ...int)
- func (m *ReportPackageManifestMutation) RemovedEdges() []string
- func (m *ReportPackageManifestMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportPackageManifestMutation) RemovedPackagesIDs() (ids []int)
- func (m *ReportPackageManifestMutation) ResetCreatedAt()
- func (m *ReportPackageManifestMutation) ResetDisplayPath()
- func (m *ReportPackageManifestMutation) ResetEcosystem()
- func (m *ReportPackageManifestMutation) ResetEdge(name string) error
- func (m *ReportPackageManifestMutation) ResetField(name string) error
- func (m *ReportPackageManifestMutation) ResetManifestID()
- func (m *ReportPackageManifestMutation) ResetNamespace()
- func (m *ReportPackageManifestMutation) ResetPackages()
- func (m *ReportPackageManifestMutation) ResetPath()
- func (m *ReportPackageManifestMutation) ResetSourceType()
- func (m *ReportPackageManifestMutation) ResetUpdatedAt()
- func (m *ReportPackageManifestMutation) SetCreatedAt(t time.Time)
- func (m *ReportPackageManifestMutation) SetDisplayPath(s string)
- func (m *ReportPackageManifestMutation) SetEcosystem(s string)
- func (m *ReportPackageManifestMutation) SetField(name string, value ent.Value) error
- func (m *ReportPackageManifestMutation) SetManifestID(s string)
- func (m *ReportPackageManifestMutation) SetNamespace(s string)
- func (m *ReportPackageManifestMutation) SetOp(op Op)
- func (m *ReportPackageManifestMutation) SetPath(s string)
- func (m *ReportPackageManifestMutation) SetSourceType(s string)
- func (m *ReportPackageManifestMutation) SetUpdatedAt(t time.Time)
- func (m *ReportPackageManifestMutation) SourceType() (r string, exists bool)
- func (m ReportPackageManifestMutation) Tx() (*Tx, error)
- func (m *ReportPackageManifestMutation) Type() string
- func (m *ReportPackageManifestMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportPackageManifestMutation) UpdatedAtCleared() bool
- func (m *ReportPackageManifestMutation) Where(ps ...predicate.ReportPackageManifest)
- func (m *ReportPackageManifestMutation) WhereP(ps ...func(*sql.Selector))
- type ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) Aggregate(fns ...AggregateFunc) *ReportPackageManifestSelect
- func (rpmq *ReportPackageManifestQuery) All(ctx context.Context) ([]*ReportPackageManifest, error)
- func (rpmq *ReportPackageManifestQuery) AllX(ctx context.Context) []*ReportPackageManifest
- func (rpmq *ReportPackageManifestQuery) Clone() *ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) Count(ctx context.Context) (int, error)
- func (rpmq *ReportPackageManifestQuery) CountX(ctx context.Context) int
- func (rpmq *ReportPackageManifestQuery) Exist(ctx context.Context) (bool, error)
- func (rpmq *ReportPackageManifestQuery) ExistX(ctx context.Context) bool
- func (rpmq *ReportPackageManifestQuery) First(ctx context.Context) (*ReportPackageManifest, error)
- func (rpmq *ReportPackageManifestQuery) FirstID(ctx context.Context) (id int, err error)
- func (rpmq *ReportPackageManifestQuery) FirstIDX(ctx context.Context) int
- func (rpmq *ReportPackageManifestQuery) FirstX(ctx context.Context) *ReportPackageManifest
- func (rpmq *ReportPackageManifestQuery) GroupBy(field string, fields ...string) *ReportPackageManifestGroupBy
- func (rpmq *ReportPackageManifestQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rpmq *ReportPackageManifestQuery) IDsX(ctx context.Context) []int
- func (rpmq *ReportPackageManifestQuery) Limit(limit int) *ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) Offset(offset int) *ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) Only(ctx context.Context) (*ReportPackageManifest, error)
- func (rpmq *ReportPackageManifestQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rpmq *ReportPackageManifestQuery) OnlyIDX(ctx context.Context) int
- func (rpmq *ReportPackageManifestQuery) OnlyX(ctx context.Context) *ReportPackageManifest
- func (rpmq *ReportPackageManifestQuery) Order(o ...reportpackagemanifest.OrderOption) *ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) QueryPackages() *ReportPackageQuery
- func (rpmq *ReportPackageManifestQuery) Select(fields ...string) *ReportPackageManifestSelect
- func (rpmq *ReportPackageManifestQuery) Unique(unique bool) *ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestQuery
- func (rpmq *ReportPackageManifestQuery) WithPackages(opts ...func(*ReportPackageQuery)) *ReportPackageManifestQuery
- type ReportPackageManifestSelect
- func (rpms *ReportPackageManifestSelect) Aggregate(fns ...AggregateFunc) *ReportPackageManifestSelect
- func (s *ReportPackageManifestSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportPackageManifestSelect) BoolX(ctx context.Context) bool
- func (s *ReportPackageManifestSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportPackageManifestSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportPackageManifestSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportPackageManifestSelect) Float64X(ctx context.Context) float64
- func (s *ReportPackageManifestSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportPackageManifestSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportPackageManifestSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportPackageManifestSelect) IntX(ctx context.Context) int
- func (s *ReportPackageManifestSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportPackageManifestSelect) IntsX(ctx context.Context) []int
- func (rpms *ReportPackageManifestSelect) Scan(ctx context.Context, v any) error
- func (s *ReportPackageManifestSelect) ScanX(ctx context.Context, v any)
- func (s *ReportPackageManifestSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportPackageManifestSelect) StringX(ctx context.Context) string
- func (s *ReportPackageManifestSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportPackageManifestSelect) StringsX(ctx context.Context) []string
- type ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) AddPackageIDs(ids ...int) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) AddPackages(r ...*ReportPackage) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) ClearCreatedAt() *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) ClearPackages() *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) ClearUpdatedAt() *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) Exec(ctx context.Context) error
- func (rpmu *ReportPackageManifestUpdate) ExecX(ctx context.Context)
- func (rpmu *ReportPackageManifestUpdate) Mutation() *ReportPackageManifestMutation
- func (rpmu *ReportPackageManifestUpdate) RemovePackageIDs(ids ...int) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) RemovePackages(r ...*ReportPackage) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) Save(ctx context.Context) (int, error)
- func (rpmu *ReportPackageManifestUpdate) SaveX(ctx context.Context) int
- func (rpmu *ReportPackageManifestUpdate) SetCreatedAt(t time.Time) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetDisplayPath(s string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetEcosystem(s string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetManifestID(s string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNamespace(s string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableCreatedAt(t *time.Time) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableDisplayPath(s *string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableEcosystem(s *string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableManifestID(s *string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableNamespace(s *string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillablePath(s *string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableSourceType(s *string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetNillableUpdatedAt(t *time.Time) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetPath(s string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetSourceType(s string) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) SetUpdatedAt(t time.Time) *ReportPackageManifestUpdate
- func (rpmu *ReportPackageManifestUpdate) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestUpdate
- type ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) AddPackageIDs(ids ...int) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) AddPackages(r ...*ReportPackage) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) ClearCreatedAt() *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) ClearPackages() *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) ClearUpdatedAt() *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) Exec(ctx context.Context) error
- func (rpmuo *ReportPackageManifestUpdateOne) ExecX(ctx context.Context)
- func (rpmuo *ReportPackageManifestUpdateOne) Mutation() *ReportPackageManifestMutation
- func (rpmuo *ReportPackageManifestUpdateOne) RemovePackageIDs(ids ...int) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) RemovePackages(r ...*ReportPackage) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) Save(ctx context.Context) (*ReportPackageManifest, error)
- func (rpmuo *ReportPackageManifestUpdateOne) SaveX(ctx context.Context) *ReportPackageManifest
- func (rpmuo *ReportPackageManifestUpdateOne) Select(field string, fields ...string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetCreatedAt(t time.Time) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetDisplayPath(s string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetEcosystem(s string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetManifestID(s string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNamespace(s string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableDisplayPath(s *string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableEcosystem(s *string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableManifestID(s *string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableNamespace(s *string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillablePath(s *string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableSourceType(s *string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetPath(s string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetSourceType(s string) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) SetUpdatedAt(t time.Time) *ReportPackageManifestUpdateOne
- func (rpmuo *ReportPackageManifestUpdateOne) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestUpdateOne
- type ReportPackageManifests
- type ReportPackageMutation
- func (m *ReportPackageMutation) AddDependencyIDs(ids ...int)
- func (m *ReportPackageMutation) AddDepth(i int)
- func (m *ReportPackageMutation) AddField(name string, value ent.Value) error
- func (m *ReportPackageMutation) AddLicenseIDs(ids ...int)
- func (m *ReportPackageMutation) AddManifestIDs(ids ...int)
- func (m *ReportPackageMutation) AddProjectIDs(ids ...int)
- func (m *ReportPackageMutation) AddSlsaProvenanceIDs(ids ...int)
- func (m *ReportPackageMutation) AddVulnerabilityIDs(ids ...int)
- func (m *ReportPackageMutation) AddedDepth() (r int, exists bool)
- func (m *ReportPackageMutation) AddedEdges() []string
- func (m *ReportPackageMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportPackageMutation) AddedFields() []string
- func (m *ReportPackageMutation) AddedIDs(name string) []ent.Value
- func (m *ReportPackageMutation) ClearCodeAnalysis()
- func (m *ReportPackageMutation) ClearCreatedAt()
- func (m *ReportPackageMutation) ClearDependencies()
- func (m *ReportPackageMutation) ClearEdge(name string) error
- func (m *ReportPackageMutation) ClearField(name string) error
- func (m *ReportPackageMutation) ClearInsightsV2()
- func (m *ReportPackageMutation) ClearLicenses()
- func (m *ReportPackageMutation) ClearMalwareAnalysis()
- func (m *ReportPackageMutation) ClearManifests()
- func (m *ReportPackageMutation) ClearPackageDetails()
- func (m *ReportPackageMutation) ClearProjects()
- func (m *ReportPackageMutation) ClearSlsaProvenances()
- func (m *ReportPackageMutation) ClearUpdatedAt()
- func (m *ReportPackageMutation) ClearVulnerabilities()
- func (m *ReportPackageMutation) ClearedEdges() []string
- func (m *ReportPackageMutation) ClearedFields() []string
- func (m ReportPackageMutation) Client() *Client
- func (m *ReportPackageMutation) CodeAnalysis() (r map[string]interface{}, exists bool)
- func (m *ReportPackageMutation) CodeAnalysisCleared() bool
- func (m *ReportPackageMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportPackageMutation) CreatedAtCleared() bool
- func (m *ReportPackageMutation) DependenciesCleared() bool
- func (m *ReportPackageMutation) DependenciesIDs() (ids []int)
- func (m *ReportPackageMutation) Depth() (r int, exists bool)
- func (m *ReportPackageMutation) Ecosystem() (r string, exists bool)
- func (m *ReportPackageMutation) EdgeCleared(name string) bool
- func (m *ReportPackageMutation) Field(name string) (ent.Value, bool)
- func (m *ReportPackageMutation) FieldCleared(name string) bool
- func (m *ReportPackageMutation) Fields() []string
- func (m *ReportPackageMutation) ID() (id int, exists bool)
- func (m *ReportPackageMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportPackageMutation) InsightsV2() (r map[string]interface{}, exists bool)
- func (m *ReportPackageMutation) InsightsV2Cleared() bool
- func (m *ReportPackageMutation) IsDirect() (r bool, exists bool)
- func (m *ReportPackageMutation) IsMalware() (r bool, exists bool)
- func (m *ReportPackageMutation) IsSuspicious() (r bool, exists bool)
- func (m *ReportPackageMutation) LicensesCleared() bool
- func (m *ReportPackageMutation) LicensesIDs() (ids []int)
- func (m *ReportPackageMutation) MalwareAnalysisCleared() bool
- func (m *ReportPackageMutation) MalwareAnalysisID() (id int, exists bool)
- func (m *ReportPackageMutation) MalwareAnalysisIDs() (ids []int)
- func (m *ReportPackageMutation) ManifestsCleared() bool
- func (m *ReportPackageMutation) ManifestsIDs() (ids []int)
- func (m *ReportPackageMutation) Name() (r string, exists bool)
- func (m *ReportPackageMutation) OldCodeAnalysis(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ReportPackageMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportPackageMutation) OldDepth(ctx context.Context) (v int, err error)
- func (m *ReportPackageMutation) OldEcosystem(ctx context.Context) (v string, err error)
- func (m *ReportPackageMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportPackageMutation) OldInsightsV2(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ReportPackageMutation) OldIsDirect(ctx context.Context) (v bool, err error)
- func (m *ReportPackageMutation) OldIsMalware(ctx context.Context) (v bool, err error)
- func (m *ReportPackageMutation) OldIsSuspicious(ctx context.Context) (v bool, err error)
- func (m *ReportPackageMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ReportPackageMutation) OldPackageDetails(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ReportPackageMutation) OldPackageID(ctx context.Context) (v string, err error)
- func (m *ReportPackageMutation) OldPackageURL(ctx context.Context) (v string, err error)
- func (m *ReportPackageMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportPackageMutation) OldVersion(ctx context.Context) (v string, err error)
- func (m *ReportPackageMutation) Op() Op
- func (m *ReportPackageMutation) PackageDetails() (r map[string]interface{}, exists bool)
- func (m *ReportPackageMutation) PackageDetailsCleared() bool
- func (m *ReportPackageMutation) PackageID() (r string, exists bool)
- func (m *ReportPackageMutation) PackageURL() (r string, exists bool)
- func (m *ReportPackageMutation) ProjectsCleared() bool
- func (m *ReportPackageMutation) ProjectsIDs() (ids []int)
- func (m *ReportPackageMutation) RemoveDependencyIDs(ids ...int)
- func (m *ReportPackageMutation) RemoveLicenseIDs(ids ...int)
- func (m *ReportPackageMutation) RemoveManifestIDs(ids ...int)
- func (m *ReportPackageMutation) RemoveProjectIDs(ids ...int)
- func (m *ReportPackageMutation) RemoveSlsaProvenanceIDs(ids ...int)
- func (m *ReportPackageMutation) RemoveVulnerabilityIDs(ids ...int)
- func (m *ReportPackageMutation) RemovedDependenciesIDs() (ids []int)
- func (m *ReportPackageMutation) RemovedEdges() []string
- func (m *ReportPackageMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportPackageMutation) RemovedLicensesIDs() (ids []int)
- func (m *ReportPackageMutation) RemovedManifestsIDs() (ids []int)
- func (m *ReportPackageMutation) RemovedProjectsIDs() (ids []int)
- func (m *ReportPackageMutation) RemovedSlsaProvenancesIDs() (ids []int)
- func (m *ReportPackageMutation) RemovedVulnerabilitiesIDs() (ids []int)
- func (m *ReportPackageMutation) ResetCodeAnalysis()
- func (m *ReportPackageMutation) ResetCreatedAt()
- func (m *ReportPackageMutation) ResetDependencies()
- func (m *ReportPackageMutation) ResetDepth()
- func (m *ReportPackageMutation) ResetEcosystem()
- func (m *ReportPackageMutation) ResetEdge(name string) error
- func (m *ReportPackageMutation) ResetField(name string) error
- func (m *ReportPackageMutation) ResetInsightsV2()
- func (m *ReportPackageMutation) ResetIsDirect()
- func (m *ReportPackageMutation) ResetIsMalware()
- func (m *ReportPackageMutation) ResetIsSuspicious()
- func (m *ReportPackageMutation) ResetLicenses()
- func (m *ReportPackageMutation) ResetMalwareAnalysis()
- func (m *ReportPackageMutation) ResetManifests()
- func (m *ReportPackageMutation) ResetName()
- func (m *ReportPackageMutation) ResetPackageDetails()
- func (m *ReportPackageMutation) ResetPackageID()
- func (m *ReportPackageMutation) ResetPackageURL()
- func (m *ReportPackageMutation) ResetProjects()
- func (m *ReportPackageMutation) ResetSlsaProvenances()
- func (m *ReportPackageMutation) ResetUpdatedAt()
- func (m *ReportPackageMutation) ResetVersion()
- func (m *ReportPackageMutation) ResetVulnerabilities()
- func (m *ReportPackageMutation) SetCodeAnalysis(value map[string]interface{})
- func (m *ReportPackageMutation) SetCreatedAt(t time.Time)
- func (m *ReportPackageMutation) SetDepth(i int)
- func (m *ReportPackageMutation) SetEcosystem(s string)
- func (m *ReportPackageMutation) SetField(name string, value ent.Value) error
- func (m *ReportPackageMutation) SetInsightsV2(value map[string]interface{})
- func (m *ReportPackageMutation) SetIsDirect(b bool)
- func (m *ReportPackageMutation) SetIsMalware(b bool)
- func (m *ReportPackageMutation) SetIsSuspicious(b bool)
- func (m *ReportPackageMutation) SetMalwareAnalysisID(id int)
- func (m *ReportPackageMutation) SetName(s string)
- func (m *ReportPackageMutation) SetOp(op Op)
- func (m *ReportPackageMutation) SetPackageDetails(value map[string]interface{})
- func (m *ReportPackageMutation) SetPackageID(s string)
- func (m *ReportPackageMutation) SetPackageURL(s string)
- func (m *ReportPackageMutation) SetUpdatedAt(t time.Time)
- func (m *ReportPackageMutation) SetVersion(s string)
- func (m *ReportPackageMutation) SlsaProvenancesCleared() bool
- func (m *ReportPackageMutation) SlsaProvenancesIDs() (ids []int)
- func (m ReportPackageMutation) Tx() (*Tx, error)
- func (m *ReportPackageMutation) Type() string
- func (m *ReportPackageMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportPackageMutation) UpdatedAtCleared() bool
- func (m *ReportPackageMutation) Version() (r string, exists bool)
- func (m *ReportPackageMutation) VulnerabilitiesCleared() bool
- func (m *ReportPackageMutation) VulnerabilitiesIDs() (ids []int)
- func (m *ReportPackageMutation) Where(ps ...predicate.ReportPackage)
- func (m *ReportPackageMutation) WhereP(ps ...func(*sql.Selector))
- type ReportPackageQuery
- func (rpq *ReportPackageQuery) Aggregate(fns ...AggregateFunc) *ReportPackageSelect
- func (rpq *ReportPackageQuery) All(ctx context.Context) ([]*ReportPackage, error)
- func (rpq *ReportPackageQuery) AllX(ctx context.Context) []*ReportPackage
- func (rpq *ReportPackageQuery) Clone() *ReportPackageQuery
- func (rpq *ReportPackageQuery) Count(ctx context.Context) (int, error)
- func (rpq *ReportPackageQuery) CountX(ctx context.Context) int
- func (rpq *ReportPackageQuery) Exist(ctx context.Context) (bool, error)
- func (rpq *ReportPackageQuery) ExistX(ctx context.Context) bool
- func (rpq *ReportPackageQuery) First(ctx context.Context) (*ReportPackage, error)
- func (rpq *ReportPackageQuery) FirstID(ctx context.Context) (id int, err error)
- func (rpq *ReportPackageQuery) FirstIDX(ctx context.Context) int
- func (rpq *ReportPackageQuery) FirstX(ctx context.Context) *ReportPackage
- func (rpq *ReportPackageQuery) GroupBy(field string, fields ...string) *ReportPackageGroupBy
- func (rpq *ReportPackageQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rpq *ReportPackageQuery) IDsX(ctx context.Context) []int
- func (rpq *ReportPackageQuery) Limit(limit int) *ReportPackageQuery
- func (rpq *ReportPackageQuery) Offset(offset int) *ReportPackageQuery
- func (rpq *ReportPackageQuery) Only(ctx context.Context) (*ReportPackage, error)
- func (rpq *ReportPackageQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rpq *ReportPackageQuery) OnlyIDX(ctx context.Context) int
- func (rpq *ReportPackageQuery) OnlyX(ctx context.Context) *ReportPackage
- func (rpq *ReportPackageQuery) Order(o ...reportpackage.OrderOption) *ReportPackageQuery
- func (rpq *ReportPackageQuery) QueryDependencies() *ReportDependencyQuery
- func (rpq *ReportPackageQuery) QueryLicenses() *ReportLicenseQuery
- func (rpq *ReportPackageQuery) QueryMalwareAnalysis() *ReportMalwareQuery
- func (rpq *ReportPackageQuery) QueryManifests() *ReportPackageManifestQuery
- func (rpq *ReportPackageQuery) QueryProjects() *ReportProjectQuery
- func (rpq *ReportPackageQuery) QuerySlsaProvenances() *ReportSlsaProvenanceQuery
- func (rpq *ReportPackageQuery) QueryVulnerabilities() *ReportVulnerabilityQuery
- func (rpq *ReportPackageQuery) Select(fields ...string) *ReportPackageSelect
- func (rpq *ReportPackageQuery) Unique(unique bool) *ReportPackageQuery
- func (rpq *ReportPackageQuery) Where(ps ...predicate.ReportPackage) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithDependencies(opts ...func(*ReportDependencyQuery)) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithLicenses(opts ...func(*ReportLicenseQuery)) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithMalwareAnalysis(opts ...func(*ReportMalwareQuery)) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithManifests(opts ...func(*ReportPackageManifestQuery)) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithProjects(opts ...func(*ReportProjectQuery)) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithSlsaProvenances(opts ...func(*ReportSlsaProvenanceQuery)) *ReportPackageQuery
- func (rpq *ReportPackageQuery) WithVulnerabilities(opts ...func(*ReportVulnerabilityQuery)) *ReportPackageQuery
- type ReportPackageSelect
- func (rps *ReportPackageSelect) Aggregate(fns ...AggregateFunc) *ReportPackageSelect
- func (s *ReportPackageSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportPackageSelect) BoolX(ctx context.Context) bool
- func (s *ReportPackageSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportPackageSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportPackageSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportPackageSelect) Float64X(ctx context.Context) float64
- func (s *ReportPackageSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportPackageSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportPackageSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportPackageSelect) IntX(ctx context.Context) int
- func (s *ReportPackageSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportPackageSelect) IntsX(ctx context.Context) []int
- func (rps *ReportPackageSelect) Scan(ctx context.Context, v any) error
- func (s *ReportPackageSelect) ScanX(ctx context.Context, v any)
- func (s *ReportPackageSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportPackageSelect) StringX(ctx context.Context) string
- func (s *ReportPackageSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportPackageSelect) StringsX(ctx context.Context) []string
- type ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddDependencies(r ...*ReportDependency) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddDependencyIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddDepth(i int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddLicenseIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddLicenses(r ...*ReportLicense) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddManifestIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddManifests(r ...*ReportPackageManifest) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddProjectIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddProjects(r ...*ReportProject) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddSlsaProvenanceIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) AddVulnerabilityIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearCodeAnalysis() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearCreatedAt() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearDependencies() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearInsightsV2() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearLicenses() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearMalwareAnalysis() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearManifests() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearPackageDetails() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearProjects() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearSlsaProvenances() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearUpdatedAt() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) ClearVulnerabilities() *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) Exec(ctx context.Context) error
- func (rpu *ReportPackageUpdate) ExecX(ctx context.Context)
- func (rpu *ReportPackageUpdate) Mutation() *ReportPackageMutation
- func (rpu *ReportPackageUpdate) RemoveDependencies(r ...*ReportDependency) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveDependencyIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveLicenseIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveLicenses(r ...*ReportLicense) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveManifestIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveManifests(r ...*ReportPackageManifest) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveProjectIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveProjects(r ...*ReportProject) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveSlsaProvenanceIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) RemoveVulnerabilityIDs(ids ...int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) Save(ctx context.Context) (int, error)
- func (rpu *ReportPackageUpdate) SaveX(ctx context.Context) int
- func (rpu *ReportPackageUpdate) SetCodeAnalysis(m map[string]interface{}) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetCreatedAt(t time.Time) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetDepth(i int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetEcosystem(s string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetInsightsV2(m map[string]interface{}) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetIsDirect(b bool) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetIsMalware(b bool) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetIsSuspicious(b bool) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetMalwareAnalysis(r *ReportMalware) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetMalwareAnalysisID(id int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetName(s string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableCreatedAt(t *time.Time) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableDepth(i *int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableEcosystem(s *string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableIsDirect(b *bool) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableIsMalware(b *bool) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableIsSuspicious(b *bool) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableMalwareAnalysisID(id *int) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableName(s *string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillablePackageID(s *string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillablePackageURL(s *string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableUpdatedAt(t *time.Time) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetNillableVersion(s *string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetPackageDetails(m map[string]interface{}) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetPackageID(s string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetPackageURL(s string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetUpdatedAt(t time.Time) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) SetVersion(s string) *ReportPackageUpdate
- func (rpu *ReportPackageUpdate) Where(ps ...predicate.ReportPackage) *ReportPackageUpdate
- type ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddDependencies(r ...*ReportDependency) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddDependencyIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddDepth(i int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddLicenseIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddLicenses(r ...*ReportLicense) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddManifestIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddManifests(r ...*ReportPackageManifest) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddProjectIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddProjects(r ...*ReportProject) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddSlsaProvenanceIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) AddVulnerabilityIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearCodeAnalysis() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearCreatedAt() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearDependencies() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearInsightsV2() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearLicenses() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearMalwareAnalysis() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearManifests() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearPackageDetails() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearProjects() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearSlsaProvenances() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearUpdatedAt() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) ClearVulnerabilities() *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) Exec(ctx context.Context) error
- func (rpuo *ReportPackageUpdateOne) ExecX(ctx context.Context)
- func (rpuo *ReportPackageUpdateOne) Mutation() *ReportPackageMutation
- func (rpuo *ReportPackageUpdateOne) RemoveDependencies(r ...*ReportDependency) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveDependencyIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveLicenseIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveLicenses(r ...*ReportLicense) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveManifestIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveManifests(r ...*ReportPackageManifest) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveProjectIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveProjects(r ...*ReportProject) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveSlsaProvenanceIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveSlsaProvenances(r ...*ReportSlsaProvenance) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveVulnerabilities(r ...*ReportVulnerability) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) RemoveVulnerabilityIDs(ids ...int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) Save(ctx context.Context) (*ReportPackage, error)
- func (rpuo *ReportPackageUpdateOne) SaveX(ctx context.Context) *ReportPackage
- func (rpuo *ReportPackageUpdateOne) Select(field string, fields ...string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetCodeAnalysis(m map[string]interface{}) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetCreatedAt(t time.Time) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetDepth(i int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetEcosystem(s string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetInsightsV2(m map[string]interface{}) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetIsDirect(b bool) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetIsMalware(b bool) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetIsSuspicious(b bool) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetMalwareAnalysis(r *ReportMalware) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetMalwareAnalysisID(id int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetName(s string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableDepth(i *int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableEcosystem(s *string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableIsDirect(b *bool) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableIsMalware(b *bool) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableIsSuspicious(b *bool) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableMalwareAnalysisID(id *int) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableName(s *string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillablePackageID(s *string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillablePackageURL(s *string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetNillableVersion(s *string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetPackageDetails(m map[string]interface{}) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetPackageID(s string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetPackageURL(s string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetUpdatedAt(t time.Time) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) SetVersion(s string) *ReportPackageUpdateOne
- func (rpuo *ReportPackageUpdateOne) Where(ps ...predicate.ReportPackage) *ReportPackageUpdateOne
- type ReportPackages
- type ReportProject
- func (rp *ReportProject) QueryPackage() *ReportPackageQuery
- func (rp *ReportProject) QueryScorecard() *ReportScorecardQuery
- func (rp *ReportProject) String() string
- func (rp *ReportProject) Unwrap() *ReportProject
- func (rp *ReportProject) Update() *ReportProjectUpdateOne
- func (rp *ReportProject) Value(name string) (ent.Value, error)
- type ReportProjectClient
- func (c *ReportProjectClient) Create() *ReportProjectCreate
- func (c *ReportProjectClient) CreateBulk(builders ...*ReportProjectCreate) *ReportProjectCreateBulk
- func (c *ReportProjectClient) Delete() *ReportProjectDelete
- func (c *ReportProjectClient) DeleteOne(rp *ReportProject) *ReportProjectDeleteOne
- func (c *ReportProjectClient) DeleteOneID(id int) *ReportProjectDeleteOne
- func (c *ReportProjectClient) Get(ctx context.Context, id int) (*ReportProject, error)
- func (c *ReportProjectClient) GetX(ctx context.Context, id int) *ReportProject
- func (c *ReportProjectClient) Hooks() []Hook
- func (c *ReportProjectClient) Intercept(interceptors ...Interceptor)
- func (c *ReportProjectClient) Interceptors() []Interceptor
- func (c *ReportProjectClient) MapCreateBulk(slice any, setFunc func(*ReportProjectCreate, int)) *ReportProjectCreateBulk
- func (c *ReportProjectClient) Query() *ReportProjectQuery
- func (c *ReportProjectClient) QueryPackage(rp *ReportProject) *ReportPackageQuery
- func (c *ReportProjectClient) QueryScorecard(rp *ReportProject) *ReportScorecardQuery
- func (c *ReportProjectClient) Update() *ReportProjectUpdate
- func (c *ReportProjectClient) UpdateOne(rp *ReportProject) *ReportProjectUpdateOne
- func (c *ReportProjectClient) UpdateOneID(id int) *ReportProjectUpdateOne
- func (c *ReportProjectClient) Use(hooks ...Hook)
- type ReportProjectCreate
- func (rpc *ReportProjectCreate) Exec(ctx context.Context) error
- func (rpc *ReportProjectCreate) ExecX(ctx context.Context)
- func (rpc *ReportProjectCreate) Mutation() *ReportProjectMutation
- func (rpc *ReportProjectCreate) Save(ctx context.Context) (*ReportProject, error)
- func (rpc *ReportProjectCreate) SaveX(ctx context.Context) *ReportProject
- func (rpc *ReportProjectCreate) SetCreatedAt(t time.Time) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetDescription(s string) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetForks(i int32) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetName(s string) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableCreatedAt(t *time.Time) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableDescription(s *string) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableForks(i *int32) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillablePackageID(id *int) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableScorecardID(id *int) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableStars(i *int32) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableURL(s *string) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetNillableUpdatedAt(t *time.Time) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetPackage(r *ReportPackage) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetPackageID(id int) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetScorecard(r *ReportScorecard) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetScorecardID(id int) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetStars(i int32) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetURL(s string) *ReportProjectCreate
- func (rpc *ReportProjectCreate) SetUpdatedAt(t time.Time) *ReportProjectCreate
- type ReportProjectCreateBulk
- func (rpcb *ReportProjectCreateBulk) Exec(ctx context.Context) error
- func (rpcb *ReportProjectCreateBulk) ExecX(ctx context.Context)
- func (rpcb *ReportProjectCreateBulk) Save(ctx context.Context) ([]*ReportProject, error)
- func (rpcb *ReportProjectCreateBulk) SaveX(ctx context.Context) []*ReportProject
- type ReportProjectDelete
- type ReportProjectDeleteOne
- type ReportProjectEdges
- type ReportProjectGroupBy
- func (rpgb *ReportProjectGroupBy) Aggregate(fns ...AggregateFunc) *ReportProjectGroupBy
- func (s *ReportProjectGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportProjectGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportProjectGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportProjectGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportProjectGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportProjectGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportProjectGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportProjectGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportProjectGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportProjectGroupBy) IntX(ctx context.Context) int
- func (s *ReportProjectGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportProjectGroupBy) IntsX(ctx context.Context) []int
- func (rpgb *ReportProjectGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportProjectGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportProjectGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportProjectGroupBy) StringX(ctx context.Context) string
- func (s *ReportProjectGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportProjectGroupBy) StringsX(ctx context.Context) []string
- type ReportProjectMutation
- func (m *ReportProjectMutation) AddField(name string, value ent.Value) error
- func (m *ReportProjectMutation) AddForks(i int32)
- func (m *ReportProjectMutation) AddStars(i int32)
- func (m *ReportProjectMutation) AddedEdges() []string
- func (m *ReportProjectMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportProjectMutation) AddedFields() []string
- func (m *ReportProjectMutation) AddedForks() (r int32, exists bool)
- func (m *ReportProjectMutation) AddedIDs(name string) []ent.Value
- func (m *ReportProjectMutation) AddedStars() (r int32, exists bool)
- func (m *ReportProjectMutation) ClearCreatedAt()
- func (m *ReportProjectMutation) ClearDescription()
- func (m *ReportProjectMutation) ClearEdge(name string) error
- func (m *ReportProjectMutation) ClearField(name string) error
- func (m *ReportProjectMutation) ClearForks()
- func (m *ReportProjectMutation) ClearPackage()
- func (m *ReportProjectMutation) ClearScorecard()
- func (m *ReportProjectMutation) ClearStars()
- func (m *ReportProjectMutation) ClearURL()
- func (m *ReportProjectMutation) ClearUpdatedAt()
- func (m *ReportProjectMutation) ClearedEdges() []string
- func (m *ReportProjectMutation) ClearedFields() []string
- func (m ReportProjectMutation) Client() *Client
- func (m *ReportProjectMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportProjectMutation) CreatedAtCleared() bool
- func (m *ReportProjectMutation) Description() (r string, exists bool)
- func (m *ReportProjectMutation) DescriptionCleared() bool
- func (m *ReportProjectMutation) EdgeCleared(name string) bool
- func (m *ReportProjectMutation) Field(name string) (ent.Value, bool)
- func (m *ReportProjectMutation) FieldCleared(name string) bool
- func (m *ReportProjectMutation) Fields() []string
- func (m *ReportProjectMutation) Forks() (r int32, exists bool)
- func (m *ReportProjectMutation) ForksCleared() bool
- func (m *ReportProjectMutation) ID() (id int, exists bool)
- func (m *ReportProjectMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportProjectMutation) Name() (r string, exists bool)
- func (m *ReportProjectMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportProjectMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *ReportProjectMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportProjectMutation) OldForks(ctx context.Context) (v int32, err error)
- func (m *ReportProjectMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ReportProjectMutation) OldStars(ctx context.Context) (v int32, err error)
- func (m *ReportProjectMutation) OldURL(ctx context.Context) (v string, err error)
- func (m *ReportProjectMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportProjectMutation) Op() Op
- func (m *ReportProjectMutation) PackageCleared() bool
- func (m *ReportProjectMutation) PackageID() (id int, exists bool)
- func (m *ReportProjectMutation) PackageIDs() (ids []int)
- func (m *ReportProjectMutation) RemovedEdges() []string
- func (m *ReportProjectMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportProjectMutation) ResetCreatedAt()
- func (m *ReportProjectMutation) ResetDescription()
- func (m *ReportProjectMutation) ResetEdge(name string) error
- func (m *ReportProjectMutation) ResetField(name string) error
- func (m *ReportProjectMutation) ResetForks()
- func (m *ReportProjectMutation) ResetName()
- func (m *ReportProjectMutation) ResetPackage()
- func (m *ReportProjectMutation) ResetScorecard()
- func (m *ReportProjectMutation) ResetStars()
- func (m *ReportProjectMutation) ResetURL()
- func (m *ReportProjectMutation) ResetUpdatedAt()
- func (m *ReportProjectMutation) ScorecardCleared() bool
- func (m *ReportProjectMutation) ScorecardID() (id int, exists bool)
- func (m *ReportProjectMutation) ScorecardIDs() (ids []int)
- func (m *ReportProjectMutation) SetCreatedAt(t time.Time)
- func (m *ReportProjectMutation) SetDescription(s string)
- func (m *ReportProjectMutation) SetField(name string, value ent.Value) error
- func (m *ReportProjectMutation) SetForks(i int32)
- func (m *ReportProjectMutation) SetName(s string)
- func (m *ReportProjectMutation) SetOp(op Op)
- func (m *ReportProjectMutation) SetPackageID(id int)
- func (m *ReportProjectMutation) SetScorecardID(id int)
- func (m *ReportProjectMutation) SetStars(i int32)
- func (m *ReportProjectMutation) SetURL(s string)
- func (m *ReportProjectMutation) SetUpdatedAt(t time.Time)
- func (m *ReportProjectMutation) Stars() (r int32, exists bool)
- func (m *ReportProjectMutation) StarsCleared() bool
- func (m ReportProjectMutation) Tx() (*Tx, error)
- func (m *ReportProjectMutation) Type() string
- func (m *ReportProjectMutation) URL() (r string, exists bool)
- func (m *ReportProjectMutation) URLCleared() bool
- func (m *ReportProjectMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportProjectMutation) UpdatedAtCleared() bool
- func (m *ReportProjectMutation) Where(ps ...predicate.ReportProject)
- func (m *ReportProjectMutation) WhereP(ps ...func(*sql.Selector))
- type ReportProjectQuery
- func (rpq *ReportProjectQuery) Aggregate(fns ...AggregateFunc) *ReportProjectSelect
- func (rpq *ReportProjectQuery) All(ctx context.Context) ([]*ReportProject, error)
- func (rpq *ReportProjectQuery) AllX(ctx context.Context) []*ReportProject
- func (rpq *ReportProjectQuery) Clone() *ReportProjectQuery
- func (rpq *ReportProjectQuery) Count(ctx context.Context) (int, error)
- func (rpq *ReportProjectQuery) CountX(ctx context.Context) int
- func (rpq *ReportProjectQuery) Exist(ctx context.Context) (bool, error)
- func (rpq *ReportProjectQuery) ExistX(ctx context.Context) bool
- func (rpq *ReportProjectQuery) First(ctx context.Context) (*ReportProject, error)
- func (rpq *ReportProjectQuery) FirstID(ctx context.Context) (id int, err error)
- func (rpq *ReportProjectQuery) FirstIDX(ctx context.Context) int
- func (rpq *ReportProjectQuery) FirstX(ctx context.Context) *ReportProject
- func (rpq *ReportProjectQuery) GroupBy(field string, fields ...string) *ReportProjectGroupBy
- func (rpq *ReportProjectQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rpq *ReportProjectQuery) IDsX(ctx context.Context) []int
- func (rpq *ReportProjectQuery) Limit(limit int) *ReportProjectQuery
- func (rpq *ReportProjectQuery) Offset(offset int) *ReportProjectQuery
- func (rpq *ReportProjectQuery) Only(ctx context.Context) (*ReportProject, error)
- func (rpq *ReportProjectQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rpq *ReportProjectQuery) OnlyIDX(ctx context.Context) int
- func (rpq *ReportProjectQuery) OnlyX(ctx context.Context) *ReportProject
- func (rpq *ReportProjectQuery) Order(o ...reportproject.OrderOption) *ReportProjectQuery
- func (rpq *ReportProjectQuery) QueryPackage() *ReportPackageQuery
- func (rpq *ReportProjectQuery) QueryScorecard() *ReportScorecardQuery
- func (rpq *ReportProjectQuery) Select(fields ...string) *ReportProjectSelect
- func (rpq *ReportProjectQuery) Unique(unique bool) *ReportProjectQuery
- func (rpq *ReportProjectQuery) Where(ps ...predicate.ReportProject) *ReportProjectQuery
- func (rpq *ReportProjectQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportProjectQuery
- func (rpq *ReportProjectQuery) WithScorecard(opts ...func(*ReportScorecardQuery)) *ReportProjectQuery
- type ReportProjectSelect
- func (rps *ReportProjectSelect) Aggregate(fns ...AggregateFunc) *ReportProjectSelect
- func (s *ReportProjectSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportProjectSelect) BoolX(ctx context.Context) bool
- func (s *ReportProjectSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportProjectSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportProjectSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportProjectSelect) Float64X(ctx context.Context) float64
- func (s *ReportProjectSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportProjectSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportProjectSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportProjectSelect) IntX(ctx context.Context) int
- func (s *ReportProjectSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportProjectSelect) IntsX(ctx context.Context) []int
- func (rps *ReportProjectSelect) Scan(ctx context.Context, v any) error
- func (s *ReportProjectSelect) ScanX(ctx context.Context, v any)
- func (s *ReportProjectSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportProjectSelect) StringX(ctx context.Context) string
- func (s *ReportProjectSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportProjectSelect) StringsX(ctx context.Context) []string
- type ReportProjectUpdate
- func (rpu *ReportProjectUpdate) AddForks(i int32) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) AddStars(i int32) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearCreatedAt() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearDescription() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearForks() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearPackage() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearScorecard() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearStars() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearURL() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) ClearUpdatedAt() *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) Exec(ctx context.Context) error
- func (rpu *ReportProjectUpdate) ExecX(ctx context.Context)
- func (rpu *ReportProjectUpdate) Mutation() *ReportProjectMutation
- func (rpu *ReportProjectUpdate) Save(ctx context.Context) (int, error)
- func (rpu *ReportProjectUpdate) SaveX(ctx context.Context) int
- func (rpu *ReportProjectUpdate) SetCreatedAt(t time.Time) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetDescription(s string) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetForks(i int32) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetName(s string) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableCreatedAt(t *time.Time) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableDescription(s *string) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableForks(i *int32) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableName(s *string) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillablePackageID(id *int) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableScorecardID(id *int) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableStars(i *int32) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableURL(s *string) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetNillableUpdatedAt(t *time.Time) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetPackage(r *ReportPackage) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetPackageID(id int) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetScorecard(r *ReportScorecard) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetScorecardID(id int) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetStars(i int32) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetURL(s string) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) SetUpdatedAt(t time.Time) *ReportProjectUpdate
- func (rpu *ReportProjectUpdate) Where(ps ...predicate.ReportProject) *ReportProjectUpdate
- type ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) AddForks(i int32) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) AddStars(i int32) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearCreatedAt() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearDescription() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearForks() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearPackage() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearScorecard() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearStars() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearURL() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) ClearUpdatedAt() *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) Exec(ctx context.Context) error
- func (rpuo *ReportProjectUpdateOne) ExecX(ctx context.Context)
- func (rpuo *ReportProjectUpdateOne) Mutation() *ReportProjectMutation
- func (rpuo *ReportProjectUpdateOne) Save(ctx context.Context) (*ReportProject, error)
- func (rpuo *ReportProjectUpdateOne) SaveX(ctx context.Context) *ReportProject
- func (rpuo *ReportProjectUpdateOne) Select(field string, fields ...string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetCreatedAt(t time.Time) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetDescription(s string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetForks(i int32) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetName(s string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableDescription(s *string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableForks(i *int32) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableName(s *string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillablePackageID(id *int) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableScorecardID(id *int) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableStars(i *int32) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableURL(s *string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetPackage(r *ReportPackage) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetPackageID(id int) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetScorecard(r *ReportScorecard) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetScorecardID(id int) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetStars(i int32) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetURL(s string) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) SetUpdatedAt(t time.Time) *ReportProjectUpdateOne
- func (rpuo *ReportProjectUpdateOne) Where(ps ...predicate.ReportProject) *ReportProjectUpdateOne
- type ReportProjects
- type ReportScorecard
- func (rs *ReportScorecard) QueryChecks() *ReportScorecardCheckQuery
- func (rs *ReportScorecard) QueryProject() *ReportProjectQuery
- func (rs *ReportScorecard) String() string
- func (rs *ReportScorecard) Unwrap() *ReportScorecard
- func (rs *ReportScorecard) Update() *ReportScorecardUpdateOne
- func (rs *ReportScorecard) Value(name string) (ent.Value, error)
- type ReportScorecardCheck
- func (rsc *ReportScorecardCheck) QueryScorecard() *ReportScorecardQuery
- func (rsc *ReportScorecardCheck) String() string
- func (rsc *ReportScorecardCheck) Unwrap() *ReportScorecardCheck
- func (rsc *ReportScorecardCheck) Update() *ReportScorecardCheckUpdateOne
- func (rsc *ReportScorecardCheck) Value(name string) (ent.Value, error)
- type ReportScorecardCheckClient
- func (c *ReportScorecardCheckClient) Create() *ReportScorecardCheckCreate
- func (c *ReportScorecardCheckClient) CreateBulk(builders ...*ReportScorecardCheckCreate) *ReportScorecardCheckCreateBulk
- func (c *ReportScorecardCheckClient) Delete() *ReportScorecardCheckDelete
- func (c *ReportScorecardCheckClient) DeleteOne(rsc *ReportScorecardCheck) *ReportScorecardCheckDeleteOne
- func (c *ReportScorecardCheckClient) DeleteOneID(id int) *ReportScorecardCheckDeleteOne
- func (c *ReportScorecardCheckClient) Get(ctx context.Context, id int) (*ReportScorecardCheck, error)
- func (c *ReportScorecardCheckClient) GetX(ctx context.Context, id int) *ReportScorecardCheck
- func (c *ReportScorecardCheckClient) Hooks() []Hook
- func (c *ReportScorecardCheckClient) Intercept(interceptors ...Interceptor)
- func (c *ReportScorecardCheckClient) Interceptors() []Interceptor
- func (c *ReportScorecardCheckClient) MapCreateBulk(slice any, setFunc func(*ReportScorecardCheckCreate, int)) *ReportScorecardCheckCreateBulk
- func (c *ReportScorecardCheckClient) Query() *ReportScorecardCheckQuery
- func (c *ReportScorecardCheckClient) QueryScorecard(rsc *ReportScorecardCheck) *ReportScorecardQuery
- func (c *ReportScorecardCheckClient) Update() *ReportScorecardCheckUpdate
- func (c *ReportScorecardCheckClient) UpdateOne(rsc *ReportScorecardCheck) *ReportScorecardCheckUpdateOne
- func (c *ReportScorecardCheckClient) UpdateOneID(id int) *ReportScorecardCheckUpdateOne
- func (c *ReportScorecardCheckClient) Use(hooks ...Hook)
- type ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) Exec(ctx context.Context) error
- func (rscc *ReportScorecardCheckCreate) ExecX(ctx context.Context)
- func (rscc *ReportScorecardCheckCreate) Mutation() *ReportScorecardCheckMutation
- func (rscc *ReportScorecardCheckCreate) Save(ctx context.Context) (*ReportScorecardCheck, error)
- func (rscc *ReportScorecardCheckCreate) SaveX(ctx context.Context) *ReportScorecardCheck
- func (rscc *ReportScorecardCheckCreate) SetCreatedAt(t time.Time) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetName(s string) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetNillableCreatedAt(t *time.Time) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetNillableReason(s *string) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetNillableScorecardID(id *int) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetReason(s string) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetScore(f float32) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetScorecard(r *ReportScorecard) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetScorecardID(id int) *ReportScorecardCheckCreate
- func (rscc *ReportScorecardCheckCreate) SetUpdatedAt(t time.Time) *ReportScorecardCheckCreate
- type ReportScorecardCheckCreateBulk
- func (rsccb *ReportScorecardCheckCreateBulk) Exec(ctx context.Context) error
- func (rsccb *ReportScorecardCheckCreateBulk) ExecX(ctx context.Context)
- func (rsccb *ReportScorecardCheckCreateBulk) Save(ctx context.Context) ([]*ReportScorecardCheck, error)
- func (rsccb *ReportScorecardCheckCreateBulk) SaveX(ctx context.Context) []*ReportScorecardCheck
- type ReportScorecardCheckDelete
- type ReportScorecardCheckDeleteOne
- type ReportScorecardCheckEdges
- type ReportScorecardCheckGroupBy
- func (rscgb *ReportScorecardCheckGroupBy) Aggregate(fns ...AggregateFunc) *ReportScorecardCheckGroupBy
- func (s *ReportScorecardCheckGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportScorecardCheckGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportScorecardCheckGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportScorecardCheckGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportScorecardCheckGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportScorecardCheckGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportScorecardCheckGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportScorecardCheckGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportScorecardCheckGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportScorecardCheckGroupBy) IntX(ctx context.Context) int
- func (s *ReportScorecardCheckGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportScorecardCheckGroupBy) IntsX(ctx context.Context) []int
- func (rscgb *ReportScorecardCheckGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportScorecardCheckGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportScorecardCheckGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportScorecardCheckGroupBy) StringX(ctx context.Context) string
- func (s *ReportScorecardCheckGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportScorecardCheckGroupBy) StringsX(ctx context.Context) []string
- type ReportScorecardCheckMutation
- func (m *ReportScorecardCheckMutation) AddField(name string, value ent.Value) error
- func (m *ReportScorecardCheckMutation) AddScore(f float32)
- func (m *ReportScorecardCheckMutation) AddedEdges() []string
- func (m *ReportScorecardCheckMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportScorecardCheckMutation) AddedFields() []string
- func (m *ReportScorecardCheckMutation) AddedIDs(name string) []ent.Value
- func (m *ReportScorecardCheckMutation) AddedScore() (r float32, exists bool)
- func (m *ReportScorecardCheckMutation) ClearCreatedAt()
- func (m *ReportScorecardCheckMutation) ClearEdge(name string) error
- func (m *ReportScorecardCheckMutation) ClearField(name string) error
- func (m *ReportScorecardCheckMutation) ClearReason()
- func (m *ReportScorecardCheckMutation) ClearScorecard()
- func (m *ReportScorecardCheckMutation) ClearUpdatedAt()
- func (m *ReportScorecardCheckMutation) ClearedEdges() []string
- func (m *ReportScorecardCheckMutation) ClearedFields() []string
- func (m ReportScorecardCheckMutation) Client() *Client
- func (m *ReportScorecardCheckMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportScorecardCheckMutation) CreatedAtCleared() bool
- func (m *ReportScorecardCheckMutation) EdgeCleared(name string) bool
- func (m *ReportScorecardCheckMutation) Field(name string) (ent.Value, bool)
- func (m *ReportScorecardCheckMutation) FieldCleared(name string) bool
- func (m *ReportScorecardCheckMutation) Fields() []string
- func (m *ReportScorecardCheckMutation) ID() (id int, exists bool)
- func (m *ReportScorecardCheckMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportScorecardCheckMutation) Name() (r string, exists bool)
- func (m *ReportScorecardCheckMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportScorecardCheckMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportScorecardCheckMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ReportScorecardCheckMutation) OldReason(ctx context.Context) (v string, err error)
- func (m *ReportScorecardCheckMutation) OldScore(ctx context.Context) (v float32, err error)
- func (m *ReportScorecardCheckMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportScorecardCheckMutation) Op() Op
- func (m *ReportScorecardCheckMutation) Reason() (r string, exists bool)
- func (m *ReportScorecardCheckMutation) ReasonCleared() bool
- func (m *ReportScorecardCheckMutation) RemovedEdges() []string
- func (m *ReportScorecardCheckMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportScorecardCheckMutation) ResetCreatedAt()
- func (m *ReportScorecardCheckMutation) ResetEdge(name string) error
- func (m *ReportScorecardCheckMutation) ResetField(name string) error
- func (m *ReportScorecardCheckMutation) ResetName()
- func (m *ReportScorecardCheckMutation) ResetReason()
- func (m *ReportScorecardCheckMutation) ResetScore()
- func (m *ReportScorecardCheckMutation) ResetScorecard()
- func (m *ReportScorecardCheckMutation) ResetUpdatedAt()
- func (m *ReportScorecardCheckMutation) Score() (r float32, exists bool)
- func (m *ReportScorecardCheckMutation) ScorecardCleared() bool
- func (m *ReportScorecardCheckMutation) ScorecardID() (id int, exists bool)
- func (m *ReportScorecardCheckMutation) ScorecardIDs() (ids []int)
- func (m *ReportScorecardCheckMutation) SetCreatedAt(t time.Time)
- func (m *ReportScorecardCheckMutation) SetField(name string, value ent.Value) error
- func (m *ReportScorecardCheckMutation) SetName(s string)
- func (m *ReportScorecardCheckMutation) SetOp(op Op)
- func (m *ReportScorecardCheckMutation) SetReason(s string)
- func (m *ReportScorecardCheckMutation) SetScore(f float32)
- func (m *ReportScorecardCheckMutation) SetScorecardID(id int)
- func (m *ReportScorecardCheckMutation) SetUpdatedAt(t time.Time)
- func (m ReportScorecardCheckMutation) Tx() (*Tx, error)
- func (m *ReportScorecardCheckMutation) Type() string
- func (m *ReportScorecardCheckMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportScorecardCheckMutation) UpdatedAtCleared() bool
- func (m *ReportScorecardCheckMutation) Where(ps ...predicate.ReportScorecardCheck)
- func (m *ReportScorecardCheckMutation) WhereP(ps ...func(*sql.Selector))
- type ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) Aggregate(fns ...AggregateFunc) *ReportScorecardCheckSelect
- func (rscq *ReportScorecardCheckQuery) All(ctx context.Context) ([]*ReportScorecardCheck, error)
- func (rscq *ReportScorecardCheckQuery) AllX(ctx context.Context) []*ReportScorecardCheck
- func (rscq *ReportScorecardCheckQuery) Clone() *ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) Count(ctx context.Context) (int, error)
- func (rscq *ReportScorecardCheckQuery) CountX(ctx context.Context) int
- func (rscq *ReportScorecardCheckQuery) Exist(ctx context.Context) (bool, error)
- func (rscq *ReportScorecardCheckQuery) ExistX(ctx context.Context) bool
- func (rscq *ReportScorecardCheckQuery) First(ctx context.Context) (*ReportScorecardCheck, error)
- func (rscq *ReportScorecardCheckQuery) FirstID(ctx context.Context) (id int, err error)
- func (rscq *ReportScorecardCheckQuery) FirstIDX(ctx context.Context) int
- func (rscq *ReportScorecardCheckQuery) FirstX(ctx context.Context) *ReportScorecardCheck
- func (rscq *ReportScorecardCheckQuery) GroupBy(field string, fields ...string) *ReportScorecardCheckGroupBy
- func (rscq *ReportScorecardCheckQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rscq *ReportScorecardCheckQuery) IDsX(ctx context.Context) []int
- func (rscq *ReportScorecardCheckQuery) Limit(limit int) *ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) Offset(offset int) *ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) Only(ctx context.Context) (*ReportScorecardCheck, error)
- func (rscq *ReportScorecardCheckQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rscq *ReportScorecardCheckQuery) OnlyIDX(ctx context.Context) int
- func (rscq *ReportScorecardCheckQuery) OnlyX(ctx context.Context) *ReportScorecardCheck
- func (rscq *ReportScorecardCheckQuery) Order(o ...reportscorecardcheck.OrderOption) *ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) QueryScorecard() *ReportScorecardQuery
- func (rscq *ReportScorecardCheckQuery) Select(fields ...string) *ReportScorecardCheckSelect
- func (rscq *ReportScorecardCheckQuery) Unique(unique bool) *ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckQuery
- func (rscq *ReportScorecardCheckQuery) WithScorecard(opts ...func(*ReportScorecardQuery)) *ReportScorecardCheckQuery
- type ReportScorecardCheckSelect
- func (rscs *ReportScorecardCheckSelect) Aggregate(fns ...AggregateFunc) *ReportScorecardCheckSelect
- func (s *ReportScorecardCheckSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportScorecardCheckSelect) BoolX(ctx context.Context) bool
- func (s *ReportScorecardCheckSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportScorecardCheckSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportScorecardCheckSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportScorecardCheckSelect) Float64X(ctx context.Context) float64
- func (s *ReportScorecardCheckSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportScorecardCheckSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportScorecardCheckSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportScorecardCheckSelect) IntX(ctx context.Context) int
- func (s *ReportScorecardCheckSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportScorecardCheckSelect) IntsX(ctx context.Context) []int
- func (rscs *ReportScorecardCheckSelect) Scan(ctx context.Context, v any) error
- func (s *ReportScorecardCheckSelect) ScanX(ctx context.Context, v any)
- func (s *ReportScorecardCheckSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportScorecardCheckSelect) StringX(ctx context.Context) string
- func (s *ReportScorecardCheckSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportScorecardCheckSelect) StringsX(ctx context.Context) []string
- type ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) AddScore(f float32) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) ClearCreatedAt() *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) ClearReason() *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) ClearScorecard() *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) ClearUpdatedAt() *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) Exec(ctx context.Context) error
- func (rscu *ReportScorecardCheckUpdate) ExecX(ctx context.Context)
- func (rscu *ReportScorecardCheckUpdate) Mutation() *ReportScorecardCheckMutation
- func (rscu *ReportScorecardCheckUpdate) Save(ctx context.Context) (int, error)
- func (rscu *ReportScorecardCheckUpdate) SaveX(ctx context.Context) int
- func (rscu *ReportScorecardCheckUpdate) SetCreatedAt(t time.Time) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetName(s string) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetNillableCreatedAt(t *time.Time) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetNillableName(s *string) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetNillableReason(s *string) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetNillableScore(f *float32) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetNillableScorecardID(id *int) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetReason(s string) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetScore(f float32) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetScorecard(r *ReportScorecard) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetScorecardID(id int) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) SetUpdatedAt(t time.Time) *ReportScorecardCheckUpdate
- func (rscu *ReportScorecardCheckUpdate) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckUpdate
- type ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) AddScore(f float32) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) ClearCreatedAt() *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) ClearReason() *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) ClearScorecard() *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) ClearUpdatedAt() *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) Exec(ctx context.Context) error
- func (rscuo *ReportScorecardCheckUpdateOne) ExecX(ctx context.Context)
- func (rscuo *ReportScorecardCheckUpdateOne) Mutation() *ReportScorecardCheckMutation
- func (rscuo *ReportScorecardCheckUpdateOne) Save(ctx context.Context) (*ReportScorecardCheck, error)
- func (rscuo *ReportScorecardCheckUpdateOne) SaveX(ctx context.Context) *ReportScorecardCheck
- func (rscuo *ReportScorecardCheckUpdateOne) Select(field string, fields ...string) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetCreatedAt(t time.Time) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetName(s string) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetNillableName(s *string) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetNillableReason(s *string) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetNillableScore(f *float32) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetNillableScorecardID(id *int) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetReason(s string) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetScore(f float32) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetScorecard(r *ReportScorecard) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetScorecardID(id int) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) SetUpdatedAt(t time.Time) *ReportScorecardCheckUpdateOne
- func (rscuo *ReportScorecardCheckUpdateOne) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckUpdateOne
- type ReportScorecardChecks
- type ReportScorecardClient
- func (c *ReportScorecardClient) Create() *ReportScorecardCreate
- func (c *ReportScorecardClient) CreateBulk(builders ...*ReportScorecardCreate) *ReportScorecardCreateBulk
- func (c *ReportScorecardClient) Delete() *ReportScorecardDelete
- func (c *ReportScorecardClient) DeleteOne(rs *ReportScorecard) *ReportScorecardDeleteOne
- func (c *ReportScorecardClient) DeleteOneID(id int) *ReportScorecardDeleteOne
- func (c *ReportScorecardClient) Get(ctx context.Context, id int) (*ReportScorecard, error)
- func (c *ReportScorecardClient) GetX(ctx context.Context, id int) *ReportScorecard
- func (c *ReportScorecardClient) Hooks() []Hook
- func (c *ReportScorecardClient) Intercept(interceptors ...Interceptor)
- func (c *ReportScorecardClient) Interceptors() []Interceptor
- func (c *ReportScorecardClient) MapCreateBulk(slice any, setFunc func(*ReportScorecardCreate, int)) *ReportScorecardCreateBulk
- func (c *ReportScorecardClient) Query() *ReportScorecardQuery
- func (c *ReportScorecardClient) QueryChecks(rs *ReportScorecard) *ReportScorecardCheckQuery
- func (c *ReportScorecardClient) QueryProject(rs *ReportScorecard) *ReportProjectQuery
- func (c *ReportScorecardClient) Update() *ReportScorecardUpdate
- func (c *ReportScorecardClient) UpdateOne(rs *ReportScorecard) *ReportScorecardUpdateOne
- func (c *ReportScorecardClient) UpdateOneID(id int) *ReportScorecardUpdateOne
- func (c *ReportScorecardClient) Use(hooks ...Hook)
- type ReportScorecardCreate
- func (rsc *ReportScorecardCreate) AddCheckIDs(ids ...int) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) AddChecks(r ...*ReportScorecardCheck) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) Exec(ctx context.Context) error
- func (rsc *ReportScorecardCreate) ExecX(ctx context.Context)
- func (rsc *ReportScorecardCreate) Mutation() *ReportScorecardMutation
- func (rsc *ReportScorecardCreate) Save(ctx context.Context) (*ReportScorecard, error)
- func (rsc *ReportScorecardCreate) SaveX(ctx context.Context) *ReportScorecard
- func (rsc *ReportScorecardCreate) SetCreatedAt(t time.Time) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetDate(s string) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetNillableCreatedAt(t *time.Time) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetNillableDate(s *string) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetNillableProjectID(id *int) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetProject(r *ReportProject) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetProjectID(id int) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetRepoCommit(s string) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetRepoName(s string) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetScore(f float32) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetScorecardVersion(s string) *ReportScorecardCreate
- func (rsc *ReportScorecardCreate) SetUpdatedAt(t time.Time) *ReportScorecardCreate
- type ReportScorecardCreateBulk
- func (rscb *ReportScorecardCreateBulk) Exec(ctx context.Context) error
- func (rscb *ReportScorecardCreateBulk) ExecX(ctx context.Context)
- func (rscb *ReportScorecardCreateBulk) Save(ctx context.Context) ([]*ReportScorecard, error)
- func (rscb *ReportScorecardCreateBulk) SaveX(ctx context.Context) []*ReportScorecard
- type ReportScorecardDelete
- type ReportScorecardDeleteOne
- type ReportScorecardEdges
- type ReportScorecardGroupBy
- func (rsgb *ReportScorecardGroupBy) Aggregate(fns ...AggregateFunc) *ReportScorecardGroupBy
- func (s *ReportScorecardGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportScorecardGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportScorecardGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportScorecardGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportScorecardGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportScorecardGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportScorecardGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportScorecardGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportScorecardGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportScorecardGroupBy) IntX(ctx context.Context) int
- func (s *ReportScorecardGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportScorecardGroupBy) IntsX(ctx context.Context) []int
- func (rsgb *ReportScorecardGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportScorecardGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportScorecardGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportScorecardGroupBy) StringX(ctx context.Context) string
- func (s *ReportScorecardGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportScorecardGroupBy) StringsX(ctx context.Context) []string
- type ReportScorecardMutation
- func (m *ReportScorecardMutation) AddCheckIDs(ids ...int)
- func (m *ReportScorecardMutation) AddField(name string, value ent.Value) error
- func (m *ReportScorecardMutation) AddScore(f float32)
- func (m *ReportScorecardMutation) AddedEdges() []string
- func (m *ReportScorecardMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportScorecardMutation) AddedFields() []string
- func (m *ReportScorecardMutation) AddedIDs(name string) []ent.Value
- func (m *ReportScorecardMutation) AddedScore() (r float32, exists bool)
- func (m *ReportScorecardMutation) ChecksCleared() bool
- func (m *ReportScorecardMutation) ChecksIDs() (ids []int)
- func (m *ReportScorecardMutation) ClearChecks()
- func (m *ReportScorecardMutation) ClearCreatedAt()
- func (m *ReportScorecardMutation) ClearDate()
- func (m *ReportScorecardMutation) ClearEdge(name string) error
- func (m *ReportScorecardMutation) ClearField(name string) error
- func (m *ReportScorecardMutation) ClearProject()
- func (m *ReportScorecardMutation) ClearUpdatedAt()
- func (m *ReportScorecardMutation) ClearedEdges() []string
- func (m *ReportScorecardMutation) ClearedFields() []string
- func (m ReportScorecardMutation) Client() *Client
- func (m *ReportScorecardMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportScorecardMutation) CreatedAtCleared() bool
- func (m *ReportScorecardMutation) Date() (r string, exists bool)
- func (m *ReportScorecardMutation) DateCleared() bool
- func (m *ReportScorecardMutation) EdgeCleared(name string) bool
- func (m *ReportScorecardMutation) Field(name string) (ent.Value, bool)
- func (m *ReportScorecardMutation) FieldCleared(name string) bool
- func (m *ReportScorecardMutation) Fields() []string
- func (m *ReportScorecardMutation) ID() (id int, exists bool)
- func (m *ReportScorecardMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportScorecardMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportScorecardMutation) OldDate(ctx context.Context) (v string, err error)
- func (m *ReportScorecardMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportScorecardMutation) OldRepoCommit(ctx context.Context) (v string, err error)
- func (m *ReportScorecardMutation) OldRepoName(ctx context.Context) (v string, err error)
- func (m *ReportScorecardMutation) OldScore(ctx context.Context) (v float32, err error)
- func (m *ReportScorecardMutation) OldScorecardVersion(ctx context.Context) (v string, err error)
- func (m *ReportScorecardMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportScorecardMutation) Op() Op
- func (m *ReportScorecardMutation) ProjectCleared() bool
- func (m *ReportScorecardMutation) ProjectID() (id int, exists bool)
- func (m *ReportScorecardMutation) ProjectIDs() (ids []int)
- func (m *ReportScorecardMutation) RemoveCheckIDs(ids ...int)
- func (m *ReportScorecardMutation) RemovedChecksIDs() (ids []int)
- func (m *ReportScorecardMutation) RemovedEdges() []string
- func (m *ReportScorecardMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportScorecardMutation) RepoCommit() (r string, exists bool)
- func (m *ReportScorecardMutation) RepoName() (r string, exists bool)
- func (m *ReportScorecardMutation) ResetChecks()
- func (m *ReportScorecardMutation) ResetCreatedAt()
- func (m *ReportScorecardMutation) ResetDate()
- func (m *ReportScorecardMutation) ResetEdge(name string) error
- func (m *ReportScorecardMutation) ResetField(name string) error
- func (m *ReportScorecardMutation) ResetProject()
- func (m *ReportScorecardMutation) ResetRepoCommit()
- func (m *ReportScorecardMutation) ResetRepoName()
- func (m *ReportScorecardMutation) ResetScore()
- func (m *ReportScorecardMutation) ResetScorecardVersion()
- func (m *ReportScorecardMutation) ResetUpdatedAt()
- func (m *ReportScorecardMutation) Score() (r float32, exists bool)
- func (m *ReportScorecardMutation) ScorecardVersion() (r string, exists bool)
- func (m *ReportScorecardMutation) SetCreatedAt(t time.Time)
- func (m *ReportScorecardMutation) SetDate(s string)
- func (m *ReportScorecardMutation) SetField(name string, value ent.Value) error
- func (m *ReportScorecardMutation) SetOp(op Op)
- func (m *ReportScorecardMutation) SetProjectID(id int)
- func (m *ReportScorecardMutation) SetRepoCommit(s string)
- func (m *ReportScorecardMutation) SetRepoName(s string)
- func (m *ReportScorecardMutation) SetScore(f float32)
- func (m *ReportScorecardMutation) SetScorecardVersion(s string)
- func (m *ReportScorecardMutation) SetUpdatedAt(t time.Time)
- func (m ReportScorecardMutation) Tx() (*Tx, error)
- func (m *ReportScorecardMutation) Type() string
- func (m *ReportScorecardMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportScorecardMutation) UpdatedAtCleared() bool
- func (m *ReportScorecardMutation) Where(ps ...predicate.ReportScorecard)
- func (m *ReportScorecardMutation) WhereP(ps ...func(*sql.Selector))
- type ReportScorecardQuery
- func (rsq *ReportScorecardQuery) Aggregate(fns ...AggregateFunc) *ReportScorecardSelect
- func (rsq *ReportScorecardQuery) All(ctx context.Context) ([]*ReportScorecard, error)
- func (rsq *ReportScorecardQuery) AllX(ctx context.Context) []*ReportScorecard
- func (rsq *ReportScorecardQuery) Clone() *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) Count(ctx context.Context) (int, error)
- func (rsq *ReportScorecardQuery) CountX(ctx context.Context) int
- func (rsq *ReportScorecardQuery) Exist(ctx context.Context) (bool, error)
- func (rsq *ReportScorecardQuery) ExistX(ctx context.Context) bool
- func (rsq *ReportScorecardQuery) First(ctx context.Context) (*ReportScorecard, error)
- func (rsq *ReportScorecardQuery) FirstID(ctx context.Context) (id int, err error)
- func (rsq *ReportScorecardQuery) FirstIDX(ctx context.Context) int
- func (rsq *ReportScorecardQuery) FirstX(ctx context.Context) *ReportScorecard
- func (rsq *ReportScorecardQuery) GroupBy(field string, fields ...string) *ReportScorecardGroupBy
- func (rsq *ReportScorecardQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rsq *ReportScorecardQuery) IDsX(ctx context.Context) []int
- func (rsq *ReportScorecardQuery) Limit(limit int) *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) Offset(offset int) *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) Only(ctx context.Context) (*ReportScorecard, error)
- func (rsq *ReportScorecardQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rsq *ReportScorecardQuery) OnlyIDX(ctx context.Context) int
- func (rsq *ReportScorecardQuery) OnlyX(ctx context.Context) *ReportScorecard
- func (rsq *ReportScorecardQuery) Order(o ...reportscorecard.OrderOption) *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) QueryChecks() *ReportScorecardCheckQuery
- func (rsq *ReportScorecardQuery) QueryProject() *ReportProjectQuery
- func (rsq *ReportScorecardQuery) Select(fields ...string) *ReportScorecardSelect
- func (rsq *ReportScorecardQuery) Unique(unique bool) *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) Where(ps ...predicate.ReportScorecard) *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) WithChecks(opts ...func(*ReportScorecardCheckQuery)) *ReportScorecardQuery
- func (rsq *ReportScorecardQuery) WithProject(opts ...func(*ReportProjectQuery)) *ReportScorecardQuery
- type ReportScorecardSelect
- func (rss *ReportScorecardSelect) Aggregate(fns ...AggregateFunc) *ReportScorecardSelect
- func (s *ReportScorecardSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportScorecardSelect) BoolX(ctx context.Context) bool
- func (s *ReportScorecardSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportScorecardSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportScorecardSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportScorecardSelect) Float64X(ctx context.Context) float64
- func (s *ReportScorecardSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportScorecardSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportScorecardSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportScorecardSelect) IntX(ctx context.Context) int
- func (s *ReportScorecardSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportScorecardSelect) IntsX(ctx context.Context) []int
- func (rss *ReportScorecardSelect) Scan(ctx context.Context, v any) error
- func (s *ReportScorecardSelect) ScanX(ctx context.Context, v any)
- func (s *ReportScorecardSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportScorecardSelect) StringX(ctx context.Context) string
- func (s *ReportScorecardSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportScorecardSelect) StringsX(ctx context.Context) []string
- type ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) AddCheckIDs(ids ...int) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) AddChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) AddScore(f float32) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) ClearChecks() *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) ClearCreatedAt() *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) ClearDate() *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) ClearProject() *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) ClearUpdatedAt() *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) Exec(ctx context.Context) error
- func (rsu *ReportScorecardUpdate) ExecX(ctx context.Context)
- func (rsu *ReportScorecardUpdate) Mutation() *ReportScorecardMutation
- func (rsu *ReportScorecardUpdate) RemoveCheckIDs(ids ...int) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) RemoveChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) Save(ctx context.Context) (int, error)
- func (rsu *ReportScorecardUpdate) SaveX(ctx context.Context) int
- func (rsu *ReportScorecardUpdate) SetCreatedAt(t time.Time) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetDate(s string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableCreatedAt(t *time.Time) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableDate(s *string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableProjectID(id *int) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableRepoCommit(s *string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableRepoName(s *string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableScore(f *float32) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableScorecardVersion(s *string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetNillableUpdatedAt(t *time.Time) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetProject(r *ReportProject) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetProjectID(id int) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetRepoCommit(s string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetRepoName(s string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetScore(f float32) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetScorecardVersion(s string) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) SetUpdatedAt(t time.Time) *ReportScorecardUpdate
- func (rsu *ReportScorecardUpdate) Where(ps ...predicate.ReportScorecard) *ReportScorecardUpdate
- type ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) AddCheckIDs(ids ...int) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) AddChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) AddScore(f float32) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) ClearChecks() *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) ClearCreatedAt() *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) ClearDate() *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) ClearProject() *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) ClearUpdatedAt() *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) Exec(ctx context.Context) error
- func (rsuo *ReportScorecardUpdateOne) ExecX(ctx context.Context)
- func (rsuo *ReportScorecardUpdateOne) Mutation() *ReportScorecardMutation
- func (rsuo *ReportScorecardUpdateOne) RemoveCheckIDs(ids ...int) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) RemoveChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) Save(ctx context.Context) (*ReportScorecard, error)
- func (rsuo *ReportScorecardUpdateOne) SaveX(ctx context.Context) *ReportScorecard
- func (rsuo *ReportScorecardUpdateOne) Select(field string, fields ...string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetCreatedAt(t time.Time) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetDate(s string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableDate(s *string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableProjectID(id *int) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableRepoCommit(s *string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableRepoName(s *string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableScore(f *float32) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableScorecardVersion(s *string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetProject(r *ReportProject) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetProjectID(id int) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetRepoCommit(s string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetRepoName(s string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetScore(f float32) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetScorecardVersion(s string) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) SetUpdatedAt(t time.Time) *ReportScorecardUpdateOne
- func (rsuo *ReportScorecardUpdateOne) Where(ps ...predicate.ReportScorecard) *ReportScorecardUpdateOne
- type ReportScorecards
- type ReportSlsaProvenance
- func (rsp *ReportSlsaProvenance) QueryPackage() *ReportPackageQuery
- func (rsp *ReportSlsaProvenance) String() string
- func (rsp *ReportSlsaProvenance) Unwrap() *ReportSlsaProvenance
- func (rsp *ReportSlsaProvenance) Update() *ReportSlsaProvenanceUpdateOne
- func (rsp *ReportSlsaProvenance) Value(name string) (ent.Value, error)
- type ReportSlsaProvenanceClient
- func (c *ReportSlsaProvenanceClient) Create() *ReportSlsaProvenanceCreate
- func (c *ReportSlsaProvenanceClient) CreateBulk(builders ...*ReportSlsaProvenanceCreate) *ReportSlsaProvenanceCreateBulk
- func (c *ReportSlsaProvenanceClient) Delete() *ReportSlsaProvenanceDelete
- func (c *ReportSlsaProvenanceClient) DeleteOne(rsp *ReportSlsaProvenance) *ReportSlsaProvenanceDeleteOne
- func (c *ReportSlsaProvenanceClient) DeleteOneID(id int) *ReportSlsaProvenanceDeleteOne
- func (c *ReportSlsaProvenanceClient) Get(ctx context.Context, id int) (*ReportSlsaProvenance, error)
- func (c *ReportSlsaProvenanceClient) GetX(ctx context.Context, id int) *ReportSlsaProvenance
- func (c *ReportSlsaProvenanceClient) Hooks() []Hook
- func (c *ReportSlsaProvenanceClient) Intercept(interceptors ...Interceptor)
- func (c *ReportSlsaProvenanceClient) Interceptors() []Interceptor
- func (c *ReportSlsaProvenanceClient) MapCreateBulk(slice any, setFunc func(*ReportSlsaProvenanceCreate, int)) *ReportSlsaProvenanceCreateBulk
- func (c *ReportSlsaProvenanceClient) Query() *ReportSlsaProvenanceQuery
- func (c *ReportSlsaProvenanceClient) QueryPackage(rsp *ReportSlsaProvenance) *ReportPackageQuery
- func (c *ReportSlsaProvenanceClient) Update() *ReportSlsaProvenanceUpdate
- func (c *ReportSlsaProvenanceClient) UpdateOne(rsp *ReportSlsaProvenance) *ReportSlsaProvenanceUpdateOne
- func (c *ReportSlsaProvenanceClient) UpdateOneID(id int) *ReportSlsaProvenanceUpdateOne
- func (c *ReportSlsaProvenanceClient) Use(hooks ...Hook)
- type ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) Exec(ctx context.Context) error
- func (rspc *ReportSlsaProvenanceCreate) ExecX(ctx context.Context)
- func (rspc *ReportSlsaProvenanceCreate) Mutation() *ReportSlsaProvenanceMutation
- func (rspc *ReportSlsaProvenanceCreate) Save(ctx context.Context) (*ReportSlsaProvenance, error)
- func (rspc *ReportSlsaProvenanceCreate) SaveX(ctx context.Context) *ReportSlsaProvenance
- func (rspc *ReportSlsaProvenanceCreate) SetCommitSha(s string) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetCreatedAt(t time.Time) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetNillableCreatedAt(t *time.Time) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetNillablePackageID(id *int) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetNillableUpdatedAt(t *time.Time) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetNillableVerified(b *bool) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetPackage(r *ReportPackage) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetPackageID(id int) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetSourceRepository(s string) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetURL(s string) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetUpdatedAt(t time.Time) *ReportSlsaProvenanceCreate
- func (rspc *ReportSlsaProvenanceCreate) SetVerified(b bool) *ReportSlsaProvenanceCreate
- type ReportSlsaProvenanceCreateBulk
- func (rspcb *ReportSlsaProvenanceCreateBulk) Exec(ctx context.Context) error
- func (rspcb *ReportSlsaProvenanceCreateBulk) ExecX(ctx context.Context)
- func (rspcb *ReportSlsaProvenanceCreateBulk) Save(ctx context.Context) ([]*ReportSlsaProvenance, error)
- func (rspcb *ReportSlsaProvenanceCreateBulk) SaveX(ctx context.Context) []*ReportSlsaProvenance
- type ReportSlsaProvenanceDelete
- type ReportSlsaProvenanceDeleteOne
- type ReportSlsaProvenanceEdges
- type ReportSlsaProvenanceGroupBy
- func (rspgb *ReportSlsaProvenanceGroupBy) Aggregate(fns ...AggregateFunc) *ReportSlsaProvenanceGroupBy
- func (s *ReportSlsaProvenanceGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportSlsaProvenanceGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportSlsaProvenanceGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportSlsaProvenanceGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportSlsaProvenanceGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportSlsaProvenanceGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportSlsaProvenanceGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportSlsaProvenanceGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportSlsaProvenanceGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportSlsaProvenanceGroupBy) IntX(ctx context.Context) int
- func (s *ReportSlsaProvenanceGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportSlsaProvenanceGroupBy) IntsX(ctx context.Context) []int
- func (rspgb *ReportSlsaProvenanceGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportSlsaProvenanceGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportSlsaProvenanceGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportSlsaProvenanceGroupBy) StringX(ctx context.Context) string
- func (s *ReportSlsaProvenanceGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportSlsaProvenanceGroupBy) StringsX(ctx context.Context) []string
- type ReportSlsaProvenanceMutation
- func (m *ReportSlsaProvenanceMutation) AddField(name string, value ent.Value) error
- func (m *ReportSlsaProvenanceMutation) AddedEdges() []string
- func (m *ReportSlsaProvenanceMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportSlsaProvenanceMutation) AddedFields() []string
- func (m *ReportSlsaProvenanceMutation) AddedIDs(name string) []ent.Value
- func (m *ReportSlsaProvenanceMutation) ClearCreatedAt()
- func (m *ReportSlsaProvenanceMutation) ClearEdge(name string) error
- func (m *ReportSlsaProvenanceMutation) ClearField(name string) error
- func (m *ReportSlsaProvenanceMutation) ClearPackage()
- func (m *ReportSlsaProvenanceMutation) ClearUpdatedAt()
- func (m *ReportSlsaProvenanceMutation) ClearedEdges() []string
- func (m *ReportSlsaProvenanceMutation) ClearedFields() []string
- func (m ReportSlsaProvenanceMutation) Client() *Client
- func (m *ReportSlsaProvenanceMutation) CommitSha() (r string, exists bool)
- func (m *ReportSlsaProvenanceMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportSlsaProvenanceMutation) CreatedAtCleared() bool
- func (m *ReportSlsaProvenanceMutation) EdgeCleared(name string) bool
- func (m *ReportSlsaProvenanceMutation) Field(name string) (ent.Value, bool)
- func (m *ReportSlsaProvenanceMutation) FieldCleared(name string) bool
- func (m *ReportSlsaProvenanceMutation) Fields() []string
- func (m *ReportSlsaProvenanceMutation) ID() (id int, exists bool)
- func (m *ReportSlsaProvenanceMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportSlsaProvenanceMutation) OldCommitSha(ctx context.Context) (v string, err error)
- func (m *ReportSlsaProvenanceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportSlsaProvenanceMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportSlsaProvenanceMutation) OldSourceRepository(ctx context.Context) (v string, err error)
- func (m *ReportSlsaProvenanceMutation) OldURL(ctx context.Context) (v string, err error)
- func (m *ReportSlsaProvenanceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportSlsaProvenanceMutation) OldVerified(ctx context.Context) (v bool, err error)
- func (m *ReportSlsaProvenanceMutation) Op() Op
- func (m *ReportSlsaProvenanceMutation) PackageCleared() bool
- func (m *ReportSlsaProvenanceMutation) PackageID() (id int, exists bool)
- func (m *ReportSlsaProvenanceMutation) PackageIDs() (ids []int)
- func (m *ReportSlsaProvenanceMutation) RemovedEdges() []string
- func (m *ReportSlsaProvenanceMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportSlsaProvenanceMutation) ResetCommitSha()
- func (m *ReportSlsaProvenanceMutation) ResetCreatedAt()
- func (m *ReportSlsaProvenanceMutation) ResetEdge(name string) error
- func (m *ReportSlsaProvenanceMutation) ResetField(name string) error
- func (m *ReportSlsaProvenanceMutation) ResetPackage()
- func (m *ReportSlsaProvenanceMutation) ResetSourceRepository()
- func (m *ReportSlsaProvenanceMutation) ResetURL()
- func (m *ReportSlsaProvenanceMutation) ResetUpdatedAt()
- func (m *ReportSlsaProvenanceMutation) ResetVerified()
- func (m *ReportSlsaProvenanceMutation) SetCommitSha(s string)
- func (m *ReportSlsaProvenanceMutation) SetCreatedAt(t time.Time)
- func (m *ReportSlsaProvenanceMutation) SetField(name string, value ent.Value) error
- func (m *ReportSlsaProvenanceMutation) SetOp(op Op)
- func (m *ReportSlsaProvenanceMutation) SetPackageID(id int)
- func (m *ReportSlsaProvenanceMutation) SetSourceRepository(s string)
- func (m *ReportSlsaProvenanceMutation) SetURL(s string)
- func (m *ReportSlsaProvenanceMutation) SetUpdatedAt(t time.Time)
- func (m *ReportSlsaProvenanceMutation) SetVerified(b bool)
- func (m *ReportSlsaProvenanceMutation) SourceRepository() (r string, exists bool)
- func (m ReportSlsaProvenanceMutation) Tx() (*Tx, error)
- func (m *ReportSlsaProvenanceMutation) Type() string
- func (m *ReportSlsaProvenanceMutation) URL() (r string, exists bool)
- func (m *ReportSlsaProvenanceMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportSlsaProvenanceMutation) UpdatedAtCleared() bool
- func (m *ReportSlsaProvenanceMutation) Verified() (r bool, exists bool)
- func (m *ReportSlsaProvenanceMutation) Where(ps ...predicate.ReportSlsaProvenance)
- func (m *ReportSlsaProvenanceMutation) WhereP(ps ...func(*sql.Selector))
- type ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) Aggregate(fns ...AggregateFunc) *ReportSlsaProvenanceSelect
- func (rspq *ReportSlsaProvenanceQuery) All(ctx context.Context) ([]*ReportSlsaProvenance, error)
- func (rspq *ReportSlsaProvenanceQuery) AllX(ctx context.Context) []*ReportSlsaProvenance
- func (rspq *ReportSlsaProvenanceQuery) Clone() *ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) Count(ctx context.Context) (int, error)
- func (rspq *ReportSlsaProvenanceQuery) CountX(ctx context.Context) int
- func (rspq *ReportSlsaProvenanceQuery) Exist(ctx context.Context) (bool, error)
- func (rspq *ReportSlsaProvenanceQuery) ExistX(ctx context.Context) bool
- func (rspq *ReportSlsaProvenanceQuery) First(ctx context.Context) (*ReportSlsaProvenance, error)
- func (rspq *ReportSlsaProvenanceQuery) FirstID(ctx context.Context) (id int, err error)
- func (rspq *ReportSlsaProvenanceQuery) FirstIDX(ctx context.Context) int
- func (rspq *ReportSlsaProvenanceQuery) FirstX(ctx context.Context) *ReportSlsaProvenance
- func (rspq *ReportSlsaProvenanceQuery) GroupBy(field string, fields ...string) *ReportSlsaProvenanceGroupBy
- func (rspq *ReportSlsaProvenanceQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rspq *ReportSlsaProvenanceQuery) IDsX(ctx context.Context) []int
- func (rspq *ReportSlsaProvenanceQuery) Limit(limit int) *ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) Offset(offset int) *ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) Only(ctx context.Context) (*ReportSlsaProvenance, error)
- func (rspq *ReportSlsaProvenanceQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rspq *ReportSlsaProvenanceQuery) OnlyIDX(ctx context.Context) int
- func (rspq *ReportSlsaProvenanceQuery) OnlyX(ctx context.Context) *ReportSlsaProvenance
- func (rspq *ReportSlsaProvenanceQuery) Order(o ...reportslsaprovenance.OrderOption) *ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) QueryPackage() *ReportPackageQuery
- func (rspq *ReportSlsaProvenanceQuery) Select(fields ...string) *ReportSlsaProvenanceSelect
- func (rspq *ReportSlsaProvenanceQuery) Unique(unique bool) *ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceQuery
- func (rspq *ReportSlsaProvenanceQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportSlsaProvenanceQuery
- type ReportSlsaProvenanceSelect
- func (rsps *ReportSlsaProvenanceSelect) Aggregate(fns ...AggregateFunc) *ReportSlsaProvenanceSelect
- func (s *ReportSlsaProvenanceSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportSlsaProvenanceSelect) BoolX(ctx context.Context) bool
- func (s *ReportSlsaProvenanceSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportSlsaProvenanceSelect) BoolsX(ctx context.Context) []bool
- func (s *ReportSlsaProvenanceSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportSlsaProvenanceSelect) Float64X(ctx context.Context) float64
- func (s *ReportSlsaProvenanceSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportSlsaProvenanceSelect) Float64sX(ctx context.Context) []float64
- func (s *ReportSlsaProvenanceSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportSlsaProvenanceSelect) IntX(ctx context.Context) int
- func (s *ReportSlsaProvenanceSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportSlsaProvenanceSelect) IntsX(ctx context.Context) []int
- func (rsps *ReportSlsaProvenanceSelect) Scan(ctx context.Context, v any) error
- func (s *ReportSlsaProvenanceSelect) ScanX(ctx context.Context, v any)
- func (s *ReportSlsaProvenanceSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportSlsaProvenanceSelect) StringX(ctx context.Context) string
- func (s *ReportSlsaProvenanceSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportSlsaProvenanceSelect) StringsX(ctx context.Context) []string
- type ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) ClearCreatedAt() *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) ClearPackage() *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) ClearUpdatedAt() *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) Exec(ctx context.Context) error
- func (rspu *ReportSlsaProvenanceUpdate) ExecX(ctx context.Context)
- func (rspu *ReportSlsaProvenanceUpdate) Mutation() *ReportSlsaProvenanceMutation
- func (rspu *ReportSlsaProvenanceUpdate) Save(ctx context.Context) (int, error)
- func (rspu *ReportSlsaProvenanceUpdate) SaveX(ctx context.Context) int
- func (rspu *ReportSlsaProvenanceUpdate) SetCommitSha(s string) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetCreatedAt(t time.Time) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillableCommitSha(s *string) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillableCreatedAt(t *time.Time) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillablePackageID(id *int) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillableSourceRepository(s *string) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillableURL(s *string) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillableUpdatedAt(t *time.Time) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetNillableVerified(b *bool) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetPackage(r *ReportPackage) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetPackageID(id int) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetSourceRepository(s string) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetURL(s string) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetUpdatedAt(t time.Time) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) SetVerified(b bool) *ReportSlsaProvenanceUpdate
- func (rspu *ReportSlsaProvenanceUpdate) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceUpdate
- type ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) ClearCreatedAt() *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) ClearPackage() *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) ClearUpdatedAt() *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) Exec(ctx context.Context) error
- func (rspuo *ReportSlsaProvenanceUpdateOne) ExecX(ctx context.Context)
- func (rspuo *ReportSlsaProvenanceUpdateOne) Mutation() *ReportSlsaProvenanceMutation
- func (rspuo *ReportSlsaProvenanceUpdateOne) Save(ctx context.Context) (*ReportSlsaProvenance, error)
- func (rspuo *ReportSlsaProvenanceUpdateOne) SaveX(ctx context.Context) *ReportSlsaProvenance
- func (rspuo *ReportSlsaProvenanceUpdateOne) Select(field string, fields ...string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetCommitSha(s string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetCreatedAt(t time.Time) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableCommitSha(s *string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillablePackageID(id *int) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableSourceRepository(s *string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableURL(s *string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableVerified(b *bool) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetPackage(r *ReportPackage) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetPackageID(id int) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetSourceRepository(s string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetURL(s string) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetUpdatedAt(t time.Time) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) SetVerified(b bool) *ReportSlsaProvenanceUpdateOne
- func (rspuo *ReportSlsaProvenanceUpdateOne) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceUpdateOne
- type ReportSlsaProvenances
- type ReportVulnerabilities
- type ReportVulnerability
- func (rv *ReportVulnerability) QueryPackage() *ReportPackageQuery
- func (rv *ReportVulnerability) String() string
- func (rv *ReportVulnerability) Unwrap() *ReportVulnerability
- func (rv *ReportVulnerability) Update() *ReportVulnerabilityUpdateOne
- func (rv *ReportVulnerability) Value(name string) (ent.Value, error)
- type ReportVulnerabilityClient
- func (c *ReportVulnerabilityClient) Create() *ReportVulnerabilityCreate
- func (c *ReportVulnerabilityClient) CreateBulk(builders ...*ReportVulnerabilityCreate) *ReportVulnerabilityCreateBulk
- func (c *ReportVulnerabilityClient) Delete() *ReportVulnerabilityDelete
- func (c *ReportVulnerabilityClient) DeleteOne(rv *ReportVulnerability) *ReportVulnerabilityDeleteOne
- func (c *ReportVulnerabilityClient) DeleteOneID(id int) *ReportVulnerabilityDeleteOne
- func (c *ReportVulnerabilityClient) Get(ctx context.Context, id int) (*ReportVulnerability, error)
- func (c *ReportVulnerabilityClient) GetX(ctx context.Context, id int) *ReportVulnerability
- func (c *ReportVulnerabilityClient) Hooks() []Hook
- func (c *ReportVulnerabilityClient) Intercept(interceptors ...Interceptor)
- func (c *ReportVulnerabilityClient) Interceptors() []Interceptor
- func (c *ReportVulnerabilityClient) MapCreateBulk(slice any, setFunc func(*ReportVulnerabilityCreate, int)) *ReportVulnerabilityCreateBulk
- func (c *ReportVulnerabilityClient) Query() *ReportVulnerabilityQuery
- func (c *ReportVulnerabilityClient) QueryPackage(rv *ReportVulnerability) *ReportPackageQuery
- func (c *ReportVulnerabilityClient) Update() *ReportVulnerabilityUpdate
- func (c *ReportVulnerabilityClient) UpdateOne(rv *ReportVulnerability) *ReportVulnerabilityUpdateOne
- func (c *ReportVulnerabilityClient) UpdateOneID(id int) *ReportVulnerabilityUpdateOne
- func (c *ReportVulnerabilityClient) Use(hooks ...Hook)
- type ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) Exec(ctx context.Context) error
- func (rvc *ReportVulnerabilityCreate) ExecX(ctx context.Context)
- func (rvc *ReportVulnerabilityCreate) Mutation() *ReportVulnerabilityMutation
- func (rvc *ReportVulnerabilityCreate) Save(ctx context.Context) (*ReportVulnerability, error)
- func (rvc *ReportVulnerabilityCreate) SaveX(ctx context.Context) *ReportVulnerability
- func (rvc *ReportVulnerabilityCreate) SetAliases(s []string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetCreatedAt(t time.Time) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetCvssScore(f float64) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetDescription(s string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillableCreatedAt(t *time.Time) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillableCvssScore(f *float64) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillableDescription(s *string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillablePackageID(id *int) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillableSeverity(s *string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillableSeverityType(s *string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetNillableUpdatedAt(t *time.Time) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetPackage(r *ReportPackage) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetPackageID(id int) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetSeverity(s string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetSeverityDetails(m map[string]interface{}) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetSeverityType(s string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetTitle(s string) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetUpdatedAt(t time.Time) *ReportVulnerabilityCreate
- func (rvc *ReportVulnerabilityCreate) SetVulnerabilityID(s string) *ReportVulnerabilityCreate
- type ReportVulnerabilityCreateBulk
- func (rvcb *ReportVulnerabilityCreateBulk) Exec(ctx context.Context) error
- func (rvcb *ReportVulnerabilityCreateBulk) ExecX(ctx context.Context)
- func (rvcb *ReportVulnerabilityCreateBulk) Save(ctx context.Context) ([]*ReportVulnerability, error)
- func (rvcb *ReportVulnerabilityCreateBulk) SaveX(ctx context.Context) []*ReportVulnerability
- type ReportVulnerabilityDelete
- type ReportVulnerabilityDeleteOne
- type ReportVulnerabilityEdges
- type ReportVulnerabilityGroupBy
- func (rvgb *ReportVulnerabilityGroupBy) Aggregate(fns ...AggregateFunc) *ReportVulnerabilityGroupBy
- func (s *ReportVulnerabilityGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportVulnerabilityGroupBy) BoolX(ctx context.Context) bool
- func (s *ReportVulnerabilityGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportVulnerabilityGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReportVulnerabilityGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportVulnerabilityGroupBy) Float64X(ctx context.Context) float64
- func (s *ReportVulnerabilityGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportVulnerabilityGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReportVulnerabilityGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReportVulnerabilityGroupBy) IntX(ctx context.Context) int
- func (s *ReportVulnerabilityGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReportVulnerabilityGroupBy) IntsX(ctx context.Context) []int
- func (rvgb *ReportVulnerabilityGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReportVulnerabilityGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReportVulnerabilityGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReportVulnerabilityGroupBy) StringX(ctx context.Context) string
- func (s *ReportVulnerabilityGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReportVulnerabilityGroupBy) StringsX(ctx context.Context) []string
- type ReportVulnerabilityMutation
- func (m *ReportVulnerabilityMutation) AddCvssScore(f float64)
- func (m *ReportVulnerabilityMutation) AddField(name string, value ent.Value) error
- func (m *ReportVulnerabilityMutation) AddedCvssScore() (r float64, exists bool)
- func (m *ReportVulnerabilityMutation) AddedEdges() []string
- func (m *ReportVulnerabilityMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReportVulnerabilityMutation) AddedFields() []string
- func (m *ReportVulnerabilityMutation) AddedIDs(name string) []ent.Value
- func (m *ReportVulnerabilityMutation) Aliases() (r []string, exists bool)
- func (m *ReportVulnerabilityMutation) AliasesCleared() bool
- func (m *ReportVulnerabilityMutation) AppendAliases(s []string)
- func (m *ReportVulnerabilityMutation) AppendedAliases() ([]string, bool)
- func (m *ReportVulnerabilityMutation) ClearAliases()
- func (m *ReportVulnerabilityMutation) ClearCreatedAt()
- func (m *ReportVulnerabilityMutation) ClearCvssScore()
- func (m *ReportVulnerabilityMutation) ClearDescription()
- func (m *ReportVulnerabilityMutation) ClearEdge(name string) error
- func (m *ReportVulnerabilityMutation) ClearField(name string) error
- func (m *ReportVulnerabilityMutation) ClearPackage()
- func (m *ReportVulnerabilityMutation) ClearSeverity()
- func (m *ReportVulnerabilityMutation) ClearSeverityDetails()
- func (m *ReportVulnerabilityMutation) ClearSeverityType()
- func (m *ReportVulnerabilityMutation) ClearUpdatedAt()
- func (m *ReportVulnerabilityMutation) ClearedEdges() []string
- func (m *ReportVulnerabilityMutation) ClearedFields() []string
- func (m ReportVulnerabilityMutation) Client() *Client
- func (m *ReportVulnerabilityMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReportVulnerabilityMutation) CreatedAtCleared() bool
- func (m *ReportVulnerabilityMutation) CvssScore() (r float64, exists bool)
- func (m *ReportVulnerabilityMutation) CvssScoreCleared() bool
- func (m *ReportVulnerabilityMutation) Description() (r string, exists bool)
- func (m *ReportVulnerabilityMutation) DescriptionCleared() bool
- func (m *ReportVulnerabilityMutation) EdgeCleared(name string) bool
- func (m *ReportVulnerabilityMutation) Field(name string) (ent.Value, bool)
- func (m *ReportVulnerabilityMutation) FieldCleared(name string) bool
- func (m *ReportVulnerabilityMutation) Fields() []string
- func (m *ReportVulnerabilityMutation) ID() (id int, exists bool)
- func (m *ReportVulnerabilityMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReportVulnerabilityMutation) OldAliases(ctx context.Context) (v []string, err error)
- func (m *ReportVulnerabilityMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportVulnerabilityMutation) OldCvssScore(ctx context.Context) (v float64, err error)
- func (m *ReportVulnerabilityMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *ReportVulnerabilityMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReportVulnerabilityMutation) OldSeverity(ctx context.Context) (v string, err error)
- func (m *ReportVulnerabilityMutation) OldSeverityDetails(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ReportVulnerabilityMutation) OldSeverityType(ctx context.Context) (v string, err error)
- func (m *ReportVulnerabilityMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *ReportVulnerabilityMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReportVulnerabilityMutation) OldVulnerabilityID(ctx context.Context) (v string, err error)
- func (m *ReportVulnerabilityMutation) Op() Op
- func (m *ReportVulnerabilityMutation) PackageCleared() bool
- func (m *ReportVulnerabilityMutation) PackageID() (id int, exists bool)
- func (m *ReportVulnerabilityMutation) PackageIDs() (ids []int)
- func (m *ReportVulnerabilityMutation) RemovedEdges() []string
- func (m *ReportVulnerabilityMutation) RemovedIDs(name string) []ent.Value
- func (m *ReportVulnerabilityMutation) ResetAliases()
- func (m *ReportVulnerabilityMutation) ResetCreatedAt()
- func (m *ReportVulnerabilityMutation) ResetCvssScore()
- func (m *ReportVulnerabilityMutation) ResetDescription()
- func (m *ReportVulnerabilityMutation) ResetEdge(name string) error
- func (m *ReportVulnerabilityMutation) ResetField(name string) error
- func (m *ReportVulnerabilityMutation) ResetPackage()
- func (m *ReportVulnerabilityMutation) ResetSeverity()
- func (m *ReportVulnerabilityMutation) ResetSeverityDetails()
- func (m *ReportVulnerabilityMutation) ResetSeverityType()
- func (m *ReportVulnerabilityMutation) ResetTitle()
- func (m *ReportVulnerabilityMutation) ResetUpdatedAt()
- func (m *ReportVulnerabilityMutation) ResetVulnerabilityID()
- func (m *ReportVulnerabilityMutation) SetAliases(s []string)
- func (m *ReportVulnerabilityMutation) SetCreatedAt(t time.Time)
- func (m *ReportVulnerabilityMutation) SetCvssScore(f float64)
- func (m *ReportVulnerabilityMutation) SetDescription(s string)
- func (m *ReportVulnerabilityMutation) SetField(name string, value ent.Value) error
- func (m *ReportVulnerabilityMutation) SetOp(op Op)
- func (m *ReportVulnerabilityMutation) SetPackageID(id int)
- func (m *ReportVulnerabilityMutation) SetSeverity(s string)
- func (m *ReportVulnerabilityMutation) SetSeverityDetails(value map[string]interface{})
- func (m *ReportVulnerabilityMutation) SetSeverityType(s string)
- func (m *ReportVulnerabilityMutation) SetTitle(s string)
- func (m *ReportVulnerabilityMutation) SetUpdatedAt(t time.Time)
- func (m *ReportVulnerabilityMutation) SetVulnerabilityID(s string)
- func (m *ReportVulnerabilityMutation) Severity() (r string, exists bool)
- func (m *ReportVulnerabilityMutation) SeverityCleared() bool
- func (m *ReportVulnerabilityMutation) SeverityDetails() (r map[string]interface{}, exists bool)
- func (m *ReportVulnerabilityMutation) SeverityDetailsCleared() bool
- func (m *ReportVulnerabilityMutation) SeverityType() (r string, exists bool)
- func (m *ReportVulnerabilityMutation) SeverityTypeCleared() bool
- func (m *ReportVulnerabilityMutation) Title() (r string, exists bool)
- func (m ReportVulnerabilityMutation) Tx() (*Tx, error)
- func (m *ReportVulnerabilityMutation) Type() string
- func (m *ReportVulnerabilityMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReportVulnerabilityMutation) UpdatedAtCleared() bool
- func (m *ReportVulnerabilityMutation) VulnerabilityID() (r string, exists bool)
- func (m *ReportVulnerabilityMutation) Where(ps ...predicate.ReportVulnerability)
- func (m *ReportVulnerabilityMutation) WhereP(ps ...func(*sql.Selector))
- type ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) Aggregate(fns ...AggregateFunc) *ReportVulnerabilitySelect
- func (rvq *ReportVulnerabilityQuery) All(ctx context.Context) ([]*ReportVulnerability, error)
- func (rvq *ReportVulnerabilityQuery) AllX(ctx context.Context) []*ReportVulnerability
- func (rvq *ReportVulnerabilityQuery) Clone() *ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) Count(ctx context.Context) (int, error)
- func (rvq *ReportVulnerabilityQuery) CountX(ctx context.Context) int
- func (rvq *ReportVulnerabilityQuery) Exist(ctx context.Context) (bool, error)
- func (rvq *ReportVulnerabilityQuery) ExistX(ctx context.Context) bool
- func (rvq *ReportVulnerabilityQuery) First(ctx context.Context) (*ReportVulnerability, error)
- func (rvq *ReportVulnerabilityQuery) FirstID(ctx context.Context) (id int, err error)
- func (rvq *ReportVulnerabilityQuery) FirstIDX(ctx context.Context) int
- func (rvq *ReportVulnerabilityQuery) FirstX(ctx context.Context) *ReportVulnerability
- func (rvq *ReportVulnerabilityQuery) GroupBy(field string, fields ...string) *ReportVulnerabilityGroupBy
- func (rvq *ReportVulnerabilityQuery) IDs(ctx context.Context) (ids []int, err error)
- func (rvq *ReportVulnerabilityQuery) IDsX(ctx context.Context) []int
- func (rvq *ReportVulnerabilityQuery) Limit(limit int) *ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) Offset(offset int) *ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) Only(ctx context.Context) (*ReportVulnerability, error)
- func (rvq *ReportVulnerabilityQuery) OnlyID(ctx context.Context) (id int, err error)
- func (rvq *ReportVulnerabilityQuery) OnlyIDX(ctx context.Context) int
- func (rvq *ReportVulnerabilityQuery) OnlyX(ctx context.Context) *ReportVulnerability
- func (rvq *ReportVulnerabilityQuery) Order(o ...reportvulnerability.OrderOption) *ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) QueryPackage() *ReportPackageQuery
- func (rvq *ReportVulnerabilityQuery) Select(fields ...string) *ReportVulnerabilitySelect
- func (rvq *ReportVulnerabilityQuery) Unique(unique bool) *ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityQuery
- func (rvq *ReportVulnerabilityQuery) WithPackage(opts ...func(*ReportPackageQuery)) *ReportVulnerabilityQuery
- type ReportVulnerabilitySelect
- func (rvs *ReportVulnerabilitySelect) Aggregate(fns ...AggregateFunc) *ReportVulnerabilitySelect
- func (s *ReportVulnerabilitySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReportVulnerabilitySelect) BoolX(ctx context.Context) bool
- func (s *ReportVulnerabilitySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReportVulnerabilitySelect) BoolsX(ctx context.Context) []bool
- func (s *ReportVulnerabilitySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReportVulnerabilitySelect) Float64X(ctx context.Context) float64
- func (s *ReportVulnerabilitySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReportVulnerabilitySelect) Float64sX(ctx context.Context) []float64
- func (s *ReportVulnerabilitySelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReportVulnerabilitySelect) IntX(ctx context.Context) int
- func (s *ReportVulnerabilitySelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReportVulnerabilitySelect) IntsX(ctx context.Context) []int
- func (rvs *ReportVulnerabilitySelect) Scan(ctx context.Context, v any) error
- func (s *ReportVulnerabilitySelect) ScanX(ctx context.Context, v any)
- func (s *ReportVulnerabilitySelect) String(ctx context.Context) (_ string, err error)
- func (s *ReportVulnerabilitySelect) StringX(ctx context.Context) string
- func (s *ReportVulnerabilitySelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReportVulnerabilitySelect) StringsX(ctx context.Context) []string
- type ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) AddCvssScore(f float64) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) AppendAliases(s []string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearAliases() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearCreatedAt() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearCvssScore() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearDescription() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearPackage() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearSeverity() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearSeverityDetails() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearSeverityType() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) ClearUpdatedAt() *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) Exec(ctx context.Context) error
- func (rvu *ReportVulnerabilityUpdate) ExecX(ctx context.Context)
- func (rvu *ReportVulnerabilityUpdate) Mutation() *ReportVulnerabilityMutation
- func (rvu *ReportVulnerabilityUpdate) Save(ctx context.Context) (int, error)
- func (rvu *ReportVulnerabilityUpdate) SaveX(ctx context.Context) int
- func (rvu *ReportVulnerabilityUpdate) SetAliases(s []string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetCreatedAt(t time.Time) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetCvssScore(f float64) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetDescription(s string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableCreatedAt(t *time.Time) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableCvssScore(f *float64) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableDescription(s *string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillablePackageID(id *int) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableSeverity(s *string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableSeverityType(s *string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableTitle(s *string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableUpdatedAt(t *time.Time) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetNillableVulnerabilityID(s *string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetPackage(r *ReportPackage) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetPackageID(id int) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetSeverity(s string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetSeverityDetails(m map[string]interface{}) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetSeverityType(s string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetTitle(s string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetUpdatedAt(t time.Time) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) SetVulnerabilityID(s string) *ReportVulnerabilityUpdate
- func (rvu *ReportVulnerabilityUpdate) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityUpdate
- type ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) AddCvssScore(f float64) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) AppendAliases(s []string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearAliases() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearCreatedAt() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearCvssScore() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearDescription() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearPackage() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearSeverity() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearSeverityDetails() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearSeverityType() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) ClearUpdatedAt() *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) Exec(ctx context.Context) error
- func (rvuo *ReportVulnerabilityUpdateOne) ExecX(ctx context.Context)
- func (rvuo *ReportVulnerabilityUpdateOne) Mutation() *ReportVulnerabilityMutation
- func (rvuo *ReportVulnerabilityUpdateOne) Save(ctx context.Context) (*ReportVulnerability, error)
- func (rvuo *ReportVulnerabilityUpdateOne) SaveX(ctx context.Context) *ReportVulnerability
- func (rvuo *ReportVulnerabilityUpdateOne) Select(field string, fields ...string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetAliases(s []string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetCreatedAt(t time.Time) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetCvssScore(f float64) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetDescription(s string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableCvssScore(f *float64) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableDescription(s *string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillablePackageID(id *int) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableSeverity(s *string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableSeverityType(s *string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableTitle(s *string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetNillableVulnerabilityID(s *string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetPackage(r *ReportPackage) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetPackageID(id int) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetSeverity(s string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetSeverityDetails(m map[string]interface{}) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetSeverityType(s string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetTitle(s string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetUpdatedAt(t time.Time) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) SetVulnerabilityID(s string) *ReportVulnerabilityUpdateOne
- func (rvuo *ReportVulnerabilityUpdateOne) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityUpdateOne
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
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 ¶
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 IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
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 ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
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) Debug ¶
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(...)`.
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.
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 ¶
func (c *CodeSourceFileClient) Create() *CodeSourceFileCreate
Create returns a builder for creating a CodeSourceFile entity.
func (*CodeSourceFileClient) CreateBulk ¶
func (c *CodeSourceFileClient) CreateBulk(builders ...*CodeSourceFileCreate) *CodeSourceFileCreateBulk
CreateBulk returns a builder for creating a bulk of CodeSourceFile entities.
func (*CodeSourceFileClient) Delete ¶
func (c *CodeSourceFileClient) Delete() *CodeSourceFileDelete
Delete returns a delete builder for CodeSourceFile.
func (*CodeSourceFileClient) DeleteOne ¶
func (c *CodeSourceFileClient) DeleteOne(csf *CodeSourceFile) *CodeSourceFileDeleteOne
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 ¶
func (c *CodeSourceFileClient) Get(ctx context.Context, id int) (*CodeSourceFile, error)
Get returns a CodeSourceFile entity by its id.
func (*CodeSourceFileClient) GetX ¶
func (c *CodeSourceFileClient) GetX(ctx context.Context, id int) *CodeSourceFile
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 ¶
func (c *CodeSourceFileClient) Query() *CodeSourceFileQuery
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 ¶
func (c *CodeSourceFileClient) Update() *CodeSourceFileUpdate
Update returns an update builder for CodeSourceFile.
func (*CodeSourceFileClient) UpdateOne ¶
func (c *CodeSourceFileClient) UpdateOne(csf *CodeSourceFile) *CodeSourceFileUpdateOne
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 ¶
func (csfc *CodeSourceFileCreate) Save(ctx context.Context) (*CodeSourceFile, error)
Save creates the CodeSourceFile in the database.
func (*CodeSourceFileCreate) SaveX ¶
func (csfc *CodeSourceFileCreate) SaveX(ctx context.Context) *CodeSourceFile
SaveX calls Save and panics if Save returns an error.
func (*CodeSourceFileCreate) SetPath ¶
func (csfc *CodeSourceFileCreate) SetPath(s string) *CodeSourceFileCreate
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 ¶
func (csfcb *CodeSourceFileCreateBulk) Save(ctx context.Context) ([]*CodeSourceFile, error)
Save creates the CodeSourceFile entities in the database.
func (*CodeSourceFileCreateBulk) SaveX ¶
func (csfcb *CodeSourceFileCreateBulk) SaveX(ctx context.Context) []*CodeSourceFile
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 ¶
func (csfd *CodeSourceFileDelete) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileDelete
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 ¶
func (csfdo *CodeSourceFileDeleteOne) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CodeSourceFileGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
func (m *CodeSourceFileMutation) Where(ps ...predicate.CodeSourceFile)
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 ¶
func (csfq *CodeSourceFileQuery) All(ctx context.Context) ([]*CodeSourceFile, error)
All executes the query and returns a list of CodeSourceFiles.
func (*CodeSourceFileQuery) AllX ¶
func (csfq *CodeSourceFileQuery) AllX(ctx context.Context) []*CodeSourceFile
AllX is like All, but panics if an error occurs.
func (*CodeSourceFileQuery) Clone ¶
func (csfq *CodeSourceFileQuery) Clone() *CodeSourceFileQuery
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 ¶
func (csfq *CodeSourceFileQuery) First(ctx context.Context) (*CodeSourceFile, error)
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 ¶
func (csfq *CodeSourceFileQuery) FirstX(ctx context.Context) *CodeSourceFile
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 ¶
func (csfq *CodeSourceFileQuery) Only(ctx context.Context) (*CodeSourceFile, error)
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 ¶
func (csfq *CodeSourceFileQuery) OnlyX(ctx context.Context) *CodeSourceFile
OnlyX is like Only, but panics if an error occurs.
func (*CodeSourceFileQuery) Order ¶
func (csfq *CodeSourceFileQuery) Order(o ...codesourcefile.OrderOption) *CodeSourceFileQuery
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 ¶
func (csfq *CodeSourceFileQuery) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CodeSourceFileSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (csfu *CodeSourceFileUpdate) SetPath(s string) *CodeSourceFileUpdate
SetPath sets the "path" field.
func (*CodeSourceFileUpdate) Where ¶
func (csfu *CodeSourceFileUpdate) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileUpdate
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 ¶
func (csfuo *CodeSourceFileUpdateOne) Mutation() *CodeSourceFileMutation
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 ¶
func (csfuo *CodeSourceFileUpdateOne) Save(ctx context.Context) (*CodeSourceFile, error)
Save executes the query and returns the updated CodeSourceFile entity.
func (*CodeSourceFileUpdateOne) SaveX ¶
func (csfuo *CodeSourceFileUpdateOne) SaveX(ctx context.Context) *CodeSourceFile
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 ¶
func (csfuo *CodeSourceFileUpdateOne) SetPath(s string) *CodeSourceFileUpdateOne
SetPath sets the "path" field.
func (*CodeSourceFileUpdateOne) Where ¶
func (csfuo *CodeSourceFileUpdateOne) Where(ps ...predicate.CodeSourceFile) *CodeSourceFileUpdateOne
Where appends a list predicates to the CodeSourceFileUpdate builder.
type CodeSourceFiles ¶
type CodeSourceFiles []*CodeSourceFile
CodeSourceFiles is a parsable slice of CodeSourceFile.
type CommitFunc ¶
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.
type CommitHook ¶
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 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 ¶
func (due *DepsUsageEvidence) Update() *DepsUsageEvidenceUpdateOne
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.
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 ¶
func (c *DepsUsageEvidenceClient) Create() *DepsUsageEvidenceCreate
Create returns a builder for creating a DepsUsageEvidence entity.
func (*DepsUsageEvidenceClient) CreateBulk ¶
func (c *DepsUsageEvidenceClient) CreateBulk(builders ...*DepsUsageEvidenceCreate) *DepsUsageEvidenceCreateBulk
CreateBulk returns a builder for creating a bulk of DepsUsageEvidence entities.
func (*DepsUsageEvidenceClient) Delete ¶
func (c *DepsUsageEvidenceClient) Delete() *DepsUsageEvidenceDelete
Delete returns a delete builder for DepsUsageEvidence.
func (*DepsUsageEvidenceClient) DeleteOne ¶
func (c *DepsUsageEvidenceClient) DeleteOne(due *DepsUsageEvidence) *DepsUsageEvidenceDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DepsUsageEvidenceClient) DeleteOneID ¶
func (c *DepsUsageEvidenceClient) DeleteOneID(id int) *DepsUsageEvidenceDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DepsUsageEvidenceClient) Get ¶
func (c *DepsUsageEvidenceClient) Get(ctx context.Context, id int) (*DepsUsageEvidence, error)
Get returns a DepsUsageEvidence entity by its id.
func (*DepsUsageEvidenceClient) GetX ¶
func (c *DepsUsageEvidenceClient) GetX(ctx context.Context, id int) *DepsUsageEvidence
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 ¶
func (c *DepsUsageEvidenceClient) Query() *DepsUsageEvidenceQuery
Query returns a query builder for DepsUsageEvidence.
func (*DepsUsageEvidenceClient) QueryUsedIn ¶
func (c *DepsUsageEvidenceClient) QueryUsedIn(due *DepsUsageEvidence) *CodeSourceFileQuery
QueryUsedIn queries the used_in edge of a DepsUsageEvidence.
func (*DepsUsageEvidenceClient) Update ¶
func (c *DepsUsageEvidenceClient) Update() *DepsUsageEvidenceUpdate
Update returns an update builder for DepsUsageEvidence.
func (*DepsUsageEvidenceClient) UpdateOne ¶
func (c *DepsUsageEvidenceClient) UpdateOne(due *DepsUsageEvidence) *DepsUsageEvidenceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DepsUsageEvidenceClient) UpdateOneID ¶
func (c *DepsUsageEvidenceClient) UpdateOneID(id int) *DepsUsageEvidenceUpdateOne
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 ¶
func (duec *DepsUsageEvidenceCreate) Mutation() *DepsUsageEvidenceMutation
Mutation returns the DepsUsageEvidenceMutation object of the builder.
func (*DepsUsageEvidenceCreate) Save ¶
func (duec *DepsUsageEvidenceCreate) Save(ctx context.Context) (*DepsUsageEvidence, error)
Save creates the DepsUsageEvidence in the database.
func (*DepsUsageEvidenceCreate) SaveX ¶
func (duec *DepsUsageEvidenceCreate) SaveX(ctx context.Context) *DepsUsageEvidence
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 ¶
func (duec *DepsUsageEvidenceCreate) SetLine(u uint) *DepsUsageEvidenceCreate
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 ¶
func (duec *DepsUsageEvidenceCreate) SetUsedIn(c *CodeSourceFile) *DepsUsageEvidenceCreate
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 ¶
func (duecb *DepsUsageEvidenceCreateBulk) Exec(ctx context.Context) error
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 ¶
func (duecb *DepsUsageEvidenceCreateBulk) Save(ctx context.Context) ([]*DepsUsageEvidence, error)
Save creates the DepsUsageEvidence entities in the database.
func (*DepsUsageEvidenceCreateBulk) SaveX ¶
func (duecb *DepsUsageEvidenceCreateBulk) SaveX(ctx context.Context) []*DepsUsageEvidence
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 ¶
func (dued *DepsUsageEvidenceDelete) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceDelete
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 ¶
func (duedo *DepsUsageEvidenceDeleteOne) Exec(ctx context.Context) error
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 ¶
func (duedo *DepsUsageEvidenceDeleteOne) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceDeleteOne
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 ¶
func (duegb *DepsUsageEvidenceGroupBy) Aggregate(fns ...AggregateFunc) *DepsUsageEvidenceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DepsUsageEvidenceGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*DepsUsageEvidenceGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DepsUsageEvidenceGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (m *DepsUsageEvidenceMutation) 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 (*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 ¶
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 ¶
func (m *DepsUsageEvidenceMutation) Type() string
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 ¶
func (m *DepsUsageEvidenceMutation) Where(ps ...predicate.DepsUsageEvidence)
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 ¶
func (dueq *DepsUsageEvidenceQuery) Aggregate(fns ...AggregateFunc) *DepsUsageEvidenceSelect
Aggregate returns a DepsUsageEvidenceSelect configured with the given aggregations.
func (*DepsUsageEvidenceQuery) All ¶
func (dueq *DepsUsageEvidenceQuery) All(ctx context.Context) ([]*DepsUsageEvidence, error)
All executes the query and returns a list of DepsUsageEvidences.
func (*DepsUsageEvidenceQuery) AllX ¶
func (dueq *DepsUsageEvidenceQuery) AllX(ctx context.Context) []*DepsUsageEvidence
AllX is like All, but panics if an error occurs.
func (*DepsUsageEvidenceQuery) Clone ¶
func (dueq *DepsUsageEvidenceQuery) Clone() *DepsUsageEvidenceQuery
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 ¶
func (dueq *DepsUsageEvidenceQuery) First(ctx context.Context) (*DepsUsageEvidence, error)
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 ¶
func (dueq *DepsUsageEvidenceQuery) FirstX(ctx context.Context) *DepsUsageEvidence
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 ¶
func (dueq *DepsUsageEvidenceQuery) Limit(limit int) *DepsUsageEvidenceQuery
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 ¶
func (dueq *DepsUsageEvidenceQuery) Only(ctx context.Context) (*DepsUsageEvidence, error)
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 ¶
func (dueq *DepsUsageEvidenceQuery) OnlyX(ctx context.Context) *DepsUsageEvidence
OnlyX is like Only, but panics if an error occurs.
func (*DepsUsageEvidenceQuery) Order ¶
func (dueq *DepsUsageEvidenceQuery) Order(o ...depsusageevidence.OrderOption) *DepsUsageEvidenceQuery
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 ¶
func (dueq *DepsUsageEvidenceQuery) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceQuery
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 ¶
func (dues *DepsUsageEvidenceSelect) Aggregate(fns ...AggregateFunc) *DepsUsageEvidenceSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DepsUsageEvidenceSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*DepsUsageEvidenceSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DepsUsageEvidenceSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DepsUsageEvidenceUpdate ¶
type DepsUsageEvidenceUpdate struct {
// contains filtered or unexported fields
}
DepsUsageEvidenceUpdate is the builder for updating DepsUsageEvidence entities.
func (*DepsUsageEvidenceUpdate) AddLine ¶
func (dueu *DepsUsageEvidenceUpdate) AddLine(u int) *DepsUsageEvidenceUpdate
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 ¶
func (dueu *DepsUsageEvidenceUpdate) Mutation() *DepsUsageEvidenceMutation
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 ¶
func (dueu *DepsUsageEvidenceUpdate) SetLine(u uint) *DepsUsageEvidenceUpdate
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 ¶
func (dueu *DepsUsageEvidenceUpdate) SetUsedIn(c *CodeSourceFile) *DepsUsageEvidenceUpdate
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 ¶
func (dueu *DepsUsageEvidenceUpdate) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceUpdate
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) AddLine(u int) *DepsUsageEvidenceUpdateOne
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) ClearUsedIn() *DepsUsageEvidenceUpdateOne
ClearUsedIn clears the "used_in" edge to the CodeSourceFile entity.
func (*DepsUsageEvidenceUpdateOne) Exec ¶
func (dueuo *DepsUsageEvidenceUpdateOne) Exec(ctx context.Context) error
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) Mutation() *DepsUsageEvidenceMutation
Mutation returns the DepsUsageEvidenceMutation object of the builder.
func (*DepsUsageEvidenceUpdateOne) Save ¶
func (dueuo *DepsUsageEvidenceUpdateOne) Save(ctx context.Context) (*DepsUsageEvidence, error)
Save executes the query and returns the updated DepsUsageEvidence entity.
func (*DepsUsageEvidenceUpdateOne) SaveX ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SaveX(ctx context.Context) *DepsUsageEvidence
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetIdentifier(s string) *DepsUsageEvidenceUpdateOne
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetLine(u uint) *DepsUsageEvidenceUpdateOne
SetLine sets the "line" field.
func (*DepsUsageEvidenceUpdateOne) SetModuleAlias ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetModuleAlias(s string) *DepsUsageEvidenceUpdateOne
SetModuleAlias sets the "module_alias" field.
func (*DepsUsageEvidenceUpdateOne) SetModuleItem ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetModuleItem(s string) *DepsUsageEvidenceUpdateOne
SetModuleItem sets the "module_item" field.
func (*DepsUsageEvidenceUpdateOne) SetModuleName ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetModuleName(s string) *DepsUsageEvidenceUpdateOne
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetPackageHint(s string) *DepsUsageEvidenceUpdateOne
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 ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetUsedIn(c *CodeSourceFile) *DepsUsageEvidenceUpdateOne
SetUsedIn sets the "used_in" edge to the CodeSourceFile entity.
func (*DepsUsageEvidenceUpdateOne) SetUsedInID ¶
func (dueuo *DepsUsageEvidenceUpdateOne) SetUsedInID(id int) *DepsUsageEvidenceUpdateOne
SetUsedInID sets the "used_in" edge to the CodeSourceFile entity by ID.
func (*DepsUsageEvidenceUpdateOne) Where ¶
func (dueuo *DepsUsageEvidenceUpdateOne) Where(ps ...predicate.DepsUsageEvidence) *DepsUsageEvidenceUpdateOne
Where appends a list predicates to the DepsUsageEvidenceUpdate builder.
type DepsUsageEvidences ¶
type DepsUsageEvidences []*DepsUsageEvidence
DepsUsageEvidences is a parsable slice of DepsUsageEvidence.
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 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 OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
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
func (rd *ReportDependency) Update() *ReportDependencyUpdateOne
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.
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
func (c *ReportDependencyClient) Create() *ReportDependencyCreate
Create returns a builder for creating a ReportDependency entity.
func (*ReportDependencyClient) CreateBulk ¶ added in v1.12.0
func (c *ReportDependencyClient) CreateBulk(builders ...*ReportDependencyCreate) *ReportDependencyCreateBulk
CreateBulk returns a builder for creating a bulk of ReportDependency entities.
func (*ReportDependencyClient) Delete ¶ added in v1.12.0
func (c *ReportDependencyClient) Delete() *ReportDependencyDelete
Delete returns a delete builder for ReportDependency.
func (*ReportDependencyClient) DeleteOne ¶ added in v1.12.0
func (c *ReportDependencyClient) DeleteOne(rd *ReportDependency) *ReportDependencyDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportDependencyClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportDependencyClient) DeleteOneID(id int) *ReportDependencyDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportDependencyClient) Get ¶ added in v1.12.0
func (c *ReportDependencyClient) Get(ctx context.Context, id int) (*ReportDependency, error)
Get returns a ReportDependency entity by its id.
func (*ReportDependencyClient) GetX ¶ added in v1.12.0
func (c *ReportDependencyClient) GetX(ctx context.Context, id int) *ReportDependency
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
func (c *ReportDependencyClient) Query() *ReportDependencyQuery
Query returns a query builder for ReportDependency.
func (*ReportDependencyClient) QueryPackage ¶ added in v1.12.0
func (c *ReportDependencyClient) QueryPackage(rd *ReportDependency) *ReportPackageQuery
QueryPackage queries the package edge of a ReportDependency.
func (*ReportDependencyClient) Update ¶ added in v1.12.0
func (c *ReportDependencyClient) Update() *ReportDependencyUpdate
Update returns an update builder for ReportDependency.
func (*ReportDependencyClient) UpdateOne ¶ added in v1.12.0
func (c *ReportDependencyClient) UpdateOne(rd *ReportDependency) *ReportDependencyUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportDependencyClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportDependencyClient) UpdateOneID(id int) *ReportDependencyUpdateOne
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
func (rdc *ReportDependencyCreate) Exec(ctx context.Context) error
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
func (rdc *ReportDependencyCreate) Mutation() *ReportDependencyMutation
Mutation returns the ReportDependencyMutation object of the builder.
func (*ReportDependencyCreate) Save ¶ added in v1.12.0
func (rdc *ReportDependencyCreate) Save(ctx context.Context) (*ReportDependency, error)
Save creates the ReportDependency in the database.
func (*ReportDependencyCreate) SaveX ¶ added in v1.12.0
func (rdc *ReportDependencyCreate) SaveX(ctx context.Context) *ReportDependency
SaveX calls Save and panics if Save returns an error.
func (*ReportDependencyCreate) SetCreatedAt ¶ added in v1.12.0
func (rdc *ReportDependencyCreate) SetCreatedAt(t time.Time) *ReportDependencyCreate
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
func (rdc *ReportDependencyCreate) SetDepth(i int) *ReportDependencyCreate
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
func (rdc *ReportDependencyCreate) SetPackage(r *ReportPackage) *ReportDependencyCreate
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
func (rdc *ReportDependencyCreate) SetUpdatedAt(t time.Time) *ReportDependencyCreate
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
func (rdcb *ReportDependencyCreateBulk) Exec(ctx context.Context) error
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
func (rdcb *ReportDependencyCreateBulk) Save(ctx context.Context) ([]*ReportDependency, error)
Save creates the ReportDependency entities in the database.
func (*ReportDependencyCreateBulk) SaveX ¶ added in v1.12.0
func (rdcb *ReportDependencyCreateBulk) SaveX(ctx context.Context) []*ReportDependency
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
func (rdd *ReportDependencyDelete) Where(ps ...predicate.ReportDependency) *ReportDependencyDelete
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
func (rddo *ReportDependencyDeleteOne) Exec(ctx context.Context) error
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
func (rddo *ReportDependencyDeleteOne) Where(ps ...predicate.ReportDependency) *ReportDependencyDeleteOne
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
func (rdg *ReportDependencyGraph) Unwrap() *ReportDependencyGraph
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
func (rdg *ReportDependencyGraph) Update() *ReportDependencyGraphUpdateOne
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.
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
func (c *ReportDependencyGraphClient) Create() *ReportDependencyGraphCreate
Create returns a builder for creating a ReportDependencyGraph entity.
func (*ReportDependencyGraphClient) CreateBulk ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) CreateBulk(builders ...*ReportDependencyGraphCreate) *ReportDependencyGraphCreateBulk
CreateBulk returns a builder for creating a bulk of ReportDependencyGraph entities.
func (*ReportDependencyGraphClient) Delete ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) Delete() *ReportDependencyGraphDelete
Delete returns a delete builder for ReportDependencyGraph.
func (*ReportDependencyGraphClient) DeleteOne ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) DeleteOne(rdg *ReportDependencyGraph) *ReportDependencyGraphDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportDependencyGraphClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) DeleteOneID(id int) *ReportDependencyGraphDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportDependencyGraphClient) Get ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) Get(ctx context.Context, id int) (*ReportDependencyGraph, error)
Get returns a ReportDependencyGraph entity by its id.
func (*ReportDependencyGraphClient) GetX ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) GetX(ctx context.Context, id int) *ReportDependencyGraph
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
func (c *ReportDependencyGraphClient) MapCreateBulk(slice any, setFunc func(*ReportDependencyGraphCreate, int)) *ReportDependencyGraphCreateBulk
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
func (c *ReportDependencyGraphClient) Query() *ReportDependencyGraphQuery
Query returns a query builder for ReportDependencyGraph.
func (*ReportDependencyGraphClient) Update ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) Update() *ReportDependencyGraphUpdate
Update returns an update builder for ReportDependencyGraph.
func (*ReportDependencyGraphClient) UpdateOne ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) UpdateOne(rdg *ReportDependencyGraph) *ReportDependencyGraphUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportDependencyGraphClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportDependencyGraphClient) UpdateOneID(id int) *ReportDependencyGraphUpdateOne
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
func (rdgc *ReportDependencyGraphCreate) Exec(ctx context.Context) error
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
func (rdgc *ReportDependencyGraphCreate) Mutation() *ReportDependencyGraphMutation
Mutation returns the ReportDependencyGraphMutation object of the builder.
func (*ReportDependencyGraphCreate) Save ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) Save(ctx context.Context) (*ReportDependencyGraph, error)
Save creates the ReportDependencyGraph in the database.
func (*ReportDependencyGraphCreate) SaveX ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SaveX(ctx context.Context) *ReportDependencyGraph
SaveX calls Save and panics if Save returns an error.
func (*ReportDependencyGraphCreate) SetCreatedAt ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SetCreatedAt(t time.Time) *ReportDependencyGraphCreate
SetCreatedAt sets the "created_at" field.
func (*ReportDependencyGraphCreate) SetDependencyType ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SetDependencyType(s string) *ReportDependencyGraphCreate
SetDependencyType sets the "dependency_type" field.
func (*ReportDependencyGraphCreate) SetDepth ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SetDepth(i int) *ReportDependencyGraphCreate
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
func (rdgc *ReportDependencyGraphCreate) SetFromPackageID(s string) *ReportDependencyGraphCreate
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
func (rdgc *ReportDependencyGraphCreate) SetIsDirect(b bool) *ReportDependencyGraphCreate
SetIsDirect sets the "is_direct" field.
func (*ReportDependencyGraphCreate) SetIsRootEdge ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SetIsRootEdge(b bool) *ReportDependencyGraphCreate
SetIsRootEdge sets the "is_root_edge" field.
func (*ReportDependencyGraphCreate) SetManifestID ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SetManifestID(s string) *ReportDependencyGraphCreate
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
func (rdgc *ReportDependencyGraphCreate) SetToPackageID(s string) *ReportDependencyGraphCreate
SetToPackageID sets the "to_package_id" field.
func (*ReportDependencyGraphCreate) SetToPackageName ¶ added in v1.12.0
func (rdgc *ReportDependencyGraphCreate) SetToPackageName(s string) *ReportDependencyGraphCreate
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
func (rdgc *ReportDependencyGraphCreate) SetUpdatedAt(t time.Time) *ReportDependencyGraphCreate
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
func (rdgcb *ReportDependencyGraphCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReportDependencyGraphCreateBulk) ExecX ¶ added in v1.12.0
func (rdgcb *ReportDependencyGraphCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportDependencyGraphCreateBulk) Save ¶ added in v1.12.0
func (rdgcb *ReportDependencyGraphCreateBulk) Save(ctx context.Context) ([]*ReportDependencyGraph, error)
Save creates the ReportDependencyGraph entities in the database.
func (*ReportDependencyGraphCreateBulk) SaveX ¶ added in v1.12.0
func (rdgcb *ReportDependencyGraphCreateBulk) SaveX(ctx context.Context) []*ReportDependencyGraph
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
func (rdgd *ReportDependencyGraphDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ReportDependencyGraphDelete) ExecX ¶ added in v1.12.0
func (rdgd *ReportDependencyGraphDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ReportDependencyGraphDelete) Where ¶ added in v1.12.0
func (rdgd *ReportDependencyGraphDelete) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphDelete
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
func (rdgdo *ReportDependencyGraphDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ReportDependencyGraphDeleteOne) ExecX ¶ added in v1.12.0
func (rdgdo *ReportDependencyGraphDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportDependencyGraphDeleteOne) Where ¶ added in v1.12.0
func (rdgdo *ReportDependencyGraphDeleteOne) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphDeleteOne
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
func (rdggb *ReportDependencyGraphGroupBy) Aggregate(fns ...AggregateFunc) *ReportDependencyGraphGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportDependencyGraphGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) Scan ¶ added in v1.12.0
func (rdggb *ReportDependencyGraphGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReportDependencyGraphGroupBy) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ReportDependencyGraphGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (m ReportDependencyGraphMutation) 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 (*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
func (m *ReportDependencyGraphMutation) 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 (*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
func (m *ReportDependencyGraphMutation) 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 (*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
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
func (m *ReportDependencyGraphMutation) 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 (*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
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
func (m *ReportDependencyGraphMutation) Op() Op
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
func (m ReportDependencyGraphMutation) Tx() (*Tx, error)
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
func (m *ReportDependencyGraphMutation) Type() string
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
func (m *ReportDependencyGraphMutation) Where(ps ...predicate.ReportDependencyGraph)
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
func (rdgq *ReportDependencyGraphQuery) Aggregate(fns ...AggregateFunc) *ReportDependencyGraphSelect
Aggregate returns a ReportDependencyGraphSelect configured with the given aggregations.
func (*ReportDependencyGraphQuery) All ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) All(ctx context.Context) ([]*ReportDependencyGraph, error)
All executes the query and returns a list of ReportDependencyGraphs.
func (*ReportDependencyGraphQuery) AllX ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) AllX(ctx context.Context) []*ReportDependencyGraph
AllX is like All, but panics if an error occurs.
func (*ReportDependencyGraphQuery) Clone ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) Clone() *ReportDependencyGraphQuery
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
func (rdgq *ReportDependencyGraphQuery) First(ctx context.Context) (*ReportDependencyGraph, error)
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
func (rdgq *ReportDependencyGraphQuery) FirstX(ctx context.Context) *ReportDependencyGraph
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
func (rdgq *ReportDependencyGraphQuery) Limit(limit int) *ReportDependencyGraphQuery
Limit the number of records to be returned by this query.
func (*ReportDependencyGraphQuery) Offset ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) Offset(offset int) *ReportDependencyGraphQuery
Offset to start from.
func (*ReportDependencyGraphQuery) Only ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) Only(ctx context.Context) (*ReportDependencyGraph, error)
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
func (rdgq *ReportDependencyGraphQuery) OnlyX(ctx context.Context) *ReportDependencyGraph
OnlyX is like Only, but panics if an error occurs.
func (*ReportDependencyGraphQuery) Order ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) Order(o ...reportdependencygraph.OrderOption) *ReportDependencyGraphQuery
Order specifies how the records should be ordered.
func (*ReportDependencyGraphQuery) Select ¶ added in v1.12.0
func (rdgq *ReportDependencyGraphQuery) Select(fields ...string) *ReportDependencyGraphSelect
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
func (rdgq *ReportDependencyGraphQuery) Unique(unique bool) *ReportDependencyGraphQuery
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
func (rdgq *ReportDependencyGraphQuery) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphQuery
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
func (rdgs *ReportDependencyGraphSelect) Aggregate(fns ...AggregateFunc) *ReportDependencyGraphSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportDependencyGraphSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportDependencyGraphSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportDependencyGraphSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportDependencyGraphSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportDependencyGraphSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportDependencyGraphSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ReportDependencyGraphSelect) Scan ¶ added in v1.12.0
func (rdgs *ReportDependencyGraphSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReportDependencyGraphSelect) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ReportDependencyGraphSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGraphSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rdgu *ReportDependencyGraphUpdate) AddDepth(i int) *ReportDependencyGraphUpdate
AddDepth adds i to the "depth" field.
func (*ReportDependencyGraphUpdate) ClearCreatedAt ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) ClearCreatedAt() *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) ClearUpdatedAt() *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) Exec(ctx context.Context) error
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
func (rdgu *ReportDependencyGraphUpdate) Mutation() *ReportDependencyGraphMutation
Mutation returns the ReportDependencyGraphMutation object of the builder.
func (*ReportDependencyGraphUpdate) Save ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ReportDependencyGraphUpdate) SaveX ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ReportDependencyGraphUpdate) SetCreatedAt ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SetCreatedAt(t time.Time) *ReportDependencyGraphUpdate
SetCreatedAt sets the "created_at" field.
func (*ReportDependencyGraphUpdate) SetDependencyType ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SetDependencyType(s string) *ReportDependencyGraphUpdate
SetDependencyType sets the "dependency_type" field.
func (*ReportDependencyGraphUpdate) SetDepth ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SetDepth(i int) *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) SetFromPackageID(s string) *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) SetIsDirect(b bool) *ReportDependencyGraphUpdate
SetIsDirect sets the "is_direct" field.
func (*ReportDependencyGraphUpdate) SetIsRootEdge ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SetIsRootEdge(b bool) *ReportDependencyGraphUpdate
SetIsRootEdge sets the "is_root_edge" field.
func (*ReportDependencyGraphUpdate) SetManifestID ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SetManifestID(s string) *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) SetToPackageID(s string) *ReportDependencyGraphUpdate
SetToPackageID sets the "to_package_id" field.
func (*ReportDependencyGraphUpdate) SetToPackageName ¶ added in v1.12.0
func (rdgu *ReportDependencyGraphUpdate) SetToPackageName(s string) *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) SetUpdatedAt(t time.Time) *ReportDependencyGraphUpdate
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
func (rdgu *ReportDependencyGraphUpdate) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphUpdate
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
func (rdguo *ReportDependencyGraphUpdateOne) AddDepth(i int) *ReportDependencyGraphUpdateOne
AddDepth adds i to the "depth" field.
func (*ReportDependencyGraphUpdateOne) ClearCreatedAt ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) ClearCreatedAt() *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) ClearUpdatedAt() *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ReportDependencyGraphUpdateOne) ExecX ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportDependencyGraphUpdateOne) Mutation ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) Mutation() *ReportDependencyGraphMutation
Mutation returns the ReportDependencyGraphMutation object of the builder.
func (*ReportDependencyGraphUpdateOne) Save ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) Save(ctx context.Context) (*ReportDependencyGraph, error)
Save executes the query and returns the updated ReportDependencyGraph entity.
func (*ReportDependencyGraphUpdateOne) SaveX ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SaveX(ctx context.Context) *ReportDependencyGraph
SaveX is like Save, but panics if an error occurs.
func (*ReportDependencyGraphUpdateOne) Select ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) Select(field string, fields ...string) *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) SetCreatedAt(t time.Time) *ReportDependencyGraphUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ReportDependencyGraphUpdateOne) SetDependencyType ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetDependencyType(s string) *ReportDependencyGraphUpdateOne
SetDependencyType sets the "dependency_type" field.
func (*ReportDependencyGraphUpdateOne) SetDepth ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetDepth(i int) *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageID(s string) *ReportDependencyGraphUpdateOne
SetFromPackageID sets the "from_package_id" field.
func (*ReportDependencyGraphUpdateOne) SetFromPackageName ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetFromPackageName(s string) *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) SetIsDirect(b bool) *ReportDependencyGraphUpdateOne
SetIsDirect sets the "is_direct" field.
func (*ReportDependencyGraphUpdateOne) SetIsRootEdge ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetIsRootEdge(b bool) *ReportDependencyGraphUpdateOne
SetIsRootEdge sets the "is_root_edge" field.
func (*ReportDependencyGraphUpdateOne) SetManifestID ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetManifestID(s string) *ReportDependencyGraphUpdateOne
SetManifestID sets the "manifest_id" field.
func (*ReportDependencyGraphUpdateOne) SetNillableCreatedAt ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) SetNillableDepth(i *int) *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportDependencyGraphUpdateOne
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
func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageID(s string) *ReportDependencyGraphUpdateOne
SetToPackageID sets the "to_package_id" field.
func (*ReportDependencyGraphUpdateOne) SetToPackageName ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageName(s string) *ReportDependencyGraphUpdateOne
SetToPackageName sets the "to_package_name" field.
func (*ReportDependencyGraphUpdateOne) SetToPackageVersion ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetToPackageVersion(s string) *ReportDependencyGraphUpdateOne
SetToPackageVersion sets the "to_package_version" field.
func (*ReportDependencyGraphUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetUpdatedAt(t time.Time) *ReportDependencyGraphUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportDependencyGraphUpdateOne) SetVersionConstraint ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) SetVersionConstraint(s string) *ReportDependencyGraphUpdateOne
SetVersionConstraint sets the "version_constraint" field.
func (*ReportDependencyGraphUpdateOne) Where ¶ added in v1.12.0
func (rdguo *ReportDependencyGraphUpdateOne) Where(ps ...predicate.ReportDependencyGraph) *ReportDependencyGraphUpdateOne
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
func (rdgb *ReportDependencyGroupBy) Aggregate(fns ...AggregateFunc) *ReportDependencyGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportDependencyGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportDependencyGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportDependencyGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportDependencyGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportDependencyGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportDependencyGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportDependencyGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportDependencyGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (m *ReportDependencyMutation) 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 (*ReportDependencyMutation) OldCreatedAt ¶ added in v1.12.0
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
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
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
func (m *ReportDependencyMutation) Where(ps ...predicate.ReportDependency)
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
func (rdq *ReportDependencyQuery) Aggregate(fns ...AggregateFunc) *ReportDependencySelect
Aggregate returns a ReportDependencySelect configured with the given aggregations.
func (*ReportDependencyQuery) All ¶ added in v1.12.0
func (rdq *ReportDependencyQuery) All(ctx context.Context) ([]*ReportDependency, error)
All executes the query and returns a list of ReportDependencies.
func (*ReportDependencyQuery) AllX ¶ added in v1.12.0
func (rdq *ReportDependencyQuery) AllX(ctx context.Context) []*ReportDependency
AllX is like All, but panics if an error occurs.
func (*ReportDependencyQuery) Clone ¶ added in v1.12.0
func (rdq *ReportDependencyQuery) Clone() *ReportDependencyQuery
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
func (rdq *ReportDependencyQuery) First(ctx context.Context) (*ReportDependency, error)
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
func (rdq *ReportDependencyQuery) FirstX(ctx context.Context) *ReportDependency
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
func (rdq *ReportDependencyQuery) Only(ctx context.Context) (*ReportDependency, error)
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
func (rdq *ReportDependencyQuery) OnlyX(ctx context.Context) *ReportDependency
OnlyX is like Only, but panics if an error occurs.
func (*ReportDependencyQuery) Order ¶ added in v1.12.0
func (rdq *ReportDependencyQuery) Order(o ...reportdependency.OrderOption) *ReportDependencyQuery
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
func (rdq *ReportDependencyQuery) Where(ps ...predicate.ReportDependency) *ReportDependencyQuery
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
func (rds *ReportDependencySelect) Aggregate(fns ...AggregateFunc) *ReportDependencySelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportDependencySelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportDependencySelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportDependencySelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportDependencySelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportDependencySelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportDependencySelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportDependencySelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportDependencySelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rdu *ReportDependencyUpdate) AddDepth(i int) *ReportDependencyUpdate
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
func (rdu *ReportDependencyUpdate) Exec(ctx context.Context) error
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
func (rdu *ReportDependencyUpdate) Mutation() *ReportDependencyMutation
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
func (rdu *ReportDependencyUpdate) SetCreatedAt(t time.Time) *ReportDependencyUpdate
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
func (rdu *ReportDependencyUpdate) SetDepth(i int) *ReportDependencyUpdate
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
func (rdu *ReportDependencyUpdate) SetPackage(r *ReportPackage) *ReportDependencyUpdate
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
func (rdu *ReportDependencyUpdate) SetUpdatedAt(t time.Time) *ReportDependencyUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ReportDependencyUpdate) Where ¶ added in v1.12.0
func (rdu *ReportDependencyUpdate) Where(ps ...predicate.ReportDependency) *ReportDependencyUpdate
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
func (rduo *ReportDependencyUpdateOne) AddDepth(i int) *ReportDependencyUpdateOne
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
func (rduo *ReportDependencyUpdateOne) ClearPackage() *ReportDependencyUpdateOne
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
func (rduo *ReportDependencyUpdateOne) Exec(ctx context.Context) error
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
func (rduo *ReportDependencyUpdateOne) Mutation() *ReportDependencyMutation
Mutation returns the ReportDependencyMutation object of the builder.
func (*ReportDependencyUpdateOne) Save ¶ added in v1.12.0
func (rduo *ReportDependencyUpdateOne) Save(ctx context.Context) (*ReportDependency, error)
Save executes the query and returns the updated ReportDependency entity.
func (*ReportDependencyUpdateOne) SaveX ¶ added in v1.12.0
func (rduo *ReportDependencyUpdateOne) SaveX(ctx context.Context) *ReportDependency
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
func (rduo *ReportDependencyUpdateOne) SetCreatedAt(t time.Time) *ReportDependencyUpdateOne
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
func (rduo *ReportDependencyUpdateOne) SetDepth(i int) *ReportDependencyUpdateOne
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
func (rduo *ReportDependencyUpdateOne) SetPackage(r *ReportPackage) *ReportDependencyUpdateOne
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportDependencyUpdateOne) SetPackageID ¶ added in v1.12.0
func (rduo *ReportDependencyUpdateOne) SetPackageID(id int) *ReportDependencyUpdateOne
SetPackageID sets the "package" edge to the ReportPackage entity by ID.
func (*ReportDependencyUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (rduo *ReportDependencyUpdateOne) SetUpdatedAt(t time.Time) *ReportDependencyUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportDependencyUpdateOne) Where ¶ added in v1.12.0
func (rduo *ReportDependencyUpdateOne) Where(ps ...predicate.ReportDependency) *ReportDependencyUpdateOne
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.
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
func (c *ReportLicenseClient) Create() *ReportLicenseCreate
Create returns a builder for creating a ReportLicense entity.
func (*ReportLicenseClient) CreateBulk ¶ added in v1.12.0
func (c *ReportLicenseClient) CreateBulk(builders ...*ReportLicenseCreate) *ReportLicenseCreateBulk
CreateBulk returns a builder for creating a bulk of ReportLicense entities.
func (*ReportLicenseClient) Delete ¶ added in v1.12.0
func (c *ReportLicenseClient) Delete() *ReportLicenseDelete
Delete returns a delete builder for ReportLicense.
func (*ReportLicenseClient) DeleteOne ¶ added in v1.12.0
func (c *ReportLicenseClient) DeleteOne(rl *ReportLicense) *ReportLicenseDeleteOne
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
func (c *ReportLicenseClient) Get(ctx context.Context, id int) (*ReportLicense, error)
Get returns a ReportLicense entity by its id.
func (*ReportLicenseClient) GetX ¶ added in v1.12.0
func (c *ReportLicenseClient) GetX(ctx context.Context, id int) *ReportLicense
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
func (c *ReportLicenseClient) Query() *ReportLicenseQuery
Query returns a query builder for ReportLicense.
func (*ReportLicenseClient) QueryPackage ¶ added in v1.12.0
func (c *ReportLicenseClient) QueryPackage(rl *ReportLicense) *ReportPackageQuery
QueryPackage queries the package edge of a ReportLicense.
func (*ReportLicenseClient) Update ¶ added in v1.12.0
func (c *ReportLicenseClient) Update() *ReportLicenseUpdate
Update returns an update builder for ReportLicense.
func (*ReportLicenseClient) UpdateOne ¶ added in v1.12.0
func (c *ReportLicenseClient) UpdateOne(rl *ReportLicense) *ReportLicenseUpdateOne
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
func (rlc *ReportLicenseCreate) Save(ctx context.Context) (*ReportLicense, error)
Save creates the ReportLicense in the database.
func (*ReportLicenseCreate) SaveX ¶ added in v1.12.0
func (rlc *ReportLicenseCreate) SaveX(ctx context.Context) *ReportLicense
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
func (rlc *ReportLicenseCreate) SetName(s string) *ReportLicenseCreate
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
func (rlc *ReportLicenseCreate) SetPackage(r *ReportPackage) *ReportLicenseCreate
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
func (rlc *ReportLicenseCreate) SetURL(s string) *ReportLicenseCreate
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
func (rlcb *ReportLicenseCreateBulk) Save(ctx context.Context) ([]*ReportLicense, error)
Save creates the ReportLicense entities in the database.
func (*ReportLicenseCreateBulk) SaveX ¶ added in v1.12.0
func (rlcb *ReportLicenseCreateBulk) SaveX(ctx context.Context) []*ReportLicense
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
func (rld *ReportLicenseDelete) Where(ps ...predicate.ReportLicense) *ReportLicenseDelete
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
func (rldo *ReportLicenseDeleteOne) Where(ps ...predicate.ReportLicense) *ReportLicenseDeleteOne
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportLicenseGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportLicenseGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportLicenseGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportLicenseGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportLicenseGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportLicenseGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportLicenseGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
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
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
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
func (m *ReportLicenseMutation) Where(ps ...predicate.ReportLicense)
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
func (rlq *ReportLicenseQuery) All(ctx context.Context) ([]*ReportLicense, error)
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
func (rlq *ReportLicenseQuery) First(ctx context.Context) (*ReportLicense, error)
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
func (rlq *ReportLicenseQuery) Only(ctx context.Context) (*ReportLicense, error)
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
func (rlq *ReportLicenseQuery) OnlyX(ctx context.Context) *ReportLicense
OnlyX is like Only, but panics if an error occurs.
func (*ReportLicenseQuery) Order ¶ added in v1.12.0
func (rlq *ReportLicenseQuery) Order(o ...reportlicense.OrderOption) *ReportLicenseQuery
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
func (rlq *ReportLicenseQuery) Where(ps ...predicate.ReportLicense) *ReportLicenseQuery
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportLicenseSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportLicenseSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportLicenseSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportLicenseSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportLicenseSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportLicenseSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportLicenseSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rlu *ReportLicenseUpdate) SetName(s string) *ReportLicenseUpdate
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
func (rlu *ReportLicenseUpdate) SetPackage(r *ReportPackage) *ReportLicenseUpdate
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
func (rlu *ReportLicenseUpdate) SetURL(s string) *ReportLicenseUpdate
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
func (rlu *ReportLicenseUpdate) Where(ps ...predicate.ReportLicense) *ReportLicenseUpdate
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
func (rluo *ReportLicenseUpdateOne) ClearName() *ReportLicenseUpdateOne
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
func (rluo *ReportLicenseUpdateOne) ClearURL() *ReportLicenseUpdateOne
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
func (rluo *ReportLicenseUpdateOne) Mutation() *ReportLicenseMutation
Mutation returns the ReportLicenseMutation object of the builder.
func (*ReportLicenseUpdateOne) Save ¶ added in v1.12.0
func (rluo *ReportLicenseUpdateOne) Save(ctx context.Context) (*ReportLicense, error)
Save executes the query and returns the updated ReportLicense entity.
func (*ReportLicenseUpdateOne) SaveX ¶ added in v1.12.0
func (rluo *ReportLicenseUpdateOne) SaveX(ctx context.Context) *ReportLicense
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
func (rluo *ReportLicenseUpdateOne) SetName(s string) *ReportLicenseUpdateOne
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
func (rluo *ReportLicenseUpdateOne) SetPackage(r *ReportPackage) *ReportLicenseUpdateOne
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
func (rluo *ReportLicenseUpdateOne) SetSpdxID(s string) *ReportLicenseUpdateOne
SetSpdxID sets the "spdx_id" field.
func (*ReportLicenseUpdateOne) SetURL ¶ added in v1.12.0
func (rluo *ReportLicenseUpdateOne) SetURL(s string) *ReportLicenseUpdateOne
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
func (rluo *ReportLicenseUpdateOne) Where(ps ...predicate.ReportLicense) *ReportLicenseUpdateOne
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.
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
func (c *ReportMalwareClient) Create() *ReportMalwareCreate
Create returns a builder for creating a ReportMalware entity.
func (*ReportMalwareClient) CreateBulk ¶ added in v1.12.0
func (c *ReportMalwareClient) CreateBulk(builders ...*ReportMalwareCreate) *ReportMalwareCreateBulk
CreateBulk returns a builder for creating a bulk of ReportMalware entities.
func (*ReportMalwareClient) Delete ¶ added in v1.12.0
func (c *ReportMalwareClient) Delete() *ReportMalwareDelete
Delete returns a delete builder for ReportMalware.
func (*ReportMalwareClient) DeleteOne ¶ added in v1.12.0
func (c *ReportMalwareClient) DeleteOne(rm *ReportMalware) *ReportMalwareDeleteOne
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
func (c *ReportMalwareClient) Get(ctx context.Context, id int) (*ReportMalware, error)
Get returns a ReportMalware entity by its id.
func (*ReportMalwareClient) GetX ¶ added in v1.12.0
func (c *ReportMalwareClient) GetX(ctx context.Context, id int) *ReportMalware
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
func (c *ReportMalwareClient) Query() *ReportMalwareQuery
Query returns a query builder for ReportMalware.
func (*ReportMalwareClient) QueryPackage ¶ added in v1.12.0
func (c *ReportMalwareClient) QueryPackage(rm *ReportMalware) *ReportPackageQuery
QueryPackage queries the package edge of a ReportMalware.
func (*ReportMalwareClient) Update ¶ added in v1.12.0
func (c *ReportMalwareClient) Update() *ReportMalwareUpdate
Update returns an update builder for ReportMalware.
func (*ReportMalwareClient) UpdateOne ¶ added in v1.12.0
func (c *ReportMalwareClient) UpdateOne(rm *ReportMalware) *ReportMalwareUpdateOne
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
func (rmc *ReportMalwareCreate) Save(ctx context.Context) (*ReportMalware, error)
Save creates the ReportMalware in the database.
func (*ReportMalwareCreate) SaveX ¶ added in v1.12.0
func (rmc *ReportMalwareCreate) SaveX(ctx context.Context) *ReportMalware
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
func (rmc *ReportMalwareCreate) SetPackage(r *ReportPackage) *ReportMalwareCreate
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
func (rmcb *ReportMalwareCreateBulk) Save(ctx context.Context) ([]*ReportMalware, error)
Save creates the ReportMalware entities in the database.
func (*ReportMalwareCreateBulk) SaveX ¶ added in v1.12.0
func (rmcb *ReportMalwareCreateBulk) SaveX(ctx context.Context) []*ReportMalware
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
func (rmd *ReportMalwareDelete) Where(ps ...predicate.ReportMalware) *ReportMalwareDelete
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
func (rmdo *ReportMalwareDeleteOne) Where(ps ...predicate.ReportMalware) *ReportMalwareDeleteOne
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportMalwareGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportMalwareGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportMalwareGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportMalwareGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportMalwareGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportMalwareGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportMalwareGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
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
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
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
func (m *ReportMalwareMutation) Where(ps ...predicate.ReportMalware)
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
func (rmq *ReportMalwareQuery) All(ctx context.Context) ([]*ReportMalware, error)
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
func (rmq *ReportMalwareQuery) First(ctx context.Context) (*ReportMalware, error)
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
func (rmq *ReportMalwareQuery) Only(ctx context.Context) (*ReportMalware, error)
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
func (rmq *ReportMalwareQuery) OnlyX(ctx context.Context) *ReportMalware
OnlyX is like Only, but panics if an error occurs.
func (*ReportMalwareQuery) Order ¶ added in v1.12.0
func (rmq *ReportMalwareQuery) Order(o ...reportmalware.OrderOption) *ReportMalwareQuery
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
func (rmq *ReportMalwareQuery) Where(ps ...predicate.ReportMalware) *ReportMalwareQuery
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportMalwareSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportMalwareSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportMalwareSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportMalwareSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportMalwareSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportMalwareSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportMalwareSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rmu *ReportMalwareUpdate) SetPackage(r *ReportPackage) *ReportMalwareUpdate
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
func (rmu *ReportMalwareUpdate) Where(ps ...predicate.ReportMalware) *ReportMalwareUpdate
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
func (rmuo *ReportMalwareUpdateOne) Mutation() *ReportMalwareMutation
Mutation returns the ReportMalwareMutation object of the builder.
func (*ReportMalwareUpdateOne) Save ¶ added in v1.12.0
func (rmuo *ReportMalwareUpdateOne) Save(ctx context.Context) (*ReportMalware, error)
Save executes the query and returns the updated ReportMalware entity.
func (*ReportMalwareUpdateOne) SaveX ¶ added in v1.12.0
func (rmuo *ReportMalwareUpdateOne) SaveX(ctx context.Context) *ReportMalware
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
func (rmuo *ReportMalwareUpdateOne) SetPackage(r *ReportPackage) *ReportMalwareUpdateOne
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
func (rmuo *ReportMalwareUpdateOne) Where(ps ...predicate.ReportMalware) *ReportMalwareUpdateOne
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.
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
func (c *ReportPackageClient) Create() *ReportPackageCreate
Create returns a builder for creating a ReportPackage entity.
func (*ReportPackageClient) CreateBulk ¶ added in v1.12.0
func (c *ReportPackageClient) CreateBulk(builders ...*ReportPackageCreate) *ReportPackageCreateBulk
CreateBulk returns a builder for creating a bulk of ReportPackage entities.
func (*ReportPackageClient) Delete ¶ added in v1.12.0
func (c *ReportPackageClient) Delete() *ReportPackageDelete
Delete returns a delete builder for ReportPackage.
func (*ReportPackageClient) DeleteOne ¶ added in v1.12.0
func (c *ReportPackageClient) DeleteOne(rp *ReportPackage) *ReportPackageDeleteOne
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
func (c *ReportPackageClient) Get(ctx context.Context, id int) (*ReportPackage, error)
Get returns a ReportPackage entity by its id.
func (*ReportPackageClient) GetX ¶ added in v1.12.0
func (c *ReportPackageClient) GetX(ctx context.Context, id int) *ReportPackage
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
func (c *ReportPackageClient) Query() *ReportPackageQuery
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
func (c *ReportPackageClient) QueryManifests(rp *ReportPackage) *ReportPackageManifestQuery
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
func (c *ReportPackageClient) Update() *ReportPackageUpdate
Update returns an update builder for ReportPackage.
func (*ReportPackageClient) UpdateOne ¶ added in v1.12.0
func (c *ReportPackageClient) UpdateOne(rp *ReportPackage) *ReportPackageUpdateOne
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
func (rpc *ReportPackageCreate) AddManifests(r ...*ReportPackageManifest) *ReportPackageCreate
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
func (rpc *ReportPackageCreate) Save(ctx context.Context) (*ReportPackage, error)
Save creates the ReportPackage in the database.
func (*ReportPackageCreate) SaveX ¶ added in v1.12.0
func (rpc *ReportPackageCreate) SaveX(ctx context.Context) *ReportPackage
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
func (rpc *ReportPackageCreate) SetName(s string) *ReportPackageCreate
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
func (rpcb *ReportPackageCreateBulk) Save(ctx context.Context) ([]*ReportPackage, error)
Save creates the ReportPackage entities in the database.
func (*ReportPackageCreateBulk) SaveX ¶ added in v1.12.0
func (rpcb *ReportPackageCreateBulk) SaveX(ctx context.Context) []*ReportPackage
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
func (rpd *ReportPackageDelete) Where(ps ...predicate.ReportPackage) *ReportPackageDelete
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
func (rpdo *ReportPackageDeleteOne) Where(ps ...predicate.ReportPackage) *ReportPackageDeleteOne
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportPackageGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportPackageGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportPackageGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportPackageGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportPackageGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportPackageGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportPackageGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rpm *ReportPackageManifest) Unwrap() *ReportPackageManifest
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
func (rpm *ReportPackageManifest) Update() *ReportPackageManifestUpdateOne
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.
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
func (c *ReportPackageManifestClient) Create() *ReportPackageManifestCreate
Create returns a builder for creating a ReportPackageManifest entity.
func (*ReportPackageManifestClient) CreateBulk ¶ added in v1.12.0
func (c *ReportPackageManifestClient) CreateBulk(builders ...*ReportPackageManifestCreate) *ReportPackageManifestCreateBulk
CreateBulk returns a builder for creating a bulk of ReportPackageManifest entities.
func (*ReportPackageManifestClient) Delete ¶ added in v1.12.0
func (c *ReportPackageManifestClient) Delete() *ReportPackageManifestDelete
Delete returns a delete builder for ReportPackageManifest.
func (*ReportPackageManifestClient) DeleteOne ¶ added in v1.12.0
func (c *ReportPackageManifestClient) DeleteOne(rpm *ReportPackageManifest) *ReportPackageManifestDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportPackageManifestClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportPackageManifestClient) DeleteOneID(id int) *ReportPackageManifestDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportPackageManifestClient) Get ¶ added in v1.12.0
func (c *ReportPackageManifestClient) Get(ctx context.Context, id int) (*ReportPackageManifest, error)
Get returns a ReportPackageManifest entity by its id.
func (*ReportPackageManifestClient) GetX ¶ added in v1.12.0
func (c *ReportPackageManifestClient) GetX(ctx context.Context, id int) *ReportPackageManifest
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
func (c *ReportPackageManifestClient) MapCreateBulk(slice any, setFunc func(*ReportPackageManifestCreate, int)) *ReportPackageManifestCreateBulk
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
func (c *ReportPackageManifestClient) Query() *ReportPackageManifestQuery
Query returns a query builder for ReportPackageManifest.
func (*ReportPackageManifestClient) QueryPackages ¶ added in v1.12.0
func (c *ReportPackageManifestClient) QueryPackages(rpm *ReportPackageManifest) *ReportPackageQuery
QueryPackages queries the packages edge of a ReportPackageManifest.
func (*ReportPackageManifestClient) Update ¶ added in v1.12.0
func (c *ReportPackageManifestClient) Update() *ReportPackageManifestUpdate
Update returns an update builder for ReportPackageManifest.
func (*ReportPackageManifestClient) UpdateOne ¶ added in v1.12.0
func (c *ReportPackageManifestClient) UpdateOne(rpm *ReportPackageManifest) *ReportPackageManifestUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportPackageManifestClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportPackageManifestClient) UpdateOneID(id int) *ReportPackageManifestUpdateOne
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
func (rpmc *ReportPackageManifestCreate) AddPackages(r ...*ReportPackage) *ReportPackageManifestCreate
AddPackages adds the "packages" edges to the ReportPackage entity.
func (*ReportPackageManifestCreate) Exec ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) Exec(ctx context.Context) error
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
func (rpmc *ReportPackageManifestCreate) Mutation() *ReportPackageManifestMutation
Mutation returns the ReportPackageManifestMutation object of the builder.
func (*ReportPackageManifestCreate) Save ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) Save(ctx context.Context) (*ReportPackageManifest, error)
Save creates the ReportPackageManifest in the database.
func (*ReportPackageManifestCreate) SaveX ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SaveX(ctx context.Context) *ReportPackageManifest
SaveX calls Save and panics if Save returns an error.
func (*ReportPackageManifestCreate) SetCreatedAt ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetCreatedAt(t time.Time) *ReportPackageManifestCreate
SetCreatedAt sets the "created_at" field.
func (*ReportPackageManifestCreate) SetDisplayPath ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetDisplayPath(s string) *ReportPackageManifestCreate
SetDisplayPath sets the "display_path" field.
func (*ReportPackageManifestCreate) SetEcosystem ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetEcosystem(s string) *ReportPackageManifestCreate
SetEcosystem sets the "ecosystem" field.
func (*ReportPackageManifestCreate) SetManifestID ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetManifestID(s string) *ReportPackageManifestCreate
SetManifestID sets the "manifest_id" field.
func (*ReportPackageManifestCreate) SetNamespace ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetNamespace(s string) *ReportPackageManifestCreate
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
func (rpmc *ReportPackageManifestCreate) SetPath(s string) *ReportPackageManifestCreate
SetPath sets the "path" field.
func (*ReportPackageManifestCreate) SetSourceType ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetSourceType(s string) *ReportPackageManifestCreate
SetSourceType sets the "source_type" field.
func (*ReportPackageManifestCreate) SetUpdatedAt ¶ added in v1.12.0
func (rpmc *ReportPackageManifestCreate) SetUpdatedAt(t time.Time) *ReportPackageManifestCreate
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
func (rpmcb *ReportPackageManifestCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReportPackageManifestCreateBulk) ExecX ¶ added in v1.12.0
func (rpmcb *ReportPackageManifestCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportPackageManifestCreateBulk) Save ¶ added in v1.12.0
func (rpmcb *ReportPackageManifestCreateBulk) Save(ctx context.Context) ([]*ReportPackageManifest, error)
Save creates the ReportPackageManifest entities in the database.
func (*ReportPackageManifestCreateBulk) SaveX ¶ added in v1.12.0
func (rpmcb *ReportPackageManifestCreateBulk) SaveX(ctx context.Context) []*ReportPackageManifest
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
func (rpmd *ReportPackageManifestDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ReportPackageManifestDelete) ExecX ¶ added in v1.12.0
func (rpmd *ReportPackageManifestDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ReportPackageManifestDelete) Where ¶ added in v1.12.0
func (rpmd *ReportPackageManifestDelete) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestDelete
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
func (rpmdo *ReportPackageManifestDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ReportPackageManifestDeleteOne) ExecX ¶ added in v1.12.0
func (rpmdo *ReportPackageManifestDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportPackageManifestDeleteOne) Where ¶ added in v1.12.0
func (rpmdo *ReportPackageManifestDeleteOne) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestDeleteOne
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
func (rpmgb *ReportPackageManifestGroupBy) Aggregate(fns ...AggregateFunc) *ReportPackageManifestGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportPackageManifestGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) Scan ¶ added in v1.12.0
func (rpmgb *ReportPackageManifestGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReportPackageManifestGroupBy) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ReportPackageManifestGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (m ReportPackageManifestMutation) 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 (*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
func (m *ReportPackageManifestMutation) 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 (*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
func (m *ReportPackageManifestMutation) 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 (*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
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
func (m *ReportPackageManifestMutation) 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 (*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
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
func (m *ReportPackageManifestMutation) Op() Op
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
func (m ReportPackageManifestMutation) Tx() (*Tx, error)
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
func (m *ReportPackageManifestMutation) Type() string
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
func (m *ReportPackageManifestMutation) Where(ps ...predicate.ReportPackageManifest)
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
func (rpmq *ReportPackageManifestQuery) Aggregate(fns ...AggregateFunc) *ReportPackageManifestSelect
Aggregate returns a ReportPackageManifestSelect configured with the given aggregations.
func (*ReportPackageManifestQuery) All ¶ added in v1.12.0
func (rpmq *ReportPackageManifestQuery) All(ctx context.Context) ([]*ReportPackageManifest, error)
All executes the query and returns a list of ReportPackageManifests.
func (*ReportPackageManifestQuery) AllX ¶ added in v1.12.0
func (rpmq *ReportPackageManifestQuery) AllX(ctx context.Context) []*ReportPackageManifest
AllX is like All, but panics if an error occurs.
func (*ReportPackageManifestQuery) Clone ¶ added in v1.12.0
func (rpmq *ReportPackageManifestQuery) Clone() *ReportPackageManifestQuery
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
func (rpmq *ReportPackageManifestQuery) First(ctx context.Context) (*ReportPackageManifest, error)
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
func (rpmq *ReportPackageManifestQuery) FirstX(ctx context.Context) *ReportPackageManifest
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
func (rpmq *ReportPackageManifestQuery) Limit(limit int) *ReportPackageManifestQuery
Limit the number of records to be returned by this query.
func (*ReportPackageManifestQuery) Offset ¶ added in v1.12.0
func (rpmq *ReportPackageManifestQuery) Offset(offset int) *ReportPackageManifestQuery
Offset to start from.
func (*ReportPackageManifestQuery) Only ¶ added in v1.12.0
func (rpmq *ReportPackageManifestQuery) Only(ctx context.Context) (*ReportPackageManifest, error)
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
func (rpmq *ReportPackageManifestQuery) OnlyX(ctx context.Context) *ReportPackageManifest
OnlyX is like Only, but panics if an error occurs.
func (*ReportPackageManifestQuery) Order ¶ added in v1.12.0
func (rpmq *ReportPackageManifestQuery) Order(o ...reportpackagemanifest.OrderOption) *ReportPackageManifestQuery
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
func (rpmq *ReportPackageManifestQuery) Select(fields ...string) *ReportPackageManifestSelect
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
func (rpmq *ReportPackageManifestQuery) Unique(unique bool) *ReportPackageManifestQuery
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
func (rpmq *ReportPackageManifestQuery) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestQuery
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
func (rpms *ReportPackageManifestSelect) Aggregate(fns ...AggregateFunc) *ReportPackageManifestSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportPackageManifestSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportPackageManifestSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportPackageManifestSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportPackageManifestSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportPackageManifestSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportPackageManifestSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ReportPackageManifestSelect) Scan ¶ added in v1.12.0
func (rpms *ReportPackageManifestSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReportPackageManifestSelect) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ReportPackageManifestSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportPackageManifestSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rpmu *ReportPackageManifestUpdate) AddPackages(r ...*ReportPackage) *ReportPackageManifestUpdate
AddPackages adds the "packages" edges to the ReportPackage entity.
func (*ReportPackageManifestUpdate) ClearCreatedAt ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) ClearCreatedAt() *ReportPackageManifestUpdate
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportPackageManifestUpdate) ClearPackages ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) ClearPackages() *ReportPackageManifestUpdate
ClearPackages clears all "packages" edges to the ReportPackage entity.
func (*ReportPackageManifestUpdate) ClearUpdatedAt ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) ClearUpdatedAt() *ReportPackageManifestUpdate
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportPackageManifestUpdate) Exec ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) Exec(ctx context.Context) error
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
func (rpmu *ReportPackageManifestUpdate) Mutation() *ReportPackageManifestMutation
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
func (rpmu *ReportPackageManifestUpdate) RemovePackages(r ...*ReportPackage) *ReportPackageManifestUpdate
RemovePackages removes "packages" edges to ReportPackage entities.
func (*ReportPackageManifestUpdate) Save ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ReportPackageManifestUpdate) SaveX ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ReportPackageManifestUpdate) SetCreatedAt ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetCreatedAt(t time.Time) *ReportPackageManifestUpdate
SetCreatedAt sets the "created_at" field.
func (*ReportPackageManifestUpdate) SetDisplayPath ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetDisplayPath(s string) *ReportPackageManifestUpdate
SetDisplayPath sets the "display_path" field.
func (*ReportPackageManifestUpdate) SetEcosystem ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetEcosystem(s string) *ReportPackageManifestUpdate
SetEcosystem sets the "ecosystem" field.
func (*ReportPackageManifestUpdate) SetManifestID ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetManifestID(s string) *ReportPackageManifestUpdate
SetManifestID sets the "manifest_id" field.
func (*ReportPackageManifestUpdate) SetNamespace ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetNamespace(s string) *ReportPackageManifestUpdate
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
func (rpmu *ReportPackageManifestUpdate) SetNillablePath(s *string) *ReportPackageManifestUpdate
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
func (rpmu *ReportPackageManifestUpdate) SetPath(s string) *ReportPackageManifestUpdate
SetPath sets the "path" field.
func (*ReportPackageManifestUpdate) SetSourceType ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetSourceType(s string) *ReportPackageManifestUpdate
SetSourceType sets the "source_type" field.
func (*ReportPackageManifestUpdate) SetUpdatedAt ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) SetUpdatedAt(t time.Time) *ReportPackageManifestUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ReportPackageManifestUpdate) Where ¶ added in v1.12.0
func (rpmu *ReportPackageManifestUpdate) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestUpdate
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
func (rpmuo *ReportPackageManifestUpdateOne) AddPackageIDs(ids ...int) *ReportPackageManifestUpdateOne
AddPackageIDs adds the "packages" edge to the ReportPackage entity by IDs.
func (*ReportPackageManifestUpdateOne) AddPackages ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) AddPackages(r ...*ReportPackage) *ReportPackageManifestUpdateOne
AddPackages adds the "packages" edges to the ReportPackage entity.
func (*ReportPackageManifestUpdateOne) ClearCreatedAt ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) ClearCreatedAt() *ReportPackageManifestUpdateOne
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportPackageManifestUpdateOne) ClearPackages ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) ClearPackages() *ReportPackageManifestUpdateOne
ClearPackages clears all "packages" edges to the ReportPackage entity.
func (*ReportPackageManifestUpdateOne) ClearUpdatedAt ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) ClearUpdatedAt() *ReportPackageManifestUpdateOne
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportPackageManifestUpdateOne) Exec ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ReportPackageManifestUpdateOne) ExecX ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportPackageManifestUpdateOne) Mutation ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) Mutation() *ReportPackageManifestMutation
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
func (rpmuo *ReportPackageManifestUpdateOne) RemovePackages(r ...*ReportPackage) *ReportPackageManifestUpdateOne
RemovePackages removes "packages" edges to ReportPackage entities.
func (*ReportPackageManifestUpdateOne) Save ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) Save(ctx context.Context) (*ReportPackageManifest, error)
Save executes the query and returns the updated ReportPackageManifest entity.
func (*ReportPackageManifestUpdateOne) SaveX ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SaveX(ctx context.Context) *ReportPackageManifest
SaveX is like Save, but panics if an error occurs.
func (*ReportPackageManifestUpdateOne) Select ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) Select(field string, fields ...string) *ReportPackageManifestUpdateOne
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
func (rpmuo *ReportPackageManifestUpdateOne) SetCreatedAt(t time.Time) *ReportPackageManifestUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ReportPackageManifestUpdateOne) SetDisplayPath ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetDisplayPath(s string) *ReportPackageManifestUpdateOne
SetDisplayPath sets the "display_path" field.
func (*ReportPackageManifestUpdateOne) SetEcosystem ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetEcosystem(s string) *ReportPackageManifestUpdateOne
SetEcosystem sets the "ecosystem" field.
func (*ReportPackageManifestUpdateOne) SetManifestID ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetManifestID(s string) *ReportPackageManifestUpdateOne
SetManifestID sets the "manifest_id" field.
func (*ReportPackageManifestUpdateOne) SetNamespace ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetNamespace(s string) *ReportPackageManifestUpdateOne
SetNamespace sets the "namespace" field.
func (*ReportPackageManifestUpdateOne) SetNillableCreatedAt ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetNillableCreatedAt(t *time.Time) *ReportPackageManifestUpdateOne
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
func (rpmuo *ReportPackageManifestUpdateOne) SetNillablePath(s *string) *ReportPackageManifestUpdateOne
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
func (rpmuo *ReportPackageManifestUpdateOne) SetNillableUpdatedAt(t *time.Time) *ReportPackageManifestUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ReportPackageManifestUpdateOne) SetPath ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetPath(s string) *ReportPackageManifestUpdateOne
SetPath sets the "path" field.
func (*ReportPackageManifestUpdateOne) SetSourceType ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetSourceType(s string) *ReportPackageManifestUpdateOne
SetSourceType sets the "source_type" field.
func (*ReportPackageManifestUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) SetUpdatedAt(t time.Time) *ReportPackageManifestUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportPackageManifestUpdateOne) Where ¶ added in v1.12.0
func (rpmuo *ReportPackageManifestUpdateOne) Where(ps ...predicate.ReportPackageManifest) *ReportPackageManifestUpdateOne
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
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
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
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
func (m *ReportPackageMutation) Where(ps ...predicate.ReportPackage)
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
func (rpq *ReportPackageQuery) All(ctx context.Context) ([]*ReportPackage, error)
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
func (rpq *ReportPackageQuery) First(ctx context.Context) (*ReportPackage, error)
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
func (rpq *ReportPackageQuery) Only(ctx context.Context) (*ReportPackage, error)
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
func (rpq *ReportPackageQuery) OnlyX(ctx context.Context) *ReportPackage
OnlyX is like Only, but panics if an error occurs.
func (*ReportPackageQuery) Order ¶ added in v1.12.0
func (rpq *ReportPackageQuery) Order(o ...reportpackage.OrderOption) *ReportPackageQuery
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
func (rpq *ReportPackageQuery) Where(ps ...predicate.ReportPackage) *ReportPackageQuery
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportPackageSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportPackageSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportPackageSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportPackageSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportPackageSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportPackageSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportPackageSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rpu *ReportPackageUpdate) AddManifests(r ...*ReportPackageManifest) *ReportPackageUpdate
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
func (rpu *ReportPackageUpdate) SetName(s string) *ReportPackageUpdate
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
func (rpu *ReportPackageUpdate) Where(ps ...predicate.ReportPackage) *ReportPackageUpdate
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
func (rpuo *ReportPackageUpdateOne) AddDepth(i int) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) AddLicenses(r ...*ReportLicense) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) AddManifests(r ...*ReportPackageManifest) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) AddProjects(r ...*ReportProject) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) Mutation() *ReportPackageMutation
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
func (rpuo *ReportPackageUpdateOne) RemoveManifests(r ...*ReportPackageManifest) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) Save(ctx context.Context) (*ReportPackage, error)
Save executes the query and returns the updated ReportPackage entity.
func (*ReportPackageUpdateOne) SaveX ¶ added in v1.12.0
func (rpuo *ReportPackageUpdateOne) SaveX(ctx context.Context) *ReportPackage
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
func (rpuo *ReportPackageUpdateOne) SetDepth(i int) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) SetName(s string) *ReportPackageUpdateOne
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
func (rpuo *ReportPackageUpdateOne) SetVersion(s string) *ReportPackageUpdateOne
SetVersion sets the "version" field.
func (*ReportPackageUpdateOne) Where ¶ added in v1.12.0
func (rpuo *ReportPackageUpdateOne) Where(ps ...predicate.ReportPackage) *ReportPackageUpdateOne
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.
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
func (c *ReportProjectClient) Create() *ReportProjectCreate
Create returns a builder for creating a ReportProject entity.
func (*ReportProjectClient) CreateBulk ¶ added in v1.12.0
func (c *ReportProjectClient) CreateBulk(builders ...*ReportProjectCreate) *ReportProjectCreateBulk
CreateBulk returns a builder for creating a bulk of ReportProject entities.
func (*ReportProjectClient) Delete ¶ added in v1.12.0
func (c *ReportProjectClient) Delete() *ReportProjectDelete
Delete returns a delete builder for ReportProject.
func (*ReportProjectClient) DeleteOne ¶ added in v1.12.0
func (c *ReportProjectClient) DeleteOne(rp *ReportProject) *ReportProjectDeleteOne
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
func (c *ReportProjectClient) Get(ctx context.Context, id int) (*ReportProject, error)
Get returns a ReportProject entity by its id.
func (*ReportProjectClient) GetX ¶ added in v1.12.0
func (c *ReportProjectClient) GetX(ctx context.Context, id int) *ReportProject
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
func (c *ReportProjectClient) Query() *ReportProjectQuery
Query returns a query builder for ReportProject.
func (*ReportProjectClient) QueryPackage ¶ added in v1.12.0
func (c *ReportProjectClient) QueryPackage(rp *ReportProject) *ReportPackageQuery
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
func (c *ReportProjectClient) Update() *ReportProjectUpdate
Update returns an update builder for ReportProject.
func (*ReportProjectClient) UpdateOne ¶ added in v1.12.0
func (c *ReportProjectClient) UpdateOne(rp *ReportProject) *ReportProjectUpdateOne
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
func (rpc *ReportProjectCreate) Save(ctx context.Context) (*ReportProject, error)
Save creates the ReportProject in the database.
func (*ReportProjectCreate) SaveX ¶ added in v1.12.0
func (rpc *ReportProjectCreate) SaveX(ctx context.Context) *ReportProject
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
func (rpc *ReportProjectCreate) SetName(s string) *ReportProjectCreate
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
func (rpc *ReportProjectCreate) SetPackage(r *ReportPackage) *ReportProjectCreate
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
func (rpc *ReportProjectCreate) SetScorecard(r *ReportScorecard) *ReportProjectCreate
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
func (rpc *ReportProjectCreate) SetURL(s string) *ReportProjectCreate
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
func (rpcb *ReportProjectCreateBulk) Save(ctx context.Context) ([]*ReportProject, error)
Save creates the ReportProject entities in the database.
func (*ReportProjectCreateBulk) SaveX ¶ added in v1.12.0
func (rpcb *ReportProjectCreateBulk) SaveX(ctx context.Context) []*ReportProject
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
func (rpd *ReportProjectDelete) Where(ps ...predicate.ReportProject) *ReportProjectDelete
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
func (rpdo *ReportProjectDeleteOne) Where(ps ...predicate.ReportProject) *ReportProjectDeleteOne
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportProjectGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportProjectGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportProjectGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportProjectGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportProjectGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportProjectGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportProjectGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
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
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
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
func (m *ReportProjectMutation) Where(ps ...predicate.ReportProject)
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
func (rpq *ReportProjectQuery) All(ctx context.Context) ([]*ReportProject, error)
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
func (rpq *ReportProjectQuery) First(ctx context.Context) (*ReportProject, error)
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
func (rpq *ReportProjectQuery) Only(ctx context.Context) (*ReportProject, error)
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
func (rpq *ReportProjectQuery) OnlyX(ctx context.Context) *ReportProject
OnlyX is like Only, but panics if an error occurs.
func (*ReportProjectQuery) Order ¶ added in v1.12.0
func (rpq *ReportProjectQuery) Order(o ...reportproject.OrderOption) *ReportProjectQuery
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
func (rpq *ReportProjectQuery) Where(ps ...predicate.ReportProject) *ReportProjectQuery
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
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportProjectSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportProjectSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportProjectSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportProjectSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportProjectSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportProjectSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportProjectSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rpu *ReportProjectUpdate) SetName(s string) *ReportProjectUpdate
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
func (rpu *ReportProjectUpdate) SetPackage(r *ReportPackage) *ReportProjectUpdate
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
func (rpu *ReportProjectUpdate) SetScorecard(r *ReportScorecard) *ReportProjectUpdate
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
func (rpu *ReportProjectUpdate) SetURL(s string) *ReportProjectUpdate
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
func (rpu *ReportProjectUpdate) Where(ps ...predicate.ReportProject) *ReportProjectUpdate
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
func (rpuo *ReportProjectUpdateOne) AddForks(i int32) *ReportProjectUpdateOne
AddForks adds i to the "forks" field.
func (*ReportProjectUpdateOne) AddStars ¶ added in v1.12.0
func (rpuo *ReportProjectUpdateOne) AddStars(i int32) *ReportProjectUpdateOne
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
func (rpuo *ReportProjectUpdateOne) ClearURL() *ReportProjectUpdateOne
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
func (rpuo *ReportProjectUpdateOne) Mutation() *ReportProjectMutation
Mutation returns the ReportProjectMutation object of the builder.
func (*ReportProjectUpdateOne) Save ¶ added in v1.12.0
func (rpuo *ReportProjectUpdateOne) Save(ctx context.Context) (*ReportProject, error)
Save executes the query and returns the updated ReportProject entity.
func (*ReportProjectUpdateOne) SaveX ¶ added in v1.12.0
func (rpuo *ReportProjectUpdateOne) SaveX(ctx context.Context) *ReportProject
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
func (rpuo *ReportProjectUpdateOne) SetForks(i int32) *ReportProjectUpdateOne
SetForks sets the "forks" field.
func (*ReportProjectUpdateOne) SetName ¶ added in v1.12.0
func (rpuo *ReportProjectUpdateOne) SetName(s string) *ReportProjectUpdateOne
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
func (rpuo *ReportProjectUpdateOne) SetPackage(r *ReportPackage) *ReportProjectUpdateOne
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
func (rpuo *ReportProjectUpdateOne) SetScorecard(r *ReportScorecard) *ReportProjectUpdateOne
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
func (rpuo *ReportProjectUpdateOne) SetStars(i int32) *ReportProjectUpdateOne
SetStars sets the "stars" field.
func (*ReportProjectUpdateOne) SetURL ¶ added in v1.12.0
func (rpuo *ReportProjectUpdateOne) SetURL(s string) *ReportProjectUpdateOne
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
func (rpuo *ReportProjectUpdateOne) Where(ps ...predicate.ReportProject) *ReportProjectUpdateOne
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
func (rs *ReportScorecard) Update() *ReportScorecardUpdateOne
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.
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
func (rsc *ReportScorecardCheck) Unwrap() *ReportScorecardCheck
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
func (rsc *ReportScorecardCheck) Update() *ReportScorecardCheckUpdateOne
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.
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
func (c *ReportScorecardCheckClient) Create() *ReportScorecardCheckCreate
Create returns a builder for creating a ReportScorecardCheck entity.
func (*ReportScorecardCheckClient) CreateBulk ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) CreateBulk(builders ...*ReportScorecardCheckCreate) *ReportScorecardCheckCreateBulk
CreateBulk returns a builder for creating a bulk of ReportScorecardCheck entities.
func (*ReportScorecardCheckClient) Delete ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) Delete() *ReportScorecardCheckDelete
Delete returns a delete builder for ReportScorecardCheck.
func (*ReportScorecardCheckClient) DeleteOne ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) DeleteOne(rsc *ReportScorecardCheck) *ReportScorecardCheckDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportScorecardCheckClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) DeleteOneID(id int) *ReportScorecardCheckDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportScorecardCheckClient) Get ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) Get(ctx context.Context, id int) (*ReportScorecardCheck, error)
Get returns a ReportScorecardCheck entity by its id.
func (*ReportScorecardCheckClient) GetX ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) GetX(ctx context.Context, id int) *ReportScorecardCheck
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
func (c *ReportScorecardCheckClient) MapCreateBulk(slice any, setFunc func(*ReportScorecardCheckCreate, int)) *ReportScorecardCheckCreateBulk
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
func (c *ReportScorecardCheckClient) Query() *ReportScorecardCheckQuery
Query returns a query builder for ReportScorecardCheck.
func (*ReportScorecardCheckClient) QueryScorecard ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) QueryScorecard(rsc *ReportScorecardCheck) *ReportScorecardQuery
QueryScorecard queries the scorecard edge of a ReportScorecardCheck.
func (*ReportScorecardCheckClient) Update ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) Update() *ReportScorecardCheckUpdate
Update returns an update builder for ReportScorecardCheck.
func (*ReportScorecardCheckClient) UpdateOne ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) UpdateOne(rsc *ReportScorecardCheck) *ReportScorecardCheckUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportScorecardCheckClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportScorecardCheckClient) UpdateOneID(id int) *ReportScorecardCheckUpdateOne
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
func (rscc *ReportScorecardCheckCreate) Exec(ctx context.Context) error
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
func (rscc *ReportScorecardCheckCreate) Mutation() *ReportScorecardCheckMutation
Mutation returns the ReportScorecardCheckMutation object of the builder.
func (*ReportScorecardCheckCreate) Save ¶ added in v1.12.0
func (rscc *ReportScorecardCheckCreate) Save(ctx context.Context) (*ReportScorecardCheck, error)
Save creates the ReportScorecardCheck in the database.
func (*ReportScorecardCheckCreate) SaveX ¶ added in v1.12.0
func (rscc *ReportScorecardCheckCreate) SaveX(ctx context.Context) *ReportScorecardCheck
SaveX calls Save and panics if Save returns an error.
func (*ReportScorecardCheckCreate) SetCreatedAt ¶ added in v1.12.0
func (rscc *ReportScorecardCheckCreate) SetCreatedAt(t time.Time) *ReportScorecardCheckCreate
SetCreatedAt sets the "created_at" field.
func (*ReportScorecardCheckCreate) SetName ¶ added in v1.12.0
func (rscc *ReportScorecardCheckCreate) SetName(s string) *ReportScorecardCheckCreate
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
func (rscc *ReportScorecardCheckCreate) SetReason(s string) *ReportScorecardCheckCreate
SetReason sets the "reason" field.
func (*ReportScorecardCheckCreate) SetScore ¶ added in v1.12.0
func (rscc *ReportScorecardCheckCreate) SetScore(f float32) *ReportScorecardCheckCreate
SetScore sets the "score" field.
func (*ReportScorecardCheckCreate) SetScorecard ¶ added in v1.12.0
func (rscc *ReportScorecardCheckCreate) SetScorecard(r *ReportScorecard) *ReportScorecardCheckCreate
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
func (rscc *ReportScorecardCheckCreate) SetUpdatedAt(t time.Time) *ReportScorecardCheckCreate
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
func (rsccb *ReportScorecardCheckCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReportScorecardCheckCreateBulk) ExecX ¶ added in v1.12.0
func (rsccb *ReportScorecardCheckCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportScorecardCheckCreateBulk) Save ¶ added in v1.12.0
func (rsccb *ReportScorecardCheckCreateBulk) Save(ctx context.Context) ([]*ReportScorecardCheck, error)
Save creates the ReportScorecardCheck entities in the database.
func (*ReportScorecardCheckCreateBulk) SaveX ¶ added in v1.12.0
func (rsccb *ReportScorecardCheckCreateBulk) SaveX(ctx context.Context) []*ReportScorecardCheck
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
func (rscd *ReportScorecardCheckDelete) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckDelete
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
func (rscdo *ReportScorecardCheckDeleteOne) Exec(ctx context.Context) error
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
func (rscdo *ReportScorecardCheckDeleteOne) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckDeleteOne
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
func (rscgb *ReportScorecardCheckGroupBy) Aggregate(fns ...AggregateFunc) *ReportScorecardCheckGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportScorecardCheckGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportScorecardCheckGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportScorecardCheckGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportScorecardCheckGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportScorecardCheckGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportScorecardCheckGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportScorecardCheckGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (m ReportScorecardCheckMutation) 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 (*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
func (m *ReportScorecardCheckMutation) 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 (*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
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
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
func (m *ReportScorecardCheckMutation) Op() Op
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
func (m ReportScorecardCheckMutation) Tx() (*Tx, error)
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
func (m *ReportScorecardCheckMutation) Type() string
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
func (m *ReportScorecardCheckMutation) Where(ps ...predicate.ReportScorecardCheck)
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
func (rscq *ReportScorecardCheckQuery) Aggregate(fns ...AggregateFunc) *ReportScorecardCheckSelect
Aggregate returns a ReportScorecardCheckSelect configured with the given aggregations.
func (*ReportScorecardCheckQuery) All ¶ added in v1.12.0
func (rscq *ReportScorecardCheckQuery) All(ctx context.Context) ([]*ReportScorecardCheck, error)
All executes the query and returns a list of ReportScorecardChecks.
func (*ReportScorecardCheckQuery) AllX ¶ added in v1.12.0
func (rscq *ReportScorecardCheckQuery) AllX(ctx context.Context) []*ReportScorecardCheck
AllX is like All, but panics if an error occurs.
func (*ReportScorecardCheckQuery) Clone ¶ added in v1.12.0
func (rscq *ReportScorecardCheckQuery) Clone() *ReportScorecardCheckQuery
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
func (rscq *ReportScorecardCheckQuery) First(ctx context.Context) (*ReportScorecardCheck, error)
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
func (rscq *ReportScorecardCheckQuery) FirstX(ctx context.Context) *ReportScorecardCheck
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
func (rscq *ReportScorecardCheckQuery) Limit(limit int) *ReportScorecardCheckQuery
Limit the number of records to be returned by this query.
func (*ReportScorecardCheckQuery) Offset ¶ added in v1.12.0
func (rscq *ReportScorecardCheckQuery) Offset(offset int) *ReportScorecardCheckQuery
Offset to start from.
func (*ReportScorecardCheckQuery) Only ¶ added in v1.12.0
func (rscq *ReportScorecardCheckQuery) Only(ctx context.Context) (*ReportScorecardCheck, error)
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
func (rscq *ReportScorecardCheckQuery) OnlyX(ctx context.Context) *ReportScorecardCheck
OnlyX is like Only, but panics if an error occurs.
func (*ReportScorecardCheckQuery) Order ¶ added in v1.12.0
func (rscq *ReportScorecardCheckQuery) Order(o ...reportscorecardcheck.OrderOption) *ReportScorecardCheckQuery
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
func (rscq *ReportScorecardCheckQuery) Select(fields ...string) *ReportScorecardCheckSelect
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
func (rscq *ReportScorecardCheckQuery) Unique(unique bool) *ReportScorecardCheckQuery
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
func (rscq *ReportScorecardCheckQuery) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckQuery
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
func (rscs *ReportScorecardCheckSelect) Aggregate(fns ...AggregateFunc) *ReportScorecardCheckSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportScorecardCheckSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportScorecardCheckSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportScorecardCheckSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportScorecardCheckSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportScorecardCheckSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportScorecardCheckSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportScorecardCheckSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportScorecardCheckSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rscu *ReportScorecardCheckUpdate) AddScore(f float32) *ReportScorecardCheckUpdate
AddScore adds f to the "score" field.
func (*ReportScorecardCheckUpdate) ClearCreatedAt ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) ClearCreatedAt() *ReportScorecardCheckUpdate
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportScorecardCheckUpdate) ClearReason ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) ClearReason() *ReportScorecardCheckUpdate
ClearReason clears the value of the "reason" field.
func (*ReportScorecardCheckUpdate) ClearScorecard ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) ClearScorecard() *ReportScorecardCheckUpdate
ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.
func (*ReportScorecardCheckUpdate) ClearUpdatedAt ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) ClearUpdatedAt() *ReportScorecardCheckUpdate
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportScorecardCheckUpdate) Exec ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) Exec(ctx context.Context) error
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
func (rscu *ReportScorecardCheckUpdate) Mutation() *ReportScorecardCheckMutation
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
func (rscu *ReportScorecardCheckUpdate) SetCreatedAt(t time.Time) *ReportScorecardCheckUpdate
SetCreatedAt sets the "created_at" field.
func (*ReportScorecardCheckUpdate) SetName ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) SetName(s string) *ReportScorecardCheckUpdate
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
func (rscu *ReportScorecardCheckUpdate) SetNillableName(s *string) *ReportScorecardCheckUpdate
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
func (rscu *ReportScorecardCheckUpdate) SetNillableScore(f *float32) *ReportScorecardCheckUpdate
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
func (rscu *ReportScorecardCheckUpdate) SetReason(s string) *ReportScorecardCheckUpdate
SetReason sets the "reason" field.
func (*ReportScorecardCheckUpdate) SetScore ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) SetScore(f float32) *ReportScorecardCheckUpdate
SetScore sets the "score" field.
func (*ReportScorecardCheckUpdate) SetScorecard ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) SetScorecard(r *ReportScorecard) *ReportScorecardCheckUpdate
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
func (rscu *ReportScorecardCheckUpdate) SetUpdatedAt(t time.Time) *ReportScorecardCheckUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ReportScorecardCheckUpdate) Where ¶ added in v1.12.0
func (rscu *ReportScorecardCheckUpdate) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckUpdate
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
func (rscuo *ReportScorecardCheckUpdateOne) AddScore(f float32) *ReportScorecardCheckUpdateOne
AddScore adds f to the "score" field.
func (*ReportScorecardCheckUpdateOne) ClearCreatedAt ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) ClearCreatedAt() *ReportScorecardCheckUpdateOne
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportScorecardCheckUpdateOne) ClearReason ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) ClearReason() *ReportScorecardCheckUpdateOne
ClearReason clears the value of the "reason" field.
func (*ReportScorecardCheckUpdateOne) ClearScorecard ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) ClearScorecard() *ReportScorecardCheckUpdateOne
ClearScorecard clears the "scorecard" edge to the ReportScorecard entity.
func (*ReportScorecardCheckUpdateOne) ClearUpdatedAt ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) ClearUpdatedAt() *ReportScorecardCheckUpdateOne
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportScorecardCheckUpdateOne) Exec ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) Exec(ctx context.Context) error
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
func (rscuo *ReportScorecardCheckUpdateOne) Mutation() *ReportScorecardCheckMutation
Mutation returns the ReportScorecardCheckMutation object of the builder.
func (*ReportScorecardCheckUpdateOne) Save ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) Save(ctx context.Context) (*ReportScorecardCheck, error)
Save executes the query and returns the updated ReportScorecardCheck entity.
func (*ReportScorecardCheckUpdateOne) SaveX ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SaveX(ctx context.Context) *ReportScorecardCheck
SaveX is like Save, but panics if an error occurs.
func (*ReportScorecardCheckUpdateOne) Select ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) Select(field string, fields ...string) *ReportScorecardCheckUpdateOne
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
func (rscuo *ReportScorecardCheckUpdateOne) SetCreatedAt(t time.Time) *ReportScorecardCheckUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ReportScorecardCheckUpdateOne) SetName ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetName(s string) *ReportScorecardCheckUpdateOne
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
func (rscuo *ReportScorecardCheckUpdateOne) SetNillableName(s *string) *ReportScorecardCheckUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ReportScorecardCheckUpdateOne) SetNillableReason ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetNillableReason(s *string) *ReportScorecardCheckUpdateOne
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ReportScorecardCheckUpdateOne) SetNillableScore ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetNillableScore(f *float32) *ReportScorecardCheckUpdateOne
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
func (rscuo *ReportScorecardCheckUpdateOne) SetReason(s string) *ReportScorecardCheckUpdateOne
SetReason sets the "reason" field.
func (*ReportScorecardCheckUpdateOne) SetScore ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetScore(f float32) *ReportScorecardCheckUpdateOne
SetScore sets the "score" field.
func (*ReportScorecardCheckUpdateOne) SetScorecard ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetScorecard(r *ReportScorecard) *ReportScorecardCheckUpdateOne
SetScorecard sets the "scorecard" edge to the ReportScorecard entity.
func (*ReportScorecardCheckUpdateOne) SetScorecardID ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetScorecardID(id int) *ReportScorecardCheckUpdateOne
SetScorecardID sets the "scorecard" edge to the ReportScorecard entity by ID.
func (*ReportScorecardCheckUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) SetUpdatedAt(t time.Time) *ReportScorecardCheckUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportScorecardCheckUpdateOne) Where ¶ added in v1.12.0
func (rscuo *ReportScorecardCheckUpdateOne) Where(ps ...predicate.ReportScorecardCheck) *ReportScorecardCheckUpdateOne
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
func (c *ReportScorecardClient) Create() *ReportScorecardCreate
Create returns a builder for creating a ReportScorecard entity.
func (*ReportScorecardClient) CreateBulk ¶ added in v1.12.0
func (c *ReportScorecardClient) CreateBulk(builders ...*ReportScorecardCreate) *ReportScorecardCreateBulk
CreateBulk returns a builder for creating a bulk of ReportScorecard entities.
func (*ReportScorecardClient) Delete ¶ added in v1.12.0
func (c *ReportScorecardClient) Delete() *ReportScorecardDelete
Delete returns a delete builder for ReportScorecard.
func (*ReportScorecardClient) DeleteOne ¶ added in v1.12.0
func (c *ReportScorecardClient) DeleteOne(rs *ReportScorecard) *ReportScorecardDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportScorecardClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportScorecardClient) DeleteOneID(id int) *ReportScorecardDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportScorecardClient) Get ¶ added in v1.12.0
func (c *ReportScorecardClient) Get(ctx context.Context, id int) (*ReportScorecard, error)
Get returns a ReportScorecard entity by its id.
func (*ReportScorecardClient) GetX ¶ added in v1.12.0
func (c *ReportScorecardClient) GetX(ctx context.Context, id int) *ReportScorecard
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
func (c *ReportScorecardClient) Query() *ReportScorecardQuery
Query returns a query builder for ReportScorecard.
func (*ReportScorecardClient) QueryChecks ¶ added in v1.12.0
func (c *ReportScorecardClient) QueryChecks(rs *ReportScorecard) *ReportScorecardCheckQuery
QueryChecks queries the checks edge of a ReportScorecard.
func (*ReportScorecardClient) QueryProject ¶ added in v1.12.0
func (c *ReportScorecardClient) QueryProject(rs *ReportScorecard) *ReportProjectQuery
QueryProject queries the project edge of a ReportScorecard.
func (*ReportScorecardClient) Update ¶ added in v1.12.0
func (c *ReportScorecardClient) Update() *ReportScorecardUpdate
Update returns an update builder for ReportScorecard.
func (*ReportScorecardClient) UpdateOne ¶ added in v1.12.0
func (c *ReportScorecardClient) UpdateOne(rs *ReportScorecard) *ReportScorecardUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportScorecardClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportScorecardClient) UpdateOneID(id int) *ReportScorecardUpdateOne
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
func (rsc *ReportScorecardCreate) AddChecks(r ...*ReportScorecardCheck) *ReportScorecardCreate
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
func (rsc *ReportScorecardCreate) Mutation() *ReportScorecardMutation
Mutation returns the ReportScorecardMutation object of the builder.
func (*ReportScorecardCreate) Save ¶ added in v1.12.0
func (rsc *ReportScorecardCreate) Save(ctx context.Context) (*ReportScorecard, error)
Save creates the ReportScorecard in the database.
func (*ReportScorecardCreate) SaveX ¶ added in v1.12.0
func (rsc *ReportScorecardCreate) SaveX(ctx context.Context) *ReportScorecard
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
func (rsc *ReportScorecardCreate) SetDate(s string) *ReportScorecardCreate
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
func (rsc *ReportScorecardCreate) SetProject(r *ReportProject) *ReportScorecardCreate
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
func (rsc *ReportScorecardCreate) SetScore(f float32) *ReportScorecardCreate
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
func (rscb *ReportScorecardCreateBulk) Exec(ctx context.Context) error
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
func (rscb *ReportScorecardCreateBulk) Save(ctx context.Context) ([]*ReportScorecard, error)
Save creates the ReportScorecard entities in the database.
func (*ReportScorecardCreateBulk) SaveX ¶ added in v1.12.0
func (rscb *ReportScorecardCreateBulk) SaveX(ctx context.Context) []*ReportScorecard
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
func (rsd *ReportScorecardDelete) Where(ps ...predicate.ReportScorecard) *ReportScorecardDelete
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
func (rsdo *ReportScorecardDeleteOne) Exec(ctx context.Context) error
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
func (rsdo *ReportScorecardDeleteOne) Where(ps ...predicate.ReportScorecard) *ReportScorecardDeleteOne
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
func (rsgb *ReportScorecardGroupBy) Aggregate(fns ...AggregateFunc) *ReportScorecardGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportScorecardGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportScorecardGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportScorecardGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportScorecardGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportScorecardGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportScorecardGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportScorecardGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportScorecardGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
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
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
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
func (m *ReportScorecardMutation) Where(ps ...predicate.ReportScorecard)
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
func (rsq *ReportScorecardQuery) Aggregate(fns ...AggregateFunc) *ReportScorecardSelect
Aggregate returns a ReportScorecardSelect configured with the given aggregations.
func (*ReportScorecardQuery) All ¶ added in v1.12.0
func (rsq *ReportScorecardQuery) All(ctx context.Context) ([]*ReportScorecard, error)
All executes the query and returns a list of ReportScorecards.
func (*ReportScorecardQuery) AllX ¶ added in v1.12.0
func (rsq *ReportScorecardQuery) AllX(ctx context.Context) []*ReportScorecard
AllX is like All, but panics if an error occurs.
func (*ReportScorecardQuery) Clone ¶ added in v1.12.0
func (rsq *ReportScorecardQuery) Clone() *ReportScorecardQuery
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
func (rsq *ReportScorecardQuery) First(ctx context.Context) (*ReportScorecard, error)
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
func (rsq *ReportScorecardQuery) FirstX(ctx context.Context) *ReportScorecard
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
func (rsq *ReportScorecardQuery) Only(ctx context.Context) (*ReportScorecard, error)
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
func (rsq *ReportScorecardQuery) OnlyX(ctx context.Context) *ReportScorecard
OnlyX is like Only, but panics if an error occurs.
func (*ReportScorecardQuery) Order ¶ added in v1.12.0
func (rsq *ReportScorecardQuery) Order(o ...reportscorecard.OrderOption) *ReportScorecardQuery
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
func (rsq *ReportScorecardQuery) Where(ps ...predicate.ReportScorecard) *ReportScorecardQuery
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
func (rss *ReportScorecardSelect) Aggregate(fns ...AggregateFunc) *ReportScorecardSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportScorecardSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportScorecardSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportScorecardSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportScorecardSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportScorecardSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportScorecardSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportScorecardSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportScorecardSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rsu *ReportScorecardUpdate) AddChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdate
AddChecks adds the "checks" edges to the ReportScorecardCheck entity.
func (*ReportScorecardUpdate) AddScore ¶ added in v1.12.0
func (rsu *ReportScorecardUpdate) AddScore(f float32) *ReportScorecardUpdate
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
func (rsu *ReportScorecardUpdate) Mutation() *ReportScorecardMutation
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
func (rsu *ReportScorecardUpdate) RemoveChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdate
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
func (rsu *ReportScorecardUpdate) SetDate(s string) *ReportScorecardUpdate
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
func (rsu *ReportScorecardUpdate) SetProject(r *ReportProject) *ReportScorecardUpdate
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
func (rsu *ReportScorecardUpdate) SetScore(f float32) *ReportScorecardUpdate
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
func (rsu *ReportScorecardUpdate) Where(ps ...predicate.ReportScorecard) *ReportScorecardUpdate
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
func (rsuo *ReportScorecardUpdateOne) AddChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdateOne
AddChecks adds the "checks" edges to the ReportScorecardCheck entity.
func (*ReportScorecardUpdateOne) AddScore ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) AddScore(f float32) *ReportScorecardUpdateOne
AddScore adds f to the "score" field.
func (*ReportScorecardUpdateOne) ClearChecks ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) ClearChecks() *ReportScorecardUpdateOne
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
func (rsuo *ReportScorecardUpdateOne) ClearDate() *ReportScorecardUpdateOne
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
func (rsuo *ReportScorecardUpdateOne) Exec(ctx context.Context) error
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
func (rsuo *ReportScorecardUpdateOne) Mutation() *ReportScorecardMutation
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
func (rsuo *ReportScorecardUpdateOne) RemoveChecks(r ...*ReportScorecardCheck) *ReportScorecardUpdateOne
RemoveChecks removes "checks" edges to ReportScorecardCheck entities.
func (*ReportScorecardUpdateOne) Save ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) Save(ctx context.Context) (*ReportScorecard, error)
Save executes the query and returns the updated ReportScorecard entity.
func (*ReportScorecardUpdateOne) SaveX ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) SaveX(ctx context.Context) *ReportScorecard
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
func (rsuo *ReportScorecardUpdateOne) SetCreatedAt(t time.Time) *ReportScorecardUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ReportScorecardUpdateOne) SetDate ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) SetDate(s string) *ReportScorecardUpdateOne
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
func (rsuo *ReportScorecardUpdateOne) SetProject(r *ReportProject) *ReportScorecardUpdateOne
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
func (rsuo *ReportScorecardUpdateOne) SetRepoCommit(s string) *ReportScorecardUpdateOne
SetRepoCommit sets the "repo_commit" field.
func (*ReportScorecardUpdateOne) SetRepoName ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) SetRepoName(s string) *ReportScorecardUpdateOne
SetRepoName sets the "repo_name" field.
func (*ReportScorecardUpdateOne) SetScore ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) SetScore(f float32) *ReportScorecardUpdateOne
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
func (rsuo *ReportScorecardUpdateOne) SetUpdatedAt(t time.Time) *ReportScorecardUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportScorecardUpdateOne) Where ¶ added in v1.12.0
func (rsuo *ReportScorecardUpdateOne) Where(ps ...predicate.ReportScorecard) *ReportScorecardUpdateOne
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
func (rsp *ReportSlsaProvenance) Unwrap() *ReportSlsaProvenance
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
func (rsp *ReportSlsaProvenance) Update() *ReportSlsaProvenanceUpdateOne
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.
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
func (c *ReportSlsaProvenanceClient) Create() *ReportSlsaProvenanceCreate
Create returns a builder for creating a ReportSlsaProvenance entity.
func (*ReportSlsaProvenanceClient) CreateBulk ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) CreateBulk(builders ...*ReportSlsaProvenanceCreate) *ReportSlsaProvenanceCreateBulk
CreateBulk returns a builder for creating a bulk of ReportSlsaProvenance entities.
func (*ReportSlsaProvenanceClient) Delete ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) Delete() *ReportSlsaProvenanceDelete
Delete returns a delete builder for ReportSlsaProvenance.
func (*ReportSlsaProvenanceClient) DeleteOne ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) DeleteOne(rsp *ReportSlsaProvenance) *ReportSlsaProvenanceDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportSlsaProvenanceClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) DeleteOneID(id int) *ReportSlsaProvenanceDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportSlsaProvenanceClient) Get ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) Get(ctx context.Context, id int) (*ReportSlsaProvenance, error)
Get returns a ReportSlsaProvenance entity by its id.
func (*ReportSlsaProvenanceClient) GetX ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) GetX(ctx context.Context, id int) *ReportSlsaProvenance
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
func (c *ReportSlsaProvenanceClient) MapCreateBulk(slice any, setFunc func(*ReportSlsaProvenanceCreate, int)) *ReportSlsaProvenanceCreateBulk
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
func (c *ReportSlsaProvenanceClient) Query() *ReportSlsaProvenanceQuery
Query returns a query builder for ReportSlsaProvenance.
func (*ReportSlsaProvenanceClient) QueryPackage ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) QueryPackage(rsp *ReportSlsaProvenance) *ReportPackageQuery
QueryPackage queries the package edge of a ReportSlsaProvenance.
func (*ReportSlsaProvenanceClient) Update ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) Update() *ReportSlsaProvenanceUpdate
Update returns an update builder for ReportSlsaProvenance.
func (*ReportSlsaProvenanceClient) UpdateOne ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) UpdateOne(rsp *ReportSlsaProvenance) *ReportSlsaProvenanceUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportSlsaProvenanceClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportSlsaProvenanceClient) UpdateOneID(id int) *ReportSlsaProvenanceUpdateOne
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
func (rspc *ReportSlsaProvenanceCreate) Exec(ctx context.Context) error
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
func (rspc *ReportSlsaProvenanceCreate) Mutation() *ReportSlsaProvenanceMutation
Mutation returns the ReportSlsaProvenanceMutation object of the builder.
func (*ReportSlsaProvenanceCreate) Save ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) Save(ctx context.Context) (*ReportSlsaProvenance, error)
Save creates the ReportSlsaProvenance in the database.
func (*ReportSlsaProvenanceCreate) SaveX ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) SaveX(ctx context.Context) *ReportSlsaProvenance
SaveX calls Save and panics if Save returns an error.
func (*ReportSlsaProvenanceCreate) SetCommitSha ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) SetCommitSha(s string) *ReportSlsaProvenanceCreate
SetCommitSha sets the "commit_sha" field.
func (*ReportSlsaProvenanceCreate) SetCreatedAt ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) SetCreatedAt(t time.Time) *ReportSlsaProvenanceCreate
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
func (rspc *ReportSlsaProvenanceCreate) SetPackage(r *ReportPackage) *ReportSlsaProvenanceCreate
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportSlsaProvenanceCreate) SetPackageID ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) SetPackageID(id int) *ReportSlsaProvenanceCreate
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
func (rspc *ReportSlsaProvenanceCreate) SetURL(s string) *ReportSlsaProvenanceCreate
SetURL sets the "url" field.
func (*ReportSlsaProvenanceCreate) SetUpdatedAt ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) SetUpdatedAt(t time.Time) *ReportSlsaProvenanceCreate
SetUpdatedAt sets the "updated_at" field.
func (*ReportSlsaProvenanceCreate) SetVerified ¶ added in v1.12.0
func (rspc *ReportSlsaProvenanceCreate) SetVerified(b bool) *ReportSlsaProvenanceCreate
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
func (rspcb *ReportSlsaProvenanceCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReportSlsaProvenanceCreateBulk) ExecX ¶ added in v1.12.0
func (rspcb *ReportSlsaProvenanceCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportSlsaProvenanceCreateBulk) Save ¶ added in v1.12.0
func (rspcb *ReportSlsaProvenanceCreateBulk) Save(ctx context.Context) ([]*ReportSlsaProvenance, error)
Save creates the ReportSlsaProvenance entities in the database.
func (*ReportSlsaProvenanceCreateBulk) SaveX ¶ added in v1.12.0
func (rspcb *ReportSlsaProvenanceCreateBulk) SaveX(ctx context.Context) []*ReportSlsaProvenance
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
func (rspd *ReportSlsaProvenanceDelete) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceDelete
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
func (rspdo *ReportSlsaProvenanceDeleteOne) Exec(ctx context.Context) error
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
func (rspdo *ReportSlsaProvenanceDeleteOne) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceDeleteOne
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
func (rspgb *ReportSlsaProvenanceGroupBy) Aggregate(fns ...AggregateFunc) *ReportSlsaProvenanceGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportSlsaProvenanceGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportSlsaProvenanceGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportSlsaProvenanceGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportSlsaProvenanceGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportSlsaProvenanceGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportSlsaProvenanceGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportSlsaProvenanceGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (m ReportSlsaProvenanceMutation) 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 (*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
func (m *ReportSlsaProvenanceMutation) 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 (*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
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
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
func (m *ReportSlsaProvenanceMutation) Op() Op
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
func (m ReportSlsaProvenanceMutation) Tx() (*Tx, error)
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
func (m *ReportSlsaProvenanceMutation) Type() string
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
func (m *ReportSlsaProvenanceMutation) Where(ps ...predicate.ReportSlsaProvenance)
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
func (rspq *ReportSlsaProvenanceQuery) Aggregate(fns ...AggregateFunc) *ReportSlsaProvenanceSelect
Aggregate returns a ReportSlsaProvenanceSelect configured with the given aggregations.
func (*ReportSlsaProvenanceQuery) All ¶ added in v1.12.0
func (rspq *ReportSlsaProvenanceQuery) All(ctx context.Context) ([]*ReportSlsaProvenance, error)
All executes the query and returns a list of ReportSlsaProvenances.
func (*ReportSlsaProvenanceQuery) AllX ¶ added in v1.12.0
func (rspq *ReportSlsaProvenanceQuery) AllX(ctx context.Context) []*ReportSlsaProvenance
AllX is like All, but panics if an error occurs.
func (*ReportSlsaProvenanceQuery) Clone ¶ added in v1.12.0
func (rspq *ReportSlsaProvenanceQuery) Clone() *ReportSlsaProvenanceQuery
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
func (rspq *ReportSlsaProvenanceQuery) First(ctx context.Context) (*ReportSlsaProvenance, error)
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
func (rspq *ReportSlsaProvenanceQuery) FirstX(ctx context.Context) *ReportSlsaProvenance
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
func (rspq *ReportSlsaProvenanceQuery) Limit(limit int) *ReportSlsaProvenanceQuery
Limit the number of records to be returned by this query.
func (*ReportSlsaProvenanceQuery) Offset ¶ added in v1.12.0
func (rspq *ReportSlsaProvenanceQuery) Offset(offset int) *ReportSlsaProvenanceQuery
Offset to start from.
func (*ReportSlsaProvenanceQuery) Only ¶ added in v1.12.0
func (rspq *ReportSlsaProvenanceQuery) Only(ctx context.Context) (*ReportSlsaProvenance, error)
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
func (rspq *ReportSlsaProvenanceQuery) OnlyX(ctx context.Context) *ReportSlsaProvenance
OnlyX is like Only, but panics if an error occurs.
func (*ReportSlsaProvenanceQuery) Order ¶ added in v1.12.0
func (rspq *ReportSlsaProvenanceQuery) Order(o ...reportslsaprovenance.OrderOption) *ReportSlsaProvenanceQuery
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
func (rspq *ReportSlsaProvenanceQuery) Select(fields ...string) *ReportSlsaProvenanceSelect
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
func (rspq *ReportSlsaProvenanceQuery) Unique(unique bool) *ReportSlsaProvenanceQuery
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
func (rspq *ReportSlsaProvenanceQuery) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceQuery
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
func (rsps *ReportSlsaProvenanceSelect) Aggregate(fns ...AggregateFunc) *ReportSlsaProvenanceSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportSlsaProvenanceSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportSlsaProvenanceSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportSlsaProvenanceSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportSlsaProvenanceSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportSlsaProvenanceSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportSlsaProvenanceSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportSlsaProvenanceSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportSlsaProvenanceSelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rspu *ReportSlsaProvenanceUpdate) ClearCreatedAt() *ReportSlsaProvenanceUpdate
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportSlsaProvenanceUpdate) ClearPackage ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) ClearPackage() *ReportSlsaProvenanceUpdate
ClearPackage clears the "package" edge to the ReportPackage entity.
func (*ReportSlsaProvenanceUpdate) ClearUpdatedAt ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) ClearUpdatedAt() *ReportSlsaProvenanceUpdate
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportSlsaProvenanceUpdate) Exec ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) Exec(ctx context.Context) error
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
func (rspu *ReportSlsaProvenanceUpdate) Mutation() *ReportSlsaProvenanceMutation
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
func (rspu *ReportSlsaProvenanceUpdate) SetCommitSha(s string) *ReportSlsaProvenanceUpdate
SetCommitSha sets the "commit_sha" field.
func (*ReportSlsaProvenanceUpdate) SetCreatedAt ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) SetCreatedAt(t time.Time) *ReportSlsaProvenanceUpdate
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
func (rspu *ReportSlsaProvenanceUpdate) SetNillableURL(s *string) *ReportSlsaProvenanceUpdate
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
func (rspu *ReportSlsaProvenanceUpdate) SetPackage(r *ReportPackage) *ReportSlsaProvenanceUpdate
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportSlsaProvenanceUpdate) SetPackageID ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) SetPackageID(id int) *ReportSlsaProvenanceUpdate
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
func (rspu *ReportSlsaProvenanceUpdate) SetURL(s string) *ReportSlsaProvenanceUpdate
SetURL sets the "url" field.
func (*ReportSlsaProvenanceUpdate) SetUpdatedAt ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) SetUpdatedAt(t time.Time) *ReportSlsaProvenanceUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ReportSlsaProvenanceUpdate) SetVerified ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) SetVerified(b bool) *ReportSlsaProvenanceUpdate
SetVerified sets the "verified" field.
func (*ReportSlsaProvenanceUpdate) Where ¶ added in v1.12.0
func (rspu *ReportSlsaProvenanceUpdate) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceUpdate
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
func (rspuo *ReportSlsaProvenanceUpdateOne) ClearCreatedAt() *ReportSlsaProvenanceUpdateOne
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportSlsaProvenanceUpdateOne) ClearPackage ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) ClearPackage() *ReportSlsaProvenanceUpdateOne
ClearPackage clears the "package" edge to the ReportPackage entity.
func (*ReportSlsaProvenanceUpdateOne) ClearUpdatedAt ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) ClearUpdatedAt() *ReportSlsaProvenanceUpdateOne
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportSlsaProvenanceUpdateOne) Exec ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) Exec(ctx context.Context) error
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
func (rspuo *ReportSlsaProvenanceUpdateOne) Mutation() *ReportSlsaProvenanceMutation
Mutation returns the ReportSlsaProvenanceMutation object of the builder.
func (*ReportSlsaProvenanceUpdateOne) Save ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) Save(ctx context.Context) (*ReportSlsaProvenance, error)
Save executes the query and returns the updated ReportSlsaProvenance entity.
func (*ReportSlsaProvenanceUpdateOne) SaveX ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SaveX(ctx context.Context) *ReportSlsaProvenance
SaveX is like Save, but panics if an error occurs.
func (*ReportSlsaProvenanceUpdateOne) Select ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) Select(field string, fields ...string) *ReportSlsaProvenanceUpdateOne
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
func (rspuo *ReportSlsaProvenanceUpdateOne) SetCommitSha(s string) *ReportSlsaProvenanceUpdateOne
SetCommitSha sets the "commit_sha" field.
func (*ReportSlsaProvenanceUpdateOne) SetCreatedAt ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SetCreatedAt(t time.Time) *ReportSlsaProvenanceUpdateOne
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
func (rspuo *ReportSlsaProvenanceUpdateOne) SetNillableURL(s *string) *ReportSlsaProvenanceUpdateOne
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
func (rspuo *ReportSlsaProvenanceUpdateOne) SetPackage(r *ReportPackage) *ReportSlsaProvenanceUpdateOne
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportSlsaProvenanceUpdateOne) SetPackageID ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SetPackageID(id int) *ReportSlsaProvenanceUpdateOne
SetPackageID sets the "package" edge to the ReportPackage entity by ID.
func (*ReportSlsaProvenanceUpdateOne) SetSourceRepository ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SetSourceRepository(s string) *ReportSlsaProvenanceUpdateOne
SetSourceRepository sets the "source_repository" field.
func (*ReportSlsaProvenanceUpdateOne) SetURL ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SetURL(s string) *ReportSlsaProvenanceUpdateOne
SetURL sets the "url" field.
func (*ReportSlsaProvenanceUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SetUpdatedAt(t time.Time) *ReportSlsaProvenanceUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportSlsaProvenanceUpdateOne) SetVerified ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) SetVerified(b bool) *ReportSlsaProvenanceUpdateOne
SetVerified sets the "verified" field.
func (*ReportSlsaProvenanceUpdateOne) Where ¶ added in v1.12.0
func (rspuo *ReportSlsaProvenanceUpdateOne) Where(ps ...predicate.ReportSlsaProvenance) *ReportSlsaProvenanceUpdateOne
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
func (rv *ReportVulnerability) Unwrap() *ReportVulnerability
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
func (rv *ReportVulnerability) Update() *ReportVulnerabilityUpdateOne
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.
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
func (c *ReportVulnerabilityClient) Create() *ReportVulnerabilityCreate
Create returns a builder for creating a ReportVulnerability entity.
func (*ReportVulnerabilityClient) CreateBulk ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) CreateBulk(builders ...*ReportVulnerabilityCreate) *ReportVulnerabilityCreateBulk
CreateBulk returns a builder for creating a bulk of ReportVulnerability entities.
func (*ReportVulnerabilityClient) Delete ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) Delete() *ReportVulnerabilityDelete
Delete returns a delete builder for ReportVulnerability.
func (*ReportVulnerabilityClient) DeleteOne ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) DeleteOne(rv *ReportVulnerability) *ReportVulnerabilityDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ReportVulnerabilityClient) DeleteOneID ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) DeleteOneID(id int) *ReportVulnerabilityDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ReportVulnerabilityClient) Get ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) Get(ctx context.Context, id int) (*ReportVulnerability, error)
Get returns a ReportVulnerability entity by its id.
func (*ReportVulnerabilityClient) GetX ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) GetX(ctx context.Context, id int) *ReportVulnerability
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
func (c *ReportVulnerabilityClient) MapCreateBulk(slice any, setFunc func(*ReportVulnerabilityCreate, int)) *ReportVulnerabilityCreateBulk
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
func (c *ReportVulnerabilityClient) Query() *ReportVulnerabilityQuery
Query returns a query builder for ReportVulnerability.
func (*ReportVulnerabilityClient) QueryPackage ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) QueryPackage(rv *ReportVulnerability) *ReportPackageQuery
QueryPackage queries the package edge of a ReportVulnerability.
func (*ReportVulnerabilityClient) Update ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) Update() *ReportVulnerabilityUpdate
Update returns an update builder for ReportVulnerability.
func (*ReportVulnerabilityClient) UpdateOne ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) UpdateOne(rv *ReportVulnerability) *ReportVulnerabilityUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ReportVulnerabilityClient) UpdateOneID ¶ added in v1.12.0
func (c *ReportVulnerabilityClient) UpdateOneID(id int) *ReportVulnerabilityUpdateOne
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
func (rvc *ReportVulnerabilityCreate) Exec(ctx context.Context) error
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
func (rvc *ReportVulnerabilityCreate) Mutation() *ReportVulnerabilityMutation
Mutation returns the ReportVulnerabilityMutation object of the builder.
func (*ReportVulnerabilityCreate) Save ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) Save(ctx context.Context) (*ReportVulnerability, error)
Save creates the ReportVulnerability in the database.
func (*ReportVulnerabilityCreate) SaveX ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SaveX(ctx context.Context) *ReportVulnerability
SaveX calls Save and panics if Save returns an error.
func (*ReportVulnerabilityCreate) SetAliases ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetAliases(s []string) *ReportVulnerabilityCreate
SetAliases sets the "aliases" field.
func (*ReportVulnerabilityCreate) SetCreatedAt ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetCreatedAt(t time.Time) *ReportVulnerabilityCreate
SetCreatedAt sets the "created_at" field.
func (*ReportVulnerabilityCreate) SetCvssScore ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetCvssScore(f float64) *ReportVulnerabilityCreate
SetCvssScore sets the "cvss_score" field.
func (*ReportVulnerabilityCreate) SetDescription ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetDescription(s string) *ReportVulnerabilityCreate
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
func (rvc *ReportVulnerabilityCreate) SetPackage(r *ReportPackage) *ReportVulnerabilityCreate
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportVulnerabilityCreate) SetPackageID ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetPackageID(id int) *ReportVulnerabilityCreate
SetPackageID sets the "package" edge to the ReportPackage entity by ID.
func (*ReportVulnerabilityCreate) SetSeverity ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetSeverity(s string) *ReportVulnerabilityCreate
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
func (rvc *ReportVulnerabilityCreate) SetSeverityType(s string) *ReportVulnerabilityCreate
SetSeverityType sets the "severity_type" field.
func (*ReportVulnerabilityCreate) SetTitle ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetTitle(s string) *ReportVulnerabilityCreate
SetTitle sets the "title" field.
func (*ReportVulnerabilityCreate) SetUpdatedAt ¶ added in v1.12.0
func (rvc *ReportVulnerabilityCreate) SetUpdatedAt(t time.Time) *ReportVulnerabilityCreate
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
func (rvcb *ReportVulnerabilityCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReportVulnerabilityCreateBulk) ExecX ¶ added in v1.12.0
func (rvcb *ReportVulnerabilityCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReportVulnerabilityCreateBulk) Save ¶ added in v1.12.0
func (rvcb *ReportVulnerabilityCreateBulk) Save(ctx context.Context) ([]*ReportVulnerability, error)
Save creates the ReportVulnerability entities in the database.
func (*ReportVulnerabilityCreateBulk) SaveX ¶ added in v1.12.0
func (rvcb *ReportVulnerabilityCreateBulk) SaveX(ctx context.Context) []*ReportVulnerability
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
func (rvd *ReportVulnerabilityDelete) Exec(ctx context.Context) (int, error)
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
func (rvd *ReportVulnerabilityDelete) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityDelete
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
func (rvdo *ReportVulnerabilityDeleteOne) Exec(ctx context.Context) error
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
func (rvdo *ReportVulnerabilityDeleteOne) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityDeleteOne
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
func (rvgb *ReportVulnerabilityGroupBy) Aggregate(fns ...AggregateFunc) *ReportVulnerabilityGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReportVulnerabilityGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportVulnerabilityGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportVulnerabilityGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportVulnerabilityGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportVulnerabilityGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportVulnerabilityGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) IntsX ¶ added in v1.12.0
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
ScanX is like Scan, but panics if an error occurs.
func (*ReportVulnerabilityGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilityGroupBy) StringX ¶ added in v1.12.0
StringX is like String, 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
func (m *ReportVulnerabilityMutation) 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 (*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
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
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
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
func (m *ReportVulnerabilityMutation) Op() Op
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
func (m ReportVulnerabilityMutation) Tx() (*Tx, error)
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
func (m *ReportVulnerabilityMutation) Type() string
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
func (m *ReportVulnerabilityMutation) Where(ps ...predicate.ReportVulnerability)
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
func (rvq *ReportVulnerabilityQuery) Aggregate(fns ...AggregateFunc) *ReportVulnerabilitySelect
Aggregate returns a ReportVulnerabilitySelect configured with the given aggregations.
func (*ReportVulnerabilityQuery) All ¶ added in v1.12.0
func (rvq *ReportVulnerabilityQuery) All(ctx context.Context) ([]*ReportVulnerability, error)
All executes the query and returns a list of ReportVulnerabilities.
func (*ReportVulnerabilityQuery) AllX ¶ added in v1.12.0
func (rvq *ReportVulnerabilityQuery) AllX(ctx context.Context) []*ReportVulnerability
AllX is like All, but panics if an error occurs.
func (*ReportVulnerabilityQuery) Clone ¶ added in v1.12.0
func (rvq *ReportVulnerabilityQuery) Clone() *ReportVulnerabilityQuery
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
func (rvq *ReportVulnerabilityQuery) First(ctx context.Context) (*ReportVulnerability, error)
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
func (rvq *ReportVulnerabilityQuery) FirstX(ctx context.Context) *ReportVulnerability
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
func (rvq *ReportVulnerabilityQuery) Limit(limit int) *ReportVulnerabilityQuery
Limit the number of records to be returned by this query.
func (*ReportVulnerabilityQuery) Offset ¶ added in v1.12.0
func (rvq *ReportVulnerabilityQuery) Offset(offset int) *ReportVulnerabilityQuery
Offset to start from.
func (*ReportVulnerabilityQuery) Only ¶ added in v1.12.0
func (rvq *ReportVulnerabilityQuery) Only(ctx context.Context) (*ReportVulnerability, error)
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
func (rvq *ReportVulnerabilityQuery) OnlyX(ctx context.Context) *ReportVulnerability
OnlyX is like Only, but panics if an error occurs.
func (*ReportVulnerabilityQuery) Order ¶ added in v1.12.0
func (rvq *ReportVulnerabilityQuery) Order(o ...reportvulnerability.OrderOption) *ReportVulnerabilityQuery
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
func (rvq *ReportVulnerabilityQuery) Select(fields ...string) *ReportVulnerabilitySelect
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
func (rvq *ReportVulnerabilityQuery) Unique(unique bool) *ReportVulnerabilityQuery
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
func (rvq *ReportVulnerabilityQuery) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityQuery
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
func (rvs *ReportVulnerabilitySelect) Aggregate(fns ...AggregateFunc) *ReportVulnerabilitySelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReportVulnerabilitySelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ReportVulnerabilitySelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ReportVulnerabilitySelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ReportVulnerabilitySelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ReportVulnerabilitySelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ReportVulnerabilitySelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ReportVulnerabilitySelect) Scan ¶ added in v1.12.0
func (rvs *ReportVulnerabilitySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ReportVulnerabilitySelect) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ReportVulnerabilitySelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ReportVulnerabilitySelect) StringX ¶ added in v1.12.0
StringX is like String, 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
func (rvu *ReportVulnerabilityUpdate) AddCvssScore(f float64) *ReportVulnerabilityUpdate
AddCvssScore adds f to the "cvss_score" field.
func (*ReportVulnerabilityUpdate) AppendAliases ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) AppendAliases(s []string) *ReportVulnerabilityUpdate
AppendAliases appends s to the "aliases" field.
func (*ReportVulnerabilityUpdate) ClearAliases ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) ClearAliases() *ReportVulnerabilityUpdate
ClearAliases clears the value of the "aliases" field.
func (*ReportVulnerabilityUpdate) ClearCreatedAt ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) ClearCreatedAt() *ReportVulnerabilityUpdate
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportVulnerabilityUpdate) ClearCvssScore ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) ClearCvssScore() *ReportVulnerabilityUpdate
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
func (rvu *ReportVulnerabilityUpdate) ClearPackage() *ReportVulnerabilityUpdate
ClearPackage clears the "package" edge to the ReportPackage entity.
func (*ReportVulnerabilityUpdate) ClearSeverity ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) ClearSeverity() *ReportVulnerabilityUpdate
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
func (rvu *ReportVulnerabilityUpdate) ClearUpdatedAt() *ReportVulnerabilityUpdate
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportVulnerabilityUpdate) Exec ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) Exec(ctx context.Context) error
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
func (rvu *ReportVulnerabilityUpdate) Mutation() *ReportVulnerabilityMutation
Mutation returns the ReportVulnerabilityMutation object of the builder.
func (*ReportVulnerabilityUpdate) Save ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) Save(ctx context.Context) (int, error)
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
func (rvu *ReportVulnerabilityUpdate) SetAliases(s []string) *ReportVulnerabilityUpdate
SetAliases sets the "aliases" field.
func (*ReportVulnerabilityUpdate) SetCreatedAt ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetCreatedAt(t time.Time) *ReportVulnerabilityUpdate
SetCreatedAt sets the "created_at" field.
func (*ReportVulnerabilityUpdate) SetCvssScore ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetCvssScore(f float64) *ReportVulnerabilityUpdate
SetCvssScore sets the "cvss_score" field.
func (*ReportVulnerabilityUpdate) SetDescription ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetDescription(s string) *ReportVulnerabilityUpdate
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
func (rvu *ReportVulnerabilityUpdate) SetPackage(r *ReportPackage) *ReportVulnerabilityUpdate
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportVulnerabilityUpdate) SetPackageID ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetPackageID(id int) *ReportVulnerabilityUpdate
SetPackageID sets the "package" edge to the ReportPackage entity by ID.
func (*ReportVulnerabilityUpdate) SetSeverity ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetSeverity(s string) *ReportVulnerabilityUpdate
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
func (rvu *ReportVulnerabilityUpdate) SetSeverityType(s string) *ReportVulnerabilityUpdate
SetSeverityType sets the "severity_type" field.
func (*ReportVulnerabilityUpdate) SetTitle ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetTitle(s string) *ReportVulnerabilityUpdate
SetTitle sets the "title" field.
func (*ReportVulnerabilityUpdate) SetUpdatedAt ¶ added in v1.12.0
func (rvu *ReportVulnerabilityUpdate) SetUpdatedAt(t time.Time) *ReportVulnerabilityUpdate
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
func (rvu *ReportVulnerabilityUpdate) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityUpdate
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
func (rvuo *ReportVulnerabilityUpdateOne) AddCvssScore(f float64) *ReportVulnerabilityUpdateOne
AddCvssScore adds f to the "cvss_score" field.
func (*ReportVulnerabilityUpdateOne) AppendAliases ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) AppendAliases(s []string) *ReportVulnerabilityUpdateOne
AppendAliases appends s to the "aliases" field.
func (*ReportVulnerabilityUpdateOne) ClearAliases ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearAliases() *ReportVulnerabilityUpdateOne
ClearAliases clears the value of the "aliases" field.
func (*ReportVulnerabilityUpdateOne) ClearCreatedAt ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearCreatedAt() *ReportVulnerabilityUpdateOne
ClearCreatedAt clears the value of the "created_at" field.
func (*ReportVulnerabilityUpdateOne) ClearCvssScore ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearCvssScore() *ReportVulnerabilityUpdateOne
ClearCvssScore clears the value of the "cvss_score" field.
func (*ReportVulnerabilityUpdateOne) ClearDescription ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearDescription() *ReportVulnerabilityUpdateOne
ClearDescription clears the value of the "description" field.
func (*ReportVulnerabilityUpdateOne) ClearPackage ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearPackage() *ReportVulnerabilityUpdateOne
ClearPackage clears the "package" edge to the ReportPackage entity.
func (*ReportVulnerabilityUpdateOne) ClearSeverity ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearSeverity() *ReportVulnerabilityUpdateOne
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
func (rvuo *ReportVulnerabilityUpdateOne) ClearSeverityType() *ReportVulnerabilityUpdateOne
ClearSeverityType clears the value of the "severity_type" field.
func (*ReportVulnerabilityUpdateOne) ClearUpdatedAt ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) ClearUpdatedAt() *ReportVulnerabilityUpdateOne
ClearUpdatedAt clears the value of the "updated_at" field.
func (*ReportVulnerabilityUpdateOne) Exec ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) Exec(ctx context.Context) error
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
func (rvuo *ReportVulnerabilityUpdateOne) Mutation() *ReportVulnerabilityMutation
Mutation returns the ReportVulnerabilityMutation object of the builder.
func (*ReportVulnerabilityUpdateOne) Save ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) Save(ctx context.Context) (*ReportVulnerability, error)
Save executes the query and returns the updated ReportVulnerability entity.
func (*ReportVulnerabilityUpdateOne) SaveX ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SaveX(ctx context.Context) *ReportVulnerability
SaveX is like Save, but panics if an error occurs.
func (*ReportVulnerabilityUpdateOne) Select ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) Select(field string, fields ...string) *ReportVulnerabilityUpdateOne
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
func (rvuo *ReportVulnerabilityUpdateOne) SetAliases(s []string) *ReportVulnerabilityUpdateOne
SetAliases sets the "aliases" field.
func (*ReportVulnerabilityUpdateOne) SetCreatedAt ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetCreatedAt(t time.Time) *ReportVulnerabilityUpdateOne
SetCreatedAt sets the "created_at" field.
func (*ReportVulnerabilityUpdateOne) SetCvssScore ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetCvssScore(f float64) *ReportVulnerabilityUpdateOne
SetCvssScore sets the "cvss_score" field.
func (*ReportVulnerabilityUpdateOne) SetDescription ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetDescription(s string) *ReportVulnerabilityUpdateOne
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
func (rvuo *ReportVulnerabilityUpdateOne) SetNillableTitle(s *string) *ReportVulnerabilityUpdateOne
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
func (rvuo *ReportVulnerabilityUpdateOne) SetPackage(r *ReportPackage) *ReportVulnerabilityUpdateOne
SetPackage sets the "package" edge to the ReportPackage entity.
func (*ReportVulnerabilityUpdateOne) SetPackageID ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetPackageID(id int) *ReportVulnerabilityUpdateOne
SetPackageID sets the "package" edge to the ReportPackage entity by ID.
func (*ReportVulnerabilityUpdateOne) SetSeverity ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetSeverity(s string) *ReportVulnerabilityUpdateOne
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
func (rvuo *ReportVulnerabilityUpdateOne) SetSeverityType(s string) *ReportVulnerabilityUpdateOne
SetSeverityType sets the "severity_type" field.
func (*ReportVulnerabilityUpdateOne) SetTitle ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetTitle(s string) *ReportVulnerabilityUpdateOne
SetTitle sets the "title" field.
func (*ReportVulnerabilityUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetUpdatedAt(t time.Time) *ReportVulnerabilityUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ReportVulnerabilityUpdateOne) SetVulnerabilityID ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) SetVulnerabilityID(s string) *ReportVulnerabilityUpdateOne
SetVulnerabilityID sets the "vulnerability_id" field.
func (*ReportVulnerabilityUpdateOne) Where ¶ added in v1.12.0
func (rvuo *ReportVulnerabilityUpdateOne) Where(ps ...predicate.ReportVulnerability) *ReportVulnerabilityUpdateOne
Where appends a list predicates to the ReportVulnerabilityUpdate builder.
type RollbackFunc ¶
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.
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 ¶
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 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 ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
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.
Source Files
¶
- client.go
- codesourcefile.go
- codesourcefile_create.go
- codesourcefile_delete.go
- codesourcefile_query.go
- codesourcefile_update.go
- depsusageevidence.go
- depsusageevidence_create.go
- depsusageevidence_delete.go
- depsusageevidence_query.go
- depsusageevidence_update.go
- ent.go
- generate.go
- mutation.go
- reportdependency.go
- reportdependency_create.go
- reportdependency_delete.go
- reportdependency_query.go
- reportdependency_update.go
- reportdependencygraph.go
- reportdependencygraph_create.go
- reportdependencygraph_delete.go
- reportdependencygraph_query.go
- reportdependencygraph_update.go
- reportlicense.go
- reportlicense_create.go
- reportlicense_delete.go
- reportlicense_query.go
- reportlicense_update.go
- reportmalware.go
- reportmalware_create.go
- reportmalware_delete.go
- reportmalware_query.go
- reportmalware_update.go
- reportpackage.go
- reportpackage_create.go
- reportpackage_delete.go
- reportpackage_query.go
- reportpackage_update.go
- reportpackagemanifest.go
- reportpackagemanifest_create.go
- reportpackagemanifest_delete.go
- reportpackagemanifest_query.go
- reportpackagemanifest_update.go
- reportproject.go
- reportproject_create.go
- reportproject_delete.go
- reportproject_query.go
- reportproject_update.go
- reportscorecard.go
- reportscorecard_create.go
- reportscorecard_delete.go
- reportscorecard_query.go
- reportscorecard_update.go
- reportscorecardcheck.go
- reportscorecardcheck_create.go
- reportscorecardcheck_delete.go
- reportscorecardcheck_query.go
- reportscorecardcheck_update.go
- reportslsaprovenance.go
- reportslsaprovenance_create.go
- reportslsaprovenance_delete.go
- reportslsaprovenance_query.go
- reportslsaprovenance_update.go
- reportvulnerability.go
- reportvulnerability_create.go
- reportvulnerability_delete.go
- reportvulnerability_query.go
- reportvulnerability_update.go
- runtime.go
- tx.go