open_asset_model

package module
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetAssetOutgoingRelations added in v0.7.0

func GetAssetOutgoingRelations(subject AssetType) []string

GetAssetOutgoingRelations returns the relation types allowed to be used when the subject is the asset type provided in the parameter. Providing an invalid subject causes a return value of nil.

func ValidRelationship

func ValidRelationship(src AssetType, relation string, destination AssetType) bool

ValidRelationship returns true if the relation is valid in the taxonomy when outgoing from the source asset type to the destination asset type.

Types

type Asset

type Asset interface {
	Key() string
	AssetType() AssetType
	JSON() ([]byte, error)
}

type AssetType

type AssetType string
const (
	AutnumRecord     AssetType = "AutnumRecord"
	AutonomousSystem AssetType = "AutonomousSystem"
	ContactRecord    AssetType = "ContactRecord"
	DomainRecord     AssetType = "DomainRecord"
	EmailAddress     AssetType = "EmailAddress"
	File             AssetType = "File"
	Fingerprint      AssetType = "Fingerprint"
	FQDN             AssetType = "FQDN"
	IPAddress        AssetType = "IPAddress"
	IPNetRecord      AssetType = "IPNetRecord"
	Location         AssetType = "Location"
	Netblock         AssetType = "Netblock"
	NetworkEndpoint  AssetType = "NetworkEndpoint"
	Organization     AssetType = "Organization"
	Person           AssetType = "Person"
	Phone            AssetType = "Phone"
	Service          AssetType = "Service"
	SocketAddress    AssetType = "SocketAddress"
	Source           AssetType = "Source"
	TLSCertificate   AssetType = "TLSCertificate"
	URL              AssetType = "URL"
)

func GetTransformAssetTypes added in v0.7.0

func GetTransformAssetTypes(subject AssetType, relation string) []AssetType

GetAssetOutgoingRelations returns the relation types allowed to be used when the subject is the asset type provided in the parameter. Providing an invalid subject causes a return value of nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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