Coverage for /builds/BuildGrid/buildgrid/buildgrid/server/cleanup/janitor/types.py: 0.00%
8 statements
« prev ^ index » next coverage.py v7.4.1, created at 2025-05-21 15:45 +0000
« prev ^ index » next coverage.py v7.4.1, created at 2025-05-21 15:45 +0000
1# Copyright (C) 2025 Bloomberg LP
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# <http://www.apache.org/licenses/LICENSE-2.0>
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
15from typing import Any, Protocol
17from buildgrid.server.cleanup.janitor.config import S3Config, SQLStorageConfig
19JanitorConfig = S3Config | SQLStorageConfig
22class Janitor(Protocol):
23 def __enter__(self) -> Any: ...
25 def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: ...
27 def stop(self, *args: Any, **kwargs: Any) -> None: ...
29 def cleanup_bucket(self, *args: Any, **kwargs: Any) -> Any: ...