-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathAppsService.java
More file actions
86 lines (73 loc) · 3.12 KB
/
AppsService.java
File metadata and controls
86 lines (73 loc) · 3.12 KB
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
79
80
81
82
83
84
85
86
package fr.insee.onyxia.api.services;
import fr.insee.onyxia.model.User;
import fr.insee.onyxia.model.catalog.Pkg;
import fr.insee.onyxia.model.dto.CreateServiceDTO;
import fr.insee.onyxia.model.dto.ServicesListing;
import fr.insee.onyxia.model.project.Project;
import fr.insee.onyxia.model.region.Region;
import fr.insee.onyxia.model.service.Service;
import fr.insee.onyxia.model.service.UninstallService;
import io.fabric8.kubernetes.api.model.Event;
import io.fabric8.kubernetes.client.Watch;
import io.fabric8.kubernetes.client.Watcher;
import io.github.inseefrlab.helmwrapper.service.HelmFlags;
import io.github.inseefrlab.helmwrapper.service.HelmInstallService;
import java.io.IOException;
import java.text.ParseException;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeoutException;
import org.springframework.scheduling.annotation.Async;
public interface AppsService {
@Async
CompletableFuture<ServicesListing> getUserServices(Region region, Project project, User user)
throws IllegalAccessException, IOException;
@Async
CompletableFuture<ServicesListing> getUserServices(
Region region, Project project, User user, String groupId)
throws IllegalAccessException, IOException;
Collection<Object> installApp(
Region region,
Project project,
CreateServiceDTO requestDTO,
String catalogId,
Pkg pkg,
User user,
Map<String, Object> fusion,
final boolean skipTlsVerify,
String timeout,
final String caFile)
throws Exception;
Service getUserService(Region region, Project project, User user, String serviceId)
throws Exception;
UninstallService destroyService(
Region region, Project project, User user, String path, boolean bulk) throws Exception;
String getLogs(Region region, Project project, User user, String serviceId, String taskId);
Watch getEvents(Region region, Project project, User user, Watcher<Event> watcher)
throws HelmInstallService.MultipleServiceFound, ParseException;
void rename(Region region, Project project, User user, String serviceId, String friendlyName)
throws IOException, InterruptedException, TimeoutException;
void share(Region region, Project project, User user, String serviceId, boolean share)
throws IOException, InterruptedException, TimeoutException;
void resume(
Region region,
Project project,
String catalogId,
String chartName,
String version,
User user,
String serviceId,
HelmFlags flags)
throws IOException, InterruptedException, TimeoutException;
void suspend(
Region region,
Project project,
String catalogId,
String chartName,
String version,
User user,
String serviceId,
HelmFlags flags)
throws IOException, InterruptedException, TimeoutException;
}