nmap

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_scan_nmap_nmap_proto protoreflect.FileDescriptor

Functions

func DefaultDeleteElement

func DefaultDeleteElement(ctx context.Context, in *Element, db *gorm.DB) error

func DefaultDeleteElementSet

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

func DefaultDeleteScript

func DefaultDeleteScript(ctx context.Context, in *Script, db *gorm.DB) error

func DefaultDeleteScriptSet

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

func DefaultDeleteSmurf

func DefaultDeleteSmurf(ctx context.Context, in *Smurf, db *gorm.DB) error

func DefaultDeleteSmurfSet

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

func DefaultDeleteTable

func DefaultDeleteTable(ctx context.Context, in *Table, db *gorm.DB) error

func DefaultDeleteTableSet

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

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

func DefaultCreateElement(ctx context.Context, in *Element, db *gorm.DB) (*Element, error)

DefaultCreateElement executes a basic gorm create call

func DefaultListElement

func DefaultListElement(ctx context.Context, db *gorm.DB) ([]*Element, error)

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

func DefaultStrictUpdateElement

func DefaultStrictUpdateElement(ctx context.Context, in *Element, db *gorm.DB) (*Element, error)

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

func (*Element) Descriptor deprecated

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

Deprecated: Use Element.ProtoReflect.Descriptor instead.

func (*Element) GetId

func (x *Element) GetId() string

func (*Element) GetKey

func (x *Element) GetKey() string

func (*Element) GetValue

func (x *Element) GetValue() string

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) ProtoReflect

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

func (*Element) Reset

func (x *Element) Reset()

func (*Element) String

func (x *Element) String() string

func (*Element) ToORM

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

func (*ElementORM) ToPB

