scan

package
v0.0.0-...-0f6999a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scan_result_proto protoreflect.FileDescriptor
View Source
var File_scan_scan_proto protoreflect.FileDescriptor

Functions

func DefaultDeleteDebugging

func DefaultDeleteDebugging(ctx context.Context, in *Debugging, db *gorm.DB) error

func DefaultDeleteDebuggingSet

func DefaultDeleteDebuggingSet(ctx context.Context, in []*Debugging, db *gorm.DB) error

func DefaultDeleteFinished

func DefaultDeleteFinished(ctx context.Context, in *Finished, db *gorm.DB) error

func DefaultDeleteFinishedSet

func DefaultDeleteFinishedSet(ctx context.Context, in []*Finished, db *gorm.DB) error

func DefaultDeleteHostStats

func DefaultDeleteHostStats(ctx context.Context, in *HostStats, db *gorm.DB) error

func DefaultDeleteHostStatsSet

func DefaultDeleteHostStatsSet(ctx context.Context, in []*HostStats, db *gorm.DB) error

func DefaultDeleteInfo

func DefaultDeleteInfo(ctx context.Context, in *Info, db *gorm.DB) error

func DefaultDeleteInfoSet

func DefaultDeleteInfoSet(ctx context.Context, in []*Info, db *gorm.DB) error

func DefaultDeleteResult

func DefaultDeleteResult(ctx context.Context, in *Result, db *gorm.DB) error

func DefaultDeleteResultSet

func DefaultDeleteResultSet(ctx context.Context, in []*Result, db *gorm.DB) error

func DefaultDeleteRun

func DefaultDeleteRun(ctx context.Context, in *Run, db *gorm.DB) error

func DefaultDeleteRunSet

func DefaultDeleteRunSet(ctx context.Context, in []*Run, db *gorm.DB) error

func DefaultDeleteStats

func DefaultDeleteStats(ctx context.Context, in *Stats, db *gorm.DB) error

func DefaultDeleteStatsSet

func DefaultDeleteStatsSet(ctx context.Context, in []*Stats, db *gorm.DB) error

func DefaultDeleteTarget

func DefaultDeleteTarget(ctx context.Context, in *Target, db *gorm.DB) error

func DefaultDeleteTargetSet

func DefaultDeleteTargetSet(ctx context.Context, in []*Target, db *gorm.DB) error

func DefaultDeleteTask

func DefaultDeleteTask(ctx context.Context, in *Task, db *gorm.DB) error

func DefaultDeleteTaskProgress

func DefaultDeleteTaskProgress(ctx context.Context, in *TaskProgress, db *gorm.DB) error

func DefaultDeleteTaskProgressSet

func DefaultDeleteTaskProgressSet(ctx context.Context, in []*TaskProgress, db *gorm.DB) error

func DefaultDeleteTaskSet

func DefaultDeleteTaskSet(ctx context.Context, in []*Task, db *gorm.DB) error

func DefaultDeleteVerbose

func DefaultDeleteVerbose(ctx context.Context, in *Verbose, db *gorm.DB) error

func DefaultDeleteVerboseSet

func DefaultDeleteVerboseSet(ctx context.Context, in []*Verbose, db *gorm.DB) error

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

func DefaultCreateDebugging(ctx context.Context, in *Debugging, db *gorm.DB) (*Debugging, error)

DefaultCreateDebugging executes a basic gorm create call

func DefaultListDebugging

func DefaultListDebugging(ctx context.Context, db *gorm.DB) ([]*Debugging, error)

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 DefaultReadDebugging(ctx context.Context, in *Debugging, db *gorm.DB) (*Debugging, error)

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) Descriptor() ([]byte, []int)

Deprecated: Use Debugging.ProtoReflect.Descriptor instead.

func (*Debugging) GetId

func (x *Debugging) GetId() string

func (*Debugging) GetLevel

func (x *Debugging) GetLevel() int32

func (*Debugging) ProtoMessage

func (*Debugging) ProtoMessage()

func (*Debugging) ProtoReflect

func (x *Debugging) ProtoReflect() protoreflect.Message

func (*Debugging) Reset

func (x *Debugging) Reset()

func (*Debugging) String

func (x *Debugging) String() string

func (*Debugging) ToORM

func (m *Debugging) ToORM(ctx context.Context) (DebuggingORM, 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 DebuggingORM

type DebuggingORM struct {
	Id    string `gorm:"type:uuid;primary_key"`
	Level int32
}

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

func (*DebuggingORM) ToPB

func (m *DebuggingORM) ToPB(ctx context.Context) (Debugging, 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 DebuggingORMWithAfterCreate_

type DebuggingORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type DebuggingORMWithAfterDeleteSet

type DebuggingORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Debugging, *gorm.DB) error
}

type DebuggingORMWithAfterDelete_

type DebuggingORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type DebuggingORMWithAfterListFind

type DebuggingORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]DebuggingORM) error
}

