Documentation ¶
Index ¶
- Variables
- func DefaultDeleteDebugging(ctx context.Context, in *Debugging, db *gorm.DB) error
- func DefaultDeleteDebuggingSet(ctx context.Context, in []*Debugging, db *gorm.DB) error
- func DefaultDeleteFinished(ctx context.Context, in *Finished, db *gorm.DB) error
- func DefaultDeleteFinishedSet(ctx context.Context, in []*Finished, db *gorm.DB) error
- func DefaultDeleteHostStats(ctx context.Context, in *HostStats, db *gorm.DB) error
- func DefaultDeleteHostStatsSet(ctx context.Context, in []*HostStats, db *gorm.DB) error
- func DefaultDeleteInfo(ctx context.Context, in *Info, db *gorm.DB) error
- func DefaultDeleteInfoSet(ctx context.Context, in []*Info, db *gorm.DB) error
- func DefaultDeleteResult(ctx context.Context, in *Result, db *gorm.DB) error
- func DefaultDeleteResultSet(ctx context.Context, in []*Result, db *gorm.DB) error
- func DefaultDeleteRun(ctx context.Context, in *Run, db *gorm.DB) error
- func DefaultDeleteRunSet(ctx context.Context, in []*Run, db *gorm.DB) error
- func DefaultDeleteStats(ctx context.Context, in *Stats, db *gorm.DB) error
- func DefaultDeleteStatsSet(ctx context.Context, in []*Stats, db *gorm.DB) error
- func DefaultDeleteTarget(ctx context.Context, in *Target, db *gorm.DB) error
- func DefaultDeleteTargetSet(ctx context.Context, in []*Target, db *gorm.DB) error
- func DefaultDeleteTask(ctx context.Context, in *Task, db *gorm.DB) error
- func DefaultDeleteTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) error
- func DefaultDeleteTaskProgressSet(ctx context.Context, in []*TaskProgress, db *gorm.DB) error
- func DefaultDeleteTaskSet(ctx context.Context, in []*Task, db *gorm.DB) error
- func DefaultDeleteVerbose(ctx context.Context, in *Verbose, db *gorm.DB) error
- func DefaultDeleteVerboseSet(ctx context.Context, in []*Verbose, db *gorm.DB) error
- type Debugging
- func DefaultApplyFieldMaskDebugging(ctx context.Context, patchee *Debugging, patcher *Debugging, ...) (*Debugging, error)
- func DefaultCreateDebugging(ctx context.Context, in *Debugging, db *gorm.DB) (*Debugging, error)
- func DefaultListDebugging(ctx context.Context, db *gorm.DB) ([]*Debugging, error)
- func DefaultPatchDebugging(ctx context.Context, in *Debugging, updateMask *field_mask.FieldMask, ...) (*Debugging, error)
- func DefaultPatchSetDebugging(ctx context.Context, objects []*Debugging, updateMasks []*field_mask.FieldMask, ...) ([]*Debugging, error)
- func DefaultReadDebugging(ctx context.Context, in *Debugging, db *gorm.DB) (*Debugging, error)
- func DefaultStrictUpdateDebugging(ctx context.Context, in *Debugging, db *gorm.DB) (*Debugging, error)
- func (*Debugging) Descriptor() ([]byte, []int)deprecated
- func (x *Debugging) GetId() string
- func (x *Debugging) GetLevel() int32
- func (*Debugging) ProtoMessage()
- func (x *Debugging) ProtoReflect() protoreflect.Message
- func (x *Debugging) Reset()
- func (x *Debugging) String() string
- func (m *Debugging) ToORM(ctx context.Context) (DebuggingORM, error)
- type DebuggingORM
- type DebuggingORMWithAfterCreate_
- type DebuggingORMWithAfterDeleteSet
- type DebuggingORMWithAfterDelete_
- type DebuggingORMWithAfterListFind
- type DebuggingORMWithAfterReadFind
- type DebuggingORMWithAfterStrictUpdateSave
- type DebuggingORMWithBeforeCreate_
- type DebuggingORMWithBeforeDeleteSet
- type DebuggingORMWithBeforeDelete_
- type DebuggingORMWithBeforeListApplyQuery
- type DebuggingORMWithBeforeListFind
- type DebuggingORMWithBeforeReadApplyQuery
- type DebuggingORMWithBeforeReadFind
- type DebuggingORMWithBeforeStrictUpdateCleanup
- type DebuggingORMWithBeforeStrictUpdateSave
- type DebuggingWithAfterPatchSave
- type DebuggingWithAfterToORM
- type DebuggingWithAfterToPB
- type DebuggingWithBeforePatchApplyFieldMask
- type DebuggingWithBeforePatchRead
- type DebuggingWithBeforePatchSave
- type DebuggingWithBeforeToORM
- type DebuggingWithBeforeToPB
- type Finished
- func DefaultApplyFieldMaskFinished(ctx context.Context, patchee *Finished, patcher *Finished, ...) (*Finished, error)
- func DefaultCreateFinished(ctx context.Context, in *Finished, db *gorm.DB) (*Finished, error)
- func DefaultListFinished(ctx context.Context, db *gorm.DB) ([]*Finished, error)
- func DefaultPatchFinished(ctx context.Context, in *Finished, updateMask *field_mask.FieldMask, ...) (*Finished, error)
- func DefaultPatchSetFinished(ctx context.Context, objects []*Finished, updateMasks []*field_mask.FieldMask, ...) ([]*Finished, error)
- func DefaultReadFinished(ctx context.Context, in *Finished, db *gorm.DB) (*Finished, error)
- func DefaultStrictUpdateFinished(ctx context.Context, in *Finished, db *gorm.DB) (*Finished, error)
- func (*Finished) Descriptor() ([]byte, []int)deprecated
- func (x *Finished) GetElapsed() float32
- func (x *Finished) GetErrorMsg() string
- func (x *Finished) GetExit() string
- func (x *Finished) GetId() string
- func (x *Finished) GetSummary() string
- func (x *Finished) GetTime() int64
- func (x *Finished) GetTimeStr() string
- func (*Finished) ProtoMessage()
- func (x *Finished) ProtoReflect() protoreflect.Message
- func (x *Finished) Reset()
- func (x *Finished) String() string
- func (m *Finished) ToORM(ctx context.Context) (FinishedORM, error)
- type FinishedORM
- type FinishedORMWithAfterCreate_
- type FinishedORMWithAfterDeleteSet
- type FinishedORMWithAfterDelete_
- type FinishedORMWithAfterListFind
- type FinishedORMWithAfterReadFind
- type FinishedORMWithAfterStrictUpdateSave
- type FinishedORMWithBeforeCreate_
- type FinishedORMWithBeforeDeleteSet
- type FinishedORMWithBeforeDelete_
- type FinishedORMWithBeforeListApplyQuery
- type FinishedORMWithBeforeListFind
- type FinishedORMWithBeforeReadApplyQuery
- type FinishedORMWithBeforeReadFind
- type FinishedORMWithBeforeStrictUpdateCleanup
- type FinishedORMWithBeforeStrictUpdateSave
- type FinishedWithAfterPatchSave
- type FinishedWithAfterToORM
- type FinishedWithAfterToPB
- type FinishedWithBeforePatchApplyFieldMask
- type FinishedWithBeforePatchRead
- type FinishedWithBeforePatchSave
- type FinishedWithBeforeToORM
- type FinishedWithBeforeToPB
- type HostStats
- func DefaultApplyFieldMaskHostStats(ctx context.Context, patchee *HostStats, patcher *HostStats, ...) (*HostStats, error)
- func DefaultCreateHostStats(ctx context.Context, in *HostStats, db *gorm.DB) (*HostStats, error)
- func DefaultListHostStats(ctx context.Context, db *gorm.DB) ([]*HostStats, error)
- func DefaultPatchHostStats(ctx context.Context, in *HostStats, updateMask *field_mask.FieldMask, ...) (*HostStats, error)
- func DefaultPatchSetHostStats(ctx context.Context, objects []*HostStats, updateMasks []*field_mask.FieldMask, ...) ([]*HostStats, error)
- func DefaultReadHostStats(ctx context.Context, in *HostStats, db *gorm.DB) (*HostStats, error)
- func DefaultStrictUpdateHostStats(ctx context.Context, in *HostStats, db *gorm.DB) (*HostStats, error)
- func (*HostStats) Descriptor() ([]byte, []int)deprecated
- func (x *HostStats) GetDown() int32
- func (x *HostStats) GetId() string
- func (x *HostStats) GetTotal() int32
- func (x *HostStats) GetUp() int32
- func (*HostStats) ProtoMessage()
- func (x *HostStats) ProtoReflect() protoreflect.Message
- func (x *HostStats) Reset()
- func (x *HostStats) String() string
- func (m *HostStats) ToORM(ctx context.Context) (HostStatsORM, error)
- type HostStatsORM
- type HostStatsORMWithAfterCreate_
- type HostStatsORMWithAfterDeleteSet
- type HostStatsORMWithAfterDelete_
- type HostStatsORMWithAfterListFind
- type HostStatsORMWithAfterReadFind
- type HostStatsORMWithAfterStrictUpdateSave
- type HostStatsORMWithBeforeCreate_
- type HostStatsORMWithBeforeDeleteSet
- type HostStatsORMWithBeforeDelete_
- type HostStatsORMWithBeforeListApplyQuery
- type HostStatsORMWithBeforeListFind
- type HostStatsORMWithBeforeReadApplyQuery
- type HostStatsORMWithBeforeReadFind
- type HostStatsORMWithBeforeStrictUpdateCleanup
- type HostStatsORMWithBeforeStrictUpdateSave
- type HostStatsWithAfterPatchSave
- type HostStatsWithAfterToORM
- type HostStatsWithAfterToPB
- type HostStatsWithBeforePatchApplyFieldMask
- type HostStatsWithBeforePatchRead
- type HostStatsWithBeforePatchSave
- type HostStatsWithBeforeToORM
- type HostStatsWithBeforeToPB
- type Info
- func DefaultApplyFieldMaskInfo(ctx context.Context, patchee *Info, patcher *Info, ...) (*Info, error)
- func DefaultCreateInfo(ctx context.Context, in *Info, db *gorm.DB) (*Info, error)
- func DefaultListInfo(ctx context.Context, db *gorm.DB) ([]*Info, error)
- func DefaultPatchInfo(ctx context.Context, in *Info, updateMask *field_mask.FieldMask, db *gorm.DB) (*Info, error)
- func DefaultPatchSetInfo(ctx context.Context, objects []*Info, updateMasks []*field_mask.FieldMask, ...) ([]*Info, error)
- func DefaultReadInfo(ctx context.Context, in *Info, db *gorm.DB) (*Info, error)
- func DefaultStrictUpdateInfo(ctx context.Context, in *Info, db *gorm.DB) (*Info, error)
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (x *Info) GetId() string
- func (x *Info) GetNumServices() int32
- func (x *Info) GetProtocol() string
- func (x *Info) GetScanFlags() string
- func (x *Info) GetServices() string
- func (x *Info) GetType() string
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- func (m *Info) ToORM(ctx context.Context) (InfoORM, error)
- type InfoORM
- type InfoORMWithAfterCreate_
- type InfoORMWithAfterDeleteSet
- type InfoORMWithAfterDelete_
- type InfoORMWithAfterListFind
- type InfoORMWithAfterReadFind
- type InfoORMWithAfterStrictUpdateSave
- type InfoORMWithBeforeCreate_
- type InfoORMWithBeforeDeleteSet
- type InfoORMWithBeforeDelete_
- type InfoORMWithBeforeListApplyQuery
- type InfoORMWithBeforeListFind
- type InfoORMWithBeforeReadApplyQuery
- type InfoORMWithBeforeReadFind
- type InfoORMWithBeforeStrictUpdateCleanup
- type InfoORMWithBeforeStrictUpdateSave
- type InfoWithAfterPatchSave
- type InfoWithAfterToORM
- type InfoWithAfterToPB
- type InfoWithBeforePatchApplyFieldMask
- type InfoWithBeforePatchRead
- type InfoWithBeforePatchSave
- type InfoWithBeforeToORM
- type InfoWithBeforeToPB
- type Result
- func DefaultApplyFieldMaskResult(ctx context.Context, patchee *Result, patcher *Result, ...) (*Result, error)
- func DefaultCreateResult(ctx context.Context, in *Result, db *gorm.DB) (*Result, error)
- func DefaultListResult(ctx context.Context, db *gorm.DB) ([]*Result, error)
- func DefaultPatchResult(ctx context.Context, in *Result, updateMask *field_mask.FieldMask, db *gorm.DB) (*Result, error)
- func DefaultPatchSetResult(ctx context.Context, objects []*Result, updateMasks []*field_mask.FieldMask, ...) ([]*Result, error)
- func DefaultReadResult(ctx context.Context, in *Result, db *gorm.DB) (*Result, error)
- func DefaultStrictUpdateResult(ctx context.Context, in *Result, db *gorm.DB) (*Result, error)
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetAddress() *network.Address
- func (x *Result) GetData() string
- func (x *Result) GetHost() *host.Host
- func (x *Result) GetId() string
- func (x *Result) GetPort() *host.Port
- func (x *Result) GetService() *network.Service
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- func (m *Result) ToORM(ctx context.Context) (ResultORM, error)
- type ResultORM
- type ResultORMWithAfterCreate_
- type ResultORMWithAfterDeleteSet
- type ResultORMWithAfterDelete_
- type ResultORMWithAfterListFind
- type ResultORMWithAfterReadFind
- type ResultORMWithAfterStrictUpdateSave
- type ResultORMWithBeforeCreate_
- type ResultORMWithBeforeDeleteSet
- type ResultORMWithBeforeDelete_
- type ResultORMWithBeforeListApplyQuery
- type ResultORMWithBeforeListFind
- type ResultORMWithBeforeReadApplyQuery
- type ResultORMWithBeforeReadFind
- type ResultORMWithBeforeStrictUpdateCleanup
- type ResultORMWithBeforeStrictUpdateSave
- type ResultWithAfterPatchSave
- type ResultWithAfterToORM
- type ResultWithAfterToPB
- type ResultWithBeforePatchApplyFieldMask
- type ResultWithBeforePatchRead
- type ResultWithBeforePatchSave
- type ResultWithBeforeToORM
- type ResultWithBeforeToPB
- type Run
- func DefaultApplyFieldMaskRun(ctx context.Context, patchee *Run, patcher *Run, ...) (*Run, error)
- func DefaultCreateRun(ctx context.Context, in *Run, db *gorm.DB) (*Run, error)
- func DefaultListRun(ctx context.Context, db *gorm.DB) ([]*Run, error)
- func DefaultPatchRun(ctx context.Context, in *Run, updateMask *field_mask.FieldMask, db *gorm.DB) (*Run, error)
- func DefaultPatchSetRun(ctx context.Context, objects []*Run, updateMasks []*field_mask.FieldMask, ...) ([]*Run, error)
- func DefaultReadRun(ctx context.Context, in *Run, db *gorm.DB) (*Run, error)
- func DefaultStrictUpdateRun(ctx context.Context, in *Run, db *gorm.DB) (*Run, error)
- func (*Run) Descriptor() ([]byte, []int)deprecated
- func (x *Run) GetArgs() string
- func (x *Run) GetBegin() []*Task
- func (x *Run) GetCreatedAt() *timestamppb.Timestamp
- func (x *Run) GetDebugging() *Debugging
- func (x *Run) GetEnd() []*Task
- func (x *Run) GetHostId() string
- func (x *Run) GetHosts() []*host.Host
- func (x *Run) GetId() string
- func (x *Run) GetInfo() *Info
- func (x *Run) GetNmapErrors() []string
- func (x *Run) GetPostScripts() []*nmap.Script
- func (x *Run) GetPreScripts() []*nmap.Script
- func (x *Run) GetProfileName() string
- func (x *Run) GetProgress() []*TaskProgress
- func (x *Run) GetRawXML() string
- func (x *Run) GetResults() []*Result
- func (x *Run) GetScanner() string
- func (x *Run) GetSessionId() string
- func (x *Run) GetStart() int64
- func (x *Run) GetStartStr() string
- func (x *Run) GetStats() *Stats
- func (x *Run) GetTargets() []*Target
- func (x *Run) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Run) GetVerbose() *Verbose
- func (x *Run) GetVersion() string
- func (x *Run) GetXMLOutputVersion() string
- func (*Run) ProtoMessage()
- func (x *Run) ProtoReflect() protoreflect.Message
- func (x *Run) Reset()
- func (x *Run) String() string
- func (m *Run) ToORM(ctx context.Context) (RunORM, error)
- type RunORM
- type RunORMWithAfterCreate_
- type RunORMWithAfterDeleteSet
- type RunORMWithAfterDelete_
- type RunORMWithAfterListFind
- type RunORMWithAfterReadFind
- type RunORMWithAfterStrictUpdateSave
- type RunORMWithBeforeCreate_
- type RunORMWithBeforeDeleteSet
- type RunORMWithBeforeDelete_
- type RunORMWithBeforeListApplyQuery
- type RunORMWithBeforeListFind
- type RunORMWithBeforeReadApplyQuery
- type RunORMWithBeforeReadFind
- type RunORMWithBeforeStrictUpdateCleanup
- type RunORMWithBeforeStrictUpdateSave
- type RunWithAfterPatchSave
- type RunWithAfterToORM
- type RunWithAfterToPB
- type RunWithBeforePatchApplyFieldMask
- type RunWithBeforePatchRead
- type RunWithBeforePatchSave
- type RunWithBeforeToORM
- type RunWithBeforeToPB
- type Stats
- func DefaultApplyFieldMaskStats(ctx context.Context, patchee *Stats, patcher *Stats, ...) (*Stats, error)
- func DefaultCreateStats(ctx context.Context, in *Stats, db *gorm.DB) (*Stats, error)
- func DefaultListStats(ctx context.Context, db *gorm.DB) ([]*Stats, error)
- func DefaultPatchSetStats(ctx context.Context, objects []*Stats, updateMasks []*field_mask.FieldMask, ...) ([]*Stats, error)
- func DefaultPatchStats(ctx context.Context, in *Stats, updateMask *field_mask.FieldMask, db *gorm.DB) (*Stats, error)
- func DefaultReadStats(ctx context.Context, in *Stats, db *gorm.DB) (*Stats, error)
- func DefaultStrictUpdateStats(ctx context.Context, in *Stats, db *gorm.DB) (*Stats, error)
- func (*Stats) Descriptor() ([]byte, []int)deprecated
- func (x *Stats) GetFinished() *Finished
- func (x *Stats) GetHosts() *HostStats
- func (x *Stats) GetId() string
- func (*Stats) ProtoMessage()
- func (x *Stats) ProtoReflect() protoreflect.Message
- func (x *Stats) Reset()
- func (x *Stats) String() string
- func (m *Stats) ToORM(ctx context.Context) (StatsORM, error)
- type StatsORM
- type StatsORMWithAfterCreate_
- type StatsORMWithAfterDeleteSet
- type StatsORMWithAfterDelete_
- type StatsORMWithAfterListFind
- type StatsORMWithAfterReadFind
- type StatsORMWithAfterStrictUpdateSave
- type StatsORMWithBeforeCreate_
- type StatsORMWithBeforeDeleteSet
- type StatsORMWithBeforeDelete_
- type StatsORMWithBeforeListApplyQuery
- type StatsORMWithBeforeListFind
- type StatsORMWithBeforeReadApplyQuery
- type StatsORMWithBeforeReadFind
- type StatsORMWithBeforeStrictUpdateCleanup
- type StatsORMWithBeforeStrictUpdateSave
- type StatsWithAfterPatchSave
- type StatsWithAfterToORM
- type StatsWithAfterToPB
- type StatsWithBeforePatchApplyFieldMask
- type StatsWithBeforePatchRead
- type StatsWithBeforePatchSave
- type StatsWithBeforeToORM
- type StatsWithBeforeToPB
- type Target
- func DefaultApplyFieldMaskTarget(ctx context.Context, patchee *Target, patcher *Target, ...) (*Target, error)
- func DefaultCreateTarget(ctx context.Context, in *Target, db *gorm.DB) (*Target, error)
- func DefaultListTarget(ctx context.Context, db *gorm.DB) ([]*Target, error)
- func DefaultPatchSetTarget(ctx context.Context, objects []*Target, updateMasks []*field_mask.FieldMask, ...) ([]*Target, error)
- func DefaultPatchTarget(ctx context.Context, in *Target, updateMask *field_mask.FieldMask, db *gorm.DB) (*Target, error)
- func DefaultReadTarget(ctx context.Context, in *Target, db *gorm.DB) (*Target, error)
- func DefaultStrictUpdateTarget(ctx context.Context, in *Target, db *gorm.DB) (*Target, error)
- func (*Target) Descriptor() ([]byte, []int)deprecated
- func (x *Target) GetAddress() string
- func (x *Target) GetDomain() string
- func (x *Target) GetId() string
- func (x *Target) GetPort() uint32
- func (x *Target) GetReason() string
- func (x *Target) GetSpecification() string
- func (x *Target) GetStatus() string
- func (x *Target) GetTag() string
- func (*Target) ProtoMessage()
- func (x *Target) ProtoReflect() protoreflect.Message
- func (x *Target) Reset()
- func (x *Target) String() string
- func (m *Target) ToORM(ctx context.Context) (TargetORM, error)
- type TargetORM
- type TargetORMWithAfterCreate_
- type TargetORMWithAfterDeleteSet
- type TargetORMWithAfterDelete_
- type TargetORMWithAfterListFind
- type TargetORMWithAfterReadFind
- type TargetORMWithAfterStrictUpdateSave
- type TargetORMWithBeforeCreate_
- type TargetORMWithBeforeDeleteSet
- type TargetORMWithBeforeDelete_
- type TargetORMWithBeforeListApplyQuery
- type TargetORMWithBeforeListFind
- type TargetORMWithBeforeReadApplyQuery
- type TargetORMWithBeforeReadFind
- type TargetORMWithBeforeStrictUpdateCleanup
- type TargetORMWithBeforeStrictUpdateSave
- type TargetWithAfterPatchSave
- type TargetWithAfterToORM
- type TargetWithAfterToPB
- type TargetWithBeforePatchApplyFieldMask
- type TargetWithBeforePatchRead
- type TargetWithBeforePatchSave
- type TargetWithBeforeToORM
- type TargetWithBeforeToPB
- type Task
- func DefaultApplyFieldMaskTask(ctx context.Context, patchee *Task, patcher *Task, ...) (*Task, error)
- func DefaultCreateTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)
- func DefaultListTask(ctx context.Context, db *gorm.DB) ([]*Task, error)
- func DefaultPatchSetTask(ctx context.Context, objects []*Task, updateMasks []*field_mask.FieldMask, ...) ([]*Task, error)
- func DefaultPatchTask(ctx context.Context, in *Task, updateMask *field_mask.FieldMask, db *gorm.DB) (*Task, error)
- func DefaultReadTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)
- func DefaultStrictUpdateTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetExtraInfo() string
- func (x *Task) GetId() string
- func (x *Task) GetTask() string
- func (x *Task) GetTime() int64
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- func (m *Task) ToORM(ctx context.Context) (TaskORM, error)
- type TaskORM
- type TaskORMWithAfterCreate_
- type TaskORMWithAfterDeleteSet
- type TaskORMWithAfterDelete_
- type TaskORMWithAfterListFind
- type TaskORMWithAfterReadFind
- type TaskORMWithAfterStrictUpdateSave
- type TaskORMWithBeforeCreate_
- type TaskORMWithBeforeDeleteSet
- type TaskORMWithBeforeDelete_
- type TaskORMWithBeforeListApplyQuery
- type TaskORMWithBeforeListFind
- type TaskORMWithBeforeReadApplyQuery
- type TaskORMWithBeforeReadFind
- type TaskORMWithBeforeStrictUpdateCleanup
- type TaskORMWithBeforeStrictUpdateSave
- type TaskProgress
- func DefaultApplyFieldMaskTaskProgress(ctx context.Context, patchee *TaskProgress, patcher *TaskProgress, ...) (*TaskProgress, error)
- func DefaultCreateTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) (*TaskProgress, error)
- func DefaultListTaskProgress(ctx context.Context, db *gorm.DB) ([]*TaskProgress, error)
- func DefaultPatchSetTaskProgress(ctx context.Context, objects []*TaskProgress, ...) ([]*TaskProgress, error)
- func DefaultPatchTaskProgress(ctx context.Context, in *TaskProgress, updateMask *field_mask.FieldMask, ...) (*TaskProgress, error)
- func DefaultReadTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) (*TaskProgress, error)
- func DefaultStrictUpdateTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) (*TaskProgress, error)
- func (*TaskProgress) Descriptor() ([]byte, []int)deprecated
- func (x *TaskProgress) GetEtc() int64
- func (x *TaskProgress) GetId() string
- func (x *TaskProgress) GetPercent() float32
- func (x *TaskProgress) GetRemaining() int32
- func (x *TaskProgress) GetTask() string
- func (x *TaskProgress) GetTime() int64
- func (*TaskProgress) ProtoMessage()
- func (x *TaskProgress) ProtoReflect() protoreflect.Message
- func (x *TaskProgress) Reset()
- func (x *TaskProgress) String() string
- func (m *TaskProgress) ToORM(ctx context.Context) (TaskProgressORM, error)
- type TaskProgressORM
- type TaskProgressORMWithAfterCreate_
- type TaskProgressORMWithAfterDeleteSet
- type TaskProgressORMWithAfterDelete_
- type TaskProgressORMWithAfterListFind
- type TaskProgressORMWithAfterReadFind
- type TaskProgressORMWithAfterStrictUpdateSave
- type TaskProgressORMWithBeforeCreate_
- type TaskProgressORMWithBeforeDeleteSet
- type TaskProgressORMWithBeforeDelete_
- type TaskProgressORMWithBeforeListApplyQuery
- type TaskProgressORMWithBeforeListFind
- type TaskProgressORMWithBeforeReadApplyQuery
- type TaskProgressORMWithBeforeReadFind
- type TaskProgressORMWithBeforeStrictUpdateCleanup
- type TaskProgressORMWithBeforeStrictUpdateSave
- type TaskProgressWithAfterPatchSave
- type TaskProgressWithAfterToORM
- type TaskProgressWithAfterToPB
- type TaskProgressWithBeforePatchApplyFieldMask
- type TaskProgressWithBeforePatchRead
- type TaskProgressWithBeforePatchSave
- type TaskProgressWithBeforeToORM
- type TaskProgressWithBeforeToPB
- type TaskWithAfterPatchSave
- type TaskWithAfterToORM
- type TaskWithAfterToPB
- type TaskWithBeforePatchApplyFieldMask
- type TaskWithBeforePatchRead
- type TaskWithBeforePatchSave
- type TaskWithBeforeToORM
- type TaskWithBeforeToPB
- type Verbose
- func DefaultApplyFieldMaskVerbose(ctx context.Context, patchee *Verbose, patcher *Verbose, ...) (*Verbose, error)
- func DefaultCreateVerbose(ctx context.Context, in *Verbose, db *gorm.DB) (*Verbose, error)
- func DefaultListVerbose(ctx context.Context, db *gorm.DB) ([]*Verbose, error)
- func DefaultPatchSetVerbose(ctx context.Context, objects []*Verbose, updateMasks []*field_mask.FieldMask, ...) ([]*Verbose, error)
- func DefaultPatchVerbose(ctx context.Context, in *Verbose, updateMask *field_mask.FieldMask, ...) (*Verbose, error)
- func DefaultReadVerbose(ctx context.Context, in *Verbose, db *gorm.DB) (*Verbose, error)
- func DefaultStrictUpdateVerbose(ctx context.Context, in *Verbose, db *gorm.DB) (*Verbose, error)
- func (*Verbose) Descriptor() ([]byte, []int)deprecated
- func (x *Verbose) GetId() string
- func (x *Verbose) GetLevel() int32
- func (*Verbose) ProtoMessage()
- func (x *Verbose) ProtoReflect() protoreflect.Message
- func (x *Verbose) Reset()
- func (x *Verbose) String() string
- func (m *Verbose) ToORM(ctx context.Context) (VerboseORM, error)
- type VerboseORM
- type VerboseORMWithAfterCreate_
- type VerboseORMWithAfterDeleteSet
- type VerboseORMWithAfterDelete_
- type VerboseORMWithAfterListFind
- type VerboseORMWithAfterReadFind
- type VerboseORMWithAfterStrictUpdateSave
- type VerboseORMWithBeforeCreate_
- type VerboseORMWithBeforeDeleteSet
- type VerboseORMWithBeforeDelete_
- type VerboseORMWithBeforeListApplyQuery
- type VerboseORMWithBeforeListFind
- type VerboseORMWithBeforeReadApplyQuery
- type VerboseORMWithBeforeReadFind
- type VerboseORMWithBeforeStrictUpdateCleanup
- type VerboseORMWithBeforeStrictUpdateSave
- type VerboseWithAfterPatchSave
- type VerboseWithAfterToORM
- type VerboseWithAfterToPB
- type VerboseWithBeforePatchApplyFieldMask
- type VerboseWithBeforePatchRead
- type VerboseWithBeforePatchSave
- type VerboseWithBeforeToORM
- type VerboseWithBeforeToPB
Constants ¶
This section is empty.
Variables ¶
var File_scan_result_proto protoreflect.FileDescriptor
var File_scan_scan_proto protoreflect.FileDescriptor
Functions ¶
func DefaultDeleteDebugging ¶
func DefaultDeleteFinished ¶
func DefaultDeleteHostStats ¶
func DefaultDeleteInfoSet ¶
func DefaultDeleteResult ¶
func DefaultDeleteResultSet ¶
func DefaultDeleteRunSet ¶
func DefaultDeleteStats ¶
func DefaultDeleteStatsSet ¶
func DefaultDeleteTarget ¶
func DefaultDeleteTargetSet ¶
func DefaultDeleteTaskSet ¶
func DefaultDeleteVerbose ¶
Types ¶
type Debugging ¶
type Debugging struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"level,attr" Level int32 `protobuf:"varint,10,opt,name=Level,proto3" json:"Level,omitempty" xml:"level,attr"` // contains filtered or unexported fields }
Debugging - Contains the debugging level of the scan
func DefaultApplyFieldMaskDebugging ¶
func DefaultApplyFieldMaskDebugging(ctx context.Context, patchee *Debugging, patcher *Debugging, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Debugging, error)
DefaultApplyFieldMaskDebugging patches an pbObject with patcher according to a field mask.
func DefaultCreateDebugging ¶
DefaultCreateDebugging executes a basic gorm create call
func DefaultListDebugging ¶
DefaultListDebugging executes a gorm list call
func DefaultPatchDebugging ¶
func DefaultPatchDebugging(ctx context.Context, in *Debugging, updateMask *field_mask.FieldMask, db *gorm.DB) (*Debugging, error)
DefaultPatchDebugging executes a basic gorm update call with patch behavior
func DefaultPatchSetDebugging ¶
func DefaultPatchSetDebugging(ctx context.Context, objects []*Debugging, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Debugging, error)
DefaultPatchSetDebugging executes a bulk gorm update call with patch behavior
func DefaultReadDebugging ¶
func DefaultStrictUpdateDebugging ¶
func DefaultStrictUpdateDebugging(ctx context.Context, in *Debugging, db *gorm.DB) (*Debugging, error)
DefaultStrictUpdateDebugging clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Debugging) Descriptor
deprecated
func (*Debugging) ProtoMessage ¶
func (*Debugging) ProtoMessage()
func (*Debugging) ProtoReflect ¶
func (x *Debugging) ProtoReflect() protoreflect.Message
type DebuggingORM ¶
func (*DebuggingORM) BeforeCreate ¶
func (debugging *DebuggingORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (DebuggingORM) TableName ¶
func (DebuggingORM) TableName() string
TableName overrides the default tablename generated by GORM
type DebuggingWithAfterToORM ¶
type DebuggingWithAfterToORM interface {
AfterToORM(context.Context, *DebuggingORM) error
}
DebuggingAfterToORM called after default ToORM code
type DebuggingWithAfterToPB ¶
DebuggingAfterToPB called after default ToPB code
type DebuggingWithBeforeToORM ¶
type DebuggingWithBeforeToORM interface {
BeforeToORM(context.Context, *DebuggingORM) error
}
DebuggingBeforeToORM called before default ToORM code
type DebuggingWithBeforeToPB ¶
DebuggingBeforeToPB called before default ToPB code
type Finished ¶
type Finished struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"time,attr" Time int64 `protobuf:"varint,10,opt,name=Time,proto3" json:"Time,omitempty" xml:"time,attr"` // @gotags: xml:"timestr,attr" TimeStr string `protobuf:"bytes,11,opt,name=TimeStr,proto3" json:"TimeStr,omitempty" xml:"timestr,attr"` // @gotags: xml:"elapsed,attr" Elapsed float32 `protobuf:"fixed32,12,opt,name=Elapsed,proto3" json:"Elapsed,omitempty" xml:"elapsed,attr"` // @gotags: xml:"summary,attr" Summary string `protobuf:"bytes,13,opt,name=Summary,proto3" json:"Summary,omitempty" xml:"summary,attr"` // @gotags: xml:"exit,attr" Exit string `protobuf:"bytes,14,opt,name=Exit,proto3" json:"Exit,omitempty" xml:"exit,attr"` // @gotags: xml:"errormsg,attr" ErrorMsg string `protobuf:"bytes,15,opt,name=ErrorMsg,proto3" json:"ErrorMsg,omitempty" xml:"errormsg,attr"` // contains filtered or unexported fields }
Finished - Statistics for a Scan after it has run.
func DefaultApplyFieldMaskFinished ¶
func DefaultApplyFieldMaskFinished(ctx context.Context, patchee *Finished, patcher *Finished, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Finished, error)
DefaultApplyFieldMaskFinished patches an pbObject with patcher according to a field mask.
func DefaultCreateFinished ¶
DefaultCreateFinished executes a basic gorm create call
func DefaultListFinished ¶
DefaultListFinished executes a gorm list call
func DefaultPatchFinished ¶
func DefaultPatchFinished(ctx context.Context, in *Finished, updateMask *field_mask.FieldMask, db *gorm.DB) (*Finished, error)
DefaultPatchFinished executes a basic gorm update call with patch behavior
func DefaultPatchSetFinished ¶
func DefaultPatchSetFinished(ctx context.Context, objects []*Finished, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Finished, error)
DefaultPatchSetFinished executes a bulk gorm update call with patch behavior
func DefaultReadFinished ¶
func DefaultStrictUpdateFinished ¶
DefaultStrictUpdateFinished clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Finished) Descriptor
deprecated
func (*Finished) GetElapsed ¶
func (*Finished) GetErrorMsg ¶
func (*Finished) GetSummary ¶
func (*Finished) GetTimeStr ¶
func (*Finished) ProtoMessage ¶
func (*Finished) ProtoMessage()
func (*Finished) ProtoReflect ¶
func (x *Finished) ProtoReflect() protoreflect.Message
type FinishedORM ¶
type FinishedORM struct { Elapsed float32 ErrorMsg string Exit string Id string `gorm:"type:uuid;primary_key"` StatsId *string Summary string Time int64 TimeStr string }
func (*FinishedORM) BeforeCreate ¶
func (finished *FinishedORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (FinishedORM) TableName ¶
func (FinishedORM) TableName() string
TableName overrides the default tablename generated by GORM
type FinishedWithAfterToORM ¶
type FinishedWithAfterToORM interface {
AfterToORM(context.Context, *FinishedORM) error
}
FinishedAfterToORM called after default ToORM code
type FinishedWithAfterToPB ¶
FinishedAfterToPB called after default ToPB code
type FinishedWithBeforeToORM ¶
type FinishedWithBeforeToORM interface {
BeforeToORM(context.Context, *FinishedORM) error
}
FinishedBeforeToORM called before default ToORM code
type FinishedWithBeforeToPB ¶
FinishedBeforeToPB called before default ToPB code
type HostStats ¶
type HostStats struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"up,attr" Up int32 `protobuf:"varint,10,opt,name=Up,proto3" json:"Up,omitempty" xml:"up,attr"` // @gotags: xml:"down,attr" Down int32 `protobuf:"varint,11,opt,name=Down,proto3" json:"Down,omitempty" xml:"down,attr"` // @gotags: xml:"total,attr" Total int32 `protobuf:"varint,12,opt,name=Total,proto3" json:"Total,omitempty" xml:"total,attr"` // contains filtered or unexported fields }
Host - Contains the amount of up/down hosts and total count
func DefaultApplyFieldMaskHostStats ¶
func DefaultApplyFieldMaskHostStats(ctx context.Context, patchee *HostStats, patcher *HostStats, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*HostStats, error)
DefaultApplyFieldMaskHostStats patches an pbObject with patcher according to a field mask.
func DefaultCreateHostStats ¶
DefaultCreateHostStats executes a basic gorm create call
func DefaultListHostStats ¶
DefaultListHostStats executes a gorm list call
func DefaultPatchHostStats ¶
func DefaultPatchHostStats(ctx context.Context, in *HostStats, updateMask *field_mask.FieldMask, db *gorm.DB) (*HostStats, error)
DefaultPatchHostStats executes a basic gorm update call with patch behavior
func DefaultPatchSetHostStats ¶
func DefaultPatchSetHostStats(ctx context.Context, objects []*HostStats, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*HostStats, error)
DefaultPatchSetHostStats executes a bulk gorm update call with patch behavior
func DefaultReadHostStats ¶
func DefaultStrictUpdateHostStats ¶
func DefaultStrictUpdateHostStats(ctx context.Context, in *HostStats, db *gorm.DB) (*HostStats, error)
DefaultStrictUpdateHostStats clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*HostStats) Descriptor
deprecated
func (*HostStats) ProtoMessage ¶
func (*HostStats) ProtoMessage()
func (*HostStats) ProtoReflect ¶
func (x *HostStats) ProtoReflect() protoreflect.Message
type HostStatsORM ¶
type HostStatsORM struct { Down int32 Id string `gorm:"type:uuid;primary_key"` StatsId *string Total int32 Up int32 }
func (*HostStatsORM) BeforeCreate ¶
func (hoststats *HostStatsORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (HostStatsORM) TableName ¶
func (HostStatsORM) TableName() string
TableName overrides the default tablename generated by GORM
type HostStatsWithAfterToORM ¶
type HostStatsWithAfterToORM interface {
AfterToORM(context.Context, *HostStatsORM) error
}
HostStatsAfterToORM called after default ToORM code
type HostStatsWithAfterToPB ¶
HostStatsAfterToPB called after default ToPB code
type HostStatsWithBeforeToORM ¶
type HostStatsWithBeforeToORM interface {
BeforeToORM(context.Context, *HostStatsORM) error
}
HostStatsBeforeToORM called before default ToORM code
type HostStatsWithBeforeToPB ¶
HostStatsBeforeToPB called before default ToPB code
type Info ¶
type Info struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"numservices,attr" NumServices int32 `protobuf:"varint,10,opt,name=NumServices,proto3" json:"NumServices,omitempty" xml:"numservices,attr"` // @gotags: xml:"protocol,attr" Protocol string `protobuf:"bytes,11,opt,name=Protocol,proto3" json:"Protocol,omitempty" xml:"protocol,attr"` // @gotags: xml:"scanflags,attr" ScanFlags string `protobuf:"bytes,12,opt,name=ScanFlags,proto3" json:"ScanFlags,omitempty" xml:"scanflags,attr"` // @gotags: xml:"services,attr" Services string `protobuf:"bytes,13,opt,name=Services,proto3" json:"Services,omitempty" xml:"services,attr"` // @gotags: xml:"type,attr" Type string `protobuf:"bytes,14,opt,name=Type,proto3" json:"Type,omitempty" xml:"type,attr"` // contains filtered or unexported fields }
Info - A general overview of a Scan, with basic information on targeted/found services, protocols and flags.
func DefaultApplyFieldMaskInfo ¶
func DefaultApplyFieldMaskInfo(ctx context.Context, patchee *Info, patcher *Info, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Info, error)
DefaultApplyFieldMaskInfo patches an pbObject with patcher according to a field mask.
func DefaultCreateInfo ¶
DefaultCreateInfo executes a basic gorm create call
func DefaultListInfo ¶
DefaultListInfo executes a gorm list call
func DefaultPatchInfo ¶
func DefaultPatchInfo(ctx context.Context, in *Info, updateMask *field_mask.FieldMask, db *gorm.DB) (*Info, error)
DefaultPatchInfo executes a basic gorm update call with patch behavior
func DefaultPatchSetInfo ¶
func DefaultPatchSetInfo(ctx context.Context, objects []*Info, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Info, error)
DefaultPatchSetInfo executes a bulk gorm update call with patch behavior
func DefaultReadInfo ¶
func DefaultStrictUpdateInfo ¶
DefaultStrictUpdateInfo clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Info) Descriptor
deprecated
func (*Info) GetNumServices ¶
func (*Info) GetProtocol ¶
func (*Info) GetScanFlags ¶
func (*Info) GetServices ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
type InfoORM ¶
type InfoORM struct { Id string `gorm:"type:uuid;primary_key"` NumServices int32 Protocol string ScanFlags string Services string Type string }
func (*InfoORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type InfoORMWithAfterCreate_ ¶
type InfoORMWithAfterDelete_ ¶
type InfoWithAfterPatchSave ¶
type InfoWithAfterToORM ¶
InfoAfterToORM called after default ToORM code
type InfoWithAfterToPB ¶
InfoAfterToPB called after default ToPB code
type InfoWithBeforePatchRead ¶
type InfoWithBeforePatchSave ¶
type InfoWithBeforeToORM ¶
InfoBeforeToORM called before default ToORM code
type InfoWithBeforeToPB ¶
InfoBeforeToPB called before default ToPB code
type Result ¶
type Result struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Host *host.Host `protobuf:"bytes,2,opt,name=Host,proto3" json:"Host,omitempty"` Address *network.Address `protobuf:"bytes,3,opt,name=Address,proto3" json:"Address,omitempty"` Port *host.Port `protobuf:"bytes,4,opt,name=Port,proto3" json:"Port,omitempty"` Service *network.Service `protobuf:"bytes,5,opt,name=Service,proto3" json:"Service,omitempty"` // Data - The output data of a scan for a given protocol/service, // eg. if the scan is an SSH one, this will contain the SSH result. // If you pass your service-specific results in there, be sure to // add a branch case in the Go scan package, in which you populate // the entity tree with it. Data string `protobuf:"bytes,10,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
Result - A type containing various objects that are outputs of a scan. It has only one .Target, which theoretically means that we must have n Results for n Targets. This type is to be created from and used by a scan.Run type, which has various methods to set up, populate, curate and save the data from a complete Scan, sometimes concurrently. A Result is not meant to be saved in a database: it is only used as a feeder type for the scan.Run.
func DefaultApplyFieldMaskResult ¶
func DefaultApplyFieldMaskResult(ctx context.Context, patchee *Result, patcher *Result, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Result, error)
DefaultApplyFieldMaskResult patches an pbObject with patcher according to a field mask.
func DefaultCreateResult ¶
DefaultCreateResult executes a basic gorm create call
func DefaultListResult ¶
DefaultListResult executes a gorm list call
func DefaultPatchResult ¶
func DefaultPatchResult(ctx context.Context, in *Result, updateMask *field_mask.FieldMask, db *gorm.DB) (*Result, error)
DefaultPatchResult executes a basic gorm update call with patch behavior
func DefaultPatchSetResult ¶
func DefaultPatchSetResult(ctx context.Context, objects []*Result, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Result, error)
DefaultPatchSetResult executes a bulk gorm update call with patch behavior
func DefaultReadResult ¶
func DefaultStrictUpdateResult ¶
DefaultStrictUpdateResult clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Result) Descriptor
deprecated
func (*Result) GetAddress ¶
func (*Result) GetService ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type ResultORM ¶
type ResultORM struct { Address *network.AddressORM `gorm:"foreignkey:AddressId;association_foreignkey:Id"` AddressId *string Data string Host *host.HostORM `gorm:"foreignkey:HostId;association_foreignkey:Id"` HostId *string Id string `gorm:"type:uuid;primary_key"` Port *host.PortORM `gorm:"foreignkey:PortId;association_foreignkey:Id"` PortId *string Service *network.ServiceORM `gorm:"foreignkey:ServiceId;association_foreignkey:Id"` ServiceId *string }
func (*ResultORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type ResultWithAfterToORM ¶
ResultAfterToORM called after default ToORM code
type ResultWithAfterToPB ¶
ResultAfterToPB called after default ToPB code
type ResultWithBeforeToORM ¶
ResultBeforeToORM called before default ToORM code
type ResultWithBeforeToPB ¶
ResultBeforeToPB called before default ToPB code
type Run ¶
type Run struct { // @gotags: display:"ID" readonly:"true" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true"` // @gotags: display:"Created at" readonly:"true" xml:"-" CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty" display:"Created at" readonly:"true" xml:"-"` // @gotags: display:"Updated at" readonly:"true" xml:"-" UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty" display:"Updated at" readonly:"true" xml:"-"` // An optional session from which the scan runs. SessionId string `protobuf:"bytes,8,opt,name=SessionId,proto3" json:"SessionId,omitempty"` // An optional host (on which is a session/beacon) from which the scan runs. HostId string `protobuf:"bytes,9,opt,name=HostId,proto3" json:"HostId,omitempty"` // Nmap -------------------------------- // @gotags: xml:"args,attr" Args string `protobuf:"bytes,10,opt,name=Args,proto3" json:"Args,omitempty" xml:"args,attr"` // @gotags: xml:"profile_name,attr" ProfileName string `protobuf:"bytes,11,opt,name=ProfileName,proto3" json:"ProfileName,omitempty" xml:"profile_name,attr"` // @gotags: xml:"scanner,attr" Scanner string `protobuf:"bytes,12,opt,name=Scanner,proto3" json:"Scanner,omitempty" xml:"scanner,attr"` // @gotags: xml:"startstr,attr" StartStr string `protobuf:"bytes,13,opt,name=StartStr,proto3" json:"StartStr,omitempty" xml:"startstr,attr"` // @gotags: xml:"version,attr" Version string `protobuf:"bytes,14,opt,name=Version,proto3" json:"Version,omitempty" xml:"version,attr"` // @gotags: xml:"xmloutputversion,attr" XMLOutputVersion string `protobuf:"bytes,15,opt,name=XMLOutputVersion,proto3" json:"XMLOutputVersion,omitempty" xml:"xmloutputversion,attr"` // @gotags: xml:"debugging" Debugging *Debugging `protobuf:"bytes,16,opt,name=Debugging,proto3" json:"Debugging,omitempty" xml:"debugging"` // @gotags: xml:"runstats" Stats *Stats `protobuf:"bytes,17,opt,name=Stats,proto3" json:"Stats,omitempty" xml:"runstats"` // @gotags: xml:"scaninfo" Info *Info `protobuf:"bytes,18,opt,name=Info,proto3" json:"Info,omitempty" xml:"scaninfo"` // @gotags: xml:"start,attr" Start int64 `protobuf:"varint,19,opt,name=Start,proto3" json:"Start,omitempty" xml:"start,attr"` // @gotags: xml:"verbose" Verbose *Verbose `protobuf:"bytes,20,opt,name=Verbose,proto3" json:"Verbose,omitempty" xml:"verbose"` // @gotags: xml:"host" Hosts []*host.Host `protobuf:"bytes,21,rep,name=Hosts,proto3" json:"Hosts,omitempty" xml:"host"` // @gotags: xml:"prescript>script" PreScripts []*nmap.Script `protobuf:"bytes,22,rep,name=PreScripts,proto3" json:"PreScripts,omitempty" xml:"prescript>script"` // @gotags: xml:"postscript>script" PostScripts []*nmap.Script `protobuf:"bytes,23,rep,name=PostScripts,proto3" json:"PostScripts,omitempty" xml:"postscript>script"` // @gotags: xml:"target" Targets []*Target `protobuf:"bytes,24,rep,name=Targets,proto3" json:"Targets,omitempty" xml:"target"` // @gotags: xml:"taskbegin" Begin []*Task `protobuf:"bytes,25,rep,name=Begin,proto3" json:"Begin,omitempty" xml:"taskbegin"` // @gotags: xml:"taskprogress" Progress []*TaskProgress `protobuf:"bytes,26,rep,name=Progress,proto3" json:"Progress,omitempty" xml:"taskprogress"` // @gotags: xml:"taskend" End []*Task `protobuf:"bytes,27,rep,name=End,proto3" json:"End,omitempty" xml:"taskend"` NmapErrors []string `protobuf:"bytes,28,rep,name=NmapErrors,proto3" json:"NmapErrors,omitempty"` RawXML string `protobuf:"bytes,30,opt,name=RawXML,proto3" json:"RawXML,omitempty"` // Results - Generally, scans other than Nmap can produce // asynchronous results, which has a few implications: // - We can make the scan push its results to caller // - We must however build any entity tree ourselves, // with most of the nmap population not done for us, // for things like traceroutes. // // The scan.Run has methods and internal logic to deal // with populating and/or pushing and/or validating results // as they come during a scan. Results []*Result `protobuf:"bytes,40,rep,name=Results,proto3" json:"Results,omitempty"` // contains filtered or unexported fields }
Run - Represents a scan before, after or while being run. This run can be the one of any scanner: fields are not mandatorily used by all scanners for all scans, but this type gives a common tree in which to store hosts, ports, services, statistics and various other information.
func DefaultApplyFieldMaskRun ¶
func DefaultApplyFieldMaskRun(ctx context.Context, patchee *Run, patcher *Run, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Run, error)
DefaultApplyFieldMaskRun patches an pbObject with patcher according to a field mask.
func DefaultCreateRun ¶
DefaultCreateRun executes a basic gorm create call
func DefaultListRun ¶
DefaultListRun executes a gorm list call
func DefaultPatchRun ¶
func DefaultPatchRun(ctx context.Context, in *Run, updateMask *field_mask.FieldMask, db *gorm.DB) (*Run, error)
DefaultPatchRun executes a basic gorm update call with patch behavior
func DefaultPatchSetRun ¶
func DefaultPatchSetRun(ctx context.Context, objects []*Run, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Run, error)
DefaultPatchSetRun executes a bulk gorm update call with patch behavior
func DefaultStrictUpdateRun ¶
DefaultStrictUpdateRun clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Run) Descriptor
deprecated
func (*Run) GetCreatedAt ¶
func (x *Run) GetCreatedAt() *timestamppb.Timestamp
func (*Run) GetDebugging ¶
func (*Run) GetNmapErrors ¶
func (*Run) GetPostScripts ¶
func (*Run) GetPreScripts ¶
func (*Run) GetProfileName ¶
func (*Run) GetProgress ¶
func (x *Run) GetProgress() []*TaskProgress
func (*Run) GetResults ¶
func (*Run) GetScanner ¶
func (*Run) GetSessionId ¶
func (*Run) GetStartStr ¶
func (*Run) GetTargets ¶
func (*Run) GetUpdatedAt ¶
func (x *Run) GetUpdatedAt() *timestamppb.Timestamp
func (*Run) GetVerbose ¶
func (*Run) GetVersion ¶
func (*Run) GetXMLOutputVersion ¶
func (*Run) ProtoMessage ¶
func (*Run) ProtoMessage()
func (*Run) ProtoReflect ¶
func (x *Run) ProtoReflect() protoreflect.Message
type RunORM ¶
type RunORM struct { Args string Begin []*TaskORM `` /* 134-byte string literal not displayed */ CreatedAt *time.Time Debugging *DebuggingORM `gorm:"foreignkey:DebuggingId;association_foreignkey:Id"` DebuggingId *string End []*TaskORM `` /* 132-byte string literal not displayed */ HostId string Hosts []*host.HostORM `` /* 133-byte string literal not displayed */ Id string `gorm:"type:uuid;primary_key"` Info *InfoORM `gorm:"foreignkey:InfoId;association_foreignkey:Id"` InfoId *string PostScripts []*nmap.ScriptORM `` /* 142-byte string literal not displayed */ PreScripts []*nmap.ScriptORM `` /* 141-byte string literal not displayed */ ProfileName string Progress []*TaskProgressORM `` /* 151-byte string literal not displayed */ RawXML string Results []*ResultORM `` /* 137-byte string literal not displayed */ Scanner string SessionId string Start int64 StartStr string Stats *StatsORM `gorm:"foreignkey:StatsId;association_foreignkey:Id"` StatsId *string Targets []*TargetORM `` /* 137-byte string literal not displayed */ UpdatedAt *time.Time Verbose *VerboseORM `gorm:"foreignkey:VerboseId;association_foreignkey:Id"` VerboseId *string Version string XMLOutputVersion string }
func (*RunORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type RunORMWithAfterCreate_ ¶
type RunORMWithAfterDelete_ ¶
type RunORMWithAfterListFind ¶
type RunORMWithAfterReadFind ¶
type RunORMWithBeforeCreate_ ¶
type RunORMWithBeforeDelete_ ¶
type RunWithAfterPatchSave ¶
type RunWithAfterToORM ¶
RunAfterToORM called after default ToORM code
type RunWithAfterToPB ¶
RunAfterToPB called after default ToPB code
type RunWithBeforePatchRead ¶
type RunWithBeforePatchSave ¶
type RunWithBeforeToORM ¶
RunBeforeToORM called before default ToORM code
type RunWithBeforeToPB ¶
RunBeforeToPB called before default ToPB code
type Stats ¶
type Stats struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"finished" Finished *Finished `protobuf:"bytes,10,opt,name=Finished,proto3" json:"Finished,omitempty" xml:"finished"` // @gotags: xml:"hosts" Hosts *HostStats `protobuf:"bytes,11,opt,name=Hosts,proto3" json:"Hosts,omitempty" xml:"hosts"` // contains filtered or unexported fields }
Stats - Contains statistics for a Nmap scan
func DefaultApplyFieldMaskStats ¶
func DefaultApplyFieldMaskStats(ctx context.Context, patchee *Stats, patcher *Stats, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Stats, error)
DefaultApplyFieldMaskStats patches an pbObject with patcher according to a field mask.
func DefaultCreateStats ¶
DefaultCreateStats executes a basic gorm create call
func DefaultListStats ¶
DefaultListStats executes a gorm list call
func DefaultPatchSetStats ¶
func DefaultPatchSetStats(ctx context.Context, objects []*Stats, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Stats, error)
DefaultPatchSetStats executes a bulk gorm update call with patch behavior
func DefaultPatchStats ¶
func DefaultPatchStats(ctx context.Context, in *Stats, updateMask *field_mask.FieldMask, db *gorm.DB) (*Stats, error)
DefaultPatchStats executes a basic gorm update call with patch behavior
func DefaultReadStats ¶
func DefaultStrictUpdateStats ¶
DefaultStrictUpdateStats clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Stats) Descriptor
deprecated
func (*Stats) GetFinished ¶
func (*Stats) ProtoMessage ¶
func (*Stats) ProtoMessage()
func (*Stats) ProtoReflect ¶
func (x *Stats) ProtoReflect() protoreflect.Message
type StatsORM ¶
type StatsORM struct { Finished *FinishedORM `gorm:"foreignkey:StatsId;association_foreignkey:Id"` Hosts *HostStatsORM `gorm:"foreignkey:StatsId;association_foreignkey:Id"` Id string `gorm:"type:uuid;primary_key"` }
func (*StatsORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type StatsWithAfterPatchSave ¶
type StatsWithAfterToORM ¶
StatsAfterToORM called after default ToORM code
type StatsWithAfterToPB ¶
StatsAfterToPB called after default ToPB code
type StatsWithBeforeToORM ¶
StatsBeforeToORM called before default ToORM code
type StatsWithBeforeToPB ¶
StatsBeforeToPB called before default ToPB code
type Target ¶
type Target struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // Input --------------------------- Address string `protobuf:"bytes,5,opt,name=Address,proto3" json:"Address,omitempty"` Domain string `protobuf:"bytes,6,opt,name=Domain,proto3" json:"Domain,omitempty"` Tag string `protobuf:"bytes,7,opt,name=Tag,proto3" json:"Tag,omitempty"` Port uint32 `protobuf:"varint,8,opt,name=Port,proto3" json:"Port,omitempty"` // Output (Nmap) ------------------- // @gotags: xml:"specification,attr" Specification string `protobuf:"bytes,10,opt,name=Specification,proto3" json:"Specification,omitempty" xml:"specification,attr"` // @gotags: xml:"status,attr" Status string `protobuf:"bytes,11,opt,name=Status,proto3" json:"Status,omitempty" xml:"status,attr"` // @gotags: xml:"reason,attr" Reason string `protobuf:"bytes,12,opt,name=Reason,proto3" json:"Reason,omitempty" xml:"reason,attr"` // contains filtered or unexported fields }
Target - This type can be used as an Input object to a scan, in which case only the Input fields matter to you
Represents how the target was specified when passed to nmap, its status and the reason of its status. Example: <target specification="domain.does.not.exist" status="skipped" reason="invalid"/>
func DefaultApplyFieldMaskTarget ¶
func DefaultApplyFieldMaskTarget(ctx context.Context, patchee *Target, patcher *Target, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Target, error)
DefaultApplyFieldMaskTarget patches an pbObject with patcher according to a field mask.
func DefaultCreateTarget ¶
DefaultCreateTarget executes a basic gorm create call
func DefaultListTarget ¶
DefaultListTarget executes a gorm list call
func DefaultPatchSetTarget ¶
func DefaultPatchSetTarget(ctx context.Context, objects []*Target, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Target, error)
DefaultPatchSetTarget executes a bulk gorm update call with patch behavior
func DefaultPatchTarget ¶
func DefaultPatchTarget(ctx context.Context, in *Target, updateMask *field_mask.FieldMask, db *gorm.DB) (*Target, error)
DefaultPatchTarget executes a basic gorm update call with patch behavior
func DefaultReadTarget ¶
func DefaultStrictUpdateTarget ¶
DefaultStrictUpdateTarget clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Target) Descriptor
deprecated
func (*Target) GetAddress ¶
func (*Target) GetSpecification ¶
func (*Target) ProtoMessage ¶
func (*Target) ProtoMessage()
func (*Target) ProtoReflect ¶
func (x *Target) ProtoReflect() protoreflect.Message
type TargetORM ¶
type TargetORM struct { Address string Domain string Id string `gorm:"type:uuid;primary_key"` Port uint32 Reason string Specification string Status string Tag string }
func (*TargetORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type TargetWithAfterToORM ¶
TargetAfterToORM called after default ToORM code
type TargetWithAfterToPB ¶
TargetAfterToPB called after default ToPB code
type TargetWithBeforeToORM ¶
TargetBeforeToORM called before default ToORM code
type TargetWithBeforeToPB ¶
TargetBeforeToPB called before default ToPB code
type Task ¶
type Task struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"time,attr" Time int64 `protobuf:"varint,10,opt,name=Time,proto3" json:"Time,omitempty" xml:"time,attr"` // @gotags: xml:"task,attr" Task string `protobuf:"bytes,11,opt,name=Task,proto3" json:"Task,omitempty" xml:"task,attr"` // @gotags: xml:"extrainfo,attr" ExtraInfo string `protobuf:"bytes,12,opt,name=ExtraInfo,proto3" json:"ExtraInfo,omitempty" xml:"extrainfo,attr"` // contains filtered or unexported fields }
Task - Information about a task
func DefaultApplyFieldMaskTask ¶
func DefaultApplyFieldMaskTask(ctx context.Context, patchee *Task, patcher *Task, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Task, error)
DefaultApplyFieldMaskTask patches an pbObject with patcher according to a field mask.
func DefaultCreateTask ¶
DefaultCreateTask executes a basic gorm create call
func DefaultListTask ¶
DefaultListTask executes a gorm list call
func DefaultPatchSetTask ¶
func DefaultPatchSetTask(ctx context.Context, objects []*Task, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Task, error)
DefaultPatchSetTask executes a bulk gorm update call with patch behavior
func DefaultPatchTask ¶
func DefaultPatchTask(ctx context.Context, in *Task, updateMask *field_mask.FieldMask, db *gorm.DB) (*Task, error)
DefaultPatchTask executes a basic gorm update call with patch behavior
func DefaultReadTask ¶
func DefaultStrictUpdateTask ¶
DefaultStrictUpdateTask clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Task) Descriptor
deprecated
func (*Task) GetExtraInfo ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type TaskORM ¶
type TaskORM struct { ExtraInfo string Id string `gorm:"type:uuid;primary_key"` Task string Time int64 }
func (*TaskORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type TaskORMWithAfterCreate_ ¶
type TaskORMWithAfterDelete_ ¶
type TaskProgress ¶
type TaskProgress struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"percent,attr" Percent float32 `protobuf:"fixed32,10,opt,name=Percent,proto3" json:"Percent,omitempty" xml:"percent,attr"` // @gotags: xml:"remaining,attr" Remaining int32 `protobuf:"varint,11,opt,name=Remaining,proto3" json:"Remaining,omitempty" xml:"remaining,attr"` // @gotags: xml:"task,attr" Task string `protobuf:"bytes,12,opt,name=Task,proto3" json:"Task,omitempty" xml:"task,attr"` // @gotags: xml:"etc,attr" Etc int64 `protobuf:"varint,13,opt,name=Etc,proto3" json:"Etc,omitempty" xml:"etc,attr"` // @gotags: xml:"time,attr" Time int64 `protobuf:"varint,14,opt,name=Time,proto3" json:"Time,omitempty" xml:"time,attr"` // contains filtered or unexported fields }
TaskProgress - Progression of a task
func DefaultApplyFieldMaskTaskProgress ¶
func DefaultApplyFieldMaskTaskProgress(ctx context.Context, patchee *TaskProgress, patcher *TaskProgress, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*TaskProgress, error)
DefaultApplyFieldMaskTaskProgress patches an pbObject with patcher according to a field mask.
func DefaultCreateTaskProgress ¶
func DefaultCreateTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) (*TaskProgress, error)
DefaultCreateTaskProgress executes a basic gorm create call
func DefaultListTaskProgress ¶
DefaultListTaskProgress executes a gorm list call
func DefaultPatchSetTaskProgress ¶
func DefaultPatchSetTaskProgress(ctx context.Context, objects []*TaskProgress, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*TaskProgress, error)
DefaultPatchSetTaskProgress executes a bulk gorm update call with patch behavior
func DefaultPatchTaskProgress ¶
func DefaultPatchTaskProgress(ctx context.Context, in *TaskProgress, updateMask *field_mask.FieldMask, db *gorm.DB) (*TaskProgress, error)
DefaultPatchTaskProgress executes a basic gorm update call with patch behavior
func DefaultReadTaskProgress ¶
func DefaultReadTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) (*TaskProgress, error)
func DefaultStrictUpdateTaskProgress ¶
func DefaultStrictUpdateTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) (*TaskProgress, error)
DefaultStrictUpdateTaskProgress clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*TaskProgress) Descriptor
deprecated
func (*TaskProgress) Descriptor() ([]byte, []int)
Deprecated: Use TaskProgress.ProtoReflect.Descriptor instead.
func (*TaskProgress) GetEtc ¶
func (x *TaskProgress) GetEtc() int64
func (*TaskProgress) GetId ¶
func (x *TaskProgress) GetId() string
func (*TaskProgress) GetPercent ¶
func (x *TaskProgress) GetPercent() float32
func (*TaskProgress) GetRemaining ¶
func (x *TaskProgress) GetRemaining() int32
func (*TaskProgress) GetTask ¶
func (x *TaskProgress) GetTask() string
func (*TaskProgress) GetTime ¶
func (x *TaskProgress) GetTime() int64
func (*TaskProgress) ProtoMessage ¶
func (*TaskProgress) ProtoMessage()
func (*TaskProgress) ProtoReflect ¶
func (x *TaskProgress) ProtoReflect() protoreflect.Message
func (*TaskProgress) Reset ¶
func (x *TaskProgress) Reset()
func (*TaskProgress) String ¶
func (x *TaskProgress) String() string
func (*TaskProgress) ToORM ¶
func (m *TaskProgress) ToORM(ctx context.Context) (TaskProgressORM, error)
ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object
type TaskProgressORM ¶
type TaskProgressORM struct { Etc int64 Id string `gorm:"type:uuid;primary_key"` Percent float32 Remaining int32 Task string Time int64 }
func (*TaskProgressORM) BeforeCreate ¶
func (taskprogress *TaskProgressORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (TaskProgressORM) TableName ¶
func (TaskProgressORM) TableName() string
TableName overrides the default tablename generated by GORM
func (*TaskProgressORM) ToPB ¶
func (m *TaskProgressORM) ToPB(ctx context.Context) (TaskProgress, error)
ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object
type TaskProgressWithAfterPatchSave ¶
type TaskProgressWithAfterPatchSave interface {
AfterPatchSave(context.Context, *TaskProgress, *field_mask.FieldMask, *gorm.DB) error
}
type TaskProgressWithAfterToORM ¶
type TaskProgressWithAfterToORM interface {
AfterToORM(context.Context, *TaskProgressORM) error
}
TaskProgressAfterToORM called after default ToORM code
type TaskProgressWithAfterToPB ¶
type TaskProgressWithAfterToPB interface {
AfterToPB(context.Context, *TaskProgress) error
}
TaskProgressAfterToPB called after default ToPB code
type TaskProgressWithBeforePatchApplyFieldMask ¶
type TaskProgressWithBeforePatchApplyFieldMask interface {
BeforePatchApplyFieldMask(context.Context, *TaskProgress, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type TaskProgressWithBeforePatchRead ¶
type TaskProgressWithBeforePatchRead interface {
BeforePatchRead(context.Context, *TaskProgress, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type TaskProgressWithBeforePatchSave ¶
type TaskProgressWithBeforePatchSave interface {
BeforePatchSave(context.Context, *TaskProgress, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type TaskProgressWithBeforeToORM ¶
type TaskProgressWithBeforeToORM interface {
BeforeToORM(context.Context, *TaskProgressORM) error
}
TaskProgressBeforeToORM called before default ToORM code
type TaskProgressWithBeforeToPB ¶
type TaskProgressWithBeforeToPB interface {
BeforeToPB(context.Context, *TaskProgress) error
}
TaskProgressBeforeToPB called before default ToPB code
type TaskWithAfterPatchSave ¶
type TaskWithAfterToORM ¶
TaskAfterToORM called after default ToORM code
type TaskWithAfterToPB ¶
TaskAfterToPB called after default ToPB code
type TaskWithBeforePatchRead ¶
type TaskWithBeforePatchSave ¶
type TaskWithBeforeToORM ¶
TaskBeforeToORM called before default ToORM code
type TaskWithBeforeToPB ¶
TaskBeforeToPB called before default ToPB code
type Verbose ¶
type Verbose struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"level,attr" Level int32 `protobuf:"varint,10,opt,name=Level,proto3" json:"Level,omitempty" xml:"level,attr"` // contains filtered or unexported fields }
Verbose - Contains the verbosity level of the scan
func DefaultApplyFieldMaskVerbose ¶
func DefaultApplyFieldMaskVerbose(ctx context.Context, patchee *Verbose, patcher *Verbose, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Verbose, error)
DefaultApplyFieldMaskVerbose patches an pbObject with patcher according to a field mask.
func DefaultCreateVerbose ¶
DefaultCreateVerbose executes a basic gorm create call
func DefaultListVerbose ¶
DefaultListVerbose executes a gorm list call
func DefaultPatchSetVerbose ¶
func DefaultPatchSetVerbose(ctx context.Context, objects []*Verbose, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Verbose, error)
DefaultPatchSetVerbose executes a bulk gorm update call with patch behavior
func DefaultPatchVerbose ¶
func DefaultPatchVerbose(ctx context.Context, in *Verbose, updateMask *field_mask.FieldMask, db *gorm.DB) (*Verbose, error)
DefaultPatchVerbose executes a basic gorm update call with patch behavior
func DefaultReadVerbose ¶
func DefaultStrictUpdateVerbose ¶
DefaultStrictUpdateVerbose clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Verbose) Descriptor
deprecated
func (*Verbose) ProtoMessage ¶
func (*Verbose) ProtoMessage()
func (*Verbose) ProtoReflect ¶
func (x *Verbose) ProtoReflect() protoreflect.Message
type VerboseORM ¶
func (*VerboseORM) BeforeCreate ¶
func (verbose *VerboseORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (VerboseORM) TableName ¶
func (VerboseORM) TableName() string
TableName overrides the default tablename generated by GORM
type VerboseWithAfterToORM ¶
type VerboseWithAfterToORM interface {
AfterToORM(context.Context, *VerboseORM) error
}
VerboseAfterToORM called after default ToORM code
type VerboseWithAfterToPB ¶
VerboseAfterToPB called after default ToPB code
type VerboseWithBeforeToORM ¶
type VerboseWithBeforeToORM interface {
BeforeToORM(context.Context, *VerboseORM) error
}
VerboseBeforeToORM called before default ToORM code