Documentation ¶
Index ¶
- Variables
- func DefaultDeleteElement(ctx context.Context, in *Element, db *gorm.DB) error
- func DefaultDeleteElementSet(ctx context.Context, in []*Element, db *gorm.DB) error
- func DefaultDeleteScript(ctx context.Context, in *Script, db *gorm.DB) error
- func DefaultDeleteScriptSet(ctx context.Context, in []*Script, db *gorm.DB) error
- func DefaultDeleteSmurf(ctx context.Context, in *Smurf, db *gorm.DB) error
- func DefaultDeleteSmurfSet(ctx context.Context, in []*Smurf, db *gorm.DB) error
- func DefaultDeleteTable(ctx context.Context, in *Table, db *gorm.DB) error
- func DefaultDeleteTableSet(ctx context.Context, in []*Table, db *gorm.DB) error
- type Element
- func DefaultApplyFieldMaskElement(ctx context.Context, patchee *Element, patcher *Element, ...) (*Element, error)
- func DefaultCreateElement(ctx context.Context, in *Element, db *gorm.DB) (*Element, error)
- func DefaultListElement(ctx context.Context, db *gorm.DB) ([]*Element, error)
- func DefaultPatchElement(ctx context.Context, in *Element, updateMask *field_mask.FieldMask, ...) (*Element, error)
- func DefaultPatchSetElement(ctx context.Context, objects []*Element, updateMasks []*field_mask.FieldMask, ...) ([]*Element, error)
- func DefaultReadElement(ctx context.Context, in *Element, db *gorm.DB) (*Element, error)
- func DefaultStrictUpdateElement(ctx context.Context, in *Element, db *gorm.DB) (*Element, error)
- func (*Element) Descriptor() ([]byte, []int)deprecated
- func (x *Element) GetId() string
- func (x *Element) GetKey() string
- func (x *Element) GetValue() string
- func (*Element) ProtoMessage()
- func (x *Element) ProtoReflect() protoreflect.Message
- func (x *Element) Reset()
- func (x *Element) String() string
- func (m *Element) ToORM(ctx context.Context) (ElementORM, error)
- type ElementORM
- type ElementORMWithAfterCreate_
- type ElementORMWithAfterDeleteSet
- type ElementORMWithAfterDelete_
- type ElementORMWithAfterListFind
- type ElementORMWithAfterReadFind
- type ElementORMWithAfterStrictUpdateSave
- type ElementORMWithBeforeCreate_
- type ElementORMWithBeforeDeleteSet
- type ElementORMWithBeforeDelete_
- type ElementORMWithBeforeListApplyQuery
- type ElementORMWithBeforeListFind
- type ElementORMWithBeforeReadApplyQuery
- type ElementORMWithBeforeReadFind
- type ElementORMWithBeforeStrictUpdateCleanup
- type ElementORMWithBeforeStrictUpdateSave
- type ElementWithAfterPatchSave
- type ElementWithAfterToORM
- type ElementWithAfterToPB
- type ElementWithBeforePatchApplyFieldMask
- type ElementWithBeforePatchRead
- type ElementWithBeforePatchSave
- type ElementWithBeforeToORM
- type ElementWithBeforeToPB
- type Script
- func DefaultApplyFieldMaskScript(ctx context.Context, patchee *Script, patcher *Script, ...) (*Script, error)
- func DefaultCreateScript(ctx context.Context, in *Script, db *gorm.DB) (*Script, error)
- func DefaultListScript(ctx context.Context, db *gorm.DB) ([]*Script, error)
- func DefaultPatchScript(ctx context.Context, in *Script, updateMask *field_mask.FieldMask, db *gorm.DB) (*Script, error)
- func DefaultPatchSetScript(ctx context.Context, objects []*Script, updateMasks []*field_mask.FieldMask, ...) ([]*Script, error)
- func DefaultReadScript(ctx context.Context, in *Script, db *gorm.DB) (*Script, error)
- func DefaultStrictUpdateScript(ctx context.Context, in *Script, db *gorm.DB) (*Script, error)
- func (*Script) Descriptor() ([]byte, []int)deprecated
- func (x *Script) GetCreatedAt() *timestamppb.Timestamp
- func (x *Script) GetElements() []*Element
- func (x *Script) GetId() string
- func (x *Script) GetName() string
- func (x *Script) GetOutput() string
- func (x *Script) GetTables() []*Table
- func (x *Script) GetUpdatedAt() *timestamppb.Timestamp
- func (*Script) ProtoMessage()
- func (x *Script) ProtoReflect() protoreflect.Message
- func (x *Script) Reset()
- func (x *Script) String() string
- func (m *Script) ToORM(ctx context.Context) (ScriptORM, error)
- type ScriptORM
- type ScriptORMWithAfterCreate_
- type ScriptORMWithAfterDeleteSet
- type ScriptORMWithAfterDelete_
- type ScriptORMWithAfterListFind
- type ScriptORMWithAfterReadFind
- type ScriptORMWithAfterStrictUpdateSave
- type ScriptORMWithBeforeCreate_
- type ScriptORMWithBeforeDeleteSet
- type ScriptORMWithBeforeDelete_
- type ScriptORMWithBeforeListApplyQuery
- type ScriptORMWithBeforeListFind
- type ScriptORMWithBeforeReadApplyQuery
- type ScriptORMWithBeforeReadFind
- type ScriptORMWithBeforeStrictUpdateCleanup
- type ScriptORMWithBeforeStrictUpdateSave
- type ScriptWithAfterPatchSave
- type ScriptWithAfterToORM
- type ScriptWithAfterToPB
- type ScriptWithBeforePatchApplyFieldMask
- type ScriptWithBeforePatchRead
- type ScriptWithBeforePatchSave
- type ScriptWithBeforeToORM
- type ScriptWithBeforeToPB
- type Smurf
- func DefaultApplyFieldMaskSmurf(ctx context.Context, patchee *Smurf, patcher *Smurf, ...) (*Smurf, error)
- func DefaultCreateSmurf(ctx context.Context, in *Smurf, db *gorm.DB) (*Smurf, error)
- func DefaultListSmurf(ctx context.Context, db *gorm.DB) ([]*Smurf, error)
- func DefaultPatchSetSmurf(ctx context.Context, objects []*Smurf, updateMasks []*field_mask.FieldMask, ...) ([]*Smurf, error)
- func DefaultPatchSmurf(ctx context.Context, in *Smurf, updateMask *field_mask.FieldMask, db *gorm.DB) (*Smurf, error)
- func DefaultReadSmurf(ctx context.Context, in *Smurf, db *gorm.DB) (*Smurf, error)
- func DefaultStrictUpdateSmurf(ctx context.Context, in *Smurf, db *gorm.DB) (*Smurf, error)
- func (*Smurf) Descriptor() ([]byte, []int)deprecated
- func (x *Smurf) GetId() string
- func (x *Smurf) GetResponses() string
- func (*Smurf) ProtoMessage()
- func (x *Smurf) ProtoReflect() protoreflect.Message
- func (x *Smurf) Reset()
- func (x *Smurf) String() string
- func (m *Smurf) ToORM(ctx context.Context) (SmurfORM, error)
- type SmurfORM
- type SmurfORMWithAfterCreate_
- type SmurfORMWithAfterDeleteSet
- type SmurfORMWithAfterDelete_
- type SmurfORMWithAfterListFind
- type SmurfORMWithAfterReadFind
- type SmurfORMWithAfterStrictUpdateSave
- type SmurfORMWithBeforeCreate_
- type SmurfORMWithBeforeDeleteSet
- type SmurfORMWithBeforeDelete_
- type SmurfORMWithBeforeListApplyQuery
- type SmurfORMWithBeforeListFind
- type SmurfORMWithBeforeReadApplyQuery
- type SmurfORMWithBeforeReadFind
- type SmurfORMWithBeforeStrictUpdateCleanup
- type SmurfORMWithBeforeStrictUpdateSave
- type SmurfWithAfterPatchSave
- type SmurfWithAfterToORM
- type SmurfWithAfterToPB
- type SmurfWithBeforePatchApplyFieldMask
- type SmurfWithBeforePatchRead
- type SmurfWithBeforePatchSave
- type SmurfWithBeforeToORM
- type SmurfWithBeforeToPB
- type Table
- func DefaultApplyFieldMaskTable(ctx context.Context, patchee *Table, patcher *Table, ...) (*Table, error)
- func DefaultCreateTable(ctx context.Context, in *Table, db *gorm.DB) (*Table, error)
- func DefaultListTable(ctx context.Context, db *gorm.DB) ([]*Table, error)
- func DefaultPatchSetTable(ctx context.Context, objects []*Table, updateMasks []*field_mask.FieldMask, ...) ([]*Table, error)
- func DefaultPatchTable(ctx context.Context, in *Table, updateMask *field_mask.FieldMask, db *gorm.DB) (*Table, error)
- func DefaultReadTable(ctx context.Context, in *Table, db *gorm.DB) (*Table, error)
- func DefaultStrictUpdateTable(ctx context.Context, in *Table, db *gorm.DB) (*Table, error)
- func (*Table) Descriptor() ([]byte, []int)deprecated
- func (x *Table) GetElements() []*Element
- func (x *Table) GetId() string
- func (x *Table) GetKey() string
- func (x *Table) GetTables() []*Table
- func (*Table) ProtoMessage()
- func (x *Table) ProtoReflect() protoreflect.Message
- func (x *Table) Reset()
- func (x *Table) String() string
- func (m *Table) ToORM(ctx context.Context) (TableORM, error)
- type TableORM
- type TableORMWithAfterCreate_
- type TableORMWithAfterDeleteSet
- type TableORMWithAfterDelete_
- type TableORMWithAfterListFind
- type TableORMWithAfterReadFind
- type TableORMWithAfterStrictUpdateSave
- type TableORMWithBeforeCreate_
- type TableORMWithBeforeDeleteSet
- type TableORMWithBeforeDelete_
- type TableORMWithBeforeListApplyQuery
- type TableORMWithBeforeListFind
- type TableORMWithBeforeReadApplyQuery
- type TableORMWithBeforeReadFind
- type TableORMWithBeforeStrictUpdateCleanup
- type TableORMWithBeforeStrictUpdateSave
- type TableWithAfterPatchSave
- type TableWithAfterToORM
- type TableWithAfterToPB
- type TableWithBeforePatchApplyFieldMask
- type TableWithBeforePatchRead
- type TableWithBeforePatchSave
- type TableWithBeforeToORM
- type TableWithBeforeToPB
Constants ¶
This section is empty.
Variables ¶
var File_scan_nmap_nmap_proto protoreflect.FileDescriptor
Functions ¶
func DefaultDeleteElement ¶
func DefaultDeleteElementSet ¶
func DefaultDeleteScript ¶
func DefaultDeleteScriptSet ¶
func DefaultDeleteSmurf ¶
func DefaultDeleteSmurfSet ¶
func DefaultDeleteTable ¶
Types ¶
type Element ¶
type Element struct { // @gotags: display:"ID" readonly:"true" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true"` // @gotags: xml:"key,attr,omitempty" Key string `protobuf:"bytes,10,opt,name=Key,proto3" json:"Key,omitempty" xml:"key,attr,omitempty"` // @gotags: xml:",innerxml" Value string `protobuf:"bytes,11,opt,name=Value,proto3" json:"Value,omitempty" xml:",innerxml"` // contains filtered or unexported fields }
elements - The smallest building block for scripts/tables. Key is optional
func DefaultApplyFieldMaskElement ¶
func DefaultApplyFieldMaskElement(ctx context.Context, patchee *Element, patcher *Element, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Element, error)
DefaultApplyFieldMaskElement patches an pbObject with patcher according to a field mask.
func DefaultCreateElement ¶
DefaultCreateElement executes a basic gorm create call
func DefaultListElement ¶
DefaultListElement executes a gorm list call
func DefaultPatchElement ¶
func DefaultPatchElement(ctx context.Context, in *Element, updateMask *field_mask.FieldMask, db *gorm.DB) (*Element, error)
DefaultPatchElement executes a basic gorm update call with patch behavior
func DefaultPatchSetElement ¶
func DefaultPatchSetElement(ctx context.Context, objects []*Element, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Element, error)
DefaultPatchSetElement executes a bulk gorm update call with patch behavior
func DefaultReadElement ¶
func DefaultStrictUpdateElement ¶
DefaultStrictUpdateElement clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Element) Descriptor
deprecated
func (*Element) ProtoMessage ¶
func (*Element) ProtoMessage()
func (*Element) ProtoReflect ¶
func (x *Element) ProtoReflect() protoreflect.Message
type ElementORM ¶
type ElementORM struct { Id string `gorm:"type:uuid;primary_key"` Key string ScriptId *string TableId *string Value string }
func (*ElementORM) BeforeCreate ¶
func (element *ElementORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (ElementORM) TableName ¶
func (ElementORM) TableName() string
TableName overrides the default tablename generated by GORM
type ElementWithAfterToORM ¶
type ElementWithAfterToORM interface {
AfterToORM(context.Context, *ElementORM) error
}
ElementAfterToORM called after default ToORM code
type ElementWithAfterToPB ¶
ElementAfterToPB called after default ToPB code
type ElementWithBeforeToORM ¶
type ElementWithBeforeToORM interface {
BeforeToORM(context.Context, *ElementORM) error
}
ElementBeforeToORM called before default ToORM code
type ElementWithBeforeToPB ¶
ElementBeforeToPB called before default ToPB code
type Script ¶
type Script 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:"-"` // gotags: xml:"id,attr" Name string `protobuf:"bytes,10,opt,name=Name,proto3" json:"Name,omitempty"` // @gotags: xml:"output,attr" Output string `protobuf:"bytes,11,opt,name=Output,proto3" json:"Output,omitempty" xml:"output,attr"` // @gotags: xml:"elem,omitempty" Elements []*Element `protobuf:"bytes,12,rep,name=Elements,proto3" json:"Elements,omitempty" xml:"elem,omitempty"` // @gotags: xml:"table,omitempty" Tables []*Table `protobuf:"bytes,13,rep,name=Tables,proto3" json:"Tables,omitempty" xml:"table,omitempty"` // contains filtered or unexported fields }
Script - Represents a Nmap Scripting Engine Script. The inner elements can be an arbitrary collection of Tables and Elements. They can be empty
func DefaultApplyFieldMaskScript ¶
func DefaultApplyFieldMaskScript(ctx context.Context, patchee *Script, patcher *Script, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Script, error)
DefaultApplyFieldMaskScript patches an pbObject with patcher according to a field mask.
func DefaultCreateScript ¶
DefaultCreateScript executes a basic gorm create call
func DefaultListScript ¶
DefaultListScript executes a gorm list call
func DefaultPatchScript ¶
func DefaultPatchScript(ctx context.Context, in *Script, updateMask *field_mask.FieldMask, db *gorm.DB) (*Script, error)
DefaultPatchScript executes a basic gorm update call with patch behavior
func DefaultPatchSetScript ¶
func DefaultPatchSetScript(ctx context.Context, objects []*Script, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Script, error)
DefaultPatchSetScript executes a bulk gorm update call with patch behavior
func DefaultReadScript ¶
func DefaultStrictUpdateScript ¶
DefaultStrictUpdateScript clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Script) Descriptor
deprecated
func (*Script) GetCreatedAt ¶
func (x *Script) GetCreatedAt() *timestamppb.Timestamp
func (*Script) GetElements ¶
func (*Script) GetUpdatedAt ¶
func (x *Script) GetUpdatedAt() *timestamppb.Timestamp
func (*Script) ProtoMessage ¶
func (*Script) ProtoMessage()
func (*Script) ProtoReflect ¶
func (x *Script) ProtoReflect() protoreflect.Message
type ScriptORM ¶
type ScriptORM struct { CreatedAt *time.Time Elements []*ElementORM `gorm:"foreignkey:ScriptId;association_foreignkey:Id"` Id string `gorm:"type:uuid;primary_key"` Name string Output string Tables []*TableORM `gorm:"foreignkey:ScriptId;association_foreignkey:Id"` UpdatedAt *time.Time }
func (*ScriptORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type ScriptWithAfterToORM ¶
ScriptAfterToORM called after default ToORM code
type ScriptWithAfterToPB ¶
ScriptAfterToPB called after default ToPB code
type ScriptWithBeforeToORM ¶
ScriptBeforeToORM called before default ToORM code
type ScriptWithBeforeToPB ¶
ScriptBeforeToPB called before default ToPB code
type Smurf ¶
type Smurf struct { // @gotags: display:"ID" readonly:"true" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true"` // @gotags: xml:"responses,attr" Responses string `protobuf:"bytes,10,opt,name=Responses,proto3" json:"Responses,omitempty" xml:"responses,attr"` // contains filtered or unexported fields }
Smurf - Contains responses from a smurf attack
func DefaultApplyFieldMaskSmurf ¶
func DefaultApplyFieldMaskSmurf(ctx context.Context, patchee *Smurf, patcher *Smurf, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Smurf, error)
DefaultApplyFieldMaskSmurf patches an pbObject with patcher according to a field mask.
func DefaultCreateSmurf ¶
DefaultCreateSmurf executes a basic gorm create call
func DefaultListSmurf ¶
DefaultListSmurf executes a gorm list call
func DefaultPatchSetSmurf ¶
func DefaultPatchSetSmurf(ctx context.Context, objects []*Smurf, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Smurf, error)
DefaultPatchSetSmurf executes a bulk gorm update call with patch behavior
func DefaultPatchSmurf ¶
func DefaultPatchSmurf(ctx context.Context, in *Smurf, updateMask *field_mask.FieldMask, db *gorm.DB) (*Smurf, error)
DefaultPatchSmurf executes a basic gorm update call with patch behavior
func DefaultReadSmurf ¶
func DefaultStrictUpdateSmurf ¶
DefaultStrictUpdateSmurf clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Smurf) Descriptor
deprecated
func (*Smurf) GetResponses ¶
func (*Smurf) ProtoMessage ¶
func (*Smurf) ProtoMessage()
func (*Smurf) ProtoReflect ¶
func (x *Smurf) ProtoReflect() protoreflect.Message
type SmurfORM ¶
func (*SmurfORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type SmurfWithAfterPatchSave ¶
type SmurfWithAfterToORM ¶
SmurfAfterToORM called after default ToORM code
type SmurfWithAfterToPB ¶
SmurfAfterToPB called after default ToPB code
type SmurfWithBeforeToORM ¶
SmurfBeforeToORM called before default ToORM code
type SmurfWithBeforeToPB ¶
SmurfBeforeToPB called before default ToPB code
type Table ¶
type Table struct { // @gotags: display:"ID" readonly:"true" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true"` // @gotags: xml:"key,attr,omitempty" Key string `protobuf:"bytes,10,opt,name=Key,proto3" json:"Key,omitempty" xml:"key,attr,omitempty"` // @gotags: xml:"table,omitempty" Tables []*Table `protobuf:"bytes,11,rep,name=Tables,proto3" json:"Tables,omitempty" xml:"table,omitempty"` // @gotags: xml:"elem,omitempty" Elements []*Element `protobuf:"bytes,12,rep,name=Elements,proto3" json:"Elements,omitempty" xml:"elem,omitempty"` // contains filtered or unexported fields }
Table - An arbitrary collection of (sub-)Tables and Elements. Can be empty
func DefaultApplyFieldMaskTable ¶
func DefaultApplyFieldMaskTable(ctx context.Context, patchee *Table, patcher *Table, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Table, error)
DefaultApplyFieldMaskTable patches an pbObject with patcher according to a field mask.
func DefaultCreateTable ¶
DefaultCreateTable executes a basic gorm create call
func DefaultListTable ¶
DefaultListTable executes a gorm list call
func DefaultPatchSetTable ¶
func DefaultPatchSetTable(ctx context.Context, objects []*Table, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Table, error)
DefaultPatchSetTable executes a bulk gorm update call with patch behavior
func DefaultPatchTable ¶
func DefaultPatchTable(ctx context.Context, in *Table, updateMask *field_mask.FieldMask, db *gorm.DB) (*Table, error)
DefaultPatchTable executes a basic gorm update call with patch behavior
func DefaultReadTable ¶
func DefaultStrictUpdateTable ¶
DefaultStrictUpdateTable clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Table) Descriptor
deprecated
func (*Table) GetElements ¶
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
func (*Table) ProtoReflect ¶
func (x *Table) ProtoReflect() protoreflect.Message
type TableORM ¶
type TableORM struct { Elements []*ElementORM `gorm:"foreignkey:TableId;association_foreignkey:Id"` Id string `gorm:"type:uuid;primary_key"` Key string ScriptId *string TableId *string Tables []*TableORM `gorm:"foreignkey:TableId;association_foreignkey:Id"` }
func (*TableORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type TableWithAfterPatchSave ¶
type TableWithAfterToORM ¶
TableAfterToORM called after default ToORM code
type TableWithAfterToPB ¶
TableAfterToPB called after default ToPB code
type TableWithBeforeToORM ¶
TableBeforeToORM called before default ToORM code