-
Notifications
You must be signed in to change notification settings - Fork 11
/
asset.go
38 lines (33 loc) · 1.29 KB
/
asset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright © by Jeff Foley 2017-2024. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
// SPDX-License-Identifier: Apache-2.0
package open_asset_model
type Asset interface {
Key() string
AssetType() AssetType
JSON() ([]byte, error)
}
type AssetType string
const (
AutnumRecord AssetType = "AutnumRecord"
AutonomousSystem AssetType = "AutonomousSystem"
ContactRecord AssetType = "ContactRecord"
DomainRecord AssetType = "DomainRecord"
EmailAddress AssetType = "EmailAddress"
File AssetType = "File"
FQDN AssetType = "FQDN"
IPAddress AssetType = "IPAddress"
IPNetRecord AssetType = "IPNetRecord"
Location AssetType = "Location"
Netblock AssetType = "Netblock"
Organization AssetType = "Organization"
Person AssetType = "Person"
Phone AssetType = "Phone"
Service AssetType = "Service"
TLSCertificate AssetType = "TLSCertificate"
URL AssetType = "URL"
)
var AssetList = []AssetType{
AutnumRecord, AutonomousSystem, ContactRecord, DomainRecord, EmailAddress, File, FQDN,
IPAddress, IPNetRecord, Location, Netblock, Organization, Person, Phone, Service, TLSCertificate, URL,
}