func (m *ElementORM) ToPB(ctx context.Context) (Element, 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 ElementORMWithAfterCreate_

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

type ElementORMWithAfterDeleteSet

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

type ElementORMWithAfterDelete_

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

type ElementORMWithAfterListFind

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

type ElementORMWithAfterReadFind

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

type ElementORMWithAfterStrictUpdateSave

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

type ElementORMWithBeforeCreate_

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

type ElementORMWithBeforeDeleteSet

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

type ElementORMWithBeforeDelete_

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

type ElementORMWithBeforeListApplyQuery

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

type ElementORMWithBeforeListFind

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

type ElementORMWithBeforeReadApplyQuery

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

type ElementORMWithBeforeReadFind

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

type ElementORMWithBeforeStrictUpdateCleanup

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

type ElementORMWithBeforeStrictUpdateSave

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

type ElementWithAfterPatchSave

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

type ElementWithAfterToORM

type ElementWithAfterToORM interface {
	AfterToORM(context.Context, *ElementORM) error
}

ElementAfterToORM called after default ToORM code

type ElementWithAfterToPB

type ElementWithAfterToPB interface {
	AfterToPB(context.Context, *Element) error
}

ElementAfterToPB called after default ToPB code

type ElementWithBeforePatchApplyFieldMask

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

type ElementWithBeforePatchRead

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

type ElementWithBeforePatchSave

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

type ElementWithBeforeToORM

type ElementWithBeforeToORM interface {
	BeforeToORM(context.Context, *ElementORM) error
}

ElementBeforeToORM called before default ToORM code

type ElementWithBeforeToPB

type ElementWithBeforeToPB interface {
	BeforeToPB(context.Context, *Element) error
}

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

func DefaultCreateScript(ctx context.Context, in *Script, db *gorm.DB) (*Script, error)

DefaultCreateScript executes a basic gorm create call

func DefaultListScript

func DefaultListScript(ctx context.Context, db *gorm.DB) ([]*Script, error)

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

func DefaultStrictUpdateScript

func DefaultStrictUpdateScript(ctx context.Context, in *Script, db *gorm.DB) (*Script, error)

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

func (*Script) Descriptor deprecated

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

Deprecated: Use Script.ProtoReflect.Descriptor instead.

func (*Script) GetCreatedAt

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

func (*Script) GetElements

func (x *Script) GetElements() []*Element

func (*Script) GetId

func (x *Script) GetId() string

func (*Script) GetName

func (x *Script) GetName() string

func (*Script) GetOutput

func (x *Script) GetOutput() string

func (*Script) GetTables

func (x *Script) GetTables() []*Table

func (*Script) GetUpdatedAt

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

func (*Script) ProtoMessage

func (*Script) ProtoMessage()

func (*Script) ProtoReflect

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

func (*Script) Reset

func (x *Script) Reset()

func (*Script) String

func (x *Script) String() string

func (*Script) ToORM

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

func (script *ScriptORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (ScriptORM) TableName

func (ScriptORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ScriptORM) ToPB

func (m *ScriptORM) ToPB(ctx context.Context) (Script, 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 ScriptORMWithAfterCreate_

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

type ScriptORMWithAfterDeleteSet

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

type ScriptORMWithAfterDelete_

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

type ScriptORMWithAfterListFind

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

type ScriptORMWithAfterReadFind

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

type ScriptORMWithAfterStrictUpdateSave

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

type ScriptORMWithBeforeCreate_

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

type ScriptORMWithBeforeDeleteSet

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

type ScriptORMWithBeforeDelete_

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

type ScriptORMWithBeforeListApplyQuery

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

type ScriptORMWithBeforeListFind

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

type ScriptORMWithBeforeReadApplyQuery

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

type ScriptORMWithBeforeReadFind

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

type ScriptORMWithBeforeStrictUpdateCleanup

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

type ScriptORMWithBeforeStrictUpdateSave

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

type ScriptWithAfterPatchSave

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

type ScriptWithAfterToORM

type ScriptWithAfterToORM interface {
	AfterToORM(context.Context, *ScriptORM) error
}

ScriptAfterToORM called after default ToORM code

type ScriptWithAfterToPB

type ScriptWithAfterToPB interface {
	AfterToPB(context.Context, *Script) error
}

ScriptAfterToPB called after default ToPB code

type ScriptWithBeforePatchApplyFieldMask

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

type ScriptWithBeforePatchRead

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

type ScriptWithBeforePatchSave

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

type ScriptWithBeforeToORM

type ScriptWithBeforeToORM interface {
	BeforeToORM(context.Context, *ScriptORM) error
}

ScriptBeforeToORM called before default ToORM code

type ScriptWithBeforeToPB

type ScriptWithBeforeToPB interface {
	BeforeToPB(context.Context, *Script) error
}

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

func DefaultCreateSmurf(ctx context.Context, in *Smurf, db *gorm.DB) (*Smurf, error)

DefaultCreateSmurf executes a basic gorm create call

func DefaultListSmurf

func DefaultListSmurf(ctx context.Context, db *gorm.DB) ([]*Smurf, error)

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

func DefaultStrictUpdateSmurf

func DefaultStrictUpdateSmurf(ctx context.Context, in *Smurf, db *gorm.DB) (*Smurf, error)

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

func (*Smurf) Descriptor deprecated

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

Deprecated: Use Smurf.ProtoReflect.Descriptor instead.

func (*Smurf) GetId

func (x *Smurf) GetId() string

func (*Smurf) GetResponses

func (x *Smurf) GetResponses() string

func (*Smurf) ProtoMessage

func (*Smurf) ProtoMessage()

func (*Smurf) ProtoReflect

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

func (*Smurf) Reset

func (x *Smurf) Reset()

func (*Smurf) String

func (x *Smurf) String() string

func (*Smurf) ToORM

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

type SmurfORM struct {
	Id        string `gorm:"type:uuid;primary_key"`
	Responses string
}

func (*SmurfORM) BeforeCreate

func (smurf *SmurfORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (SmurfORM) TableName

func (SmurfORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*SmurfORM) ToPB

func (m *SmurfORM) ToPB(ctx context.Context) (Smurf, 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 SmurfORMWithAfterCreate_

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

type SmurfORMWithAfterDeleteSet

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

type SmurfORMWithAfterDelete_

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

type SmurfORMWithAfterListFind

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

type SmurfORMWithAfterReadFind

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

type SmurfORMWithAfterStrictUpdateSave

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

type SmurfORMWithBeforeCreate_

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

type SmurfORMWithBeforeDeleteSet

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

type SmurfORMWithBeforeDelete_

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

type SmurfORMWithBeforeListApplyQuery

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

type SmurfORMWithBeforeListFind

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

type SmurfORMWithBeforeReadApplyQuery

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

type SmurfORMWithBeforeReadFind

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

type SmurfORMWithBeforeStrictUpdateCleanup

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

type SmurfORMWithBeforeStrictUpdateSave

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

type SmurfWithAfterPatchSave

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

type SmurfWithAfterToORM

type SmurfWithAfterToORM interface {
	AfterToORM(context.Context, *SmurfORM) error
}

SmurfAfterToORM called after default ToORM code

type SmurfWithAfterToPB

type SmurfWithAfterToPB interface {
	AfterToPB(context.Context, *Smurf) error
}

SmurfAfterToPB called after default ToPB code

type SmurfWithBeforePatchApplyFieldMask

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

type SmurfWithBeforePatchRead

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

type SmurfWithBeforePatchSave

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

type SmurfWithBeforeToORM

type SmurfWithBeforeToORM interface {
	BeforeToORM(context.Context, *SmurfORM) error
}

SmurfBeforeToORM called before default ToORM code

type SmurfWithBeforeToPB

type SmurfWithBeforeToPB interface {
	BeforeToPB(context.Context, *Smurf) error
}

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

func DefaultCreateTable(ctx context.Context, in *Table, db *gorm.DB) (*Table, error)

DefaultCreateTable executes a basic gorm create call

func DefaultListTable

func DefaultListTable(ctx context.Context, db *gorm.DB) ([]*Table, error)

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

func DefaultStrictUpdateTable

func DefaultStrictUpdateTable(ctx context.Context, in *Table, db *gorm.DB) (*Table, error)

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

func (*Table) Descriptor deprecated

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

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetElements

func (x *Table) GetElements() []*Element

func (*Table) GetId

func (x *Table) GetId() string

func (*Table) GetKey

func (x *Table) GetKey() string

func (*Table) GetTables

func (x *Table) GetTables() []*Table

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

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

func (*Table) Reset

func (x *Table) Reset()

func (*Table) String

func (x *Table) String() string

func (*Table) ToORM

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

func (table *TableORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TableORM) TableName

func (TableORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TableORM) ToPB

func (m *TableORM) ToPB(ctx context.Context) (Table, 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 TableORMWithAfterCreate_

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

type TableORMWithAfterDeleteSet

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

type TableORMWithAfterDelete_

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

type TableORMWithAfterListFind

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

type TableORMWithAfterReadFind

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

type TableORMWithAfterStrictUpdateSave

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

type TableORMWithBeforeCreate_

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

type TableORMWithBeforeDeleteSet

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

type TableORMWithBeforeDelete_

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

type TableORMWithBeforeListApplyQuery

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

type TableORMWithBeforeListFind

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

type TableORMWithBeforeReadApplyQuery

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

type TableORMWithBeforeReadFind

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

type TableORMWithBeforeStrictUpdateCleanup

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

type TableORMWithBeforeStrictUpdateSave

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

type TableWithAfterPatchSave

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

type TableWithAfterToORM

type TableWithAfterToORM interface {
	AfterToORM(context.Context, *TableORM) error
}

TableAfterToORM called after default ToORM code

type TableWithAfterToPB

type TableWithAfterToPB interface {
	AfterToPB(context.Context, *Table) error
}

TableAfterToPB called after default ToPB code

type TableWithBeforePatchApplyFieldMask

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

type TableWithBeforePatchRead

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

type TableWithBeforePatchSave

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

type TableWithBeforeToORM

type TableWithBeforeToORM interface {
	BeforeToORM(context.Context, *TableORM) error
}

TableBeforeToORM called before default ToORM code

type TableWithBeforeToPB

type TableWithBeforeToPB interface {
	BeforeToPB(context.Context, *Table) error
}

TableBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

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