google.cloud.forseti.services.inventory.base.crawler module

Forseti Inventory Base Crawler Implementation.

class Crawler[source]

Bases: object

The inventory crawler interface

dispatch(callback)[source]

Dispatch crawling of a subtree.

Parameters:callback (function) – Callback to dispatch.
Raises:NotImplementedError – Because not implemented.
get_client()[source]

Get the current API client, Not Implemented.

Raises:NotImplementedError – Because not implemented.
run(resource)[source]

To start the crawler, Not Implemented.

Parameters:resource (object) – Root resource to run on.
Raises:NotImplementedError – Because not implemented.
visit(resource)[source]

To visit a resource, Not Implemented.

Parameters:resource (object) – Resource to visit.
Raises:NotImplementedError – Because not implemented.
class CrawlerConfig[source]

Bases: object

The configuration profile of an inventory crawler