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 CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- 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 RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
- type VulnInformation
- type VulnInformationClient
- func (c *VulnInformationClient) Create() *VulnInformationCreate
- func (c *VulnInformationClient) CreateBulk(builders ...*VulnInformationCreate) *VulnInformationCreateBulk
- func (c *VulnInformationClient) Delete() *VulnInformationDelete
- func (c *VulnInformationClient) DeleteOne(vi *VulnInformation) *VulnInformationDeleteOne
- func (c *VulnInformationClient) DeleteOneID(id int) *VulnInformationDeleteOne
- func (c *VulnInformationClient) Get(ctx context.Context, id int) (*VulnInformation, error)
- func (c *VulnInformationClient) GetX(ctx context.Context, id int) *VulnInformation
- func (c *VulnInformationClient) Hooks() []Hook
- func (c *VulnInformationClient) Intercept(interceptors ...Interceptor)
- func (c *VulnInformationClient) Interceptors() []Interceptor
- func (c *VulnInformationClient) MapCreateBulk(slice any, setFunc func(*VulnInformationCreate, int)) *VulnInformationCreateBulk
- func (c *VulnInformationClient) Query() *VulnInformationQuery
- func (c *VulnInformationClient) Update() *VulnInformationUpdate
- func (c *VulnInformationClient) UpdateOne(vi *VulnInformation) *VulnInformationUpdateOne
- func (c *VulnInformationClient) UpdateOneID(id int) *VulnInformationUpdateOne
- func (c *VulnInformationClient) Use(hooks ...Hook)
- type VulnInformationCreate
- func (vic *VulnInformationCreate) Exec(ctx context.Context) error
- func (vic *VulnInformationCreate) ExecX(ctx context.Context)
- func (vic *VulnInformationCreate) Mutation() *VulnInformationMutation
- func (vic *VulnInformationCreate) OnConflict(opts ...sql.ConflictOption) *VulnInformationUpsertOne
- func (vic *VulnInformationCreate) OnConflictColumns(columns ...string) *VulnInformationUpsertOne
- func (vic *VulnInformationCreate) Save(ctx context.Context) (*VulnInformation, error)
- func (vic *VulnInformationCreate) SaveX(ctx context.Context) *VulnInformation
- func (vic *VulnInformationCreate) SetCreateTime(t time.Time) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetCve(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetDescription(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetDisclosure(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetFrom(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetGithubSearch(s []string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetKey(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableCreateTime(t *time.Time) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableCve(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableDescription(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableDisclosure(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableFrom(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillablePushed(b *bool) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableSeverity(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableSolutions(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableTitle(s *string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetNillableUpdateTime(t *time.Time) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetPushed(b bool) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetReferences(s []string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetSeverity(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetSolutions(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetTags(s []string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetTitle(s string) *VulnInformationCreate
- func (vic *VulnInformationCreate) SetUpdateTime(t time.Time) *VulnInformationCreate
- type VulnInformationCreateBulk
- func (vicb *VulnInformationCreateBulk) Exec(ctx context.Context) error
- func (vicb *VulnInformationCreateBulk) ExecX(ctx context.Context)
- func (vicb *VulnInformationCreateBulk) OnConflict(opts ...sql.ConflictOption) *VulnInformationUpsertBulk
- func (vicb *VulnInformationCreateBulk) OnConflictColumns(columns ...string) *VulnInformationUpsertBulk
- func (vicb *VulnInformationCreateBulk) Save(ctx context.Context) ([]*VulnInformation, error)
- func (vicb *VulnInformationCreateBulk) SaveX(ctx context.Context) []*VulnInformation
- type VulnInformationDelete
- type VulnInformationDeleteOne
- type VulnInformationGroupBy
- func (vigb *VulnInformationGroupBy) Aggregate(fns ...AggregateFunc) *VulnInformationGroupBy
- func (s *VulnInformationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *VulnInformationGroupBy) BoolX(ctx context.Context) bool
- func (s *VulnInformationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *VulnInformationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *VulnInformationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *VulnInformationGroupBy) Float64X(ctx context.Context) float64
- func (s *VulnInformationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *VulnInformationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *VulnInformationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *VulnInformationGroupBy) IntX(ctx context.Context) int
- func (s *VulnInformationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *VulnInformationGroupBy) IntsX(ctx context.Context) []int
- func (vigb *VulnInformationGroupBy) Scan(ctx context.Context, v any) error
- func (s *VulnInformationGroupBy) ScanX(ctx context.Context, v any)
- func (s *VulnInformationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *VulnInformationGroupBy) StringX(ctx context.Context) string
- func (s *VulnInformationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *VulnInformationGroupBy) StringsX(ctx context.Context) []string
- type VulnInformationMutation
- func (m *VulnInformationMutation) AddField(name string, value ent.Value) error
- func (m *VulnInformationMutation) AddedEdges() []string
- func (m *VulnInformationMutation) AddedField(name string) (ent.Value, bool)
- func (m *VulnInformationMutation) AddedFields() []string
- func (m *VulnInformationMutation) AddedIDs(name string) []ent.Value
- func (m *VulnInformationMutation) AppendGithubSearch(s []string)
- func (m *VulnInformationMutation) AppendReferences(s []string)
- func (m *VulnInformationMutation) AppendTags(s []string)
- func (m *VulnInformationMutation) AppendedGithubSearch() ([]string, bool)
- func (m *VulnInformationMutation) AppendedReferences() ([]string, bool)
- func (m *VulnInformationMutation) AppendedTags() ([]string, bool)
- func (m *VulnInformationMutation) ClearEdge(name string) error
- func (m *VulnInformationMutation) ClearField(name string) error
- func (m *VulnInformationMutation) ClearGithubSearch()
- func (m *VulnInformationMutation) ClearReferences()
- func (m *VulnInformationMutation) ClearTags()
- func (m *VulnInformationMutation) ClearedEdges() []string
- func (m *VulnInformationMutation) ClearedFields() []string
- func (m VulnInformationMutation) Client() *Client
- func (m *VulnInformationMutation) CreateTime() (r time.Time, exists bool)
- func (m *VulnInformationMutation) Cve() (r string, exists bool)
- func (m *VulnInformationMutation) Description() (r string, exists bool)
- func (m *VulnInformationMutation) Disclosure() (r string, exists bool)
- func (m *VulnInformationMutation) EdgeCleared(name string) bool
- func (m *VulnInformationMutation) Field(name string) (ent.Value, bool)
- func (m *VulnInformationMutation) FieldCleared(name string) bool
- func (m *VulnInformationMutation) Fields() []string
- func (m *VulnInformationMutation) From() (r string, exists bool)
- func (m *VulnInformationMutation) GithubSearch() (r []string, exists bool)
- func (m *VulnInformationMutation) GithubSearchCleared() bool
- func (m *VulnInformationMutation) ID() (id int, exists bool)
- func (m *VulnInformationMutation) IDs(ctx context.Context) ([]int, error)
- func (m *VulnInformationMutation) Key() (r string, exists bool)
- func (m *VulnInformationMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *VulnInformationMutation) OldCve(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldDisclosure(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *VulnInformationMutation) OldFrom(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldGithubSearch(ctx context.Context) (v []string, err error)
- func (m *VulnInformationMutation) OldKey(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldPushed(ctx context.Context) (v bool, err error)
- func (m *VulnInformationMutation) OldReferences(ctx context.Context) (v []string, err error)
- func (m *VulnInformationMutation) OldSeverity(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldSolutions(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldTags(ctx context.Context) (v []string, err error)
- func (m *VulnInformationMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *VulnInformationMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *VulnInformationMutation) Op() Op
- func (m *VulnInformationMutation) Pushed() (r bool, exists bool)
- func (m *VulnInformationMutation) References() (r []string, exists bool)
- func (m *VulnInformationMutation) ReferencesCleared() bool
- func (m *VulnInformationMutation) RemovedEdges() []string
- func (m *VulnInformationMutation) RemovedIDs(name string) []ent.Value
- func (m *VulnInformationMutation) ResetCreateTime()
- func (m *VulnInformationMutation) ResetCve()
- func (m *VulnInformationMutation) ResetDescription()
- func (m *VulnInformationMutation) ResetDisclosure()
- func (m *VulnInformationMutation) ResetEdge(name string) error
- func (m *VulnInformationMutation) ResetField(name string) error
- func (m *VulnInformationMutation) ResetFrom()
- func (m *VulnInformationMutation) ResetGithubSearch()
- func (m *VulnInformationMutation) ResetKey()
- func (m *VulnInformationMutation) ResetPushed()
- func (m *VulnInformationMutation) ResetReferences()
- func (m *VulnInformationMutation) ResetSeverity()
- func (m *VulnInformationMutation) ResetSolutions()
- func (m *VulnInformationMutation) ResetTags()
- func (m *VulnInformationMutation) ResetTitle()
- func (m *VulnInformationMutation) ResetUpdateTime()
- func (m *VulnInformationMutation) SetCreateTime(t time.Time)
- func (m *VulnInformationMutation) SetCve(s string)
- func (m *VulnInformationMutation) SetDescription(s string)
- func (m *VulnInformationMutation) SetDisclosure(s string)
- func (m *VulnInformationMutation) SetField(name string, value ent.Value) error
- func (m *VulnInformationMutation) SetFrom(s string)
- func (m *VulnInformationMutation) SetGithubSearch(s []string)
- func (m *VulnInformationMutation) SetKey(s string)
- func (m *VulnInformationMutation) SetOp(op Op)
- func (m *VulnInformationMutation) SetPushed(b bool)
- func (m *VulnInformationMutation) SetReferences(s []string)
- func (m *VulnInformationMutation) SetSeverity(s string)
- func (m *VulnInformationMutation) SetSolutions(s string)
- func (m *VulnInformationMutation) SetTags(s []string)
- func (m *VulnInformationMutation) SetTitle(s string)
- func (m *VulnInformationMutation) SetUpdateTime(t time.Time)
- func (m *VulnInformationMutation) Severity() (r string, exists bool)
- func (m *VulnInformationMutation) Solutions() (r string, exists bool)
- func (m *VulnInformationMutation) Tags() (r []string, exists bool)
- func (m *VulnInformationMutation) TagsCleared() bool
- func (m *VulnInformationMutation) Title() (r string, exists bool)
- func (m VulnInformationMutation) Tx() (*Tx, error)
- func (m *VulnInformationMutation) Type() string
- func (m *VulnInformationMutation) UpdateTime() (r time.Time, exists bool)
- func (m *VulnInformationMutation) Where(ps ...predicate.VulnInformation)
- func (m *VulnInformationMutation) WhereP(ps ...func(*sql.Selector))
- type VulnInformationQuery
- func (viq *VulnInformationQuery) Aggregate(fns ...AggregateFunc) *VulnInformationSelect
- func (viq *VulnInformationQuery) All(ctx context.Context) ([]*VulnInformation, error)
- func (viq *VulnInformationQuery) AllX(ctx context.Context) []*VulnInformation
- func (viq *VulnInformationQuery) Clone() *VulnInformationQuery
- func (viq *VulnInformationQuery) Count(ctx context.Context) (int, error)
- func (viq *VulnInformationQuery) CountX(ctx context.Context) int
- func (viq *VulnInformationQuery) Exist(ctx context.Context) (bool, error)
- func (viq *VulnInformationQuery) ExistX(ctx context.Context) bool
- func (viq *VulnInformationQuery) First(ctx context.Context) (*VulnInformation, error)
- func (viq *VulnInformationQuery) FirstID(ctx context.Context) (id int, err error)
- func (viq *VulnInformationQuery) FirstIDX(ctx context.Context) int
- func (viq *VulnInformationQuery) FirstX(ctx context.Context) *VulnInformation
- func (viq *VulnInformationQuery) GroupBy(field string, fields ...string) *VulnInformationGroupBy
- func (viq *VulnInformationQuery) IDs(ctx context.Context) (ids []int, err error)
- func (viq *VulnInformationQuery) IDsX(ctx context.Context) []int
- func (viq *VulnInformationQuery) Limit(limit int) *VulnInformationQuery
- func (viq *VulnInformationQuery) Offset(offset int) *VulnInformationQuery
- func (viq *VulnInformationQuery) Only(ctx context.Context) (*VulnInformation, error)
- func (viq *VulnInformationQuery) OnlyID(ctx context.Context) (id int, err error)
- func (viq *VulnInformationQuery) OnlyIDX(ctx context.Context) int
- func (viq *VulnInformationQuery) OnlyX(ctx context.Context) *VulnInformation
- func (viq *VulnInformationQuery) Order(o ...vulninformation.OrderOption) *VulnInformationQuery
- func (viq *VulnInformationQuery) Select(fields ...string) *VulnInformationSelect
- func (viq *VulnInformationQuery) Unique(unique bool) *VulnInformationQuery
- func (viq *VulnInformationQuery) Where(ps ...predicate.VulnInformation) *VulnInformationQuery
- type VulnInformationSelect
- func (vis *VulnInformationSelect) Aggregate(fns ...AggregateFunc) *VulnInformationSelect
- func (s *VulnInformationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *VulnInformationSelect) BoolX(ctx context.Context) bool
- func (s *VulnInformationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *VulnInformationSelect) BoolsX(ctx context.Context) []bool
- func (s *VulnInformationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *VulnInformationSelect) Float64X(ctx context.Context) float64
- func (s *VulnInformationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *VulnInformationSelect) Float64sX(ctx context.Context) []float64
- func (s *VulnInformationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *VulnInformationSelect) IntX(ctx context.Context) int
- func (s *VulnInformationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *VulnInformationSelect) IntsX(ctx context.Context) []int
- func (vis *VulnInformationSelect) Scan(ctx context.Context, v any) error
- func (s *VulnInformationSelect) ScanX(ctx context.Context, v any)
- func (s *VulnInformationSelect) String(ctx context.Context) (_ string, err error)
- func (s *VulnInformationSelect) StringX(ctx context.Context) string
- func (s *VulnInformationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *VulnInformationSelect) StringsX(ctx context.Context) []string
- type VulnInformationUpdate
- func (viu *VulnInformationUpdate) AppendGithubSearch(s []string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) AppendReferences(s []string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) AppendTags(s []string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) ClearGithubSearch() *VulnInformationUpdate
- func (viu *VulnInformationUpdate) ClearReferences() *VulnInformationUpdate
- func (viu *VulnInformationUpdate) ClearTags() *VulnInformationUpdate
- func (viu *VulnInformationUpdate) Exec(ctx context.Context) error
- func (viu *VulnInformationUpdate) ExecX(ctx context.Context)
- func (viu *VulnInformationUpdate) Mutation() *VulnInformationMutation
- func (viu *VulnInformationUpdate) Save(ctx context.Context) (int, error)
- func (viu *VulnInformationUpdate) SaveX(ctx context.Context) int
- func (viu *VulnInformationUpdate) SetCve(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetDescription(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetDisclosure(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetFrom(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetGithubSearch(s []string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetKey(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableCve(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableDescription(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableDisclosure(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableFrom(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillablePushed(b *bool) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableSeverity(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableSolutions(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetNillableTitle(s *string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetPushed(b bool) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetReferences(s []string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetSeverity(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetSolutions(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetTags(s []string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetTitle(s string) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) SetUpdateTime(t time.Time) *VulnInformationUpdate
- func (viu *VulnInformationUpdate) Where(ps ...predicate.VulnInformation) *VulnInformationUpdate
- type VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) AppendGithubSearch(s []string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) AppendReferences(s []string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) AppendTags(s []string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) ClearGithubSearch() *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) ClearReferences() *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) ClearTags() *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) Exec(ctx context.Context) error
- func (viuo *VulnInformationUpdateOne) ExecX(ctx context.Context)
- func (viuo *VulnInformationUpdateOne) Mutation() *VulnInformationMutation
- func (viuo *VulnInformationUpdateOne) Save(ctx context.Context) (*VulnInformation, error)
- func (viuo *VulnInformationUpdateOne) SaveX(ctx context.Context) *VulnInformation
- func (viuo *VulnInformationUpdateOne) Select(field string, fields ...string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetCve(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetDescription(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetDisclosure(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetFrom(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetGithubSearch(s []string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetKey(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableCve(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableDescription(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableDisclosure(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableFrom(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillablePushed(b *bool) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableSeverity(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableSolutions(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetNillableTitle(s *string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetPushed(b bool) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetReferences(s []string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetSeverity(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetSolutions(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetTags(s []string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetTitle(s string) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) SetUpdateTime(t time.Time) *VulnInformationUpdateOne
- func (viuo *VulnInformationUpdateOne) Where(ps ...predicate.VulnInformation) *VulnInformationUpdateOne
- type VulnInformationUpsert
- func (u *VulnInformationUpsert) ClearGithubSearch() *VulnInformationUpsert
- func (u *VulnInformationUpsert) ClearReferences() *VulnInformationUpsert
- func (u *VulnInformationUpsert) ClearTags() *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetCve(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetDescription(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetDisclosure(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetFrom(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetGithubSearch(v []string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetKey(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetPushed(v bool) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetReferences(v []string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetSeverity(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetSolutions(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetTags(v []string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetTitle(v string) *VulnInformationUpsert
- func (u *VulnInformationUpsert) SetUpdateTime(v time.Time) *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateCve() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateDescription() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateDisclosure() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateFrom() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateGithubSearch() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateKey() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdatePushed() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateReferences() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateSeverity() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateSolutions() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateTags() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateTitle() *VulnInformationUpsert
- func (u *VulnInformationUpsert) UpdateUpdateTime() *VulnInformationUpsert
- type VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) ClearGithubSearch() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) ClearReferences() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) ClearTags() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) DoNothing() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) Exec(ctx context.Context) error
- func (u *VulnInformationUpsertBulk) ExecX(ctx context.Context)
- func (u *VulnInformationUpsertBulk) Ignore() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetCve(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetDescription(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetDisclosure(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetFrom(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetGithubSearch(v []string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetKey(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetPushed(v bool) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetReferences(v []string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetSeverity(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetSolutions(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetTags(v []string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetTitle(v string) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) SetUpdateTime(v time.Time) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) Update(set func(*VulnInformationUpsert)) *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateCve() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateDescription() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateDisclosure() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateFrom() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateGithubSearch() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateKey() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateNewValues() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdatePushed() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateReferences() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateSeverity() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateSolutions() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateTags() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateTitle() *VulnInformationUpsertBulk
- func (u *VulnInformationUpsertBulk) UpdateUpdateTime() *VulnInformationUpsertBulk
- type VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) ClearGithubSearch() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) ClearReferences() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) ClearTags() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) DoNothing() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) Exec(ctx context.Context) error
- func (u *VulnInformationUpsertOne) ExecX(ctx context.Context)
- func (u *VulnInformationUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *VulnInformationUpsertOne) IDX(ctx context.Context) int
- func (u *VulnInformationUpsertOne) Ignore() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetCve(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetDescription(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetDisclosure(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetFrom(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetGithubSearch(v []string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetKey(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetPushed(v bool) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetReferences(v []string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetSeverity(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetSolutions(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetTags(v []string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetTitle(v string) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) SetUpdateTime(v time.Time) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) Update(set func(*VulnInformationUpsert)) *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateCve() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateDescription() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateDisclosure() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateFrom() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateGithubSearch() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateKey() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateNewValues() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdatePushed() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateReferences() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateSeverity() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateSolutions() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateTags() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateTitle() *VulnInformationUpsertOne
- func (u *VulnInformationUpsertOne) UpdateUpdateTime() *VulnInformationUpsertOne
- type VulnInformations
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeVulnInformation = "VulnInformation" )
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 // VulnInformation is the client for interacting with the VulnInformation builders. VulnInformation *VulnInformationClient // 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(). VulnInformation. 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 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 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 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 { // VulnInformation is the client for interacting with the VulnInformation builders. VulnInformation *VulnInformationClient // 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.
type VulnInformation ¶
type VulnInformation struct { // ID of the ent. ID int `json:"id,omitempty"` // Key holds the value of the "key" field. Key string `json:"key,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"` // Severity holds the value of the "severity" field. Severity string `json:"severity,omitempty"` // Cve holds the value of the "cve" field. Cve string `json:"cve,omitempty"` // Disclosure holds the value of the "disclosure" field. Disclosure string `json:"disclosure,omitempty"` // Solutions holds the value of the "solutions" field. Solutions string `json:"solutions,omitempty"` // References holds the value of the "references" field. References []string `json:"references,omitempty"` // Tags holds the value of the "tags" field. Tags []string `json:"tags,omitempty"` // GithubSearch holds the value of the "github_search" field. GithubSearch []string `json:"github_search,omitempty"` // From holds the value of the "from" field. From string `json:"from,omitempty"` // Pushed holds the value of the "pushed" field. Pushed bool `json:"pushed,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // contains filtered or unexported fields }
VulnInformation is the model entity for the VulnInformation schema.
func (*VulnInformation) String ¶
func (vi *VulnInformation) String() string
String implements the fmt.Stringer.
func (*VulnInformation) Unwrap ¶
func (vi *VulnInformation) Unwrap() *VulnInformation
Unwrap unwraps the VulnInformation 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 (*VulnInformation) Update ¶
func (vi *VulnInformation) Update() *VulnInformationUpdateOne
Update returns a builder for updating this VulnInformation. Note that you need to call VulnInformation.Unwrap() before calling this method if this VulnInformation was returned from a transaction, and the transaction was committed or rolled back.
type VulnInformationClient ¶
type VulnInformationClient struct {
// contains filtered or unexported fields
}
VulnInformationClient is a client for the VulnInformation schema.
func NewVulnInformationClient ¶
func NewVulnInformationClient(c config) *VulnInformationClient
NewVulnInformationClient returns a client for the VulnInformation from the given config.
func (*VulnInformationClient) Create ¶
func (c *VulnInformationClient) Create() *VulnInformationCreate
Create returns a builder for creating a VulnInformation entity.
func (*VulnInformationClient) CreateBulk ¶
func (c *VulnInformationClient) CreateBulk(builders ...*VulnInformationCreate) *VulnInformationCreateBulk
CreateBulk returns a builder for creating a bulk of VulnInformation entities.
func (*VulnInformationClient) Delete ¶
func (c *VulnInformationClient) Delete() *VulnInformationDelete
Delete returns a delete builder for VulnInformation.
func (*VulnInformationClient) DeleteOne ¶
func (c *VulnInformationClient) DeleteOne(vi *VulnInformation) *VulnInformationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*VulnInformationClient) DeleteOneID ¶
func (c *VulnInformationClient) DeleteOneID(id int) *VulnInformationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*VulnInformationClient) Get ¶
func (c *VulnInformationClient) Get(ctx context.Context, id int) (*VulnInformation, error)
Get returns a VulnInformation entity by its id.
func (*VulnInformationClient) GetX ¶
func (c *VulnInformationClient) GetX(ctx context.Context, id int) *VulnInformation
GetX is like Get, but panics if an error occurs.
func (*VulnInformationClient) Hooks ¶
func (c *VulnInformationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*VulnInformationClient) Intercept ¶
func (c *VulnInformationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `vulninformation.Intercept(f(g(h())))`.
func (*VulnInformationClient) Interceptors ¶
func (c *VulnInformationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*VulnInformationClient) MapCreateBulk ¶ added in v1.2.2
func (c *VulnInformationClient) MapCreateBulk(slice any, setFunc func(*VulnInformationCreate, int)) *VulnInformationCreateBulk
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 (*VulnInformationClient) Query ¶
func (c *VulnInformationClient) Query() *VulnInformationQuery
Query returns a query builder for VulnInformation.
func (*VulnInformationClient) Update ¶
func (c *VulnInformationClient) Update() *VulnInformationUpdate
Update returns an update builder for VulnInformation.
func (*VulnInformationClient) UpdateOne ¶
func (c *VulnInformationClient) UpdateOne(vi *VulnInformation) *VulnInformationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*VulnInformationClient) UpdateOneID ¶
func (c *VulnInformationClient) UpdateOneID(id int) *VulnInformationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*VulnInformationClient) Use ¶
func (c *VulnInformationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `vulninformation.Hooks(f(g(h())))`.
type VulnInformationCreate ¶
type VulnInformationCreate struct {
// contains filtered or unexported fields
}
VulnInformationCreate is the builder for creating a VulnInformation entity.
func (*VulnInformationCreate) Exec ¶
func (vic *VulnInformationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*VulnInformationCreate) ExecX ¶
func (vic *VulnInformationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationCreate) Mutation ¶
func (vic *VulnInformationCreate) Mutation() *VulnInformationMutation
Mutation returns the VulnInformationMutation object of the builder.
func (*VulnInformationCreate) OnConflict ¶
func (vic *VulnInformationCreate) OnConflict(opts ...sql.ConflictOption) *VulnInformationUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.VulnInformation.Create(). SetKey(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.VulnInformationUpsert) { SetKey(v+v). }). Exec(ctx)
func (*VulnInformationCreate) OnConflictColumns ¶
func (vic *VulnInformationCreate) OnConflictColumns(columns ...string) *VulnInformationUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.VulnInformation.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*VulnInformationCreate) Save ¶
func (vic *VulnInformationCreate) Save(ctx context.Context) (*VulnInformation, error)
Save creates the VulnInformation in the database.
func (*VulnInformationCreate) SaveX ¶
func (vic *VulnInformationCreate) SaveX(ctx context.Context) *VulnInformation
SaveX calls Save and panics if Save returns an error.
func (*VulnInformationCreate) SetCreateTime ¶ added in v1.1.0
func (vic *VulnInformationCreate) SetCreateTime(t time.Time) *VulnInformationCreate
SetCreateTime sets the "create_time" field.
func (*VulnInformationCreate) SetCve ¶
func (vic *VulnInformationCreate) SetCve(s string) *VulnInformationCreate
SetCve sets the "cve" field.
func (*VulnInformationCreate) SetDescription ¶
func (vic *VulnInformationCreate) SetDescription(s string) *VulnInformationCreate
SetDescription sets the "description" field.
func (*VulnInformationCreate) SetDisclosure ¶
func (vic *VulnInformationCreate) SetDisclosure(s string) *VulnInformationCreate
SetDisclosure sets the "disclosure" field.
func (*VulnInformationCreate) SetFrom ¶
func (vic *VulnInformationCreate) SetFrom(s string) *VulnInformationCreate
SetFrom sets the "from" field.
func (*VulnInformationCreate) SetGithubSearch ¶ added in v1.1.0
func (vic *VulnInformationCreate) SetGithubSearch(s []string) *VulnInformationCreate
SetGithubSearch sets the "github_search" field.
func (*VulnInformationCreate) SetKey ¶
func (vic *VulnInformationCreate) SetKey(s string) *VulnInformationCreate
SetKey sets the "key" field.
func (*VulnInformationCreate) SetNillableCreateTime ¶ added in v1.1.0
func (vic *VulnInformationCreate) SetNillableCreateTime(t *time.Time) *VulnInformationCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableCve ¶
func (vic *VulnInformationCreate) SetNillableCve(s *string) *VulnInformationCreate
SetNillableCve sets the "cve" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableDescription ¶
func (vic *VulnInformationCreate) SetNillableDescription(s *string) *VulnInformationCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableDisclosure ¶
func (vic *VulnInformationCreate) SetNillableDisclosure(s *string) *VulnInformationCreate
SetNillableDisclosure sets the "disclosure" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableFrom ¶
func (vic *VulnInformationCreate) SetNillableFrom(s *string) *VulnInformationCreate
SetNillableFrom sets the "from" field if the given value is not nil.
func (*VulnInformationCreate) SetNillablePushed ¶ added in v0.3.0
func (vic *VulnInformationCreate) SetNillablePushed(b *bool) *VulnInformationCreate
SetNillablePushed sets the "pushed" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableSeverity ¶
func (vic *VulnInformationCreate) SetNillableSeverity(s *string) *VulnInformationCreate
SetNillableSeverity sets the "severity" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableSolutions ¶
func (vic *VulnInformationCreate) SetNillableSolutions(s *string) *VulnInformationCreate
SetNillableSolutions sets the "solutions" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableTitle ¶
func (vic *VulnInformationCreate) SetNillableTitle(s *string) *VulnInformationCreate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*VulnInformationCreate) SetNillableUpdateTime ¶ added in v1.1.0
func (vic *VulnInformationCreate) SetNillableUpdateTime(t *time.Time) *VulnInformationCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*VulnInformationCreate) SetPushed ¶ added in v0.3.0
func (vic *VulnInformationCreate) SetPushed(b bool) *VulnInformationCreate
SetPushed sets the "pushed" field.
func (*VulnInformationCreate) SetReferences ¶
func (vic *VulnInformationCreate) SetReferences(s []string) *VulnInformationCreate
SetReferences sets the "references" field.
func (*VulnInformationCreate) SetSeverity ¶
func (vic *VulnInformationCreate) SetSeverity(s string) *VulnInformationCreate
SetSeverity sets the "severity" field.
func (*VulnInformationCreate) SetSolutions ¶
func (vic *VulnInformationCreate) SetSolutions(s string) *VulnInformationCreate
SetSolutions sets the "solutions" field.
func (*VulnInformationCreate) SetTags ¶
func (vic *VulnInformationCreate) SetTags(s []string) *VulnInformationCreate
SetTags sets the "tags" field.
func (*VulnInformationCreate) SetTitle ¶
func (vic *VulnInformationCreate) SetTitle(s string) *VulnInformationCreate
SetTitle sets the "title" field.
func (*VulnInformationCreate) SetUpdateTime ¶ added in v1.1.0
func (vic *VulnInformationCreate) SetUpdateTime(t time.Time) *VulnInformationCreate
SetUpdateTime sets the "update_time" field.
type VulnInformationCreateBulk ¶
type VulnInformationCreateBulk struct {
// contains filtered or unexported fields
}
VulnInformationCreateBulk is the builder for creating many VulnInformation entities in bulk.
func (*VulnInformationCreateBulk) Exec ¶
func (vicb *VulnInformationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*VulnInformationCreateBulk) ExecX ¶
func (vicb *VulnInformationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationCreateBulk) OnConflict ¶
func (vicb *VulnInformationCreateBulk) OnConflict(opts ...sql.ConflictOption) *VulnInformationUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.VulnInformation.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.VulnInformationUpsert) { SetKey(v+v). }). Exec(ctx)
func (*VulnInformationCreateBulk) OnConflictColumns ¶
func (vicb *VulnInformationCreateBulk) OnConflictColumns(columns ...string) *VulnInformationUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.VulnInformation.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*VulnInformationCreateBulk) Save ¶
func (vicb *VulnInformationCreateBulk) Save(ctx context.Context) ([]*VulnInformation, error)
Save creates the VulnInformation entities in the database.
func (*VulnInformationCreateBulk) SaveX ¶
func (vicb *VulnInformationCreateBulk) SaveX(ctx context.Context) []*VulnInformation
SaveX is like Save, but panics if an error occurs.
type VulnInformationDelete ¶
type VulnInformationDelete struct {
// contains filtered or unexported fields
}
VulnInformationDelete is the builder for deleting a VulnInformation entity.
func (*VulnInformationDelete) Exec ¶
func (vid *VulnInformationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*VulnInformationDelete) ExecX ¶
func (vid *VulnInformationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationDelete) Where ¶
func (vid *VulnInformationDelete) Where(ps ...predicate.VulnInformation) *VulnInformationDelete
Where appends a list predicates to the VulnInformationDelete builder.
type VulnInformationDeleteOne ¶
type VulnInformationDeleteOne struct {
// contains filtered or unexported fields
}
VulnInformationDeleteOne is the builder for deleting a single VulnInformation entity.
func (*VulnInformationDeleteOne) Exec ¶
func (vido *VulnInformationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*VulnInformationDeleteOne) ExecX ¶
func (vido *VulnInformationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationDeleteOne) Where ¶
func (vido *VulnInformationDeleteOne) Where(ps ...predicate.VulnInformation) *VulnInformationDeleteOne
Where appends a list predicates to the VulnInformationDelete builder.
type VulnInformationGroupBy ¶
type VulnInformationGroupBy struct {
// contains filtered or unexported fields
}
VulnInformationGroupBy is the group-by builder for VulnInformation entities.
func (*VulnInformationGroupBy) Aggregate ¶
func (vigb *VulnInformationGroupBy) Aggregate(fns ...AggregateFunc) *VulnInformationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*VulnInformationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*VulnInformationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*VulnInformationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*VulnInformationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*VulnInformationGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*VulnInformationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*VulnInformationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*VulnInformationGroupBy) Scan ¶
func (vigb *VulnInformationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*VulnInformationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type VulnInformationMutation ¶
type VulnInformationMutation struct {
// contains filtered or unexported fields
}
VulnInformationMutation represents an operation that mutates the VulnInformation nodes in the graph.
func (*VulnInformationMutation) AddField ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) AddedEdges ¶
func (m *VulnInformationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*VulnInformationMutation) AddedField ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) AddedFields ¶
func (m *VulnInformationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*VulnInformationMutation) AddedIDs ¶
func (m *VulnInformationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*VulnInformationMutation) AppendGithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) AppendGithubSearch(s []string)
AppendGithubSearch adds s to the "github_search" field.
func (*VulnInformationMutation) AppendReferences ¶
func (m *VulnInformationMutation) AppendReferences(s []string)
AppendReferences adds s to the "references" field.
func (*VulnInformationMutation) AppendTags ¶
func (m *VulnInformationMutation) AppendTags(s []string)
AppendTags adds s to the "tags" field.
func (*VulnInformationMutation) AppendedGithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) AppendedGithubSearch() ([]string, bool)
AppendedGithubSearch returns the list of values that were appended to the "github_search" field in this mutation.
func (*VulnInformationMutation) AppendedReferences ¶
func (m *VulnInformationMutation) AppendedReferences() ([]string, bool)
AppendedReferences returns the list of values that were appended to the "references" field in this mutation.
func (*VulnInformationMutation) AppendedTags ¶
func (m *VulnInformationMutation) AppendedTags() ([]string, bool)
AppendedTags returns the list of values that were appended to the "tags" field in this mutation.
func (*VulnInformationMutation) ClearEdge ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) ClearField ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) ClearGithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) ClearGithubSearch()
ClearGithubSearch clears the value of the "github_search" field.
func (*VulnInformationMutation) ClearReferences ¶
func (m *VulnInformationMutation) ClearReferences()
ClearReferences clears the value of the "references" field.
func (*VulnInformationMutation) ClearTags ¶
func (m *VulnInformationMutation) ClearTags()
ClearTags clears the value of the "tags" field.
func (*VulnInformationMutation) ClearedEdges ¶
func (m *VulnInformationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*VulnInformationMutation) ClearedFields ¶
func (m *VulnInformationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (VulnInformationMutation) Client ¶
func (m VulnInformationMutation) 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 (*VulnInformationMutation) CreateTime ¶ added in v1.1.0
func (m *VulnInformationMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*VulnInformationMutation) Cve ¶
func (m *VulnInformationMutation) Cve() (r string, exists bool)
Cve returns the value of the "cve" field in the mutation.
func (*VulnInformationMutation) Description ¶
func (m *VulnInformationMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*VulnInformationMutation) Disclosure ¶
func (m *VulnInformationMutation) Disclosure() (r string, exists bool)
Disclosure returns the value of the "disclosure" field in the mutation.
func (*VulnInformationMutation) EdgeCleared ¶
func (m *VulnInformationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*VulnInformationMutation) Field ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) FieldCleared ¶
func (m *VulnInformationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*VulnInformationMutation) Fields ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) From ¶
func (m *VulnInformationMutation) From() (r string, exists bool)
From returns the value of the "from" field in the mutation.
func (*VulnInformationMutation) GithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) GithubSearch() (r []string, exists bool)
GithubSearch returns the value of the "github_search" field in the mutation.
func (*VulnInformationMutation) GithubSearchCleared ¶ added in v1.1.0
func (m *VulnInformationMutation) GithubSearchCleared() bool
GithubSearchCleared returns if the "github_search" field was cleared in this mutation.
func (*VulnInformationMutation) ID ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) IDs ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) Key ¶
func (m *VulnInformationMutation) Key() (r string, exists bool)
Key returns the value of the "key" field in the mutation.
func (*VulnInformationMutation) OldCreateTime ¶ added in v1.1.0
OldCreateTime returns the old "create_time" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldCve ¶
func (m *VulnInformationMutation) OldCve(ctx context.Context) (v string, err error)
OldCve returns the old "cve" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldDescription ¶
func (m *VulnInformationMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldDisclosure ¶
func (m *VulnInformationMutation) OldDisclosure(ctx context.Context) (v string, err error)
OldDisclosure returns the old "disclosure" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) 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 (*VulnInformationMutation) OldFrom ¶
func (m *VulnInformationMutation) OldFrom(ctx context.Context) (v string, err error)
OldFrom returns the old "from" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldGithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) OldGithubSearch(ctx context.Context) (v []string, err error)
OldGithubSearch returns the old "github_search" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldKey ¶
func (m *VulnInformationMutation) OldKey(ctx context.Context) (v string, err error)
OldKey returns the old "key" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldPushed ¶ added in v0.3.0
func (m *VulnInformationMutation) OldPushed(ctx context.Context) (v bool, err error)
OldPushed returns the old "pushed" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldReferences ¶
func (m *VulnInformationMutation) OldReferences(ctx context.Context) (v []string, err error)
OldReferences returns the old "references" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldSeverity ¶
func (m *VulnInformationMutation) OldSeverity(ctx context.Context) (v string, err error)
OldSeverity returns the old "severity" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldSolutions ¶
func (m *VulnInformationMutation) OldSolutions(ctx context.Context) (v string, err error)
OldSolutions returns the old "solutions" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldTags ¶
func (m *VulnInformationMutation) OldTags(ctx context.Context) (v []string, err error)
OldTags returns the old "tags" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldTitle ¶
func (m *VulnInformationMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) OldUpdateTime ¶ added in v1.1.0
OldUpdateTime returns the old "update_time" field's value of the VulnInformation entity. If the VulnInformation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*VulnInformationMutation) Op ¶
func (m *VulnInformationMutation) Op() Op
Op returns the operation name.
func (*VulnInformationMutation) Pushed ¶ added in v0.3.0
func (m *VulnInformationMutation) Pushed() (r bool, exists bool)
Pushed returns the value of the "pushed" field in the mutation.
func (*VulnInformationMutation) References ¶
func (m *VulnInformationMutation) References() (r []string, exists bool)
References returns the value of the "references" field in the mutation.
func (*VulnInformationMutation) ReferencesCleared ¶
func (m *VulnInformationMutation) ReferencesCleared() bool
ReferencesCleared returns if the "references" field was cleared in this mutation.
func (*VulnInformationMutation) RemovedEdges ¶
func (m *VulnInformationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*VulnInformationMutation) RemovedIDs ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) ResetCreateTime ¶ added in v1.1.0
func (m *VulnInformationMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*VulnInformationMutation) ResetCve ¶
func (m *VulnInformationMutation) ResetCve()
ResetCve resets all changes to the "cve" field.
func (*VulnInformationMutation) ResetDescription ¶
func (m *VulnInformationMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*VulnInformationMutation) ResetDisclosure ¶
func (m *VulnInformationMutation) ResetDisclosure()
ResetDisclosure resets all changes to the "disclosure" field.
func (*VulnInformationMutation) ResetEdge ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) ResetField ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) ResetFrom ¶
func (m *VulnInformationMutation) ResetFrom()
ResetFrom resets all changes to the "from" field.
func (*VulnInformationMutation) ResetGithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) ResetGithubSearch()
ResetGithubSearch resets all changes to the "github_search" field.
func (*VulnInformationMutation) ResetKey ¶
func (m *VulnInformationMutation) ResetKey()
ResetKey resets all changes to the "key" field.
func (*VulnInformationMutation) ResetPushed ¶ added in v0.3.0
func (m *VulnInformationMutation) ResetPushed()
ResetPushed resets all changes to the "pushed" field.
func (*VulnInformationMutation) ResetReferences ¶
func (m *VulnInformationMutation) ResetReferences()
ResetReferences resets all changes to the "references" field.
func (*VulnInformationMutation) ResetSeverity ¶
func (m *VulnInformationMutation) ResetSeverity()
ResetSeverity resets all changes to the "severity" field.
func (*VulnInformationMutation) ResetSolutions ¶
func (m *VulnInformationMutation) ResetSolutions()
ResetSolutions resets all changes to the "solutions" field.
func (*VulnInformationMutation) ResetTags ¶
func (m *VulnInformationMutation) ResetTags()
ResetTags resets all changes to the "tags" field.
func (*VulnInformationMutation) ResetTitle ¶
func (m *VulnInformationMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*VulnInformationMutation) ResetUpdateTime ¶ added in v1.1.0
func (m *VulnInformationMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*VulnInformationMutation) SetCreateTime ¶ added in v1.1.0
func (m *VulnInformationMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*VulnInformationMutation) SetCve ¶
func (m *VulnInformationMutation) SetCve(s string)
SetCve sets the "cve" field.
func (*VulnInformationMutation) SetDescription ¶
func (m *VulnInformationMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*VulnInformationMutation) SetDisclosure ¶
func (m *VulnInformationMutation) SetDisclosure(s string)
SetDisclosure sets the "disclosure" field.
func (*VulnInformationMutation) SetField ¶
func (m *VulnInformationMutation) 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 (*VulnInformationMutation) SetFrom ¶
func (m *VulnInformationMutation) SetFrom(s string)
SetFrom sets the "from" field.
func (*VulnInformationMutation) SetGithubSearch ¶ added in v1.1.0
func (m *VulnInformationMutation) SetGithubSearch(s []string)
SetGithubSearch sets the "github_search" field.
func (*VulnInformationMutation) SetKey ¶
func (m *VulnInformationMutation) SetKey(s string)
SetKey sets the "key" field.
func (*VulnInformationMutation) SetOp ¶
func (m *VulnInformationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*VulnInformationMutation) SetPushed ¶ added in v0.3.0
func (m *VulnInformationMutation) SetPushed(b bool)
SetPushed sets the "pushed" field.
func (*VulnInformationMutation) SetReferences ¶
func (m *VulnInformationMutation) SetReferences(s []string)
SetReferences sets the "references" field.
func (*VulnInformationMutation) SetSeverity ¶
func (m *VulnInformationMutation) SetSeverity(s string)
SetSeverity sets the "severity" field.
func (*VulnInformationMutation) SetSolutions ¶
func (m *VulnInformationMutation) SetSolutions(s string)
SetSolutions sets the "solutions" field.
func (*VulnInformationMutation) SetTags ¶
func (m *VulnInformationMutation) SetTags(s []string)
SetTags sets the "tags" field.
func (*VulnInformationMutation) SetTitle ¶
func (m *VulnInformationMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*VulnInformationMutation) SetUpdateTime ¶ added in v1.1.0
func (m *VulnInformationMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*VulnInformationMutation) Severity ¶
func (m *VulnInformationMutation) Severity() (r string, exists bool)
Severity returns the value of the "severity" field in the mutation.
func (*VulnInformationMutation) Solutions ¶
func (m *VulnInformationMutation) Solutions() (r string, exists bool)
Solutions returns the value of the "solutions" field in the mutation.
func (*VulnInformationMutation) Tags ¶
func (m *VulnInformationMutation) Tags() (r []string, exists bool)
Tags returns the value of the "tags" field in the mutation.
func (*VulnInformationMutation) TagsCleared ¶
func (m *VulnInformationMutation) TagsCleared() bool
TagsCleared returns if the "tags" field was cleared in this mutation.
func (*VulnInformationMutation) Title ¶
func (m *VulnInformationMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (VulnInformationMutation) Tx ¶
func (m VulnInformationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*VulnInformationMutation) Type ¶
func (m *VulnInformationMutation) Type() string
Type returns the node type of this mutation (VulnInformation).
func (*VulnInformationMutation) UpdateTime ¶ added in v1.1.0
func (m *VulnInformationMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*VulnInformationMutation) Where ¶
func (m *VulnInformationMutation) Where(ps ...predicate.VulnInformation)
Where appends a list predicates to the VulnInformationMutation builder.
func (*VulnInformationMutation) WhereP ¶
func (m *VulnInformationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the VulnInformationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type VulnInformationQuery ¶
type VulnInformationQuery struct {
// contains filtered or unexported fields
}
VulnInformationQuery is the builder for querying VulnInformation entities.
func (*VulnInformationQuery) Aggregate ¶
func (viq *VulnInformationQuery) Aggregate(fns ...AggregateFunc) *VulnInformationSelect
Aggregate returns a VulnInformationSelect configured with the given aggregations.
func (*VulnInformationQuery) All ¶
func (viq *VulnInformationQuery) All(ctx context.Context) ([]*VulnInformation, error)
All executes the query and returns a list of VulnInformations.
func (*VulnInformationQuery) AllX ¶
func (viq *VulnInformationQuery) AllX(ctx context.Context) []*VulnInformation
AllX is like All, but panics if an error occurs.
func (*VulnInformationQuery) Clone ¶
func (viq *VulnInformationQuery) Clone() *VulnInformationQuery
Clone returns a duplicate of the VulnInformationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*VulnInformationQuery) Count ¶
func (viq *VulnInformationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*VulnInformationQuery) CountX ¶
func (viq *VulnInformationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*VulnInformationQuery) Exist ¶
func (viq *VulnInformationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*VulnInformationQuery) ExistX ¶
func (viq *VulnInformationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*VulnInformationQuery) First ¶
func (viq *VulnInformationQuery) First(ctx context.Context) (*VulnInformation, error)
First returns the first VulnInformation entity from the query. Returns a *NotFoundError when no VulnInformation was found.
func (*VulnInformationQuery) FirstID ¶
func (viq *VulnInformationQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first VulnInformation ID from the query. Returns a *NotFoundError when no VulnInformation ID was found.
func (*VulnInformationQuery) FirstIDX ¶
func (viq *VulnInformationQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*VulnInformationQuery) FirstX ¶
func (viq *VulnInformationQuery) FirstX(ctx context.Context) *VulnInformation
FirstX is like First, but panics if an error occurs.
func (*VulnInformationQuery) GroupBy ¶
func (viq *VulnInformationQuery) GroupBy(field string, fields ...string) *VulnInformationGroupBy
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 { Key string `json:"key,omitempty"` Count int `json:"count,omitempty"` } client.VulnInformation.Query(). GroupBy(vulninformation.FieldKey). Aggregate(ent.Count()). Scan(ctx, &v)
func (*VulnInformationQuery) IDs ¶
func (viq *VulnInformationQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of VulnInformation IDs.
func (*VulnInformationQuery) IDsX ¶
func (viq *VulnInformationQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*VulnInformationQuery) Limit ¶
func (viq *VulnInformationQuery) Limit(limit int) *VulnInformationQuery
Limit the number of records to be returned by this query.
func (*VulnInformationQuery) Offset ¶
func (viq *VulnInformationQuery) Offset(offset int) *VulnInformationQuery
Offset to start from.
func (*VulnInformationQuery) Only ¶
func (viq *VulnInformationQuery) Only(ctx context.Context) (*VulnInformation, error)
Only returns a single VulnInformation entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one VulnInformation entity is found. Returns a *NotFoundError when no VulnInformation entities are found.
func (*VulnInformationQuery) OnlyID ¶
func (viq *VulnInformationQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only VulnInformation ID in the query. Returns a *NotSingularError when more than one VulnInformation ID is found. Returns a *NotFoundError when no entities are found.
func (*VulnInformationQuery) OnlyIDX ¶
func (viq *VulnInformationQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*VulnInformationQuery) OnlyX ¶
func (viq *VulnInformationQuery) OnlyX(ctx context.Context) *VulnInformation
OnlyX is like Only, but panics if an error occurs.
func (*VulnInformationQuery) Order ¶
func (viq *VulnInformationQuery) Order(o ...vulninformation.OrderOption) *VulnInformationQuery
Order specifies how the records should be ordered.
func (*VulnInformationQuery) Select ¶
func (viq *VulnInformationQuery) Select(fields ...string) *VulnInformationSelect
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 { Key string `json:"key,omitempty"` } client.VulnInformation.Query(). Select(vulninformation.FieldKey). Scan(ctx, &v)
func (*VulnInformationQuery) Unique ¶
func (viq *VulnInformationQuery) Unique(unique bool) *VulnInformationQuery
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 (*VulnInformationQuery) Where ¶
func (viq *VulnInformationQuery) Where(ps ...predicate.VulnInformation) *VulnInformationQuery
Where adds a new predicate for the VulnInformationQuery builder.
type VulnInformationSelect ¶
type VulnInformationSelect struct { *VulnInformationQuery // contains filtered or unexported fields }
VulnInformationSelect is the builder for selecting fields of VulnInformation entities.
func (*VulnInformationSelect) Aggregate ¶
func (vis *VulnInformationSelect) Aggregate(fns ...AggregateFunc) *VulnInformationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*VulnInformationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*VulnInformationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*VulnInformationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*VulnInformationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*VulnInformationSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*VulnInformationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*VulnInformationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*VulnInformationSelect) Scan ¶
func (vis *VulnInformationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*VulnInformationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type VulnInformationUpdate ¶
type VulnInformationUpdate struct {
// contains filtered or unexported fields
}
VulnInformationUpdate is the builder for updating VulnInformation entities.
func (*VulnInformationUpdate) AppendGithubSearch ¶ added in v1.1.0
func (viu *VulnInformationUpdate) AppendGithubSearch(s []string) *VulnInformationUpdate
AppendGithubSearch appends s to the "github_search" field.
func (*VulnInformationUpdate) AppendReferences ¶
func (viu *VulnInformationUpdate) AppendReferences(s []string) *VulnInformationUpdate
AppendReferences appends s to the "references" field.
func (*VulnInformationUpdate) AppendTags ¶
func (viu *VulnInformationUpdate) AppendTags(s []string) *VulnInformationUpdate
AppendTags appends s to the "tags" field.
func (*VulnInformationUpdate) ClearGithubSearch ¶ added in v1.1.0
func (viu *VulnInformationUpdate) ClearGithubSearch() *VulnInformationUpdate
ClearGithubSearch clears the value of the "github_search" field.
func (*VulnInformationUpdate) ClearReferences ¶
func (viu *VulnInformationUpdate) ClearReferences() *VulnInformationUpdate
ClearReferences clears the value of the "references" field.
func (*VulnInformationUpdate) ClearTags ¶
func (viu *VulnInformationUpdate) ClearTags() *VulnInformationUpdate
ClearTags clears the value of the "tags" field.
func (*VulnInformationUpdate) Exec ¶
func (viu *VulnInformationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*VulnInformationUpdate) ExecX ¶
func (viu *VulnInformationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationUpdate) Mutation ¶
func (viu *VulnInformationUpdate) Mutation() *VulnInformationMutation
Mutation returns the VulnInformationMutation object of the builder.
func (*VulnInformationUpdate) Save ¶
func (viu *VulnInformationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*VulnInformationUpdate) SaveX ¶
func (viu *VulnInformationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*VulnInformationUpdate) SetCve ¶
func (viu *VulnInformationUpdate) SetCve(s string) *VulnInformationUpdate
SetCve sets the "cve" field.
func (*VulnInformationUpdate) SetDescription ¶
func (viu *VulnInformationUpdate) SetDescription(s string) *VulnInformationUpdate
SetDescription sets the "description" field.
func (*VulnInformationUpdate) SetDisclosure ¶
func (viu *VulnInformationUpdate) SetDisclosure(s string) *VulnInformationUpdate
SetDisclosure sets the "disclosure" field.
func (*VulnInformationUpdate) SetFrom ¶
func (viu *VulnInformationUpdate) SetFrom(s string) *VulnInformationUpdate
SetFrom sets the "from" field.
func (*VulnInformationUpdate) SetGithubSearch ¶ added in v1.1.0
func (viu *VulnInformationUpdate) SetGithubSearch(s []string) *VulnInformationUpdate
SetGithubSearch sets the "github_search" field.
func (*VulnInformationUpdate) SetKey ¶
func (viu *VulnInformationUpdate) SetKey(s string) *VulnInformationUpdate
SetKey sets the "key" field.
func (*VulnInformationUpdate) SetNillableCve ¶
func (viu *VulnInformationUpdate) SetNillableCve(s *string) *VulnInformationUpdate
SetNillableCve sets the "cve" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillableDescription ¶
func (viu *VulnInformationUpdate) SetNillableDescription(s *string) *VulnInformationUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillableDisclosure ¶
func (viu *VulnInformationUpdate) SetNillableDisclosure(s *string) *VulnInformationUpdate
SetNillableDisclosure sets the "disclosure" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillableFrom ¶
func (viu *VulnInformationUpdate) SetNillableFrom(s *string) *VulnInformationUpdate
SetNillableFrom sets the "from" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillablePushed ¶ added in v0.3.0
func (viu *VulnInformationUpdate) SetNillablePushed(b *bool) *VulnInformationUpdate
SetNillablePushed sets the "pushed" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillableSeverity ¶
func (viu *VulnInformationUpdate) SetNillableSeverity(s *string) *VulnInformationUpdate
SetNillableSeverity sets the "severity" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillableSolutions ¶
func (viu *VulnInformationUpdate) SetNillableSolutions(s *string) *VulnInformationUpdate
SetNillableSolutions sets the "solutions" field if the given value is not nil.
func (*VulnInformationUpdate) SetNillableTitle ¶
func (viu *VulnInformationUpdate) SetNillableTitle(s *string) *VulnInformationUpdate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*VulnInformationUpdate) SetPushed ¶ added in v0.3.0
func (viu *VulnInformationUpdate) SetPushed(b bool) *VulnInformationUpdate
SetPushed sets the "pushed" field.
func (*VulnInformationUpdate) SetReferences ¶
func (viu *VulnInformationUpdate) SetReferences(s []string) *VulnInformationUpdate
SetReferences sets the "references" field.
func (*VulnInformationUpdate) SetSeverity ¶
func (viu *VulnInformationUpdate) SetSeverity(s string) *VulnInformationUpdate
SetSeverity sets the "severity" field.
func (*VulnInformationUpdate) SetSolutions ¶
func (viu *VulnInformationUpdate) SetSolutions(s string) *VulnInformationUpdate
SetSolutions sets the "solutions" field.
func (*VulnInformationUpdate) SetTags ¶
func (viu *VulnInformationUpdate) SetTags(s []string) *VulnInformationUpdate
SetTags sets the "tags" field.
func (*VulnInformationUpdate) SetTitle ¶
func (viu *VulnInformationUpdate) SetTitle(s string) *VulnInformationUpdate
SetTitle sets the "title" field.
func (*VulnInformationUpdate) SetUpdateTime ¶ added in v1.1.0
func (viu *VulnInformationUpdate) SetUpdateTime(t time.Time) *VulnInformationUpdate
SetUpdateTime sets the "update_time" field.
func (*VulnInformationUpdate) Where ¶
func (viu *VulnInformationUpdate) Where(ps ...predicate.VulnInformation) *VulnInformationUpdate
Where appends a list predicates to the VulnInformationUpdate builder.
type VulnInformationUpdateOne ¶
type VulnInformationUpdateOne struct {
// contains filtered or unexported fields
}
VulnInformationUpdateOne is the builder for updating a single VulnInformation entity.
func (*VulnInformationUpdateOne) AppendGithubSearch ¶ added in v1.1.0
func (viuo *VulnInformationUpdateOne) AppendGithubSearch(s []string) *VulnInformationUpdateOne
AppendGithubSearch appends s to the "github_search" field.
func (*VulnInformationUpdateOne) AppendReferences ¶
func (viuo *VulnInformationUpdateOne) AppendReferences(s []string) *VulnInformationUpdateOne
AppendReferences appends s to the "references" field.
func (*VulnInformationUpdateOne) AppendTags ¶
func (viuo *VulnInformationUpdateOne) AppendTags(s []string) *VulnInformationUpdateOne
AppendTags appends s to the "tags" field.
func (*VulnInformationUpdateOne) ClearGithubSearch ¶ added in v1.1.0
func (viuo *VulnInformationUpdateOne) ClearGithubSearch() *VulnInformationUpdateOne
ClearGithubSearch clears the value of the "github_search" field.
func (*VulnInformationUpdateOne) ClearReferences ¶
func (viuo *VulnInformationUpdateOne) ClearReferences() *VulnInformationUpdateOne
ClearReferences clears the value of the "references" field.
func (*VulnInformationUpdateOne) ClearTags ¶
func (viuo *VulnInformationUpdateOne) ClearTags() *VulnInformationUpdateOne
ClearTags clears the value of the "tags" field.
func (*VulnInformationUpdateOne) Exec ¶
func (viuo *VulnInformationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*VulnInformationUpdateOne) ExecX ¶
func (viuo *VulnInformationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationUpdateOne) Mutation ¶
func (viuo *VulnInformationUpdateOne) Mutation() *VulnInformationMutation
Mutation returns the VulnInformationMutation object of the builder.
func (*VulnInformationUpdateOne) Save ¶
func (viuo *VulnInformationUpdateOne) Save(ctx context.Context) (*VulnInformation, error)
Save executes the query and returns the updated VulnInformation entity.
func (*VulnInformationUpdateOne) SaveX ¶
func (viuo *VulnInformationUpdateOne) SaveX(ctx context.Context) *VulnInformation
SaveX is like Save, but panics if an error occurs.
func (*VulnInformationUpdateOne) Select ¶
func (viuo *VulnInformationUpdateOne) Select(field string, fields ...string) *VulnInformationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*VulnInformationUpdateOne) SetCve ¶
func (viuo *VulnInformationUpdateOne) SetCve(s string) *VulnInformationUpdateOne
SetCve sets the "cve" field.
func (*VulnInformationUpdateOne) SetDescription ¶
func (viuo *VulnInformationUpdateOne) SetDescription(s string) *VulnInformationUpdateOne
SetDescription sets the "description" field.
func (*VulnInformationUpdateOne) SetDisclosure ¶
func (viuo *VulnInformationUpdateOne) SetDisclosure(s string) *VulnInformationUpdateOne
SetDisclosure sets the "disclosure" field.
func (*VulnInformationUpdateOne) SetFrom ¶
func (viuo *VulnInformationUpdateOne) SetFrom(s string) *VulnInformationUpdateOne
SetFrom sets the "from" field.
func (*VulnInformationUpdateOne) SetGithubSearch ¶ added in v1.1.0
func (viuo *VulnInformationUpdateOne) SetGithubSearch(s []string) *VulnInformationUpdateOne
SetGithubSearch sets the "github_search" field.
func (*VulnInformationUpdateOne) SetKey ¶
func (viuo *VulnInformationUpdateOne) SetKey(s string) *VulnInformationUpdateOne
SetKey sets the "key" field.
func (*VulnInformationUpdateOne) SetNillableCve ¶
func (viuo *VulnInformationUpdateOne) SetNillableCve(s *string) *VulnInformationUpdateOne
SetNillableCve sets the "cve" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillableDescription ¶
func (viuo *VulnInformationUpdateOne) SetNillableDescription(s *string) *VulnInformationUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillableDisclosure ¶
func (viuo *VulnInformationUpdateOne) SetNillableDisclosure(s *string) *VulnInformationUpdateOne
SetNillableDisclosure sets the "disclosure" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillableFrom ¶
func (viuo *VulnInformationUpdateOne) SetNillableFrom(s *string) *VulnInformationUpdateOne
SetNillableFrom sets the "from" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillablePushed ¶ added in v0.3.0
func (viuo *VulnInformationUpdateOne) SetNillablePushed(b *bool) *VulnInformationUpdateOne
SetNillablePushed sets the "pushed" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillableSeverity ¶
func (viuo *VulnInformationUpdateOne) SetNillableSeverity(s *string) *VulnInformationUpdateOne
SetNillableSeverity sets the "severity" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillableSolutions ¶
func (viuo *VulnInformationUpdateOne) SetNillableSolutions(s *string) *VulnInformationUpdateOne
SetNillableSolutions sets the "solutions" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetNillableTitle ¶
func (viuo *VulnInformationUpdateOne) SetNillableTitle(s *string) *VulnInformationUpdateOne
SetNillableTitle sets the "title" field if the given value is not nil.
func (*VulnInformationUpdateOne) SetPushed ¶ added in v0.3.0
func (viuo *VulnInformationUpdateOne) SetPushed(b bool) *VulnInformationUpdateOne
SetPushed sets the "pushed" field.
func (*VulnInformationUpdateOne) SetReferences ¶
func (viuo *VulnInformationUpdateOne) SetReferences(s []string) *VulnInformationUpdateOne
SetReferences sets the "references" field.
func (*VulnInformationUpdateOne) SetSeverity ¶
func (viuo *VulnInformationUpdateOne) SetSeverity(s string) *VulnInformationUpdateOne
SetSeverity sets the "severity" field.
func (*VulnInformationUpdateOne) SetSolutions ¶
func (viuo *VulnInformationUpdateOne) SetSolutions(s string) *VulnInformationUpdateOne
SetSolutions sets the "solutions" field.
func (*VulnInformationUpdateOne) SetTags ¶
func (viuo *VulnInformationUpdateOne) SetTags(s []string) *VulnInformationUpdateOne
SetTags sets the "tags" field.
func (*VulnInformationUpdateOne) SetTitle ¶
func (viuo *VulnInformationUpdateOne) SetTitle(s string) *VulnInformationUpdateOne
SetTitle sets the "title" field.
func (*VulnInformationUpdateOne) SetUpdateTime ¶ added in v1.1.0
func (viuo *VulnInformationUpdateOne) SetUpdateTime(t time.Time) *VulnInformationUpdateOne
SetUpdateTime sets the "update_time" field.
func (*VulnInformationUpdateOne) Where ¶
func (viuo *VulnInformationUpdateOne) Where(ps ...predicate.VulnInformation) *VulnInformationUpdateOne
Where appends a list predicates to the VulnInformationUpdate builder.
type VulnInformationUpsert ¶
VulnInformationUpsert is the "OnConflict" setter.
func (*VulnInformationUpsert) ClearGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsert) ClearGithubSearch() *VulnInformationUpsert
ClearGithubSearch clears the value of the "github_search" field.
func (*VulnInformationUpsert) ClearReferences ¶
func (u *VulnInformationUpsert) ClearReferences() *VulnInformationUpsert
ClearReferences clears the value of the "references" field.
func (*VulnInformationUpsert) ClearTags ¶
func (u *VulnInformationUpsert) ClearTags() *VulnInformationUpsert
ClearTags clears the value of the "tags" field.
func (*VulnInformationUpsert) SetCve ¶
func (u *VulnInformationUpsert) SetCve(v string) *VulnInformationUpsert
SetCve sets the "cve" field.
func (*VulnInformationUpsert) SetDescription ¶
func (u *VulnInformationUpsert) SetDescription(v string) *VulnInformationUpsert
SetDescription sets the "description" field.
func (*VulnInformationUpsert) SetDisclosure ¶
func (u *VulnInformationUpsert) SetDisclosure(v string) *VulnInformationUpsert
SetDisclosure sets the "disclosure" field.
func (*VulnInformationUpsert) SetFrom ¶
func (u *VulnInformationUpsert) SetFrom(v string) *VulnInformationUpsert
SetFrom sets the "from" field.
func (*VulnInformationUpsert) SetGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsert) SetGithubSearch(v []string) *VulnInformationUpsert
SetGithubSearch sets the "github_search" field.
func (*VulnInformationUpsert) SetKey ¶
func (u *VulnInformationUpsert) SetKey(v string) *VulnInformationUpsert
SetKey sets the "key" field.
func (*VulnInformationUpsert) SetPushed ¶ added in v0.3.0
func (u *VulnInformationUpsert) SetPushed(v bool) *VulnInformationUpsert
SetPushed sets the "pushed" field.
func (*VulnInformationUpsert) SetReferences ¶
func (u *VulnInformationUpsert) SetReferences(v []string) *VulnInformationUpsert
SetReferences sets the "references" field.
func (*VulnInformationUpsert) SetSeverity ¶
func (u *VulnInformationUpsert) SetSeverity(v string) *VulnInformationUpsert
SetSeverity sets the "severity" field.
func (*VulnInformationUpsert) SetSolutions ¶
func (u *VulnInformationUpsert) SetSolutions(v string) *VulnInformationUpsert
SetSolutions sets the "solutions" field.
func (*VulnInformationUpsert) SetTags ¶
func (u *VulnInformationUpsert) SetTags(v []string) *VulnInformationUpsert
SetTags sets the "tags" field.
func (*VulnInformationUpsert) SetTitle ¶
func (u *VulnInformationUpsert) SetTitle(v string) *VulnInformationUpsert
SetTitle sets the "title" field.
func (*VulnInformationUpsert) SetUpdateTime ¶ added in v1.1.0
func (u *VulnInformationUpsert) SetUpdateTime(v time.Time) *VulnInformationUpsert
SetUpdateTime sets the "update_time" field.
func (*VulnInformationUpsert) UpdateCve ¶
func (u *VulnInformationUpsert) UpdateCve() *VulnInformationUpsert
UpdateCve sets the "cve" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateDescription ¶
func (u *VulnInformationUpsert) UpdateDescription() *VulnInformationUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateDisclosure ¶
func (u *VulnInformationUpsert) UpdateDisclosure() *VulnInformationUpsert
UpdateDisclosure sets the "disclosure" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateFrom ¶
func (u *VulnInformationUpsert) UpdateFrom() *VulnInformationUpsert
UpdateFrom sets the "from" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsert) UpdateGithubSearch() *VulnInformationUpsert
UpdateGithubSearch sets the "github_search" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateKey ¶
func (u *VulnInformationUpsert) UpdateKey() *VulnInformationUpsert
UpdateKey sets the "key" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdatePushed ¶ added in v0.3.0
func (u *VulnInformationUpsert) UpdatePushed() *VulnInformationUpsert
UpdatePushed sets the "pushed" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateReferences ¶
func (u *VulnInformationUpsert) UpdateReferences() *VulnInformationUpsert
UpdateReferences sets the "references" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateSeverity ¶
func (u *VulnInformationUpsert) UpdateSeverity() *VulnInformationUpsert
UpdateSeverity sets the "severity" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateSolutions ¶
func (u *VulnInformationUpsert) UpdateSolutions() *VulnInformationUpsert
UpdateSolutions sets the "solutions" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateTags ¶
func (u *VulnInformationUpsert) UpdateTags() *VulnInformationUpsert
UpdateTags sets the "tags" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateTitle ¶
func (u *VulnInformationUpsert) UpdateTitle() *VulnInformationUpsert
UpdateTitle sets the "title" field to the value that was provided on create.
func (*VulnInformationUpsert) UpdateUpdateTime ¶ added in v1.1.0
func (u *VulnInformationUpsert) UpdateUpdateTime() *VulnInformationUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type VulnInformationUpsertBulk ¶
type VulnInformationUpsertBulk struct {
// contains filtered or unexported fields
}
VulnInformationUpsertBulk is the builder for "upsert"-ing a bulk of VulnInformation nodes.
func (*VulnInformationUpsertBulk) ClearGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsertBulk) ClearGithubSearch() *VulnInformationUpsertBulk
ClearGithubSearch clears the value of the "github_search" field.
func (*VulnInformationUpsertBulk) ClearReferences ¶
func (u *VulnInformationUpsertBulk) ClearReferences() *VulnInformationUpsertBulk
ClearReferences clears the value of the "references" field.
func (*VulnInformationUpsertBulk) ClearTags ¶
func (u *VulnInformationUpsertBulk) ClearTags() *VulnInformationUpsertBulk
ClearTags clears the value of the "tags" field.
func (*VulnInformationUpsertBulk) DoNothing ¶
func (u *VulnInformationUpsertBulk) DoNothing() *VulnInformationUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*VulnInformationUpsertBulk) Exec ¶
func (u *VulnInformationUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*VulnInformationUpsertBulk) ExecX ¶
func (u *VulnInformationUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationUpsertBulk) Ignore ¶
func (u *VulnInformationUpsertBulk) Ignore() *VulnInformationUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.VulnInformation.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*VulnInformationUpsertBulk) SetCve ¶
func (u *VulnInformationUpsertBulk) SetCve(v string) *VulnInformationUpsertBulk
SetCve sets the "cve" field.
func (*VulnInformationUpsertBulk) SetDescription ¶
func (u *VulnInformationUpsertBulk) SetDescription(v string) *VulnInformationUpsertBulk
SetDescription sets the "description" field.
func (*VulnInformationUpsertBulk) SetDisclosure ¶
func (u *VulnInformationUpsertBulk) SetDisclosure(v string) *VulnInformationUpsertBulk
SetDisclosure sets the "disclosure" field.
func (*VulnInformationUpsertBulk) SetFrom ¶
func (u *VulnInformationUpsertBulk) SetFrom(v string) *VulnInformationUpsertBulk
SetFrom sets the "from" field.
func (*VulnInformationUpsertBulk) SetGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsertBulk) SetGithubSearch(v []string) *VulnInformationUpsertBulk
SetGithubSearch sets the "github_search" field.
func (*VulnInformationUpsertBulk) SetKey ¶
func (u *VulnInformationUpsertBulk) SetKey(v string) *VulnInformationUpsertBulk
SetKey sets the "key" field.
func (*VulnInformationUpsertBulk) SetPushed ¶ added in v0.3.0
func (u *VulnInformationUpsertBulk) SetPushed(v bool) *VulnInformationUpsertBulk
SetPushed sets the "pushed" field.
func (*VulnInformationUpsertBulk) SetReferences ¶
func (u *VulnInformationUpsertBulk) SetReferences(v []string) *VulnInformationUpsertBulk
SetReferences sets the "references" field.
func (*VulnInformationUpsertBulk) SetSeverity ¶
func (u *VulnInformationUpsertBulk) SetSeverity(v string) *VulnInformationUpsertBulk
SetSeverity sets the "severity" field.
func (*VulnInformationUpsertBulk) SetSolutions ¶
func (u *VulnInformationUpsertBulk) SetSolutions(v string) *VulnInformationUpsertBulk
SetSolutions sets the "solutions" field.
func (*VulnInformationUpsertBulk) SetTags ¶
func (u *VulnInformationUpsertBulk) SetTags(v []string) *VulnInformationUpsertBulk
SetTags sets the "tags" field.
func (*VulnInformationUpsertBulk) SetTitle ¶
func (u *VulnInformationUpsertBulk) SetTitle(v string) *VulnInformationUpsertBulk
SetTitle sets the "title" field.
func (*VulnInformationUpsertBulk) SetUpdateTime ¶ added in v1.1.0
func (u *VulnInformationUpsertBulk) SetUpdateTime(v time.Time) *VulnInformationUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*VulnInformationUpsertBulk) Update ¶
func (u *VulnInformationUpsertBulk) Update(set func(*VulnInformationUpsert)) *VulnInformationUpsertBulk
Update allows overriding fields `UPDATE` values. See the VulnInformationCreateBulk.OnConflict documentation for more info.
func (*VulnInformationUpsertBulk) UpdateCve ¶
func (u *VulnInformationUpsertBulk) UpdateCve() *VulnInformationUpsertBulk
UpdateCve sets the "cve" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateDescription ¶
func (u *VulnInformationUpsertBulk) UpdateDescription() *VulnInformationUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateDisclosure ¶
func (u *VulnInformationUpsertBulk) UpdateDisclosure() *VulnInformationUpsertBulk
UpdateDisclosure sets the "disclosure" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateFrom ¶
func (u *VulnInformationUpsertBulk) UpdateFrom() *VulnInformationUpsertBulk
UpdateFrom sets the "from" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsertBulk) UpdateGithubSearch() *VulnInformationUpsertBulk
UpdateGithubSearch sets the "github_search" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateKey ¶
func (u *VulnInformationUpsertBulk) UpdateKey() *VulnInformationUpsertBulk
UpdateKey sets the "key" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateNewValues ¶
func (u *VulnInformationUpsertBulk) UpdateNewValues() *VulnInformationUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.VulnInformation.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*VulnInformationUpsertBulk) UpdatePushed ¶ added in v0.3.0
func (u *VulnInformationUpsertBulk) UpdatePushed() *VulnInformationUpsertBulk
UpdatePushed sets the "pushed" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateReferences ¶
func (u *VulnInformationUpsertBulk) UpdateReferences() *VulnInformationUpsertBulk
UpdateReferences sets the "references" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateSeverity ¶
func (u *VulnInformationUpsertBulk) UpdateSeverity() *VulnInformationUpsertBulk
UpdateSeverity sets the "severity" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateSolutions ¶
func (u *VulnInformationUpsertBulk) UpdateSolutions() *VulnInformationUpsertBulk
UpdateSolutions sets the "solutions" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateTags ¶
func (u *VulnInformationUpsertBulk) UpdateTags() *VulnInformationUpsertBulk
UpdateTags sets the "tags" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateTitle ¶
func (u *VulnInformationUpsertBulk) UpdateTitle() *VulnInformationUpsertBulk
UpdateTitle sets the "title" field to the value that was provided on create.
func (*VulnInformationUpsertBulk) UpdateUpdateTime ¶ added in v1.1.0
func (u *VulnInformationUpsertBulk) UpdateUpdateTime() *VulnInformationUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type VulnInformationUpsertOne ¶
type VulnInformationUpsertOne struct {
// contains filtered or unexported fields
}
VulnInformationUpsertOne is the builder for "upsert"-ing
one VulnInformation node.
func (*VulnInformationUpsertOne) ClearGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsertOne) ClearGithubSearch() *VulnInformationUpsertOne
ClearGithubSearch clears the value of the "github_search" field.
func (*VulnInformationUpsertOne) ClearReferences ¶
func (u *VulnInformationUpsertOne) ClearReferences() *VulnInformationUpsertOne
ClearReferences clears the value of the "references" field.
func (*VulnInformationUpsertOne) ClearTags ¶
func (u *VulnInformationUpsertOne) ClearTags() *VulnInformationUpsertOne
ClearTags clears the value of the "tags" field.
func (*VulnInformationUpsertOne) DoNothing ¶
func (u *VulnInformationUpsertOne) DoNothing() *VulnInformationUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*VulnInformationUpsertOne) Exec ¶
func (u *VulnInformationUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*VulnInformationUpsertOne) ExecX ¶
func (u *VulnInformationUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VulnInformationUpsertOne) ID ¶
func (u *VulnInformationUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*VulnInformationUpsertOne) IDX ¶
func (u *VulnInformationUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*VulnInformationUpsertOne) Ignore ¶
func (u *VulnInformationUpsertOne) Ignore() *VulnInformationUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.VulnInformation.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*VulnInformationUpsertOne) SetCve ¶
func (u *VulnInformationUpsertOne) SetCve(v string) *VulnInformationUpsertOne
SetCve sets the "cve" field.
func (*VulnInformationUpsertOne) SetDescription ¶
func (u *VulnInformationUpsertOne) SetDescription(v string) *VulnInformationUpsertOne
SetDescription sets the "description" field.
func (*VulnInformationUpsertOne) SetDisclosure ¶
func (u *VulnInformationUpsertOne) SetDisclosure(v string) *VulnInformationUpsertOne
SetDisclosure sets the "disclosure" field.
func (*VulnInformationUpsertOne) SetFrom ¶
func (u *VulnInformationUpsertOne) SetFrom(v string) *VulnInformationUpsertOne
SetFrom sets the "from" field.
func (*VulnInformationUpsertOne) SetGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsertOne) SetGithubSearch(v []string) *VulnInformationUpsertOne
SetGithubSearch sets the "github_search" field.
func (*VulnInformationUpsertOne) SetKey ¶
func (u *VulnInformationUpsertOne) SetKey(v string) *VulnInformationUpsertOne
SetKey sets the "key" field.
func (*VulnInformationUpsertOne) SetPushed ¶ added in v0.3.0
func (u *VulnInformationUpsertOne) SetPushed(v bool) *VulnInformationUpsertOne
SetPushed sets the "pushed" field.
func (*VulnInformationUpsertOne) SetReferences ¶
func (u *VulnInformationUpsertOne) SetReferences(v []string) *VulnInformationUpsertOne
SetReferences sets the "references" field.
func (*VulnInformationUpsertOne) SetSeverity ¶
func (u *VulnInformationUpsertOne) SetSeverity(v string) *VulnInformationUpsertOne
SetSeverity sets the "severity" field.
func (*VulnInformationUpsertOne) SetSolutions ¶
func (u *VulnInformationUpsertOne) SetSolutions(v string) *VulnInformationUpsertOne
SetSolutions sets the "solutions" field.
func (*VulnInformationUpsertOne) SetTags ¶
func (u *VulnInformationUpsertOne) SetTags(v []string) *VulnInformationUpsertOne
SetTags sets the "tags" field.
func (*VulnInformationUpsertOne) SetTitle ¶
func (u *VulnInformationUpsertOne) SetTitle(v string) *VulnInformationUpsertOne
SetTitle sets the "title" field.
func (*VulnInformationUpsertOne) SetUpdateTime ¶ added in v1.1.0
func (u *VulnInformationUpsertOne) SetUpdateTime(v time.Time) *VulnInformationUpsertOne
SetUpdateTime sets the "update_time" field.
func (*VulnInformationUpsertOne) Update ¶
func (u *VulnInformationUpsertOne) Update(set func(*VulnInformationUpsert)) *VulnInformationUpsertOne
Update allows overriding fields `UPDATE` values. See the VulnInformationCreate.OnConflict documentation for more info.
func (*VulnInformationUpsertOne) UpdateCve ¶
func (u *VulnInformationUpsertOne) UpdateCve() *VulnInformationUpsertOne
UpdateCve sets the "cve" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateDescription ¶
func (u *VulnInformationUpsertOne) UpdateDescription() *VulnInformationUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateDisclosure ¶
func (u *VulnInformationUpsertOne) UpdateDisclosure() *VulnInformationUpsertOne
UpdateDisclosure sets the "disclosure" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateFrom ¶
func (u *VulnInformationUpsertOne) UpdateFrom() *VulnInformationUpsertOne
UpdateFrom sets the "from" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateGithubSearch ¶ added in v1.1.0
func (u *VulnInformationUpsertOne) UpdateGithubSearch() *VulnInformationUpsertOne
UpdateGithubSearch sets the "github_search" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateKey ¶
func (u *VulnInformationUpsertOne) UpdateKey() *VulnInformationUpsertOne
UpdateKey sets the "key" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateNewValues ¶
func (u *VulnInformationUpsertOne) UpdateNewValues() *VulnInformationUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.VulnInformation.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*VulnInformationUpsertOne) UpdatePushed ¶ added in v0.3.0
func (u *VulnInformationUpsertOne) UpdatePushed() *VulnInformationUpsertOne
UpdatePushed sets the "pushed" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateReferences ¶
func (u *VulnInformationUpsertOne) UpdateReferences() *VulnInformationUpsertOne
UpdateReferences sets the "references" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateSeverity ¶
func (u *VulnInformationUpsertOne) UpdateSeverity() *VulnInformationUpsertOne
UpdateSeverity sets the "severity" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateSolutions ¶
func (u *VulnInformationUpsertOne) UpdateSolutions() *VulnInformationUpsertOne
UpdateSolutions sets the "solutions" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateTags ¶
func (u *VulnInformationUpsertOne) UpdateTags() *VulnInformationUpsertOne
UpdateTags sets the "tags" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateTitle ¶
func (u *VulnInformationUpsertOne) UpdateTitle() *VulnInformationUpsertOne
UpdateTitle sets the "title" field to the value that was provided on create.
func (*VulnInformationUpsertOne) UpdateUpdateTime ¶ added in v1.1.0
func (u *VulnInformationUpsertOne) UpdateUpdateTime() *VulnInformationUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type VulnInformations ¶
type VulnInformations []*VulnInformation
VulnInformations is a parsable slice of VulnInformation.