type DebuggingORMWithAfterReadFind

type DebuggingORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type DebuggingORMWithAfterStrictUpdateSave

type DebuggingORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type DebuggingORMWithBeforeCreate_

type DebuggingORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeDeleteSet

type DebuggingORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Debugging, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeDelete_

type DebuggingORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeListApplyQuery

type DebuggingORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeListFind

type DebuggingORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeReadApplyQuery

type DebuggingORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeReadFind

type DebuggingORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeStrictUpdateCleanup

type DebuggingORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingORMWithBeforeStrictUpdateSave

type DebuggingORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DebuggingWithAfterPatchSave

type DebuggingWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Debugging, *field_mask.FieldMask, *gorm.DB) error
}

type DebuggingWithAfterToORM

type DebuggingWithAfterToORM interface {
	AfterToORM(context.Context, *DebuggingORM) error
}

DebuggingAfterToORM called after default ToORM code

type DebuggingWithAfterToPB

type DebuggingWithAfterToPB interface {
	AfterToPB(context.Context, *Debugging) error
}

DebuggingAfterToPB called after default ToPB code

type DebuggingWithBeforePatchApplyFieldMask

type DebuggingWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Debugging, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type DebuggingWithBeforePatchRead

type DebuggingWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Debugging, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type DebuggingWithBeforePatchSave

type DebuggingWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Debugging, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type DebuggingWithBeforeToORM

type DebuggingWithBeforeToORM interface {
	BeforeToORM(context.Context, *DebuggingORM) error
}

DebuggingBeforeToORM called before default ToORM code

type DebuggingWithBeforeToPB

type DebuggingWithBeforeToPB interface {
	BeforeToPB(context.Context, *Debugging) error
}

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

func DefaultCreateFinished(ctx context.Context, in *Finished, db *gorm.DB) (*Finished, error)

DefaultCreateFinished executes a basic gorm create call

func DefaultListFinished

func DefaultListFinished(ctx context.Context, db *gorm.DB) ([]*Finished, error)

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 DefaultReadFinished(ctx context.Context, in *Finished, db *gorm.DB) (*Finished, error)

func DefaultStrictUpdateFinished

func DefaultStrictUpdateFinished(ctx context.Context, in *Finished, db *gorm.DB) (*Finished, error)

DefaultStrictUpdateFinished clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Finished) Descriptor deprecated

func (*Finished) Descriptor() ([]byte, []int)

Deprecated: Use Finished.ProtoReflect.Descriptor instead.

func (*Finished) GetElapsed

func (x *Finished) GetElapsed() float32

func (*Finished) GetErrorMsg

func (x *Finished) GetErrorMsg() string

func (*Finished) GetExit

func (x *Finished) GetExit() string

func (*Finished) GetId

func (x *Finished) GetId() string

func (*Finished) GetSummary

func (x *Finished) GetSummary() string

func (*Finished) GetTime

func (x *Finished) GetTime() int64

func (*Finished) GetTimeStr

func (x *Finished) GetTimeStr() string

func (*Finished) ProtoMessage

func (*Finished) ProtoMessage()

func (*Finished) ProtoReflect

func (x *Finished) ProtoReflect() protoreflect.Message

func (*Finished) Reset

func (x *Finished) Reset()

func (*Finished) String

func (x *Finished) String() string

func (*Finished) ToORM

func (m *Finished) ToORM(ctx context.Context) (FinishedORM, 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 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

func (*FinishedORM) ToPB

func (m *FinishedORM) ToPB(ctx context.Context) (Finished, 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 FinishedORMWithAfterCreate_

type FinishedORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type FinishedORMWithAfterDeleteSet

type FinishedORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Finished, *gorm.DB) error
}

type FinishedORMWithAfterDelete_

type FinishedORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type FinishedORMWithAfterListFind

type FinishedORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]FinishedORM) error
}

type FinishedORMWithAfterReadFind

type FinishedORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type FinishedORMWithAfterStrictUpdateSave

type FinishedORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type FinishedORMWithBeforeCreate_

type FinishedORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeDeleteSet

type FinishedORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Finished, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeDelete_

type FinishedORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeListApplyQuery

type FinishedORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeListFind

type FinishedORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeReadApplyQuery

type FinishedORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeReadFind

type FinishedORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeStrictUpdateCleanup

type FinishedORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedORMWithBeforeStrictUpdateSave

type FinishedORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type FinishedWithAfterPatchSave

type FinishedWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Finished, *field_mask.FieldMask, *gorm.DB) error
}

type FinishedWithAfterToORM

type FinishedWithAfterToORM interface {
	AfterToORM(context.Context, *FinishedORM) error
}

FinishedAfterToORM called after default ToORM code

type FinishedWithAfterToPB

type FinishedWithAfterToPB interface {
	AfterToPB(context.Context, *Finished) error
}

FinishedAfterToPB called after default ToPB code

