yawning_titan.networks.network_db.NetworkSchema#
- class yawning_titan.networks.network_db.NetworkSchema[source]#
Bases:
YawningTitanDBSchema
A schema-like class that defines the network DB fields.
Fields are defined using the
YawningTitanQuery
class so that schema paths can be used directly withintinydb.table.Table.search()
function calls. All fields are mapped to a property in theNetwork
class.- Example:
>>> from yawning_titan.networks.network_db import NetworkDB, NetworkSchema >>> db = NetworkDB() >>> network_configs = db.search(NetworkSchema.SET_RANDOM_ENTRY_NODES == True)
Methods
Attributes
NODE_VULNERABILITY_LOWER_BOUND
The
YawningTitanQuery
class extendstinydb.queries.Query
.NODE_VULNERABILITY_UPPER_BOUND
The
YawningTitanQuery
class extendstinydb.queries.Query
.NUM_OF_RANDOM_ENTRY_NODES
The
YawningTitanQuery
class extendstinydb.queries.Query
.NUM_OF_RANDOM_HIGH_VALUE_NODES
The
YawningTitanQuery
class extendstinydb.queries.Query
.RANDOM_ENTRY_NODE_PREFERENCE
The
YawningTitanQuery
class extendstinydb.queries.Query
.RANDOM_HIGH_VALUE_NODE_PREFERENCE
The
YawningTitanQuery
class extendstinydb.queries.Query
.SET_RANDOM_ENTRY_NODES
The
YawningTitanQuery
class extendstinydb.queries.Query
.SET_RANDOM_HIGH_VALUE_NODES
The
YawningTitanQuery
class extendstinydb.queries.Query
.SET_RANDOM_VULNERABILITIES
The
YawningTitanQuery
class extendstinydb.queries.Query
.