Skip to content

mah454/jpodman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Communicate with podman rest api service

Implementations

  • PodmanContainerService
  • PodmanImageService
  • PodmanNetworkService
  • PodmanPodService
  • PodmanSystemService
  • PodmanVolumeService
  • PodmanExecService

Usage:

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));
            }
        }
    }
}

About

Java ibrary for communicate with podman rest api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages