ing
This commit is contained in:
parent
6259921329
commit
b893dcbebc
|
@ -1,6 +1,6 @@
|
|||
import { Zone } from './Zone';
|
||||
// import { Port } from './Port';
|
||||
import { MetaIPType } from '../meta';
|
||||
import { MetaIPType, MetaDiscovererType } from '../meta';
|
||||
|
||||
export const defaultOsType = 'UNKNOWN';
|
||||
export const defaultHostType = 'HOST';
|
||||
|
@ -20,7 +20,7 @@ export interface Host {
|
|||
hostModel?: string;
|
||||
|
||||
meta?: Map<string, Map<string, string>>;
|
||||
discoveredBy?: string[];
|
||||
discoveredBy?: MetaDiscovererType[];
|
||||
discoveredDate?: Date;
|
||||
|
||||
zone?: Zone;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Host } from './Host';
|
||||
import { MetaPortType } from '../meta';
|
||||
import { MetaPortType, MetaDiscovererType } from '../meta';
|
||||
|
||||
export interface Port {
|
||||
metaPortType?: MetaPortType;
|
||||
portNumber?: number;
|
||||
|
||||
meta?: Map<string, Map<string, string>>;
|
||||
discoveredBy?: string[];
|
||||
discoveredBy?: MetaDiscovererType[];
|
||||
discoveredDate?: Date;
|
||||
|
||||
host?: Host;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Port } from './Port';
|
||||
import { MetaCryptoType } from '../meta';
|
||||
import { MetaCryptoType, MetaDiscovererType } from '../meta';
|
||||
|
||||
export const defaultServiceType = 'ETC';
|
||||
export const defaultServiceVendor = 'UNKNOWN';
|
||||
|
@ -16,7 +16,7 @@ export interface Service {
|
|||
serviceVersion?: string;
|
||||
|
||||
meta?: Map<string, Map<string, string>>;
|
||||
discoveredBy?: string[];
|
||||
discoveredBy?: MetaDiscovererType[];
|
||||
discoveredDate?: Date;
|
||||
|
||||
port?: Port;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { MetaIPType } from '../meta';
|
||||
import { MetaIPType, MetaDiscovererType } from '../meta';
|
||||
|
||||
export interface Zone {
|
||||
network?: string;
|
||||
|
@ -8,7 +8,7 @@ export interface Zone {
|
|||
mac?: string;
|
||||
|
||||
meta?: Map<string, Map<string, string>>;
|
||||
discoveredBy?: string[];
|
||||
discoveredBy?: MetaDiscovererType[];
|
||||
discoveredDate?: Date;
|
||||
|
||||
hostList?: any[];
|
||||
|
|
35
@overflow/model/meta/MetaDiscovererType.ts
Normal file
35
@overflow/model/meta/MetaDiscovererType.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
export interface MetaDiscovererType {
|
||||
id?: number;
|
||||
name?: string;
|
||||
key?: string;
|
||||
createDate?: Date;
|
||||
}
|
||||
|
||||
export enum MetaDiscovererTypeEnum {
|
||||
UNKNOWN = 'UNKNOWN',
|
||||
ARP = 'ARP',
|
||||
ICMP = 'ICMP',
|
||||
MDNS = 'MDNS',
|
||||
NDP = 'NDP',
|
||||
SNMP = 'SNMP',
|
||||
TCPACK = 'TCPACK',
|
||||
TCPFIN = 'TCPFIN',
|
||||
TCPNULL = 'TCPNULL',
|
||||
TCPXmas = 'TCPXmas',
|
||||
TCPSyn = 'TCPSyn',
|
||||
TCPConnection = 'TCPConnection',
|
||||
TCPMatcher = 'TCPMatcher',
|
||||
UDPConnection = 'UDPConnection',
|
||||
UDPMatcher = 'UDPMatcher',
|
||||
UPnP = 'UPnP',
|
||||
}
|
||||
|
||||
export const toMetaDiscovererTypeEnum = (v: MetaDiscovererType): MetaDiscovererTypeEnum => {
|
||||
return MetaDiscovererTypeEnum[v.key];
|
||||
};
|
||||
|
||||
export const toMetaDiscovererType = (v: MetaDiscovererTypeEnum): MetaDiscovererType => {
|
||||
return {
|
||||
key: v,
|
||||
};
|
||||
};
|
|
@ -1,7 +1,9 @@
|
|||
export * from './MetaCrawler';
|
||||
export * from './MetaCrawlerInputItem';
|
||||
export * from './MetaCrawlerMapping';
|
||||
export * from './MetaCredentialType';
|
||||
export * from './MetaCryptoType';
|
||||
export * from './MetaDiscovererType';
|
||||
export * from './MetaEmailType';
|
||||
export * from './MetaHistoryType';
|
||||
export * from './MetaInfraType';
|
||||
|
|
Loading…
Reference in New Issue
Block a user