type FinishedWithBeforePatchApplyFieldMask

type FinishedWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Finished, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type FinishedWithBeforePatchRead

type FinishedWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Finished, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type FinishedWithBeforePatchSave

type FinishedWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Finished, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type FinishedWithBeforeToORM

type FinishedWithBeforeToORM interface {
	BeforeToORM(context.Context, *FinishedORM) error
}

FinishedBeforeToORM called before default ToORM code

type FinishedWithBeforeToPB

type FinishedWithBeforeToPB interface {
	BeforeToPB(context.Context, *Finished) error
}

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

func DefaultCreateHostStats(ctx context.Context, in *HostStats, db *gorm.DB) (*HostStats, error)

DefaultCreateHostStats executes a basic gorm create call

func DefaultListHostStats

func DefaultListHostStats(ctx context.Context, db *gorm.DB) ([]*HostStats, error)

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 DefaultReadHostStats(ctx context.Context, in *HostStats, db *gorm.DB) (*HostStats, error)

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) Descriptor() ([]byte, []int)

Deprecated: Use HostStats.ProtoReflect.Descriptor instead.

func (*HostStats) GetDown

func (x *HostStats) GetDown() int32

func (*HostStats) GetId

func (x *HostStats) GetId() string

func (*HostStats) GetTotal

func (x *HostStats) GetTotal() int32

func (*HostStats) GetUp

func (x *HostStats) GetUp() int32

func (*HostStats) ProtoMessage

func (*HostStats) ProtoMessage()

func (*HostStats) ProtoReflect

func (x *HostStats) ProtoReflect() protoreflect.Message

func (*HostStats) Reset

func (x *HostStats) Reset()

func (*HostStats) String

func (x *HostStats) String() string

func (*HostStats) ToORM

func (m *HostStats) ToORM(ctx context.Context) (HostStatsORM, 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 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

func (*HostStatsORM) ToPB

func (m *HostStatsORM) ToPB(ctx context.Context) (HostStats, 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 HostStatsORMWithAfterCreate_

type HostStatsORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type HostStatsORMWithAfterDeleteSet

type HostStatsORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*HostStats, *gorm.DB) error
}

type HostStatsORMWithAfterDelete_

type HostStatsORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type HostStatsORMWithAfterListFind

type HostStatsORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]HostStatsORM) error
}

type HostStatsORMWithAfterReadFind

type HostStatsORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type HostStatsORMWithAfterStrictUpdateSave

type HostStatsORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type HostStatsORMWithBeforeCreate_

type HostStatsORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeDeleteSet

type HostStatsORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*HostStats, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeDelete_

type HostStatsORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeListApplyQuery

type HostStatsORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeListFind

type HostStatsORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeReadApplyQuery

type HostStatsORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeReadFind

type HostStatsORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeStrictUpdateCleanup

type HostStatsORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsORMWithBeforeStrictUpdateSave

type HostStatsORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HostStatsWithAfterPatchSave

type HostStatsWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *HostStats, *field_mask.FieldMask, *gorm.DB) error
}

type HostStatsWithAfterToORM

type HostStatsWithAfterToORM interface {
	AfterToORM(context.Context, *HostStatsORM) error
}

HostStatsAfterToORM called after default ToORM code

type HostStatsWithAfterToPB

type HostStatsWithAfterToPB interface {
	AfterToPB(context.Context, *HostStats) error
}

HostStatsAfterToPB called after default ToPB code

type HostStatsWithBeforePatchApplyFieldMask

type HostStatsWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *HostStats, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type HostStatsWithBeforePatchRead

type HostStatsWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *HostStats, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type HostStatsWithBeforePatchSave

type HostStatsWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *HostStats, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type HostStatsWithBeforeToORM

type HostStatsWithBeforeToORM interface {
	BeforeToORM(context.Context, *HostStatsORM) error
}

HostStatsBeforeToORM called before default ToORM code

type HostStatsWithBeforeToPB

type HostStatsWithBeforeToPB interface {
	BeforeToPB(context.Context, *HostStats) error
}

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

func DefaultCreateInfo(ctx context.Context, in *Info, db *gorm.DB) (*Info, error)

DefaultCreateInfo executes a basic gorm create call

func DefaultListInfo

func DefaultListInfo(ctx context.Context, db *gorm.DB) ([]*Info, error)

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 DefaultReadInfo(ctx context.Context, in *Info, db *gorm.DB) (*Info, error)

func DefaultStrictUpdateInfo

func DefaultStrictUpdateInfo(ctx context.Context, in *Info, db *gorm.DB) (*Info, error)

DefaultStrictUpdateInfo clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Info) Descriptor deprecated

func (*Info) Descriptor() ([]byte, []int)

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetId

func (x *Info) GetId() string

func (*Info) GetNumServices

func (x *Info) GetNumServices() int32

func (*Info) GetProtocol

func (x *Info) GetProtocol() string

func (*Info) GetScanFlags

func (x *Info) GetScanFlags() string

func (*Info) GetServices

func (x *Info) GetServices() string

func (*Info) GetType

func (x *Info) GetType() string

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect

func (x *Info) ProtoReflect() protoreflect.Message

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

func (*Info) ToORM

func (m *Info) ToORM(ctx context.Context) (InfoORM, 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 InfoORM

type InfoORM struct {
	Id          string `gorm:"type:uuid;primary_key"`
	NumServices int32
	Protocol    string
	ScanFlags   string
	Services    string
	Type        string
}

func (*InfoORM) BeforeCreate

func (info *InfoORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (InfoORM) TableName

func (InfoORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*InfoORM) ToPB

func (m *InfoORM) ToPB(ctx context.Context) (Info, 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 InfoORMWithAfterCreate_

type InfoORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type InfoORMWithAfterDeleteSet

type InfoORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Info, *gorm.DB) error
}

type InfoORMWithAfterDelete_

type InfoORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type InfoORMWithAfterListFind

type InfoORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]InfoORM) error
}

type InfoORMWithAfterReadFind

type InfoORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type InfoORMWithAfterStrictUpdateSave

type InfoORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type InfoORMWithBeforeCreate_

type InfoORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeDeleteSet

type InfoORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Info, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeDelete_

type InfoORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeListApplyQuery

type InfoORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeListFind

type InfoORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeReadApplyQuery

type InfoORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeReadFind

type InfoORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeStrictUpdateCleanup

type InfoORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoORMWithBeforeStrictUpdateSave

type InfoORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type InfoWithAfterPatchSave

type InfoWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Info, *field_mask.FieldMask, *gorm.DB) error
}

type InfoWithAfterToORM

type InfoWithAfterToORM interface {
	AfterToORM(context.Context, *InfoORM) error
}

InfoAfterToORM called after default ToORM code

type InfoWithAfterToPB

type InfoWithAfterToPB interface {
	AfterToPB(context.Context, *Info) error
}

InfoAfterToPB called after default ToPB code

type InfoWithBeforePatchApplyFieldMask

type InfoWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Info, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type InfoWithBeforePatchRead

type InfoWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Info, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type InfoWithBeforePatchSave

type InfoWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Info, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type InfoWithBeforeToORM

type InfoWithBeforeToORM interface {
	BeforeToORM(context.Context, *InfoORM) error
}

InfoBeforeToORM called before default ToORM code

type InfoWithBeforeToPB

type InfoWithBeforeToPB interface {
	BeforeToPB(context.Context, *Info) error
}

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

func DefaultCreateResult(ctx context.Context, in *Result, db *gorm.DB) (*Result, error)

DefaultCreateResult executes a basic gorm create call

func DefaultListResult

func DefaultListResult(ctx context.Context, db *gorm.DB) ([]*Result, error)

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 DefaultReadResult(ctx context.Context, in *Result, db *gorm.DB) (*Result, error)

func DefaultStrictUpdateResult

func DefaultStrictUpdateResult(ctx context.Context, in *Result, db *gorm.DB) (*Result, error)

DefaultStrictUpdateResult clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Result) Descriptor deprecated

func (*Result) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetAddress

func (x *Result) GetAddress() *network.Address

func (*Result) GetData

func (x *Result) GetData() string

func (*Result) GetHost

func (x *Result) GetHost() *host.Host

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetPort

func (x *Result) GetPort() *host.Port

func (*Result) GetService

func (x *Result) GetService() *network.Service

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

func (*Result) ToORM

func (m *Result) ToORM(ctx context.Context) (ResultORM, 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 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

func (result *ResultORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (ResultORM) TableName

func (ResultORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ResultORM) ToPB

func (m *ResultORM) ToPB(ctx context.Context) (Result, 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 ResultORMWithAfterCreate_

type ResultORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type ResultORMWithAfterDeleteSet

type ResultORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Result, *gorm.DB) error
}

type ResultORMWithAfterDelete_

type ResultORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type ResultORMWithAfterListFind

type ResultORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]ResultORM) error
}

type ResultORMWithAfterReadFind

type ResultORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type ResultORMWithAfterStrictUpdateSave

type ResultORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type ResultORMWithBeforeCreate_

type ResultORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeDeleteSet

type ResultORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Result, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeDelete_

type ResultORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeListApplyQuery

type ResultORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeListFind

type ResultORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeReadApplyQuery

type ResultORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeReadFind

type ResultORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeStrictUpdateCleanup

type ResultORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultORMWithBeforeStrictUpdateSave

type ResultORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ResultWithAfterPatchSave

type ResultWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Result, *field_mask.FieldMask, *gorm.DB) error
}

type ResultWithAfterToORM

type ResultWithAfterToORM interface {
	AfterToORM(context.Context, *ResultORM) error
}

ResultAfterToORM called after default ToORM code

type ResultWithAfterToPB

