buildgrid.cleanup.janitor.index module

class buildgrid.cleanup.janitor.index.IndexLookup

Bases: ABC

abstract get_missing_digests(digests: Set[str]) Set[str]

Return the subset of digests which is not in the index.

class buildgrid.cleanup.janitor.index.RedisIndexLookup(config: RedisConfig)

Bases: IndexLookup

get_missing_digests(digests: Set[str]) Set[str]

Return the subset of digests which is not in the index.

class buildgrid.cleanup.janitor.index.SqlIndexLookup(connection_string: str)

Bases: IndexLookup

get_missing_digests(digests: Set[str]) Set[str]

Return the subset of digests which is not in the index.