open_asset_model

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidRelationship

func ValidRelationship(source 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 {
	AssetType() AssetType
	JSON() ([]byte, error)
}

type AssetType

type AssetType string
const (
	IPAddress AssetType = "IPAddress"
	Netblock  AssetType = "Netblock"
	ASN       AssetType = "ASN"
	RIROrg    AssetType = "RIROrg"
	FQDN      AssetType = "FQDN"
)

Directories

Path Synopsis
Includes several types that represent common domain-related concepts, such as FQDN for representing fully qualified domain names.
Includes several types that represent common domain-related concepts, such as FQDN for representing fully qualified domain names.
Provides several types that represent common network concepts, such as IP addresses, network blocks, or autonomous systems.
Provides several types that represent common network concepts, such as IP addresses, network blocks, or autonomous systems.

Jump to

Keyboard shortcuts

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