type ResultWithAfterToPB interface {
	AfterToPB(context.Context, *Result) error
}

ResultAfterToPB called after default ToPB code

type ResultWithBeforePatchApplyFieldMask

type ResultWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Result, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ResultWithBeforePatchRead

type ResultWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Result, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ResultWithBeforePatchSave

type ResultWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Result, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ResultWithBeforeToORM

type ResultWithBeforeToORM interface {
	BeforeToORM(context.Context, *ResultORM) error
}

ResultBeforeToORM called before default ToORM code

type ResultWithBeforeToPB

type ResultWithBeforeToPB interface {
	BeforeToPB(context.Context, *Result) error
}

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

func DefaultCreateRun(ctx context.Context, in *Run, db *gorm.DB) (*Run, error)

DefaultCreateRun executes a basic gorm create call

func DefaultListRun

func DefaultListRun(ctx context.Context, db *gorm.DB) ([]*Run, error)

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 DefaultReadRun

func DefaultReadRun(ctx context.Context, in *Run, db *gorm.DB) (*Run, error)

func DefaultStrictUpdateRun

func DefaultStrictUpdateRun(ctx context.Context, in *Run, db *gorm.DB) (*Run, error)

DefaultStrictUpdateRun clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Run) Descriptor deprecated

func (*Run) Descriptor() ([]byte, []int)

Deprecated: Use Run.ProtoReflect.Descriptor instead.

func (*Run) GetArgs

func (x *Run) GetArgs() string

func (*Run) GetBegin

func (x *Run) GetBegin() []*Task

func (*Run) GetCreatedAt

func (x *Run) GetCreatedAt() *timestamppb.Timestamp

func (*Run) GetDebugging

func (x *Run) GetDebugging() *Debugging

func (*Run) GetEnd

func (x *Run) GetEnd() []*Task

func (*Run) GetHostId

func (x *Run) GetHostId() string

func (*Run) GetHosts

func (x *Run) GetHosts() []*host.Host

func (*Run) GetId

func (x *Run) GetId() string

func (*Run) GetInfo

func (x *Run) GetInfo() *Info

func (*Run) GetNmapErrors

func (x *Run) GetNmapErrors() []string

func (*Run) GetPostScripts

func (x *Run) GetPostScripts() []*nmap.Script

func (*Run) GetPreScripts

func (x *Run) GetPreScripts() []*nmap.Script

func (*Run) GetProfileName

func (x *Run) GetProfileName() string

func (*Run) GetProgress

func (x *Run) GetProgress() []*TaskProgress

func (*Run) GetRawXML

func (x *Run) GetRawXML() string

func (*Run) GetResults

func (x *Run) GetResults() []*Result

func (*Run) GetScanner

func (x *Run) GetScanner() string

func (*Run) GetSessionId

func (x *Run) GetSessionId() string

func (*Run) GetStart

func (x *Run) GetStart() int64

func (*Run) GetStartStr

func (x *Run) GetStartStr() string

func (*Run) GetStats

func (x *Run) GetStats() *Stats

func (*Run) GetTargets

func (x *Run) GetTargets() []*Target

func (*Run) GetUpdatedAt

func (x *Run) GetUpdatedAt() *timestamppb.Timestamp

func (*Run) GetVerbose

func (x *Run) GetVerbose() *Verbose

func (*Run) GetVersion

func (x *Run) GetVersion() string

func (*Run) GetXMLOutputVersion

func (x *Run) GetXMLOutputVersion() string

func (*Run) ProtoMessage

func (*Run) ProtoMessage()

func (*Run) ProtoReflect

func (x *Run) ProtoReflect() protoreflect.Message

func (*Run) Reset

func (x *Run) Reset()

func (*Run) String

func (x *Run) String() string

func (*Run) ToORM

func (m *Run) ToORM(ctx context.Context) (RunORM, 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 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

func (run *RunORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (RunORM) TableName

func (RunORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*RunORM) ToPB

func (m *RunORM) ToPB(ctx context.Context) (Run, 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 RunORMWithAfterCreate_

type RunORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type RunORMWithAfterDeleteSet

type RunORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Run, *gorm.DB) error
}

type RunORMWithAfterDelete_

type RunORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type RunORMWithAfterListFind

type RunORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]RunORM) error
}

type RunORMWithAfterReadFind

type RunORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type RunORMWithAfterStrictUpdateSave

type RunORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type RunORMWithBeforeCreate_

type RunORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeDeleteSet

type RunORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Run, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeDelete_

type RunORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeListApplyQuery

type RunORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeListFind

type RunORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeReadApplyQuery

type RunORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeReadFind

type RunORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeStrictUpdateCleanup

type RunORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunORMWithBeforeStrictUpdateSave

type RunORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type RunWithAfterPatchSave

type RunWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Run, *field_mask.FieldMask, *gorm.DB) error
}

type RunWithAfterToORM

