Documentation ¶
Index ¶
- Variables
- func DefaultDeleteExtraPort(ctx context.Context, in *ExtraPort, db *gorm.DB) error
- func DefaultDeleteExtraPortSet(ctx context.Context, in []*ExtraPort, db *gorm.DB) error
- func DefaultDeleteGroup(ctx context.Context, in *Group, db *gorm.DB) error
- func DefaultDeleteGroupSet(ctx context.Context, in []*Group, db *gorm.DB) error
- func DefaultDeleteHost(ctx context.Context, in *Host, db *gorm.DB) error
- func DefaultDeleteHostSet(ctx context.Context, in []*Host, db *gorm.DB) error
- func DefaultDeleteHostname(ctx context.Context, in *Hostname, db *gorm.DB) error
- func DefaultDeleteHostnameSet(ctx context.Context, in []*Hostname, db *gorm.DB) error
- func DefaultDeleteOS(ctx context.Context, in *OS, db *gorm.DB) error
- func DefaultDeleteOSClass(ctx context.Context, in *OSClass, db *gorm.DB) error
- func DefaultDeleteOSClassSet(ctx context.Context, in []*OSClass, db *gorm.DB) error
- func DefaultDeleteOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) error
- func DefaultDeleteOSFingerprintSet(ctx context.Context, in []*OSFingerprint, db *gorm.DB) error
- func DefaultDeleteOSMatch(ctx context.Context, in *OSMatch, db *gorm.DB) error
- func DefaultDeleteOSMatchSet(ctx context.Context, in []*OSMatch, db *gorm.DB) error
- func DefaultDeleteOSSet(ctx context.Context, in []*OS, db *gorm.DB) error
- func DefaultDeletePort(ctx context.Context, in *Port, db *gorm.DB) error
- func DefaultDeletePortSet(ctx context.Context, in []*Port, db *gorm.DB) error
- func DefaultDeletePortUsed(ctx context.Context, in *PortUsed, db *gorm.DB) error
- func DefaultDeletePortUsedSet(ctx context.Context, in []*PortUsed, db *gorm.DB) error
- func DefaultDeleteReason(ctx context.Context, in *Reason, db *gorm.DB) error
- func DefaultDeleteReasonSet(ctx context.Context, in []*Reason, db *gorm.DB) error
- func DefaultDeleteState(ctx context.Context, in *State, db *gorm.DB) error
- func DefaultDeleteStateSet(ctx context.Context, in []*State, db *gorm.DB) error
- func DefaultDeleteStatus(ctx context.Context, in *Status, db *gorm.DB) error
- func DefaultDeleteStatusSet(ctx context.Context, in []*Status, db *gorm.DB) error
- func DefaultDeleteUptime(ctx context.Context, in *Uptime, db *gorm.DB) error
- func DefaultDeleteUptimeSet(ctx context.Context, in []*Uptime, db *gorm.DB) error
- func DefaultDeleteUser(ctx context.Context, in *User, db *gorm.DB) error
- func DefaultDeleteUserSet(ctx context.Context, in []*User, db *gorm.DB) error
- type ExtraPort
- func DefaultApplyFieldMaskExtraPort(ctx context.Context, patchee *ExtraPort, patcher *ExtraPort, ...) (*ExtraPort, error)
- func DefaultCreateExtraPort(ctx context.Context, in *ExtraPort, db *gorm.DB) (*ExtraPort, error)
- func DefaultListExtraPort(ctx context.Context, db *gorm.DB) ([]*ExtraPort, error)
- func DefaultPatchExtraPort(ctx context.Context, in *ExtraPort, updateMask *field_mask.FieldMask, ...) (*ExtraPort, error)
- func DefaultPatchSetExtraPort(ctx context.Context, objects []*ExtraPort, updateMasks []*field_mask.FieldMask, ...) ([]*ExtraPort, error)
- func DefaultReadExtraPort(ctx context.Context, in *ExtraPort, db *gorm.DB) (*ExtraPort, error)
- func DefaultStrictUpdateExtraPort(ctx context.Context, in *ExtraPort, db *gorm.DB) (*ExtraPort, error)
- func (*ExtraPort) Descriptor() ([]byte, []int)deprecated
- func (x *ExtraPort) GetCount() int32
- func (x *ExtraPort) GetId() string
- func (x *ExtraPort) GetReasons() []*Reason
- func (*ExtraPort) ProtoMessage()
- func (x *ExtraPort) ProtoReflect() protoreflect.Message
- func (x *ExtraPort) Reset()
- func (x *ExtraPort) String() string
- func (m *ExtraPort) ToORM(ctx context.Context) (ExtraPortORM, error)
- type ExtraPortORM
- type ExtraPortORMWithAfterCreate_
- type ExtraPortORMWithAfterDeleteSet
- type ExtraPortORMWithAfterDelete_
- type ExtraPortORMWithAfterListFind
- type ExtraPortORMWithAfterReadFind
- type ExtraPortORMWithAfterStrictUpdateSave
- type ExtraPortORMWithBeforeCreate_
- type ExtraPortORMWithBeforeDeleteSet
- type ExtraPortORMWithBeforeDelete_
- type ExtraPortORMWithBeforeListApplyQuery
- type ExtraPortORMWithBeforeListFind
- type ExtraPortORMWithBeforeReadApplyQuery
- type ExtraPortORMWithBeforeReadFind
- type ExtraPortORMWithBeforeStrictUpdateCleanup
- type ExtraPortORMWithBeforeStrictUpdateSave
- type ExtraPortWithAfterPatchSave
- type ExtraPortWithAfterToORM
- type ExtraPortWithAfterToPB
- type ExtraPortWithBeforePatchApplyFieldMask
- type ExtraPortWithBeforePatchRead
- type ExtraPortWithBeforePatchSave
- type ExtraPortWithBeforeToORM
- type ExtraPortWithBeforeToPB
- type Group
- func DefaultApplyFieldMaskGroup(ctx context.Context, patchee *Group, patcher *Group, ...) (*Group, error)
- func DefaultCreateGroup(ctx context.Context, in *Group, db *gorm.DB) (*Group, error)
- func DefaultListGroup(ctx context.Context, db *gorm.DB) ([]*Group, error)
- func DefaultPatchGroup(ctx context.Context, in *Group, updateMask *field_mask.FieldMask, db *gorm.DB) (*Group, error)
- func DefaultPatchSetGroup(ctx context.Context, objects []*Group, updateMasks []*field_mask.FieldMask, ...) ([]*Group, error)
- func DefaultReadGroup(ctx context.Context, in *Group, db *gorm.DB) (*Group, error)
- func DefaultStrictUpdateGroup(ctx context.Context, in *Group, db *gorm.DB) (*Group, error)
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreatedAt() *timestamppb.Timestamp
- func (x *Group) GetGID() int32
- func (x *Group) GetId() string
- func (x *Group) GetMembers() []*User
- func (x *Group) GetName() string
- func (x *Group) GetUpdatedAt() *timestamppb.Timestamp
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- func (m *Group) ToORM(ctx context.Context) (GroupORM, error)
- type GroupORM
- type GroupORMWithAfterCreate_
- type GroupORMWithAfterDeleteSet
- type GroupORMWithAfterDelete_
- type GroupORMWithAfterListFind
- type GroupORMWithAfterReadFind
- type GroupORMWithAfterStrictUpdateSave
- type GroupORMWithBeforeCreate_
- type GroupORMWithBeforeDeleteSet
- type GroupORMWithBeforeDelete_
- type GroupORMWithBeforeListApplyQuery
- type GroupORMWithBeforeListFind
- type GroupORMWithBeforeReadApplyQuery
- type GroupORMWithBeforeReadFind
- type GroupORMWithBeforeStrictUpdateCleanup
- type GroupORMWithBeforeStrictUpdateSave
- type GroupWithAfterPatchSave
- type GroupWithAfterToORM
- type GroupWithAfterToPB
- type GroupWithBeforePatchApplyFieldMask
- type GroupWithBeforePatchRead
- type GroupWithBeforePatchSave
- type GroupWithBeforeToORM
- type GroupWithBeforeToPB
- type Host
- func DefaultApplyFieldMaskHost(ctx context.Context, patchee *Host, patcher *Host, ...) (*Host, error)
- func DefaultCreateHost(ctx context.Context, in *Host, db *gorm.DB) (*Host, error)
- func DefaultListHost(ctx context.Context, db *gorm.DB) ([]*Host, error)
- func DefaultPatchHost(ctx context.Context, in *Host, updateMask *field_mask.FieldMask, db *gorm.DB) (*Host, error)
- func DefaultPatchSetHost(ctx context.Context, objects []*Host, updateMasks []*field_mask.FieldMask, ...) ([]*Host, error)
- func DefaultReadHost(ctx context.Context, in *Host, db *gorm.DB) (*Host, error)
- func DefaultStrictUpdateHost(ctx context.Context, in *Host, db *gorm.DB) (*Host, error)
- func (*Host) Descriptor() ([]byte, []int)deprecated
- func (x *Host) GetAddresses() []*network.Address
- func (x *Host) GetArch() string
- func (x *Host) GetComm() string
- func (x *Host) GetComment() string
- func (x *Host) GetCreatedAt() *timestamppb.Timestamp
- func (x *Host) GetDistance() *network.Distance
- func (x *Host) GetEndTime() int64
- func (x *Host) GetExtraPorts() []*ExtraPort
- func (x *Host) GetHostScripts() []*nmap.Script
- func (x *Host) GetHostnames() []*Hostname
- func (x *Host) GetICMPResponse() *network.ICMPResponse
- func (x *Host) GetIPIDSequence() *network.IPIDSequence
- func (x *Host) GetId() string
- func (x *Host) GetInfo() string
- func (x *Host) GetMAC() string
- func (x *Host) GetOS() *OS
- func (x *Host) GetOSFamily() string
- func (x *Host) GetOSFlavor() string
- func (x *Host) GetOSLang() string
- func (x *Host) GetOSName() string
- func (x *Host) GetOSSp() string
- func (x *Host) GetPorts() []*Port
- func (x *Host) GetPurpose() string
- func (x *Host) GetScope() string
- func (x *Host) GetSmurfs() []*nmap.Smurf
- func (x *Host) GetStartTime() int64
- func (x *Host) GetStatus() *Status
- func (x *Host) GetTCPSequence() *network.TCPSequence
- func (x *Host) GetTCPTSSequence() *network.TCPTSSequence
- func (x *Host) GetTesting() *network.Times
- func (x *Host) GetTrace() *network.Trace
- func (x *Host) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Host) GetUptime() *Uptime
- func (x *Host) GetUsers() []*User
- func (x *Host) GetVirtualHost() string
- func (*Host) ProtoMessage()
- func (x *Host) ProtoReflect() protoreflect.Message
- func (x *Host) Reset()
- func (x *Host) String() string
- func (m *Host) ToORM(ctx context.Context) (HostORM, error)
- type HostORM
- type HostORMWithAfterCreate_
- type HostORMWithAfterDeleteSet
- type HostORMWithAfterDelete_
- type HostORMWithAfterListFind
- type HostORMWithAfterReadFind
- type HostORMWithAfterStrictUpdateSave
- type HostORMWithBeforeCreate_
- type HostORMWithBeforeDeleteSet
- type HostORMWithBeforeDelete_
- type HostORMWithBeforeListApplyQuery
- type HostORMWithBeforeListFind
- type HostORMWithBeforeReadApplyQuery
- type HostORMWithBeforeReadFind
- type HostORMWithBeforeStrictUpdateCleanup
- type HostORMWithBeforeStrictUpdateSave
- type HostWithAfterPatchSave
- type HostWithAfterToORM
- type HostWithAfterToPB
- type HostWithBeforePatchApplyFieldMask
- type HostWithBeforePatchRead
- type HostWithBeforePatchSave
- type HostWithBeforeToORM
- type HostWithBeforeToPB
- type Hostname
- func DefaultApplyFieldMaskHostname(ctx context.Context, patchee *Hostname, patcher *Hostname, ...) (*Hostname, error)
- func DefaultCreateHostname(ctx context.Context, in *Hostname, db *gorm.DB) (*Hostname, error)
- func DefaultListHostname(ctx context.Context, db *gorm.DB) ([]*Hostname, error)
- func DefaultPatchHostname(ctx context.Context, in *Hostname, updateMask *field_mask.FieldMask, ...) (*Hostname, error)
- func DefaultPatchSetHostname(ctx context.Context, objects []*Hostname, updateMasks []*field_mask.FieldMask, ...) ([]*Hostname, error)
- func DefaultReadHostname(ctx context.Context, in *Hostname, db *gorm.DB) (*Hostname, error)
- func DefaultStrictUpdateHostname(ctx context.Context, in *Hostname, db *gorm.DB) (*Hostname, error)
- func (*Hostname) Descriptor() ([]byte, []int)deprecated
- func (x *Hostname) GetCreatedAt() *timestamppb.Timestamp
- func (x *Hostname) GetId() string
- func (x *Hostname) GetName() string
- func (x *Hostname) GetType() string
- func (x *Hostname) GetUpdatedAt() *timestamppb.Timestamp
- func (*Hostname) ProtoMessage()
- func (x *Hostname) ProtoReflect() protoreflect.Message
- func (x *Hostname) Reset()
- func (x *Hostname) String() string
- func (m *Hostname) ToORM(ctx context.Context) (HostnameORM, error)
- type HostnameORM
- type HostnameORMWithAfterCreate_
- type HostnameORMWithAfterDeleteSet
- type HostnameORMWithAfterDelete_
- type HostnameORMWithAfterListFind
- type HostnameORMWithAfterReadFind
- type HostnameORMWithAfterStrictUpdateSave
- type HostnameORMWithBeforeCreate_
- type HostnameORMWithBeforeDeleteSet
- type HostnameORMWithBeforeDelete_
- type HostnameORMWithBeforeListApplyQuery
- type HostnameORMWithBeforeListFind
- type HostnameORMWithBeforeReadApplyQuery
- type HostnameORMWithBeforeReadFind
- type HostnameORMWithBeforeStrictUpdateCleanup
- type HostnameORMWithBeforeStrictUpdateSave
- type HostnameWithAfterPatchSave
- type HostnameWithAfterToORM
- type HostnameWithAfterToPB
- type HostnameWithBeforePatchApplyFieldMask
- type HostnameWithBeforePatchRead
- type HostnameWithBeforePatchSave
- type HostnameWithBeforeToORM
- type HostnameWithBeforeToPB
- type OS
- func DefaultApplyFieldMaskOS(ctx context.Context, patchee *OS, patcher *OS, ...) (*OS, error)
- func DefaultCreateOS(ctx context.Context, in *OS, db *gorm.DB) (*OS, error)
- func DefaultListOS(ctx context.Context, db *gorm.DB) ([]*OS, error)
- func DefaultPatchOS(ctx context.Context, in *OS, updateMask *field_mask.FieldMask, db *gorm.DB) (*OS, error)
- func DefaultPatchSetOS(ctx context.Context, objects []*OS, updateMasks []*field_mask.FieldMask, ...) ([]*OS, error)
- func DefaultReadOS(ctx context.Context, in *OS, db *gorm.DB) (*OS, error)
- func DefaultStrictUpdateOS(ctx context.Context, in *OS, db *gorm.DB) (*OS, error)
- func (*OS) Descriptor() ([]byte, []int)deprecated
- func (x *OS) GetFingerprints() []*OSFingerprint
- func (x *OS) GetId() string
- func (x *OS) GetMatches() []*OSMatch
- func (x *OS) GetPortsUsed() []*PortUsed
- func (*OS) ProtoMessage()
- func (x *OS) ProtoReflect() protoreflect.Message
- func (x *OS) Reset()
- func (x *OS) String() string
- func (m *OS) ToORM(ctx context.Context) (OSORM, error)
- type OSClass
- func DefaultApplyFieldMaskOSClass(ctx context.Context, patchee *OSClass, patcher *OSClass, ...) (*OSClass, error)
- func DefaultCreateOSClass(ctx context.Context, in *OSClass, db *gorm.DB) (*OSClass, error)
- func DefaultListOSClass(ctx context.Context, db *gorm.DB) ([]*OSClass, error)
- func DefaultPatchOSClass(ctx context.Context, in *OSClass, updateMask *field_mask.FieldMask, ...) (*OSClass, error)
- func DefaultPatchSetOSClass(ctx context.Context, objects []*OSClass, updateMasks []*field_mask.FieldMask, ...) ([]*OSClass, error)
- func DefaultReadOSClass(ctx context.Context, in *OSClass, db *gorm.DB) (*OSClass, error)
- func DefaultStrictUpdateOSClass(ctx context.Context, in *OSClass, db *gorm.DB) (*OSClass, error)
- func (*OSClass) Descriptor() ([]byte, []int)deprecated
- func (x *OSClass) GetAccuracy() int32
- func (x *OSClass) GetCPEs() []string
- func (x *OSClass) GetFamily() os.Family
- func (x *OSClass) GetId() string
- func (x *OSClass) GetOSGeneration() string
- func (x *OSClass) GetType() string
- func (x *OSClass) GetVendor() string
- func (*OSClass) ProtoMessage()
- func (x *OSClass) ProtoReflect() protoreflect.Message
- func (x *OSClass) Reset()
- func (x *OSClass) String() string
- func (m *OSClass) ToORM(ctx context.Context) (OSClassORM, error)
- type OSClassORM
- type OSClassORMWithAfterCreate_
- type OSClassORMWithAfterDeleteSet
- type OSClassORMWithAfterDelete_
- type OSClassORMWithAfterListFind
- type OSClassORMWithAfterReadFind
- type OSClassORMWithAfterStrictUpdateSave
- type OSClassORMWithBeforeCreate_
- type OSClassORMWithBeforeDeleteSet
- type OSClassORMWithBeforeDelete_
- type OSClassORMWithBeforeListApplyQuery
- type OSClassORMWithBeforeListFind
- type OSClassORMWithBeforeReadApplyQuery
- type OSClassORMWithBeforeReadFind
- type OSClassORMWithBeforeStrictUpdateCleanup
- type OSClassORMWithBeforeStrictUpdateSave
- type OSClassWithAfterPatchSave
- type OSClassWithAfterToORM
- type OSClassWithAfterToPB
- type OSClassWithBeforePatchApplyFieldMask
- type OSClassWithBeforePatchRead
- type OSClassWithBeforePatchSave
- type OSClassWithBeforeToORM
- type OSClassWithBeforeToPB
- type OSFingerprint
- func DefaultApplyFieldMaskOSFingerprint(ctx context.Context, patchee *OSFingerprint, patcher *OSFingerprint, ...) (*OSFingerprint, error)
- func DefaultCreateOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) (*OSFingerprint, error)
- func DefaultListOSFingerprint(ctx context.Context, db *gorm.DB) ([]*OSFingerprint, error)
- func DefaultPatchOSFingerprint(ctx context.Context, in *OSFingerprint, updateMask *field_mask.FieldMask, ...) (*OSFingerprint, error)
- func DefaultPatchSetOSFingerprint(ctx context.Context, objects []*OSFingerprint, ...) ([]*OSFingerprint, error)
- func DefaultReadOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) (*OSFingerprint, error)
- func DefaultStrictUpdateOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) (*OSFingerprint, error)
- func (*OSFingerprint) Descriptor() ([]byte, []int)deprecated
- func (x *OSFingerprint) GetFingerprint() string
- func (x *OSFingerprint) GetId() string
- func (*OSFingerprint) ProtoMessage()
- func (x *OSFingerprint) ProtoReflect() protoreflect.Message
- func (x *OSFingerprint) Reset()
- func (x *OSFingerprint) String() string
- func (m *OSFingerprint) ToORM(ctx context.Context) (OSFingerprintORM, error)
- type OSFingerprintORM
- type OSFingerprintORMWithAfterCreate_
- type OSFingerprintORMWithAfterDeleteSet
- type OSFingerprintORMWithAfterDelete_
- type OSFingerprintORMWithAfterListFind
- type OSFingerprintORMWithAfterReadFind
- type OSFingerprintORMWithAfterStrictUpdateSave
- type OSFingerprintORMWithBeforeCreate_
- type OSFingerprintORMWithBeforeDeleteSet
- type OSFingerprintORMWithBeforeDelete_
- type OSFingerprintORMWithBeforeListApplyQuery
- type OSFingerprintORMWithBeforeListFind
- type OSFingerprintORMWithBeforeReadApplyQuery
- type OSFingerprintORMWithBeforeReadFind
- type OSFingerprintORMWithBeforeStrictUpdateCleanup
- type OSFingerprintORMWithBeforeStrictUpdateSave
- type OSFingerprintWithAfterPatchSave
- type OSFingerprintWithAfterToORM
- type OSFingerprintWithAfterToPB
- type OSFingerprintWithBeforePatchApplyFieldMask
- type OSFingerprintWithBeforePatchRead
- type OSFingerprintWithBeforePatchSave
- type OSFingerprintWithBeforeToORM
- type OSFingerprintWithBeforeToPB
- type OSMatch
- func DefaultApplyFieldMaskOSMatch(ctx context.Context, patchee *OSMatch, patcher *OSMatch, ...) (*OSMatch, error)
- func DefaultCreateOSMatch(ctx context.Context, in *OSMatch, db *gorm.DB) (*OSMatch, error)
- func DefaultListOSMatch(ctx context.Context, db *gorm.DB) ([]*OSMatch, error)
- func DefaultPatchOSMatch(ctx context.Context, in *OSMatch, updateMask *field_mask.FieldMask, ...) (*OSMatch, error)
- func DefaultPatchSetOSMatch(ctx context.Context, objects []*OSMatch, updateMasks []*field_mask.FieldMask, ...) ([]*OSMatch, error)
- func DefaultReadOSMatch(ctx context.Context, in *OSMatch, db *gorm.DB) (*OSMatch, error)
- func DefaultStrictUpdateOSMatch(ctx context.Context, in *OSMatch, db *gorm.DB) (*OSMatch, error)
- func (*OSMatch) Descriptor() ([]byte, []int)deprecated
- func (x *OSMatch) GetAccuracy() int32
- func (x *OSMatch) GetClasses() []*OSClass
- func (x *OSMatch) GetId() string
- func (x *OSMatch) GetLine() int32
- func (x *OSMatch) GetName() string
- func (*OSMatch) ProtoMessage()
- func (x *OSMatch) ProtoReflect() protoreflect.Message
- func (x *OSMatch) Reset()
- func (x *OSMatch) String() string
- func (m *OSMatch) ToORM(ctx context.Context) (OSMatchORM, error)
- type OSMatchORM
- type OSMatchORMWithAfterCreate_
- type OSMatchORMWithAfterDeleteSet
- type OSMatchORMWithAfterDelete_
- type OSMatchORMWithAfterListFind
- type OSMatchORMWithAfterReadFind
- type OSMatchORMWithAfterStrictUpdateSave
- type OSMatchORMWithBeforeCreate_
- type OSMatchORMWithBeforeDeleteSet
- type OSMatchORMWithBeforeDelete_
- type OSMatchORMWithBeforeListApplyQuery
- type OSMatchORMWithBeforeListFind
- type OSMatchORMWithBeforeReadApplyQuery
- type OSMatchORMWithBeforeReadFind
- type OSMatchORMWithBeforeStrictUpdateCleanup
- type OSMatchORMWithBeforeStrictUpdateSave
- type OSMatchWithAfterPatchSave
- type OSMatchWithAfterToORM
- type OSMatchWithAfterToPB
- type OSMatchWithBeforePatchApplyFieldMask
- type OSMatchWithBeforePatchRead
- type OSMatchWithBeforePatchSave
- type OSMatchWithBeforeToORM
- type OSMatchWithBeforeToPB
- type OSORM
- type OSORMWithAfterCreate_
- type OSORMWithAfterDeleteSet
- type OSORMWithAfterDelete_
- type OSORMWithAfterListFind
- type OSORMWithAfterReadFind
- type OSORMWithAfterStrictUpdateSave
- type OSORMWithBeforeCreate_
- type OSORMWithBeforeDeleteSet
- type OSORMWithBeforeDelete_
- type OSORMWithBeforeListApplyQuery
- type OSORMWithBeforeListFind
- type OSORMWithBeforeReadApplyQuery
- type OSORMWithBeforeReadFind
- type OSORMWithBeforeStrictUpdateCleanup
- type OSORMWithBeforeStrictUpdateSave
- type OSWithAfterPatchSave
- type OSWithAfterToORM
- type OSWithAfterToPB
- type OSWithBeforePatchApplyFieldMask
- type OSWithBeforePatchRead
- type OSWithBeforePatchSave
- type OSWithBeforeToORM
- type OSWithBeforeToPB
- type Port
- func DefaultApplyFieldMaskPort(ctx context.Context, patchee *Port, patcher *Port, ...) (*Port, error)
- func DefaultCreatePort(ctx context.Context, in *Port, db *gorm.DB) (*Port, error)
- func DefaultListPort(ctx context.Context, db *gorm.DB) ([]*Port, error)
- func DefaultPatchPort(ctx context.Context, in *Port, updateMask *field_mask.FieldMask, db *gorm.DB) (*Port, error)
- func DefaultPatchSetPort(ctx context.Context, objects []*Port, updateMasks []*field_mask.FieldMask, ...) ([]*Port, error)
- func DefaultReadPort(ctx context.Context, in *Port, db *gorm.DB) (*Port, error)
- func DefaultStrictUpdatePort(ctx context.Context, in *Port, db *gorm.DB) (*Port, error)
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetCount() int32
- func (x *Port) GetCreatedAt() *timestamppb.Timestamp
- func (x *Port) GetId() string
- func (x *Port) GetNumber() uint32
- func (x *Port) GetOwner() string
- func (x *Port) GetProtocol() string
- func (x *Port) GetReasons() []*Reason
- func (x *Port) GetScripts() []*nmap.Script
- func (x *Port) GetService() *network.Service
- func (x *Port) GetState() *State
- func (x *Port) GetUpdatedAt() *timestamppb.Timestamp
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
- func (m *Port) ToORM(ctx context.Context) (PortORM, error)
- type PortORM
- type PortORMWithAfterCreate_
- type PortORMWithAfterDeleteSet
- type PortORMWithAfterDelete_
- type PortORMWithAfterListFind
- type PortORMWithAfterReadFind
- type PortORMWithAfterStrictUpdateSave
- type PortORMWithBeforeCreate_
- type PortORMWithBeforeDeleteSet
- type PortORMWithBeforeDelete_
- type PortORMWithBeforeListApplyQuery
- type PortORMWithBeforeListFind
- type PortORMWithBeforeReadApplyQuery
- type PortORMWithBeforeReadFind
- type PortORMWithBeforeStrictUpdateCleanup
- type PortORMWithBeforeStrictUpdateSave
- type PortUsed
- func DefaultApplyFieldMaskPortUsed(ctx context.Context, patchee *PortUsed, patcher *PortUsed, ...) (*PortUsed, error)
- func DefaultCreatePortUsed(ctx context.Context, in *PortUsed, db *gorm.DB) (*PortUsed, error)
- func DefaultListPortUsed(ctx context.Context, db *gorm.DB) ([]*PortUsed, error)
- func DefaultPatchPortUsed(ctx context.Context, in *PortUsed, updateMask *field_mask.FieldMask, ...) (*PortUsed, error)
- func DefaultPatchSetPortUsed(ctx context.Context, objects []*PortUsed, updateMasks []*field_mask.FieldMask, ...) ([]*PortUsed, error)
- func DefaultReadPortUsed(ctx context.Context, in *PortUsed, db *gorm.DB) (*PortUsed, error)
- func DefaultStrictUpdatePortUsed(ctx context.Context, in *PortUsed, db *gorm.DB) (*PortUsed, error)
- func (*PortUsed) Descriptor() ([]byte, []int)deprecated
- func (x *PortUsed) GetId() string
- func (x *PortUsed) GetNumber() uint32
- func (x *PortUsed) GetProtocol() string
- func (x *PortUsed) GetState() string
- func (*PortUsed) ProtoMessage()
- func (x *PortUsed) ProtoReflect() protoreflect.Message
- func (x *PortUsed) Reset()
- func (x *PortUsed) String() string
- func (m *PortUsed) ToORM(ctx context.Context) (PortUsedORM, error)
- type PortUsedORM
- type PortUsedORMWithAfterCreate_
- type PortUsedORMWithAfterDeleteSet
- type PortUsedORMWithAfterDelete_
- type PortUsedORMWithAfterListFind
- type PortUsedORMWithAfterReadFind
- type PortUsedORMWithAfterStrictUpdateSave
- type PortUsedORMWithBeforeCreate_
- type PortUsedORMWithBeforeDeleteSet
- type PortUsedORMWithBeforeDelete_
- type PortUsedORMWithBeforeListApplyQuery
- type PortUsedORMWithBeforeListFind
- type PortUsedORMWithBeforeReadApplyQuery
- type PortUsedORMWithBeforeReadFind
- type PortUsedORMWithBeforeStrictUpdateCleanup
- type PortUsedORMWithBeforeStrictUpdateSave
- type PortUsedWithAfterPatchSave
- type PortUsedWithAfterToORM
- type PortUsedWithAfterToPB
- type PortUsedWithBeforePatchApplyFieldMask
- type PortUsedWithBeforePatchRead
- type PortUsedWithBeforePatchSave
- type PortUsedWithBeforeToORM
- type PortUsedWithBeforeToPB
- type PortWithAfterPatchSave
- type PortWithAfterToORM
- type PortWithAfterToPB
- type PortWithBeforePatchApplyFieldMask
- type PortWithBeforePatchRead
- type PortWithBeforePatchSave
- type PortWithBeforeToORM
- type PortWithBeforeToPB
- type Reason
- func DefaultApplyFieldMaskReason(ctx context.Context, patchee *Reason, patcher *Reason, ...) (*Reason, error)
- func DefaultCreateReason(ctx context.Context, in *Reason, db *gorm.DB) (*Reason, error)
- func DefaultListReason(ctx context.Context, db *gorm.DB) ([]*Reason, error)
- func DefaultPatchReason(ctx context.Context, in *Reason, updateMask *field_mask.FieldMask, db *gorm.DB) (*Reason, error)
- func DefaultPatchSetReason(ctx context.Context, objects []*Reason, updateMasks []*field_mask.FieldMask, ...) ([]*Reason, error)
- func DefaultReadReason(ctx context.Context, in *Reason, db *gorm.DB) (*Reason, error)
- func DefaultStrictUpdateReason(ctx context.Context, in *Reason, db *gorm.DB) (*Reason, error)
- func (*Reason) Descriptor() ([]byte, []int)deprecated
- func (x *Reason) GetCount() int32
- func (x *Reason) GetId() string
- func (x *Reason) GetReason() string
- func (*Reason) ProtoMessage()
- func (x *Reason) ProtoReflect() protoreflect.Message
- func (x *Reason) Reset()
- func (x *Reason) String() string
- func (m *Reason) ToORM(ctx context.Context) (ReasonORM, error)
- type ReasonORM
- type ReasonORMWithAfterCreate_
- type ReasonORMWithAfterDeleteSet
- type ReasonORMWithAfterDelete_
- type ReasonORMWithAfterListFind
- type ReasonORMWithAfterReadFind
- type ReasonORMWithAfterStrictUpdateSave
- type ReasonORMWithBeforeCreate_
- type ReasonORMWithBeforeDeleteSet
- type ReasonORMWithBeforeDelete_
- type ReasonORMWithBeforeListApplyQuery
- type ReasonORMWithBeforeListFind
- type ReasonORMWithBeforeReadApplyQuery
- type ReasonORMWithBeforeReadFind
- type ReasonORMWithBeforeStrictUpdateCleanup
- type ReasonORMWithBeforeStrictUpdateSave
- type ReasonWithAfterPatchSave
- type ReasonWithAfterToORM
- type ReasonWithAfterToPB
- type ReasonWithBeforePatchApplyFieldMask
- type ReasonWithBeforePatchRead
- type ReasonWithBeforePatchSave
- type ReasonWithBeforeToORM
- type ReasonWithBeforeToPB
- type State
- func DefaultApplyFieldMaskState(ctx context.Context, patchee *State, patcher *State, ...) (*State, error)
- func DefaultCreateState(ctx context.Context, in *State, db *gorm.DB) (*State, error)
- func DefaultListState(ctx context.Context, db *gorm.DB) ([]*State, error)
- func DefaultPatchSetState(ctx context.Context, objects []*State, updateMasks []*field_mask.FieldMask, ...) ([]*State, error)
- func DefaultPatchState(ctx context.Context, in *State, updateMask *field_mask.FieldMask, db *gorm.DB) (*State, error)
- func DefaultReadState(ctx context.Context, in *State, db *gorm.DB) (*State, error)
- func DefaultStrictUpdateState(ctx context.Context, in *State, db *gorm.DB) (*State, error)
- func (*State) Descriptor() ([]byte, []int)deprecated
- func (x *State) GetCreatedAt() *timestamppb.Timestamp
- func (x *State) GetId() string
- func (x *State) GetReason() string
- func (x *State) GetReasonIP() string
- func (x *State) GetReasonTTL() float32
- func (x *State) GetState() string
- func (x *State) GetUpdatedAt() *timestamppb.Timestamp
- func (*State) ProtoMessage()
- func (x *State) ProtoReflect() protoreflect.Message
- func (x *State) Reset()
- func (x *State) String() string
- func (m *State) ToORM(ctx context.Context) (StateORM, error)
- type StateORM
- type StateORMWithAfterCreate_
- type StateORMWithAfterDeleteSet
- type StateORMWithAfterDelete_
- type StateORMWithAfterListFind
- type StateORMWithAfterReadFind
- type StateORMWithAfterStrictUpdateSave
- type StateORMWithBeforeCreate_
- type StateORMWithBeforeDeleteSet
- type StateORMWithBeforeDelete_
- type StateORMWithBeforeListApplyQuery
- type StateORMWithBeforeListFind
- type StateORMWithBeforeReadApplyQuery
- type StateORMWithBeforeReadFind
- type StateORMWithBeforeStrictUpdateCleanup
- type StateORMWithBeforeStrictUpdateSave
- type StateWithAfterPatchSave
- type StateWithAfterToORM
- type StateWithAfterToPB
- type StateWithBeforePatchApplyFieldMask
- type StateWithBeforePatchRead
- type StateWithBeforePatchSave
- type StateWithBeforeToORM
- type StateWithBeforeToPB
- type Status
- func DefaultApplyFieldMaskStatus(ctx context.Context, patchee *Status, patcher *Status, ...) (*Status, error)
- func DefaultCreateStatus(ctx context.Context, in *Status, db *gorm.DB) (*Status, error)
- func DefaultListStatus(ctx context.Context, db *gorm.DB) ([]*Status, error)
- func DefaultPatchSetStatus(ctx context.Context, objects []*Status, updateMasks []*field_mask.FieldMask, ...) ([]*Status, error)
- func DefaultPatchStatus(ctx context.Context, in *Status, updateMask *field_mask.FieldMask, db *gorm.DB) (*Status, error)
- func DefaultReadStatus(ctx context.Context, in *Status, db *gorm.DB) (*Status, error)
- func DefaultStrictUpdateStatus(ctx context.Context, in *Status, db *gorm.DB) (*Status, error)
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetId() string
- func (x *Status) GetReason() string
- func (x *Status) GetReasonTTL() string
- func (x *Status) GetState() string
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
- func (m *Status) ToORM(ctx context.Context) (StatusORM, error)
- type StatusORM
- type StatusORMWithAfterCreate_
- type StatusORMWithAfterDeleteSet
- type StatusORMWithAfterDelete_
- type StatusORMWithAfterListFind
- type StatusORMWithAfterReadFind
- type StatusORMWithAfterStrictUpdateSave
- type StatusORMWithBeforeCreate_
- type StatusORMWithBeforeDeleteSet
- type StatusORMWithBeforeDelete_
- type StatusORMWithBeforeListApplyQuery
- type StatusORMWithBeforeListFind
- type StatusORMWithBeforeReadApplyQuery
- type StatusORMWithBeforeReadFind
- type StatusORMWithBeforeStrictUpdateCleanup
- type StatusORMWithBeforeStrictUpdateSave
- type StatusWithAfterPatchSave
- type StatusWithAfterToORM
- type StatusWithAfterToPB
- type StatusWithBeforePatchApplyFieldMask
- type StatusWithBeforePatchRead
- type StatusWithBeforePatchSave
- type StatusWithBeforeToORM
- type StatusWithBeforeToPB
- type Uptime
- func DefaultApplyFieldMaskUptime(ctx context.Context, patchee *Uptime, patcher *Uptime, ...) (*Uptime, error)
- func DefaultCreateUptime(ctx context.Context, in *Uptime, db *gorm.DB) (*Uptime, error)
- func DefaultListUptime(ctx context.Context, db *gorm.DB) ([]*Uptime, error)
- func DefaultPatchSetUptime(ctx context.Context, objects []*Uptime, updateMasks []*field_mask.FieldMask, ...) ([]*Uptime, error)
- func DefaultPatchUptime(ctx context.Context, in *Uptime, updateMask *field_mask.FieldMask, db *gorm.DB) (*Uptime, error)
- func DefaultReadUptime(ctx context.Context, in *Uptime, db *gorm.DB) (*Uptime, error)
- func DefaultStrictUpdateUptime(ctx context.Context, in *Uptime, db *gorm.DB) (*Uptime, error)
- func (*Uptime) Descriptor() ([]byte, []int)deprecated
- func (x *Uptime) GetId() string
- func (x *Uptime) GetLastBoot() string
- func (x *Uptime) GetSeconds() int32
- func (*Uptime) ProtoMessage()
- func (x *Uptime) ProtoReflect() protoreflect.Message
- func (x *Uptime) Reset()
- func (x *Uptime) String() string
- func (m *Uptime) ToORM(ctx context.Context) (UptimeORM, error)
- type UptimeORM
- type UptimeORMWithAfterCreate_
- type UptimeORMWithAfterDeleteSet
- type UptimeORMWithAfterDelete_
- type UptimeORMWithAfterListFind
- type UptimeORMWithAfterReadFind
- type UptimeORMWithAfterStrictUpdateSave
- type UptimeORMWithBeforeCreate_
- type UptimeORMWithBeforeDeleteSet
- type UptimeORMWithBeforeDelete_
- type UptimeORMWithBeforeListApplyQuery
- type UptimeORMWithBeforeListFind
- type UptimeORMWithBeforeReadApplyQuery
- type UptimeORMWithBeforeReadFind
- type UptimeORMWithBeforeStrictUpdateCleanup
- type UptimeORMWithBeforeStrictUpdateSave
- type UptimeWithAfterPatchSave
- type UptimeWithAfterToORM
- type UptimeWithAfterToPB
- type UptimeWithBeforePatchApplyFieldMask
- type UptimeWithBeforePatchRead
- type UptimeWithBeforePatchSave
- type UptimeWithBeforeToORM
- type UptimeWithBeforeToPB
- type User
- func DefaultApplyFieldMaskUser(ctx context.Context, patchee *User, patcher *User, ...) (*User, error)
- func DefaultCreateUser(ctx context.Context, in *User, db *gorm.DB) (*User, error)
- func DefaultListUser(ctx context.Context, db *gorm.DB) ([]*User, error)
- func DefaultPatchSetUser(ctx context.Context, objects []*User, updateMasks []*field_mask.FieldMask, ...) ([]*User, error)
- func DefaultPatchUser(ctx context.Context, in *User, updateMask *field_mask.FieldMask, db *gorm.DB) (*User, error)
- func DefaultReadUser(ctx context.Context, in *User, db *gorm.DB) (*User, error)
- func DefaultStrictUpdateUser(ctx context.Context, in *User, db *gorm.DB) (*User, error)
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetGroups() []*Group
- func (x *User) GetId() string
- func (x *User) GetName() string
- func (x *User) GetUID() int32
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) ToORM(ctx context.Context) (UserORM, error)
- type UserORM
- type UserORMWithAfterCreate_
- type UserORMWithAfterDeleteSet
- type UserORMWithAfterDelete_
- type UserORMWithAfterListFind
- type UserORMWithAfterReadFind
- type UserORMWithAfterStrictUpdateSave
- type UserORMWithBeforeCreate_
- type UserORMWithBeforeDeleteSet
- type UserORMWithBeforeDelete_
- type UserORMWithBeforeListApplyQuery
- type UserORMWithBeforeListFind
- type UserORMWithBeforeReadApplyQuery
- type UserORMWithBeforeReadFind
- type UserORMWithBeforeStrictUpdateCleanup
- type UserORMWithBeforeStrictUpdateSave
- type UserWithAfterPatchSave
- type UserWithAfterToORM
- type UserWithAfterToPB
- type UserWithBeforePatchApplyFieldMask
- type UserWithBeforePatchRead
- type UserWithBeforePatchSave
- type UserWithBeforeToORM
- type UserWithBeforeToPB
Constants ¶
This section is empty.
Variables ¶
var File_host_host_proto protoreflect.FileDescriptor
var File_host_os_proto protoreflect.FileDescriptor
var File_host_port_proto protoreflect.FileDescriptor
var File_host_user_proto protoreflect.FileDescriptor
Functions ¶
func DefaultDeleteExtraPort ¶
func DefaultDeleteGroup ¶
func DefaultDeleteGroupSet ¶
func DefaultDeleteHostSet ¶
func DefaultDeleteHostname ¶
func DefaultDeleteOSClass ¶
func DefaultDeleteOSClassSet ¶
func DefaultDeleteOSMatch ¶
func DefaultDeleteOSMatchSet ¶
func DefaultDeletePortSet ¶
func DefaultDeletePortUsed ¶
func DefaultDeleteReason ¶
func DefaultDeleteReasonSet ¶
func DefaultDeleteState ¶
func DefaultDeleteStateSet ¶
func DefaultDeleteStatus ¶
func DefaultDeleteStatusSet ¶
func DefaultDeleteUptime ¶
func DefaultDeleteUptimeSet ¶
Types ¶
type ExtraPort ¶
type ExtraPort struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"count" Count int32 `protobuf:"varint,10,opt,name=Count,proto3" json:"Count,omitempty" xml:"count"` // @gotags: xml:"extrareasons" Reasons []*Reason `protobuf:"bytes,11,rep,name=Reasons,proto3" json:"Reasons,omitempty" xml:"extrareasons"` // contains filtered or unexported fields }
ExtraPort - Contains the information about the closed and filtered ports
func DefaultApplyFieldMaskExtraPort ¶
func DefaultApplyFieldMaskExtraPort(ctx context.Context, patchee *ExtraPort, patcher *ExtraPort, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*ExtraPort, error)
DefaultApplyFieldMaskExtraPort patches an pbObject with patcher according to a field mask.
func DefaultCreateExtraPort ¶
DefaultCreateExtraPort executes a basic gorm create call
func DefaultListExtraPort ¶
DefaultListExtraPort executes a gorm list call
func DefaultPatchExtraPort ¶
func DefaultPatchExtraPort(ctx context.Context, in *ExtraPort, updateMask *field_mask.FieldMask, db *gorm.DB) (*ExtraPort, error)
DefaultPatchExtraPort executes a basic gorm update call with patch behavior
func DefaultPatchSetExtraPort ¶
func DefaultPatchSetExtraPort(ctx context.Context, objects []*ExtraPort, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*ExtraPort, error)
DefaultPatchSetExtraPort executes a bulk gorm update call with patch behavior
func DefaultReadExtraPort ¶
func DefaultStrictUpdateExtraPort ¶
func DefaultStrictUpdateExtraPort(ctx context.Context, in *ExtraPort, db *gorm.DB) (*ExtraPort, error)
DefaultStrictUpdateExtraPort clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*ExtraPort) Descriptor
deprecated
func (*ExtraPort) GetReasons ¶
func (*ExtraPort) ProtoMessage ¶
func (*ExtraPort) ProtoMessage()
func (*ExtraPort) ProtoReflect ¶
func (x *ExtraPort) ProtoReflect() protoreflect.Message
type ExtraPortORM ¶
type ExtraPortORM struct { Count int32 HostId *string Id string `gorm:"type:uuid;primary_key"` Reasons []*ReasonORM `gorm:"foreignkey:ExtraPortId;association_foreignkey:Id"` }
func (*ExtraPortORM) BeforeCreate ¶
func (extraport *ExtraPortORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (ExtraPortORM) TableName ¶
func (ExtraPortORM) TableName() string
TableName overrides the default tablename generated by GORM
type ExtraPortWithAfterToORM ¶
type ExtraPortWithAfterToORM interface {
AfterToORM(context.Context, *ExtraPortORM) error
}
ExtraPortAfterToORM called after default ToORM code
type ExtraPortWithAfterToPB ¶
ExtraPortAfterToPB called after default ToPB code
type ExtraPortWithBeforeToORM ¶
type ExtraPortWithBeforeToORM interface {
BeforeToORM(context.Context, *ExtraPortORM) error
}
ExtraPortBeforeToORM called before default ToORM code
type ExtraPortWithBeforeToPB ¶
ExtraPortBeforeToPB called before default ToPB code
type Group ¶
type Group struct { // @gotags: display:"ID" hidden:"true" strict:"yes" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" hidden:"true" strict:"yes"` // @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: display:"Name" Name string `protobuf:"bytes,10,opt,name=Name,proto3" json:"Name,omitempty" display:"Name"` // @gotags: display:"Group ID" GID int32 `protobuf:"varint,11,opt,name=GID,proto3" json:"GID,omitempty" display:"Group ID"` Members []*User `protobuf:"bytes,12,rep,name=Members,proto3" json:"Members,omitempty"` // contains filtered or unexported fields }
Group - An operating-system group of users
func DefaultApplyFieldMaskGroup ¶
func DefaultApplyFieldMaskGroup(ctx context.Context, patchee *Group, patcher *Group, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Group, error)
DefaultApplyFieldMaskGroup patches an pbObject with patcher according to a field mask.
func DefaultCreateGroup ¶
DefaultCreateGroup executes a basic gorm create call
func DefaultListGroup ¶
DefaultListGroup executes a gorm list call
func DefaultPatchGroup ¶
func DefaultPatchGroup(ctx context.Context, in *Group, updateMask *field_mask.FieldMask, db *gorm.DB) (*Group, error)
DefaultPatchGroup executes a basic gorm update call with patch behavior
func DefaultPatchSetGroup ¶
func DefaultPatchSetGroup(ctx context.Context, objects []*Group, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Group, error)
DefaultPatchSetGroup executes a bulk gorm update call with patch behavior
func DefaultReadGroup ¶
func DefaultStrictUpdateGroup ¶
DefaultStrictUpdateGroup clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedAt ¶
func (x *Group) GetCreatedAt() *timestamppb.Timestamp
func (*Group) GetMembers ¶
func (*Group) GetUpdatedAt ¶
func (x *Group) GetUpdatedAt() *timestamppb.Timestamp
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupORM ¶
type GroupORM struct { CreatedAt *time.Time GID int32 Id string `gorm:"type:uuid;primary_key"` Members []*UserORM `` /* 137-byte string literal not displayed */ Name string UpdatedAt *time.Time }
func (*GroupORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type GroupWithAfterPatchSave ¶
type GroupWithAfterToORM ¶
GroupAfterToORM called after default ToORM code
type GroupWithAfterToPB ¶
GroupAfterToPB called after default ToPB code
type GroupWithBeforeToORM ¶
GroupBeforeToORM called before default ToORM code
type GroupWithBeforeToPB ¶
GroupBeforeToPB called before default ToPB code
type Host ¶
type Host struct { // @gotags: display:"ID" readonly:"true" strict:"yes" // int64 Id = 1 [(gorm.field).tag = {primary_key: true}]; // string Id = 1 [(gorm.field).tag = {type:"uuid" primary_key: true }]; Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true" strict:"yes"` // @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:"-"` // General ------------------------------------ // @gotags: display:"MAC Address" MAC string `protobuf:"bytes,10,opt,name=MAC,proto3" json:"MAC,omitempty" display:"MAC Address"` // @gotags: display:"Comm" Comm string `protobuf:"bytes,11,opt,name=Comm,proto3" json:"Comm,omitempty" display:"Comm"` // @gotags: display:"OS Name" OSName string `protobuf:"bytes,12,opt,name=OSName,proto3" json:"OSName,omitempty" display:"OS Name"` // @gotags: display:"OS Flavor" OSFlavor string `protobuf:"bytes,13,opt,name=OSFlavor,proto3" json:"OSFlavor,omitempty" display:"OS Flavor"` // @gotags: display:"OS Service Pack" OSSp string `protobuf:"bytes,14,opt,name=OSSp,proto3" json:"OSSp,omitempty" display:"OS Service Pack"` // @gotags: display:"OS Language" OSLang string `protobuf:"bytes,15,opt,name=OSLang,proto3" json:"OSLang,omitempty" display:"OS Language"` // @gotags: display:"OS Family" OSFamily string `protobuf:"bytes,16,opt,name=OSFamily,proto3" json:"OSFamily,omitempty" display:"OS Family"` // @gotags: display:"CPU Arch" Arch string `protobuf:"bytes,17,opt,name=Arch,proto3" json:"Arch,omitempty" display:"CPU Arch"` // @gotags: display:"Purpose" Purpose string `protobuf:"bytes,18,opt,name=Purpose,proto3" json:"Purpose,omitempty" display:"Purpose"` // @gotags: display:"Info" Info string `protobuf:"bytes,19,opt,name=Info,proto3" json:"Info,omitempty" display:"Info"` // @gotags: display:"Scope" Scope string `protobuf:"bytes,20,opt,name=Scope,proto3" json:"Scope,omitempty" display:"Scope"` // @gotags: display:"Virtual Host" VirtualHost string `protobuf:"bytes,21,opt,name=VirtualHost,proto3" json:"VirtualHost,omitempty" display:"Virtual Host"` Users []*User `protobuf:"bytes,22,rep,name=Users,proto3" json:"Users,omitempty"` // @gotags: xml:"address" Addresses []*network.Address `protobuf:"bytes,23,rep,name=Addresses,proto3" json:"Addresses,omitempty" xml:"address"` // Nmap --------------------------------------- // @gotags: xml:"os" OS *OS `protobuf:"bytes,30,opt,name=OS,proto3" json:"OS,omitempty" xml:"os"` // @gotags: xml:"status" Status *Status `protobuf:"bytes,31,opt,name=Status,proto3" json:"Status,omitempty" xml:"status"` // @gotags: xml:"distance" Distance *network.Distance `protobuf:"bytes,32,opt,name=Distance,proto3" json:"Distance,omitempty" xml:"distance"` // @gotags: xml:"starttime,attr,omitempty" StartTime int64 `protobuf:"varint,33,opt,name=StartTime,proto3" json:"StartTime,omitempty" xml:"starttime,attr,omitempty"` // @gotags: xml:"endtime,attr,omitempty" EndTime int64 `protobuf:"varint,34,opt,name=EndTime,proto3" json:"EndTime,omitempty" xml:"endtime,attr,omitempty"` // Might have issues here with XML unmarshalling // @gotags: xml:"ipidsequence" IPIDSequence *network.IPIDSequence `protobuf:"bytes,35,opt,name=IPIDSequence,proto3" json:"IPIDSequence,omitempty" xml:"ipidsequence"` // @gotags: xml:"tcpsequence" TCPSequence *network.TCPSequence `protobuf:"bytes,36,opt,name=TCPSequence,proto3" json:"TCPSequence,omitempty" xml:"tcpsequence"` // @gotags: xml:"tcptssequence" TCPTSSequence *network.TCPTSSequence `protobuf:"bytes,37,opt,name=TCPTSSequence,proto3" json:"TCPTSSequence,omitempty" xml:"tcptssequence"` ICMPResponse *network.ICMPResponse `protobuf:"bytes,38,opt,name=ICMPResponse,proto3" json:"ICMPResponse,omitempty"` // @gotags: xml:"times" Testing *network.Times `protobuf:"bytes,39,opt,name=Testing,proto3" json:"Testing,omitempty" xml:"times"` // @gotags: xml:"trace" Trace *network.Trace `protobuf:"bytes,40,opt,name=Trace,proto3" json:"Trace,omitempty" xml:"trace"` // @gotags: xml:"uptime" Uptime *Uptime `protobuf:"bytes,41,opt,name=Uptime,proto3" json:"Uptime,omitempty" xml:"uptime"` // @gotags: xml:"comment,attr" Comment string `protobuf:"bytes,42,opt,name=Comment,proto3" json:"Comment,omitempty" xml:"comment,attr"` // @gotags: xml:"hostscript>script" HostScripts []*nmap.Script `protobuf:"bytes,43,rep,name=HostScripts,proto3" json:"HostScripts,omitempty" xml:"hostscript>script"` // @gotags: xml:"smurf" Smurfs []*nmap.Smurf `protobuf:"bytes,44,rep,name=Smurfs,proto3" json:"Smurfs,omitempty" xml:"smurf"` // @gotags: xml:"hostnames>hostname" Hostnames []*Hostname `protobuf:"bytes,45,rep,name=Hostnames,proto3" json:"Hostnames,omitempty" xml:"hostnames>hostname"` // @gotags: xml:"ports>port" Ports []*Port `protobuf:"bytes,46,rep,name=Ports,proto3" json:"Ports,omitempty" xml:"ports>port"` // @gotags: xml:"ports>extraports" ExtraPorts []*ExtraPort `protobuf:"bytes,47,rep,name=ExtraPorts,proto3" json:"ExtraPorts,omitempty" xml:"ports>extraports"` // contains filtered or unexported fields }
Host - Represents a remote computer host in DB
func DefaultApplyFieldMaskHost ¶
func DefaultApplyFieldMaskHost(ctx context.Context, patchee *Host, patcher *Host, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Host, error)
DefaultApplyFieldMaskHost patches an pbObject with patcher according to a field mask.
func DefaultCreateHost ¶
DefaultCreateHost executes a basic gorm create call
func DefaultListHost ¶
DefaultListHost executes a gorm list call
func DefaultPatchHost ¶
func DefaultPatchHost(ctx context.Context, in *Host, updateMask *field_mask.FieldMask, db *gorm.DB) (*Host, error)
DefaultPatchHost executes a basic gorm update call with patch behavior
func DefaultPatchSetHost ¶
func DefaultPatchSetHost(ctx context.Context, objects []*Host, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Host, error)
DefaultPatchSetHost executes a bulk gorm update call with patch behavior
func DefaultReadHost ¶
func DefaultStrictUpdateHost ¶
DefaultStrictUpdateHost clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Host) Descriptor
deprecated
func (*Host) GetAddresses ¶
func (*Host) GetComment ¶
func (*Host) GetCreatedAt ¶
func (x *Host) GetCreatedAt() *timestamppb.Timestamp
func (*Host) GetDistance ¶
func (*Host) GetEndTime ¶
func (*Host) GetExtraPorts ¶
func (*Host) GetHostScripts ¶
func (*Host) GetHostnames ¶
func (*Host) GetICMPResponse ¶
func (x *Host) GetICMPResponse() *network.ICMPResponse
func (*Host) GetIPIDSequence ¶
func (x *Host) GetIPIDSequence() *network.IPIDSequence
func (*Host) GetOSFamily ¶
func (*Host) GetOSFlavor ¶
func (*Host) GetPurpose ¶
func (*Host) GetStartTime ¶
func (*Host) GetTCPSequence ¶
func (x *Host) GetTCPSequence() *network.TCPSequence
func (*Host) GetTCPTSSequence ¶
func (x *Host) GetTCPTSSequence() *network.TCPTSSequence
func (*Host) GetTesting ¶
func (*Host) GetUpdatedAt ¶
func (x *Host) GetUpdatedAt() *timestamppb.Timestamp
func (*Host) GetVirtualHost ¶
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) ProtoReflect ¶
func (x *Host) ProtoReflect() protoreflect.Message
type HostORM ¶
type HostORM struct { Addresses []*network.AddressORM `` /* 142-byte string literal not displayed */ Arch string Comm string Comment string CreatedAt *time.Time Distance *network.DistanceORM `gorm:"foreignkey:DistanceId;association_foreignkey:Id"` DistanceId *string EndTime int64 ExtraPorts []*ExtraPortORM `gorm:"foreignkey:HostId;association_foreignkey:Id"` HostScripts []*nmap.ScriptORM `` /* 139-byte string literal not displayed */ Hostnames []*HostnameORM `gorm:"foreignkey:HostId;association_foreignkey:Id"` ICMPResponse *network.ICMPResponseORM `gorm:"foreignkey:ICMPResponseId;association_foreignkey:Id"` ICMPResponseId *string IPIDSequence *network.IPIDSequenceORM `gorm:"foreignkey:IPIDSequenceId;association_foreignkey:Id"` IPIDSequenceId *string Id string `gorm:"type:uuid;primary_key"` Info string MAC string OS *OSORM `gorm:"foreignkey:OSId;association_foreignkey:Id"` OSFamily string OSFlavor string OSId *string OSLang string OSName string OSSp string Ports []*PortORM `gorm:"foreignkey:HostId;association_foreignkey:Id"` Purpose string Scope string Smurfs []*nmap.SmurfORM `` /* 138-byte string literal not displayed */ StartTime int64 Status *StatusORM `gorm:"foreignkey:HostId;association_foreignkey:Id"` TCPSequence *network.TCPSequenceORM `gorm:"foreignkey:TCPSequenceId;association_foreignkey:Id"` TCPSequenceId *string TCPTSSequence *network.TCPTSSequenceORM `gorm:"foreignkey:TCPTSSequenceId;association_foreignkey:Id"` TCPTSSequenceId *string Testing *network.TimesORM `gorm:"foreignkey:TimesId;association_foreignkey:Id"` TimesId *string Trace *network.TraceORM `gorm:"foreignkey:TraceId;association_foreignkey:Id"` TraceId *string UpdatedAt *time.Time Uptime *UptimeORM `gorm:"foreignkey:UptimeId;association_foreignkey:Id"` UptimeId *string Users []*UserORM `gorm:"foreignkey:HostId;association_foreignkey:Id"` VirtualHost string }
func (*HostORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type HostORMWithAfterCreate_ ¶
type HostORMWithAfterDelete_ ¶
type HostWithAfterPatchSave ¶
type HostWithAfterToORM ¶
HostAfterToORM called after default ToORM code
type HostWithAfterToPB ¶
HostAfterToPB called after default ToPB code
type HostWithBeforePatchRead ¶
type HostWithBeforePatchSave ¶
type HostWithBeforeToORM ¶
HostBeforeToORM called before default ToORM code
type HostWithBeforeToPB ¶
HostBeforeToPB called before default ToPB code
type Hostname ¶
type Hostname struct { // @gotags: display:"ID" readonly:"true" strict:"yes" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true" strict:"yes"` // @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: display:"Name" xml:"name,attr" Name string `protobuf:"bytes,10,opt,name=Name,proto3" json:"Name,omitempty" display:"Name" xml:"name,attr"` // @gotags: display:"Type" xml:"type,attr" Type string `protobuf:"bytes,11,opt,name=Type,proto3" json:"Type,omitempty" display:"Type" xml:"type,attr"` // contains filtered or unexported fields }
A hostname for a host.
func DefaultApplyFieldMaskHostname ¶
func DefaultApplyFieldMaskHostname(ctx context.Context, patchee *Hostname, patcher *Hostname, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Hostname, error)
DefaultApplyFieldMaskHostname patches an pbObject with patcher according to a field mask.
func DefaultCreateHostname ¶
DefaultCreateHostname executes a basic gorm create call
func DefaultListHostname ¶
DefaultListHostname executes a gorm list call
func DefaultPatchHostname ¶
func DefaultPatchHostname(ctx context.Context, in *Hostname, updateMask *field_mask.FieldMask, db *gorm.DB) (*Hostname, error)
DefaultPatchHostname executes a basic gorm update call with patch behavior
func DefaultPatchSetHostname ¶
func DefaultPatchSetHostname(ctx context.Context, objects []*Hostname, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Hostname, error)
DefaultPatchSetHostname executes a bulk gorm update call with patch behavior
func DefaultReadHostname ¶
func DefaultStrictUpdateHostname ¶
DefaultStrictUpdateHostname clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Hostname) Descriptor
deprecated
func (*Hostname) GetCreatedAt ¶
func (x *Hostname) GetCreatedAt() *timestamppb.Timestamp
func (*Hostname) GetUpdatedAt ¶
func (x *Hostname) GetUpdatedAt() *timestamppb.Timestamp
func (*Hostname) ProtoMessage ¶
func (*Hostname) ProtoMessage()
func (*Hostname) ProtoReflect ¶
func (x *Hostname) ProtoReflect() protoreflect.Message
type HostnameORM ¶
type HostnameORM struct { CreatedAt *time.Time HostId *string Id string `gorm:"type:uuid;primary_key"` Name string Type string UpdatedAt *time.Time }
func (*HostnameORM) BeforeCreate ¶
func (hostname *HostnameORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (HostnameORM) TableName ¶
func (HostnameORM) TableName() string
TableName overrides the default tablename generated by GORM
type HostnameWithAfterToORM ¶
type HostnameWithAfterToORM interface {
AfterToORM(context.Context, *HostnameORM) error
}
HostnameAfterToORM called after default ToORM code
type HostnameWithAfterToPB ¶
HostnameAfterToPB called after default ToPB code
type HostnameWithBeforeToORM ¶
type HostnameWithBeforeToORM interface {
BeforeToORM(context.Context, *HostnameORM) error
}
HostnameBeforeToORM called before default ToORM code
type HostnameWithBeforeToPB ¶
HostnameBeforeToPB called before default ToPB code
type OS ¶
type OS struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @inject_tag: xml:"portused" PortsUsed []*PortUsed `protobuf:"bytes,2,rep,name=PortsUsed,proto3" json:"PortsUsed,omitempty" xml:"portused"` // @inject_tag: xml:"osmatch" Matches []*OSMatch `protobuf:"bytes,3,rep,name=Matches,proto3" json:"Matches,omitempty" xml:"osmatch"` // @inject_tag: xml:"osfingerprint" Fingerprints []*OSFingerprint `protobuf:"bytes,4,rep,name=Fingerprints,proto3" json:"Fingerprints,omitempty" xml:"osfingerprint"` // contains filtered or unexported fields }
OS - An operating system identified by NMAP, with fingerprint information
func DefaultApplyFieldMaskOS ¶
func DefaultApplyFieldMaskOS(ctx context.Context, patchee *OS, patcher *OS, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*OS, error)
DefaultApplyFieldMaskOS patches an pbObject with patcher according to a field mask.
func DefaultCreateOS ¶
DefaultCreateOS executes a basic gorm create call
func DefaultListOS ¶
DefaultListOS executes a gorm list call
func DefaultPatchOS ¶
func DefaultPatchOS(ctx context.Context, in *OS, updateMask *field_mask.FieldMask, db *gorm.DB) (*OS, error)
DefaultPatchOS executes a basic gorm update call with patch behavior
func DefaultPatchSetOS ¶
func DefaultPatchSetOS(ctx context.Context, objects []*OS, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*OS, error)
DefaultPatchSetOS executes a bulk gorm update call with patch behavior
func DefaultStrictUpdateOS ¶
DefaultStrictUpdateOS clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*OS) Descriptor
deprecated
func (*OS) GetFingerprints ¶
func (x *OS) GetFingerprints() []*OSFingerprint
func (*OS) GetMatches ¶
func (*OS) GetPortsUsed ¶
func (*OS) ProtoMessage ¶
func (*OS) ProtoMessage()
func (*OS) ProtoReflect ¶
func (x *OS) ProtoReflect() protoreflect.Message
type OSClass ¶
type OSClass struct { Id string `protobuf:"bytes,100,opt,name=Id,proto3" json:"Id,omitempty"` // @inject_tag: xml:"vendor,attr" Vendor string `protobuf:"bytes,1,opt,name=Vendor,proto3" json:"Vendor,omitempty" xml:"vendor,attr"` // @inject_tag: xml:"osgen,attr" OSGeneration string `protobuf:"bytes,2,opt,name=OSGeneration,proto3" json:"OSGeneration,omitempty" xml:"osgen,attr"` // @inject_tag: xml:"type,attr" Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty" xml:"type,attr"` // @inject_tag: xml:"accurary,attr" Accuracy int32 `protobuf:"varint,4,opt,name=Accuracy,proto3" json:"Accuracy,omitempty" xml:"accurary,attr"` // @inject_tag: xml:"osfamily,attr" Family os.Family `protobuf:"varint,5,opt,name=Family,proto3,enum=os.Family" json:"Family,omitempty" xml:"osfamily,attr"` // @inject_tag: xml:"cpe" CPEs []string `protobuf:"bytes,6,rep,name=CPEs,proto3" json:"CPEs,omitempty" xml:"cpe"` // "Common Platform Enumeration" is standardized way to name software applications, OSs and Hardware platforms // contains filtered or unexported fields }
OSClass - Contains vendor information about an operating system
func DefaultApplyFieldMaskOSClass ¶
func DefaultApplyFieldMaskOSClass(ctx context.Context, patchee *OSClass, patcher *OSClass, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*OSClass, error)
DefaultApplyFieldMaskOSClass patches an pbObject with patcher according to a field mask.
func DefaultCreateOSClass ¶
DefaultCreateOSClass executes a basic gorm create call
func DefaultListOSClass ¶
DefaultListOSClass executes a gorm list call
func DefaultPatchOSClass ¶
func DefaultPatchOSClass(ctx context.Context, in *OSClass, updateMask *field_mask.FieldMask, db *gorm.DB) (*OSClass, error)
DefaultPatchOSClass executes a basic gorm update call with patch behavior
func DefaultPatchSetOSClass ¶
func DefaultPatchSetOSClass(ctx context.Context, objects []*OSClass, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*OSClass, error)
DefaultPatchSetOSClass executes a bulk gorm update call with patch behavior
func DefaultReadOSClass ¶
func DefaultStrictUpdateOSClass ¶
DefaultStrictUpdateOSClass clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*OSClass) Descriptor
deprecated
func (*OSClass) GetAccuracy ¶
func (*OSClass) GetOSGeneration ¶
func (*OSClass) ProtoMessage ¶
func (*OSClass) ProtoMessage()
func (*OSClass) ProtoReflect ¶
func (x *OSClass) ProtoReflect() protoreflect.Message
type OSClassORM ¶
type OSClassORM struct { Accuracy int32 Family int32 Id string `gorm:"type:uuid;primary_key"` OSGeneration string OSMatchId *string Type string Vendor string }
func (*OSClassORM) BeforeCreate ¶
func (osclass *OSClassORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (OSClassORM) TableName ¶
func (OSClassORM) TableName() string
TableName overrides the default tablename generated by GORM
type OSClassWithAfterToORM ¶
type OSClassWithAfterToORM interface {
AfterToORM(context.Context, *OSClassORM) error
}
OSClassAfterToORM called after default ToORM code
type OSClassWithAfterToPB ¶
OSClassAfterToPB called after default ToPB code
type OSClassWithBeforeToORM ¶
type OSClassWithBeforeToORM interface {
BeforeToORM(context.Context, *OSClassORM) error
}
OSClassBeforeToORM called before default ToORM code
type OSClassWithBeforeToPB ¶
OSClassBeforeToPB called before default ToPB code
type OSFingerprint ¶
type OSFingerprint struct { Id string `protobuf:"bytes,100,opt,name=Id,proto3" json:"Id,omitempty"` // @inject_tag: xml:"fingerprint,attr" Fingerprint string `protobuf:"bytes,1,opt,name=Fingerprint,proto3" json:"Fingerprint,omitempty" xml:"fingerprint,attr"` // contains filtered or unexported fields }
OSFingerprint - The actual fingerprint string of an operating system
func DefaultApplyFieldMaskOSFingerprint ¶
func DefaultApplyFieldMaskOSFingerprint(ctx context.Context, patchee *OSFingerprint, patcher *OSFingerprint, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*OSFingerprint, error)
DefaultApplyFieldMaskOSFingerprint patches an pbObject with patcher according to a field mask.
func DefaultCreateOSFingerprint ¶
func DefaultCreateOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) (*OSFingerprint, error)
DefaultCreateOSFingerprint executes a basic gorm create call
func DefaultListOSFingerprint ¶
DefaultListOSFingerprint executes a gorm list call
func DefaultPatchOSFingerprint ¶
func DefaultPatchOSFingerprint(ctx context.Context, in *OSFingerprint, updateMask *field_mask.FieldMask, db *gorm.DB) (*OSFingerprint, error)
DefaultPatchOSFingerprint executes a basic gorm update call with patch behavior
func DefaultPatchSetOSFingerprint ¶
func DefaultPatchSetOSFingerprint(ctx context.Context, objects []*OSFingerprint, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*OSFingerprint, error)
DefaultPatchSetOSFingerprint executes a bulk gorm update call with patch behavior
func DefaultReadOSFingerprint ¶
func DefaultReadOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) (*OSFingerprint, error)
func DefaultStrictUpdateOSFingerprint ¶
func DefaultStrictUpdateOSFingerprint(ctx context.Context, in *OSFingerprint, db *gorm.DB) (*OSFingerprint, error)
DefaultStrictUpdateOSFingerprint clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*OSFingerprint) Descriptor
deprecated
func (*OSFingerprint) Descriptor() ([]byte, []int)
Deprecated: Use OSFingerprint.ProtoReflect.Descriptor instead.
func (*OSFingerprint) GetFingerprint ¶
func (x *OSFingerprint) GetFingerprint() string
func (*OSFingerprint) GetId ¶
func (x *OSFingerprint) GetId() string
func (*OSFingerprint) ProtoMessage ¶
func (*OSFingerprint) ProtoMessage()
func (*OSFingerprint) ProtoReflect ¶
func (x *OSFingerprint) ProtoReflect() protoreflect.Message
func (*OSFingerprint) Reset ¶
func (x *OSFingerprint) Reset()
func (*OSFingerprint) String ¶
func (x *OSFingerprint) String() string
func (*OSFingerprint) ToORM ¶
func (m *OSFingerprint) ToORM(ctx context.Context) (OSFingerprintORM, 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 OSFingerprintORM ¶
type OSFingerprintORM struct { Fingerprint string Id string `gorm:"type:uuid;primary_key"` OSId *string }
func (*OSFingerprintORM) BeforeCreate ¶
func (osfingerprint *OSFingerprintORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (OSFingerprintORM) TableName ¶
func (OSFingerprintORM) TableName() string
TableName overrides the default tablename generated by GORM
func (*OSFingerprintORM) ToPB ¶
func (m *OSFingerprintORM) ToPB(ctx context.Context) (OSFingerprint, 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 OSFingerprintWithAfterPatchSave ¶
type OSFingerprintWithAfterPatchSave interface {
AfterPatchSave(context.Context, *OSFingerprint, *field_mask.FieldMask, *gorm.DB) error
}
type OSFingerprintWithAfterToORM ¶
type OSFingerprintWithAfterToORM interface {
AfterToORM(context.Context, *OSFingerprintORM) error
}
OSFingerprintAfterToORM called after default ToORM code
type OSFingerprintWithAfterToPB ¶
type OSFingerprintWithAfterToPB interface {
AfterToPB(context.Context, *OSFingerprint) error
}
OSFingerprintAfterToPB called after default ToPB code
type OSFingerprintWithBeforePatchApplyFieldMask ¶
type OSFingerprintWithBeforePatchApplyFieldMask interface {
BeforePatchApplyFieldMask(context.Context, *OSFingerprint, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type OSFingerprintWithBeforePatchRead ¶
type OSFingerprintWithBeforePatchRead interface {
BeforePatchRead(context.Context, *OSFingerprint, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type OSFingerprintWithBeforePatchSave ¶
type OSFingerprintWithBeforePatchSave interface {
BeforePatchSave(context.Context, *OSFingerprint, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type OSFingerprintWithBeforeToORM ¶
type OSFingerprintWithBeforeToORM interface {
BeforeToORM(context.Context, *OSFingerprintORM) error
}
OSFingerprintBeforeToORM called before default ToORM code
type OSFingerprintWithBeforeToPB ¶
type OSFingerprintWithBeforeToPB interface {
BeforeToPB(context.Context, *OSFingerprint) error
}
OSFingerprintBeforeToPB called before default ToPB code
type OSMatch ¶
type OSMatch struct { Id string `protobuf:"bytes,100,opt,name=Id,proto3" json:"Id,omitempty"` // @inject_tag: xml:"name,attr" Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty" xml:"name,attr"` // @inject_tag: xml:"accuracy,attr" Accuracy int32 `protobuf:"varint,2,opt,name=Accuracy,proto3" json:"Accuracy,omitempty" xml:"accuracy,attr"` // @inject_tag: xml:"line,attr" Line int32 `protobuf:"varint,3,opt,name=Line,proto3" json:"Line,omitempty" xml:"line,attr"` // @inject_tag: xml:"osclass,attr" Classes []*OSClass `protobuf:"bytes,4,rep,name=Classes,proto3" json:"Classes,omitempty" xml:"osclass,attr"` // contains filtered or unexported fields }
OSMatch - Contains detailed information regarding an Operating System fingerprint
func DefaultApplyFieldMaskOSMatch ¶
func DefaultApplyFieldMaskOSMatch(ctx context.Context, patchee *OSMatch, patcher *OSMatch, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*OSMatch, error)
DefaultApplyFieldMaskOSMatch patches an pbObject with patcher according to a field mask.
func DefaultCreateOSMatch ¶
DefaultCreateOSMatch executes a basic gorm create call
func DefaultListOSMatch ¶
DefaultListOSMatch executes a gorm list call
func DefaultPatchOSMatch ¶
func DefaultPatchOSMatch(ctx context.Context, in *OSMatch, updateMask *field_mask.FieldMask, db *gorm.DB) (*OSMatch, error)
DefaultPatchOSMatch executes a basic gorm update call with patch behavior
func DefaultPatchSetOSMatch ¶
func DefaultPatchSetOSMatch(ctx context.Context, objects []*OSMatch, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*OSMatch, error)
DefaultPatchSetOSMatch executes a bulk gorm update call with patch behavior
func DefaultReadOSMatch ¶
func DefaultStrictUpdateOSMatch ¶
DefaultStrictUpdateOSMatch clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*OSMatch) Descriptor
deprecated
func (*OSMatch) GetAccuracy ¶
func (*OSMatch) GetClasses ¶
func (*OSMatch) ProtoMessage ¶
func (*OSMatch) ProtoMessage()
func (*OSMatch) ProtoReflect ¶
func (x *OSMatch) ProtoReflect() protoreflect.Message
type OSMatchORM ¶
type OSMatchORM struct { Accuracy int32 Classes []*OSClassORM `gorm:"foreignkey:OSMatchId;association_foreignkey:Id"` Id string `gorm:"type:uuid;primary_key"` Line int32 Name string OSId *string }
func (*OSMatchORM) BeforeCreate ¶
func (osmatch *OSMatchORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (OSMatchORM) TableName ¶
func (OSMatchORM) TableName() string
TableName overrides the default tablename generated by GORM
type OSMatchWithAfterToORM ¶
type OSMatchWithAfterToORM interface {
AfterToORM(context.Context, *OSMatchORM) error
}
OSMatchAfterToORM called after default ToORM code
type OSMatchWithAfterToPB ¶
OSMatchAfterToPB called after default ToPB code
type OSMatchWithBeforeToORM ¶
type OSMatchWithBeforeToORM interface {
BeforeToORM(context.Context, *OSMatchORM) error
}
OSMatchBeforeToORM called before default ToORM code
type OSMatchWithBeforeToPB ¶
OSMatchBeforeToPB called before default ToPB code
type OSORM ¶
type OSORM struct { Fingerprints []*OSFingerprintORM `gorm:"foreignkey:OSId;association_foreignkey:Id"` Id string `gorm:"type:uuid;primary_key"` Matches []*OSMatchORM `gorm:"foreignkey:OSId;association_foreignkey:Id"` PortsUsed []*PortUsedORM `gorm:"foreignkey:OSId;association_foreignkey:Id"` }
func (*OSORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type OSORMWithAfterCreate_ ¶
type OSORMWithAfterDeleteSet ¶
type OSORMWithAfterDelete_ ¶
type OSORMWithAfterListFind ¶
type OSORMWithAfterReadFind ¶
type OSORMWithBeforeCreate_ ¶
type OSORMWithBeforeDelete_ ¶
type OSORMWithBeforeListFind ¶
type OSORMWithBeforeReadFind ¶
type OSWithAfterPatchSave ¶
type OSWithAfterToORM ¶
OSAfterToORM called after default ToORM code
type OSWithAfterToPB ¶
OSAfterToPB called after default ToPB code
type OSWithBeforePatchRead ¶
type OSWithBeforePatchSave ¶
type OSWithBeforeToORM ¶
OSBeforeToORM called before default ToORM code
type OSWithBeforeToPB ¶
OSBeforeToPB called before default ToPB code
type Port ¶
type Port struct { // @gotags: display:"ID" readonly:"true" strict:"yes" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true" strict:"yes"` // @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:"portid,attr" Number uint32 `protobuf:"varint,10,opt,name=Number,proto3" json:"Number,omitempty" xml:"portid,attr"` // Nmap -------------------------------- // @gotags: xml:"protocol,attr" Protocol string `protobuf:"bytes,11,opt,name=Protocol,proto3" json:"Protocol,omitempty" xml:"protocol,attr"` // @gotags: xml:"owner" Owner string `protobuf:"bytes,12,opt,name=Owner,proto3" json:"Owner,omitempty" xml:"owner"` // @gotags: xml:"service" Service *network.Service `protobuf:"bytes,13,opt,name=Service,proto3" json:"Service,omitempty" xml:"service"` // @gotags: xml:"state" State *State `protobuf:"bytes,14,opt,name=State,proto3" json:"State,omitempty" xml:"state"` // @gotags: xml:"script" Scripts []*nmap.Script `protobuf:"bytes,15,rep,name=Scripts,proto3" json:"Scripts,omitempty" xml:"script"` // @gotags: xml:"count" Count int32 `protobuf:"varint,20,opt,name=Count,proto3" json:"Count,omitempty" xml:"count"` // @gotags: xml:"extrareasons" Reasons []*Reason `protobuf:"bytes,21,rep,name=Reasons,proto3" json:"Reasons,omitempty" xml:"extrareasons"` // contains filtered or unexported fields }
Port - A port on a host
func DefaultApplyFieldMaskPort ¶
func DefaultApplyFieldMaskPort(ctx context.Context, patchee *Port, patcher *Port, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Port, error)
DefaultApplyFieldMaskPort patches an pbObject with patcher according to a field mask.
func DefaultCreatePort ¶
DefaultCreatePort executes a basic gorm create call
func DefaultListPort ¶
DefaultListPort executes a gorm list call
func DefaultPatchPort ¶
func DefaultPatchPort(ctx context.Context, in *Port, updateMask *field_mask.FieldMask, db *gorm.DB) (*Port, error)
DefaultPatchPort executes a basic gorm update call with patch behavior
func DefaultPatchSetPort ¶
func DefaultPatchSetPort(ctx context.Context, objects []*Port, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Port, error)
DefaultPatchSetPort executes a bulk gorm update call with patch behavior
func DefaultReadPort ¶
func DefaultStrictUpdatePort ¶
DefaultStrictUpdatePort clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Port) Descriptor
deprecated
func (*Port) GetCreatedAt ¶
func (x *Port) GetCreatedAt() *timestamppb.Timestamp
func (*Port) GetProtocol ¶
func (*Port) GetReasons ¶
func (*Port) GetScripts ¶
func (*Port) GetService ¶
func (*Port) GetUpdatedAt ¶
func (x *Port) GetUpdatedAt() *timestamppb.Timestamp
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
type PortORM ¶
type PortORM struct { Count int32 CreatedAt *time.Time HostId *string Id string `gorm:"type:uuid;primary_key"` Number uint32 Owner string Protocol string Reasons []*ReasonORM `gorm:"foreignkey:PortId;association_foreignkey:Id"` Scripts []*nmap.ScriptORM `` /* 139-byte string literal not displayed */ Service *network.ServiceORM `gorm:"foreignkey:ServiceId;association_foreignkey:Id"` ServiceId *string State *StateORM `gorm:"foreignkey:PortId;association_foreignkey:Id"` UpdatedAt *time.Time }
func (*PortORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type PortORMWithAfterCreate_ ¶
type PortORMWithAfterDelete_ ¶
type PortUsed ¶
type PortUsed struct { Id string `protobuf:"bytes,100,opt,name=Id,proto3" json:"Id,omitempty"` // @inject_tag: xml:"portid,attr" Number uint32 `protobuf:"varint,2,opt,name=Number,proto3" json:"Number,omitempty" xml:"portid,attr"` // @inject_tag: xml:"state,attr" State string `protobuf:"bytes,3,opt,name=State,proto3" json:"State,omitempty" xml:"state,attr"` // @inject_tag: xml:"proto,attr" Protocol string `protobuf:"bytes,4,opt,name=Protocol,proto3" json:"Protocol,omitempty" xml:"proto,attr"` // contains filtered or unexported fields }
PortUsed - The port used to fingerprint the operating system
func DefaultApplyFieldMaskPortUsed ¶
func DefaultApplyFieldMaskPortUsed(ctx context.Context, patchee *PortUsed, patcher *PortUsed, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*PortUsed, error)
DefaultApplyFieldMaskPortUsed patches an pbObject with patcher according to a field mask.
func DefaultCreatePortUsed ¶
DefaultCreatePortUsed executes a basic gorm create call
func DefaultListPortUsed ¶
DefaultListPortUsed executes a gorm list call
func DefaultPatchPortUsed ¶
func DefaultPatchPortUsed(ctx context.Context, in *PortUsed, updateMask *field_mask.FieldMask, db *gorm.DB) (*PortUsed, error)
DefaultPatchPortUsed executes a basic gorm update call with patch behavior
func DefaultPatchSetPortUsed ¶
func DefaultPatchSetPortUsed(ctx context.Context, objects []*PortUsed, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*PortUsed, error)
DefaultPatchSetPortUsed executes a bulk gorm update call with patch behavior
func DefaultReadPortUsed ¶
func DefaultStrictUpdatePortUsed ¶
DefaultStrictUpdatePortUsed clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*PortUsed) Descriptor
deprecated
func (*PortUsed) GetProtocol ¶
func (*PortUsed) ProtoMessage ¶
func (*PortUsed) ProtoMessage()
func (*PortUsed) ProtoReflect ¶
func (x *PortUsed) ProtoReflect() protoreflect.Message
type PortUsedORM ¶
type PortUsedORM struct { Id string `gorm:"type:uuid;primary_key"` Number uint32 OSId *string Protocol string State string }
func (*PortUsedORM) BeforeCreate ¶
func (portused *PortUsedORM) BeforeCreate(tx *gorm.DB) (err error)
BeforeCreate - GORM-specific autogenerated helpers.
func (PortUsedORM) TableName ¶
func (PortUsedORM) TableName() string
TableName overrides the default tablename generated by GORM
type PortUsedWithAfterToORM ¶
type PortUsedWithAfterToORM interface {
AfterToORM(context.Context, *PortUsedORM) error
}
PortUsedAfterToORM called after default ToORM code
type PortUsedWithAfterToPB ¶
PortUsedAfterToPB called after default ToPB code
type PortUsedWithBeforeToORM ¶
type PortUsedWithBeforeToORM interface {
BeforeToORM(context.Context, *PortUsedORM) error
}
PortUsedBeforeToORM called before default ToORM code
type PortUsedWithBeforeToPB ¶
PortUsedBeforeToPB called before default ToPB code
type PortWithAfterPatchSave ¶
type PortWithAfterToORM ¶
PortAfterToORM called after default ToORM code
type PortWithAfterToPB ¶
PortAfterToPB called after default ToPB code
type PortWithBeforePatchRead ¶
type PortWithBeforePatchSave ¶
type PortWithBeforeToORM ¶
PortBeforeToORM called before default ToORM code
type PortWithBeforeToPB ¶
PortBeforeToPB called before default ToPB code
type Reason ¶
type Reason struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"reason" Reason string `protobuf:"bytes,3,opt,name=Reason,proto3" json:"Reason,omitempty" xml:"reason"` // @gotags: xml:"count" Count int32 `protobuf:"varint,4,opt,name=Count,proto3" json:"Count,omitempty" xml:"count"` // contains filtered or unexported fields }
Reason - Extra information on a closed/filtered port
func DefaultApplyFieldMaskReason ¶
func DefaultApplyFieldMaskReason(ctx context.Context, patchee *Reason, patcher *Reason, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Reason, error)
DefaultApplyFieldMaskReason patches an pbObject with patcher according to a field mask.
func DefaultCreateReason ¶
DefaultCreateReason executes a basic gorm create call
func DefaultListReason ¶
DefaultListReason executes a gorm list call
func DefaultPatchReason ¶
func DefaultPatchReason(ctx context.Context, in *Reason, updateMask *field_mask.FieldMask, db *gorm.DB) (*Reason, error)
DefaultPatchReason executes a basic gorm update call with patch behavior
func DefaultPatchSetReason ¶
func DefaultPatchSetReason(ctx context.Context, objects []*Reason, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Reason, error)
DefaultPatchSetReason executes a bulk gorm update call with patch behavior
func DefaultReadReason ¶
func DefaultStrictUpdateReason ¶
DefaultStrictUpdateReason clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Reason) Descriptor
deprecated
func (*Reason) ProtoMessage ¶
func (*Reason) ProtoMessage()
func (*Reason) ProtoReflect ¶
func (x *Reason) ProtoReflect() protoreflect.Message
type ReasonORM ¶
type ReasonORM struct { Count int32 ExtraPortId *string Id string `gorm:"type:uuid;primary_key"` PortId *string Reason string }
func (*ReasonORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type ReasonWithAfterToORM ¶
ReasonAfterToORM called after default ToORM code
type ReasonWithAfterToPB ¶
ReasonAfterToPB called after default ToPB code
type ReasonWithBeforeToORM ¶
ReasonBeforeToORM called before default ToORM code
type ReasonWithBeforeToPB ¶
ReasonBeforeToPB called before default ToPB code
type State ¶
type State 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:"-"` // Nmap // @gotags: xml:"state,attr" State string `protobuf:"bytes,10,opt,name=State,proto3" json:"State,omitempty" xml:"state,attr"` // @gotags: xml:"reason,attr" Reason string `protobuf:"bytes,11,opt,name=Reason,proto3" json:"Reason,omitempty" xml:"reason,attr"` // @gotags: xml:"reason_ip,attr" ReasonIP string `protobuf:"bytes,12,opt,name=ReasonIP,proto3" json:"ReasonIP,omitempty" xml:"reason_ip,attr"` // @gotags: xml:"reason_ttl,attr" ReasonTTL float32 `protobuf:"fixed32,13,opt,name=ReasonTTL,proto3" json:"ReasonTTL,omitempty" xml:"reason_ttl,attr"` // contains filtered or unexported fields }
State - Contains information about a given's port status
func DefaultApplyFieldMaskState ¶
func DefaultApplyFieldMaskState(ctx context.Context, patchee *State, patcher *State, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*State, error)
DefaultApplyFieldMaskState patches an pbObject with patcher according to a field mask.
func DefaultCreateState ¶
DefaultCreateState executes a basic gorm create call
func DefaultListState ¶
DefaultListState executes a gorm list call
func DefaultPatchSetState ¶
func DefaultPatchSetState(ctx context.Context, objects []*State, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*State, error)
DefaultPatchSetState executes a bulk gorm update call with patch behavior
func DefaultPatchState ¶
func DefaultPatchState(ctx context.Context, in *State, updateMask *field_mask.FieldMask, db *gorm.DB) (*State, error)
DefaultPatchState executes a basic gorm update call with patch behavior
func DefaultReadState ¶
func DefaultStrictUpdateState ¶
DefaultStrictUpdateState clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*State) Descriptor
deprecated
func (*State) GetCreatedAt ¶
func (x *State) GetCreatedAt() *timestamppb.Timestamp
func (*State) GetReasonIP ¶
func (*State) GetReasonTTL ¶
func (*State) GetUpdatedAt ¶
func (x *State) GetUpdatedAt() *timestamppb.Timestamp
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) ProtoReflect ¶
func (x *State) ProtoReflect() protoreflect.Message
type StateORM ¶
type StateORM struct { CreatedAt *time.Time Id string `gorm:"type:uuid;primary_key"` PortId *string Reason string ReasonIP string ReasonTTL float32 State string UpdatedAt *time.Time }
func (*StateORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type StateWithAfterPatchSave ¶
type StateWithAfterToORM ¶
StateAfterToORM called after default ToORM code
type StateWithAfterToPB ¶
StateAfterToPB called after default ToPB code
type StateWithBeforeToORM ¶
StateBeforeToORM called before default ToORM code
type StateWithBeforeToPB ¶
StateBeforeToPB called before default ToPB code
type Status ¶
type Status struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"state,attr" State string `protobuf:"bytes,2,opt,name=State,proto3" json:"State,omitempty" xml:"state,attr"` // @gotags: xml:"reason,attr" Reason string `protobuf:"bytes,3,opt,name=Reason,proto3" json:"Reason,omitempty" xml:"reason,attr"` // @gotags: xml:"reason_ttl,attr" ReasonTTL string `protobuf:"bytes,4,opt,name=ReasonTTL,proto3" json:"ReasonTTL,omitempty" xml:"reason_ttl,attr"` // contains filtered or unexported fields }
Status represents a host's status.
func DefaultApplyFieldMaskStatus ¶
func DefaultApplyFieldMaskStatus(ctx context.Context, patchee *Status, patcher *Status, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Status, error)
DefaultApplyFieldMaskStatus patches an pbObject with patcher according to a field mask.
func DefaultCreateStatus ¶
DefaultCreateStatus executes a basic gorm create call
func DefaultListStatus ¶
DefaultListStatus executes a gorm list call
func DefaultPatchSetStatus ¶
func DefaultPatchSetStatus(ctx context.Context, objects []*Status, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Status, error)
DefaultPatchSetStatus executes a bulk gorm update call with patch behavior
func DefaultPatchStatus ¶
func DefaultPatchStatus(ctx context.Context, in *Status, updateMask *field_mask.FieldMask, db *gorm.DB) (*Status, error)
DefaultPatchStatus executes a basic gorm update call with patch behavior
func DefaultReadStatus ¶
func DefaultStrictUpdateStatus ¶
DefaultStrictUpdateStatus clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Status) Descriptor
deprecated
func (*Status) GetReasonTTL ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type StatusORM ¶
type StatusORM struct { HostId *string Id string `gorm:"type:uuid;primary_key"` Reason string ReasonTTL string State string }
func (*StatusORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type StatusWithAfterToORM ¶
StatusAfterToORM called after default ToORM code
type StatusWithAfterToPB ¶
StatusAfterToPB called after default ToPB code
type StatusWithBeforeToORM ¶
StatusBeforeToORM called before default ToORM code
type StatusWithBeforeToPB ¶
StatusBeforeToPB called before default ToPB code
type Uptime ¶
type Uptime struct { Id string `protobuf:"bytes,100,opt,name=Id,proto3" json:"Id,omitempty"` // @gotags: xml:"seconds,attr" Seconds int32 `protobuf:"varint,1,opt,name=Seconds,proto3" json:"Seconds,omitempty" xml:"seconds,attr"` // @gotags: xml:"lastboot,attr" LastBoot string `protobuf:"bytes,2,opt,name=LastBoot,proto3" json:"LastBoot,omitempty" xml:"lastboot,attr"` // contains filtered or unexported fields }
Uptime - The amount of time the host has been up
func DefaultApplyFieldMaskUptime ¶
func DefaultApplyFieldMaskUptime(ctx context.Context, patchee *Uptime, patcher *Uptime, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Uptime, error)
DefaultApplyFieldMaskUptime patches an pbObject with patcher according to a field mask.
func DefaultCreateUptime ¶
DefaultCreateUptime executes a basic gorm create call
func DefaultListUptime ¶
DefaultListUptime executes a gorm list call
func DefaultPatchSetUptime ¶
func DefaultPatchSetUptime(ctx context.Context, objects []*Uptime, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Uptime, error)
DefaultPatchSetUptime executes a bulk gorm update call with patch behavior
func DefaultPatchUptime ¶
func DefaultPatchUptime(ctx context.Context, in *Uptime, updateMask *field_mask.FieldMask, db *gorm.DB) (*Uptime, error)
DefaultPatchUptime executes a basic gorm update call with patch behavior
func DefaultReadUptime ¶
func DefaultStrictUpdateUptime ¶
DefaultStrictUpdateUptime clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Uptime) Descriptor
deprecated
func (*Uptime) GetLastBoot ¶
func (*Uptime) GetSeconds ¶
func (*Uptime) ProtoMessage ¶
func (*Uptime) ProtoMessage()
func (*Uptime) ProtoReflect ¶
func (x *Uptime) ProtoReflect() protoreflect.Message
type UptimeORM ¶
func (*UptimeORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type UptimeWithAfterToORM ¶
UptimeAfterToORM called after default ToORM code
type UptimeWithAfterToPB ¶
UptimeAfterToPB called after default ToPB code
type UptimeWithBeforeToORM ¶
UptimeBeforeToORM called before default ToORM code
type UptimeWithBeforeToPB ¶
UptimeBeforeToPB called before default ToPB code
type User ¶
type User struct { // @gotags: display:"ID" readonly:"true" strict:"yes" Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true" strict:"yes"` // @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: display:"Name" Name string `protobuf:"bytes,10,opt,name=Name,proto3" json:"Name,omitempty" display:"Name"` // @gotags: display:"UID" UID int32 `protobuf:"varint,11,opt,name=UID,proto3" json:"UID,omitempty" display:"UID"` Groups []*Group `protobuf:"bytes,12,rep,name=Groups,proto3" json:"Groups,omitempty"` // contains filtered or unexported fields }
User - An operating-system user.
func DefaultApplyFieldMaskUser ¶
func DefaultApplyFieldMaskUser(ctx context.Context, patchee *User, patcher *User, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*User, error)
DefaultApplyFieldMaskUser patches an pbObject with patcher according to a field mask.
func DefaultCreateUser ¶
DefaultCreateUser executes a basic gorm create call
func DefaultListUser ¶
DefaultListUser executes a gorm list call
func DefaultPatchSetUser ¶
func DefaultPatchSetUser(ctx context.Context, objects []*User, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*User, error)
DefaultPatchSetUser executes a bulk gorm update call with patch behavior
func DefaultPatchUser ¶
func DefaultPatchUser(ctx context.Context, in *User, updateMask *field_mask.FieldMask, db *gorm.DB) (*User, error)
DefaultPatchUser executes a basic gorm update call with patch behavior
func DefaultReadUser ¶
func DefaultStrictUpdateUser ¶
DefaultStrictUpdateUser clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserORM ¶
type UserORM struct { CreatedAt *time.Time Groups []*GroupORM `` /* 137-byte string literal not displayed */ HostId *string Id string `gorm:"type:uuid;primary_key"` Name string UID int32 UpdatedAt *time.Time }
func (*UserORM) BeforeCreate ¶
BeforeCreate - GORM-specific autogenerated helpers.
type UserORMWithAfterCreate_ ¶
type UserORMWithAfterDelete_ ¶
type UserWithAfterPatchSave ¶
type UserWithAfterToORM ¶
UserAfterToORM called after default ToORM code
type UserWithAfterToPB ¶
UserAfterToPB called after default ToPB code
type UserWithBeforePatchRead ¶
type UserWithBeforePatchSave ¶
type UserWithBeforeToORM ¶
UserBeforeToORM called before default ToORM code