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

Crawler implementation.

class CliProgresser[source]

Bases: object

The command line progress state

get_summary()[source]

Show progress state when finish

on_error(error)[source]

Show progress state when encounter an error

Parameters:error (str) – error message
on_new_object(resource)[source]

Show progress state when found a new object

Parameters:resource (Resource) – the Resource object in resources
on_warning(warning)[source]

Show progress state when have a warning

Parameters:warning (str) – warning message
class Progresser[source]

Bases: object

Progress state Interface

get_summary()[source]

Not Implemented.

Raises:NotImplementedError – Because not implemented.
on_error(error)[source]

Not Implemented.

Parameters:error (str) – error message
Raises:NotImplementedError – Because not implemented.
on_new_object(resource)[source]

Not Implemented.

Parameters:resource (object) – the Resource object
Raises:NotImplementedError – Because not implemented.
on_warning(warning)[source]

Not Implemented.

Parameters:warning (str) – warning message
Raises:NotImplementedError – Because not implemented.