otupy.apps.ctxd.discovery

Service discovery

To run the discovery, either download the source code or install from PyPI (see setup).

Run the discovery service:

python3 discovery.py [-c | --config <config.yaml>]

Module attributes

defaults

Defaults value to be used for missing input parameters

Functions

add_resource

Add discovered service/link to the internal list for publishing

connect_to_database

discover

Query an OpenC2 discovery service

discovery

Orchestrate discovery

loop

Sort of decorator to manage loops of the main function

main

The main function

parse_and_default

Parse config file and assign default values to mising items

publish_data

set_defaults

Sets default values