type RunWithAfterToORM interface {
	AfterToORM(context.Context, *RunORM) error
}

RunAfterToORM called after default ToORM code

type RunWithAfterToPB

type RunWithAfterToPB interface {
	AfterToPB(context.Context, *Run) error
}

RunAfterToPB called after default ToPB code

type RunWithBeforePatchApplyFieldMask

type RunWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Run, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type RunWithBeforePatchRead

type RunWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Run, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type RunWithBeforePatchSave

type RunWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Run, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type RunWithBeforeToORM

type RunWithBeforeToORM interface {
	BeforeToORM(context.Context, *RunORM) error
}

RunBeforeToORM called before default ToORM code

type RunWithBeforeToPB

type RunWithBeforeToPB interface {
	BeforeToPB(context.Context, *Run) error
}

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

func DefaultCreateStats(ctx context.Context, in *Stats, db *gorm.DB) (*Stats, error)

DefaultCreateStats executes a basic gorm create call

func DefaultListStats

func DefaultListStats(ctx context.Context, db *gorm.DB) ([]*Stats, error)

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 DefaultReadStats(ctx context.Context, in *Stats, db *gorm.DB) (*Stats, error)

func DefaultStrictUpdateStats

func DefaultStrictUpdateStats(ctx context.Context, in *Stats, db *gorm.DB) (*Stats, error)

DefaultStrictUpdateStats clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Stats) Descriptor deprecated

func (*Stats) Descriptor() ([]byte, []int)

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetFinished

func (x *Stats) GetFinished() *Finished

func (*Stats) GetHosts

func (x *Stats) GetHosts() *HostStats

func (*Stats) GetId

func (x *Stats) GetId() string

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

func (x *Stats) ProtoReflect() protoreflect.Message

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

func (*Stats) ToORM

func (m *Stats) ToORM(ctx context.Context) (StatsORM, 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 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

func (stats *StatsORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (StatsORM) TableName

func (StatsORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*StatsORM) ToPB

func (m *StatsORM) ToPB(ctx context.Context) (Stats, 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 StatsORMWithAfterCreate_

type StatsORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type StatsORMWithAfterDeleteSet

type StatsORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Stats, *gorm.DB) error
}

type StatsORMWithAfterDelete_

type StatsORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type StatsORMWithAfterListFind

type StatsORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]StatsORM) error
}

type StatsORMWithAfterReadFind

type StatsORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type StatsORMWithAfterStrictUpdateSave

type StatsORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type StatsORMWithBeforeCreate_

type StatsORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeDeleteSet

type StatsORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Stats, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeDelete_

type StatsORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeListApplyQuery

type StatsORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeListFind

type StatsORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeReadApplyQuery

type StatsORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeReadFind

type StatsORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeStrictUpdateCleanup

type StatsORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsORMWithBeforeStrictUpdateSave

type StatsORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type StatsWithAfterPatchSave

type StatsWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Stats, *field_mask.FieldMask, *gorm.DB) error
}

type StatsWithAfterToORM

type StatsWithAfterToORM interface {
	AfterToORM(context.Context, *StatsORM) error
}

StatsAfterToORM called after default ToORM code

type StatsWithAfterToPB

type StatsWithAfterToPB interface {
	AfterToPB(context.Context, *Stats) error
}

StatsAfterToPB called after default ToPB code

type StatsWithBeforePatchApplyFieldMask

type StatsWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Stats, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type StatsWithBeforePatchRead

type StatsWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Stats, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type StatsWithBeforePatchSave

type StatsWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Stats, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type StatsWithBeforeToORM

type StatsWithBeforeToORM interface {
	BeforeToORM(context.Context, *StatsORM) error
}

StatsBeforeToORM called before default ToORM code

type StatsWithBeforeToPB

type StatsWithBeforeToPB interface {
	BeforeToPB(context.Context, *Stats) error
}

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

func DefaultCreateTarget(ctx context.Context, in *Target, db *gorm.DB) (*Target, error)

DefaultCreateTarget executes a basic gorm create call

func DefaultListTarget

func DefaultListTarget(ctx context.Context, db *gorm.DB) ([]*Target, error)

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 DefaultReadTarget(ctx context.Context, in *Target, db *gorm.DB) (*Target, error)

func DefaultStrictUpdateTarget

func DefaultStrictUpdateTarget(ctx context.Context, in *Target, db *gorm.DB) (*Target, error)

DefaultStrictUpdateTarget clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Target) Descriptor deprecated

func (*Target) Descriptor() ([]byte, []int)

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetAddress

func (x *Target) GetAddress() string

func (*Target) GetDomain

func (x *Target) GetDomain() string

func (*Target) GetId

func (x *Target) GetId() string

func (*Target) GetPort

func (x *Target) GetPort() uint32

func (*Target) GetReason

func (x *Target) GetReason() string

func (*Target) GetSpecification

func (x *Target) GetSpecification() string

func (*Target) GetStatus

