-
Notifications
You must be signed in to change notification settings - Fork 53
/
docker_mirror.pyi
executable file
·78 lines (73 loc) · 4.4 KB
/
docker_mirror.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#! /usr/bin/python3
from typing import Optional, Union, Tuple, Dict, List
DIST: Dict[str, str]
BASE: Dict[str, str]
ALMA: Dict[str, str]
OPENSUSE: Dict[str, str]
def decodes(text: Optional[str]) -> Optional[str]: ...
def decodes_(text: Union[str,bytes]) -> str: ...
def output3(cmd: Union[str, List[str]], shell: bool = True, debug: bool = True) -> Tuple[str, str, int]: ...
def major(version: str) -> str: ...
def onlyversion(image: str) -> str: ...
class DockerMirror:
def __init__(self, cname: str, image: str, hosts: List[str], mount: str = "") -> None: ...
def __str__(self) -> str: ...
class DockerMirrorPackagesRepo:
def __init__(self, image: Optional[str] = None) -> None:
self._image: Optional[str]
def host_system_image(self) -> str: ...
def detect_etc_image(self, etc: str) -> Tuple[str, str]: ...
def detect_base_image(self, image: str) -> str: ...
def detect_base_image_from(self, cname: str, tempdir: str) -> Tuple[str, str]: ...
def get_docker_latest_image(self, image: str) -> str: ...
def get_docker_latest_version(self, image: str) -> str: ...
def get_docker_mirror(self, image: str) -> Optional[DockerMirror]: ...
def get_docker_mirrors(self, image: str) -> List[DockerMirror]: # type: ignore[return]
mirrors: List[DockerMirror]
def get_ubuntu_latest(self, image: str, default: Optional[str] = None) -> str: ...
def get_ubuntu_latest_version(self, version: str) -> str: ...
def get_ubuntu_docker_mirror(self, image: str) -> DockerMirror: ...
def get_ubuntu_docker_mirrors(self, image: str) -> List[DockerMirror]: ...
def get_centos_latest(self, image: str, default: Optional[str] = None) -> str: ...
def get_centos_latest_version(self, version: str) -> str: ...
def get_centos_docker_mirror(self, image: str) -> DockerMirror: ...
def get_centos_docker_mirrors(self, image: str) -> List[DockerMirror]: ...
def get_opensuse_latest(self, image: str, default: Optional[str] = None) -> str: ...
def get_opensuse_latest_version(self, version: str) -> str: ...
def get_opensuse_docker_mirror(self, image: str) -> DockerMirror: ...
def get_opensuse_docker_mirrors(self, image: str) -> List[DockerMirror]: ...
def docker_mirror(self, rmi: str, rep: str, ver: str, *hosts: str) -> DockerMirror: ...
def containername(self, image: str) -> str: ...
def get_extra_mirrors(self, image: str) -> List[DockerMirror]: # type: ignore[return]
mirrors: List[DockerMirror]
def get_epel_docker_mirrors(self, image: str) -> List[DockerMirror]: ...
def get_epel_docker_mirror(self, image: str) -> DockerMirror: ...
def ip_container(self, name: str) -> Optional[str]: ...
def start_containers(self, image: str) -> Dict[str, Optional[str]]: # type: ignore[return]
done: Dict[str, Optional[str]]
def start_container(self, image: str, container: str, mount:str) -> Optional[str]: ...
def stop_containers(self, image: str) -> Dict[str, str]: # type: ignore[return]
done: Dict[str, str]
def stop_container(self, image: str, container: str) -> str: ...
def info_containers(self, image: str) -> Dict[str, Optional[str]]: ...
def info_container(self, image: str, container: str) -> Optional[str]: ...
def get_containers(self, image: str) -> List[str]: ...
def inspect_containers(self, image: str) -> Dict[str, Optional[str]]: # type: ignore[return]
done: Dict[str, Optional[str]]
def add_hosts(self, image: str, done: Dict[str, Optional[str]] = {}) -> List[str]: # type: ignore[return]
args: List[str]
def helps(self) -> str: ...
def detect(self, image: Optional[str] = None) -> str: ...
def epel(self, image: Optional[str] = None) -> str: ...
def repo(self, image: Optional[str] = None) -> str: ...
def repos(self, image: Optional[str] = None) -> str: ...
def facts(self, image: Optional[str] = None) -> str: ...
def starts(self, image: Optional[str] = None) -> str: ...
def stops(self, image: Optional[str] = None) -> str: ...
def wait_mirrors(self, hosts: Dict[str, Optional[str]]) -> int: # type: ignore[return]
results: Dict[str, int]
def infos(self, image: Optional[str] = None) -> str: ...
def containers(self, image: Optional[str] = None) -> str: ...
def inspects(self, image: Optional[str] = None) -> str: ...
def from_dockerfile(self, dockerfile: str, defaults: Optional[str] = None) -> Optional[str]: ...
def repo_scripts() -> str: ...