- PodmanContainerService
- PodmanImageService
- PodmanNetworkService
- PodmanPodService
- PodmanSystemService
- PodmanVolumeService
- PodmanExecService
Add dependency to pom.xml
<dependency>
<groupId>ir.moke</groupId>
<artifactId>jpodman</artifactId>
<version>3.1</version>
</dependency>Example Code :
public class MainClass {
private static final String host = "127.0.0.1";
private static final int port = 9000;
public static void main(String[] args) {
try (Podman podman = new Podman(host, port)) {
PodmanSystemService podmanSystemService = podman.api(PodmanSystemService.class);
try (Response response = podmanSystemService.info()) {
System.out.println(response.getStatus());
System.out.println(response.readEntity(String.class));
}
}
}
}