func (x *Target) GetStatus() string

func (*Target) GetTag

func (x *Target) GetTag() string

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

func (x *Target) ProtoReflect() protoreflect.Message

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

func (*Target) ToORM

func (m *Target) ToORM(ctx context.Context) (TargetORM, 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 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

func (target *TargetORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TargetORM) TableName

func (TargetORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TargetORM) ToPB

func (m *TargetORM) ToPB(ctx context.Context) (Target, 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 TargetORMWithAfterCreate_

type TargetORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TargetORMWithAfterDeleteSet

type TargetORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Target, *gorm.DB) error
}

type TargetORMWithAfterDelete_

type TargetORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TargetORMWithAfterListFind

type TargetORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TargetORM) error
}

type TargetORMWithAfterReadFind

type TargetORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TargetORMWithAfterStrictUpdateSave

type TargetORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TargetORMWithBeforeCreate_

type TargetORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeDeleteSet

type TargetORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Target, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeDelete_

type TargetORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeListApplyQuery

type TargetORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeListFind

type TargetORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeReadApplyQuery

type TargetORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeReadFind

type TargetORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeStrictUpdateCleanup

type TargetORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetORMWithBeforeStrictUpdateSave

type TargetORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TargetWithAfterPatchSave

type TargetWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Target, *field_mask.FieldMask, *gorm.DB) error
}

type TargetWithAfterToORM

type TargetWithAfterToORM interface {
	AfterToORM(context.Context, *TargetORM) error
}

TargetAfterToORM called after default ToORM code

type TargetWithAfterToPB

type TargetWithAfterToPB interface {
	AfterToPB(context.Context, *Target) error
}

TargetAfterToPB called after default ToPB code

type TargetWithBeforePatchApplyFieldMask

type TargetWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Target, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TargetWithBeforePatchRead

type TargetWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Target, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TargetWithBeforePatchSave

type TargetWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Target, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TargetWithBeforeToORM

type TargetWithBeforeToORM interface {
	BeforeToORM(context.Context, *TargetORM) error
}

TargetBeforeToORM called before default ToORM code

type TargetWithBeforeToPB

type TargetWithBeforeToPB interface {
	BeforeToPB(context.Context, *Target) error
}

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

func DefaultCreateTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)

DefaultCreateTask executes a basic gorm create call

func DefaultListTask

func DefaultListTask(ctx context.Context, db *gorm.DB) ([]*Task, error)

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 DefaultReadTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)

func DefaultStrictUpdateTask

func DefaultStrictUpdateTask(ctx context.Context, in *Task, db *gorm.DB) (*Task, error)

DefaultStrictUpdateTask clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Task) Descriptor deprecated

func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetExtraInfo

func (x *Task) GetExtraInfo() string

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetTask

func (x *Task) GetTask() string

func (*Task) GetTime

func (x *Task) GetTime() int64

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) ToORM

func (m *Task) ToORM(ctx context.Context) (TaskORM, 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 TaskORM

type TaskORM struct {
	ExtraInfo string
	Id        string `gorm:"type:uuid;primary_key"`
	Task      string
	Time      int64
}

func (*TaskORM) BeforeCreate

func (task *TaskORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TaskORM) TableName

func (TaskORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TaskORM) ToPB

func (m *TaskORM) ToPB(ctx context.Context) (Task, 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 TaskORMWithAfterCreate_

type TaskORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TaskORMWithAfterDeleteSet

type TaskORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Task, *gorm.DB) error
}

type TaskORMWithAfterDelete_

type TaskORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TaskORMWithAfterListFind

type TaskORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TaskORM) error
}

type TaskORMWithAfterReadFind

type TaskORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TaskORMWithAfterStrictUpdateSave

type TaskORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TaskORMWithBeforeCreate_

type TaskORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeDeleteSet

type TaskORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Task, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeDelete_

type TaskORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeListApplyQuery

type TaskORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeListFind

type TaskORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeReadApplyQuery

type TaskORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeReadFind

type TaskORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeStrictUpdateCleanup

type TaskORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskORMWithBeforeStrictUpdateSave

type TaskORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

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

func DefaultListTaskProgress(ctx context.Context, db *gorm.DB) ([]*TaskProgress, error)

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

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

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 TaskProgressORMWithAfterCreate_

type TaskProgressORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TaskProgressORMWithAfterDeleteSet

type TaskProgressORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*TaskProgress, *gorm.DB) error
}

type TaskProgressORMWithAfterDelete_

type TaskProgressORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TaskProgressORMWithAfterListFind

type TaskProgressORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TaskProgressORM) error
}

type TaskProgressORMWithAfterReadFind

type TaskProgressORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TaskProgressORMWithAfterStrictUpdateSave

type TaskProgressORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TaskProgressORMWithBeforeCreate_

type TaskProgressORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeDeleteSet

type TaskProgressORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*TaskProgress, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeDelete_

type TaskProgressORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeListApplyQuery

type TaskProgressORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeListFind

type TaskProgressORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeReadApplyQuery

type TaskProgressORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeReadFind

type TaskProgressORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeStrictUpdateCleanup

type TaskProgressORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TaskProgressORMWithBeforeStrictUpdateSave

type TaskProgressORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

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 TaskWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) error
}

type TaskWithAfterToORM

type TaskWithAfterToORM interface {
	AfterToORM(context.Context, *TaskORM) error
}

TaskAfterToORM called after default ToORM code

type TaskWithAfterToPB

type TaskWithAfterToPB interface {
	AfterToPB(context.Context, *Task) error
}

TaskAfterToPB called after default ToPB code

type TaskWithBeforePatchApplyFieldMask

type TaskWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TaskWithBeforePatchRead

type TaskWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TaskWithBeforePatchSave

type TaskWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Task, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TaskWithBeforeToORM

type TaskWithBeforeToORM interface {
	BeforeToORM(context.Context, *TaskORM) error
}

TaskBeforeToORM called before default ToORM code

type TaskWithBeforeToPB

type TaskWithBeforeToPB interface {
	BeforeToPB(context.Context, *Task) error
}

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

func DefaultCreateVerbose(ctx context.Context, in *Verbose, db *gorm.DB) (*Verbose, error)

DefaultCreateVerbose executes a basic gorm create call

func DefaultListVerbose

func DefaultListVerbose(ctx context.Context, db *gorm.DB) ([]*Verbose, error)

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 DefaultReadVerbose(ctx context.Context, in *Verbose, db *gorm.DB) (*Verbose, error)

func DefaultStrictUpdateVerbose

func DefaultStrictUpdateVerbose(ctx context.Context, in *Verbose, db *gorm.DB) (*Verbose, error)

DefaultStrictUpdateVerbose clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Verbose) Descriptor deprecated

func (*Verbose) Descriptor() ([]byte, []int)

Deprecated: Use Verbose.ProtoReflect.Descriptor instead.

func (*Verbose) GetId

func (x *Verbose) GetId() string

func (*Verbose) GetLevel

func (x *Verbose) GetLevel() int32

func (*Verbose) ProtoMessage

func (*Verbose) ProtoMessage()

func (*Verbose) ProtoReflect

func (x *Verbose) ProtoReflect() protoreflect.Message

func (*Verbose) Reset

func (x *Verbose) Reset()

func (*Verbose) String

func (x *Verbose) String() string

func (*Verbose) ToORM

func (m *Verbose) ToORM(ctx context.Context) (VerboseORM, 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 VerboseORM

type VerboseORM struct {
	Id    string `gorm:"type:uuid;primary_key"`
	Level int32
}

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

func (*VerboseORM) ToPB

func (m *VerboseORM) ToPB(ctx context.Context) (Verbose, 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 VerboseORMWithAfterCreate_

type VerboseORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type VerboseORMWithAfterDeleteSet

type VerboseORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Verbose, *gorm.DB) error
}

type VerboseORMWithAfterDelete_

type VerboseORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type VerboseORMWithAfterListFind

type VerboseORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]VerboseORM) error
}

type VerboseORMWithAfterReadFind

type VerboseORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type VerboseORMWithAfterStrictUpdateSave

type VerboseORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type VerboseORMWithBeforeCreate_

type VerboseORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeDeleteSet

type VerboseORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Verbose, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeDelete_

type VerboseORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeListApplyQuery

type VerboseORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeListFind

type VerboseORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeReadApplyQuery

type VerboseORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeReadFind

type VerboseORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeStrictUpdateCleanup

type VerboseORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseORMWithBeforeStrictUpdateSave

type VerboseORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type VerboseWithAfterPatchSave

type VerboseWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Verbose, *field_mask.FieldMask, *gorm.DB) error
}

type VerboseWithAfterToORM

type VerboseWithAfterToORM interface {
	AfterToORM(context.Context, *VerboseORM) error
}

VerboseAfterToORM called after default ToORM code

type VerboseWithAfterToPB

type VerboseWithAfterToPB interface {
	AfterToPB(context.Context, *Verbose) error
}

VerboseAfterToPB called after default ToPB code

type VerboseWithBeforePatchApplyFieldMask

type VerboseWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Verbose, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type VerboseWithBeforePatchRead

type VerboseWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Verbose, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type VerboseWithBeforePatchSave

type VerboseWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Verbose, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type VerboseWithBeforeToORM

type VerboseWithBeforeToORM interface {
	BeforeToORM(context.Context, *VerboseORM) error
}

VerboseBeforeToORM called before default ToORM code

type VerboseWithBeforeToPB

type VerboseWithBeforeToPB interface {
	BeforeToPB(context.Context, *Verbose) error
}

VerboseBeforeToPB called before default ToPB code

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL