forked from Militereum/Militereum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker.mac.pas
66 lines (53 loc) · 1.13 KB
/
docker.mac.pas
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
unit docker.mac;
interface
function supported: Boolean;
function installed: Boolean;
function installer: string;
function running: Boolean;
function start: Boolean;
function pull(const image: string): Boolean;
function run(const name, command: string): Boolean;
function getContainerId(const name: string): string;
function stop(const containerId: string): Boolean;
implementation
function supported: Boolean;
begin
Result := False;
end;
function installed: Boolean;
begin
Result := False;
end;
function installer: string;
begin
{$IFDEF CPUARM}
Result := 'https://desktop.docker.com/mac/main/arm64/Docker.dmg';
{$ELSE}
Result := 'https://desktop.docker.com/mac/main/amd64/Docker.dmg';
{$ENDIF}
end;
function running: Boolean;
begin
Result := False;
end;
function start: Boolean;
begin
Result := False;
end;
function pull(const image: string): Boolean;
begin
Result := False;
end;
function run(const name, command: string): Boolean;
begin
Result := False;
end;
function getContainerId(const name: string): string;
begin
Result := '';
end;
function stop(const containerId: string): Boolean;
begin
Result := True;
end;
end.