Podman::Client

API connection client.

my $Client = Podman::Client->new(
    Connection => 'http+unix:///run/user/1000/podman/podman.sock',
    Timeout       => 1800,
);

my $Response = $Client->Get(
    'version',
    Parameters => {},
    Headers    => {},
);

Attributes

has 'Connection'; #43

API connection Url. Possible connections are via UNIX socket (default) or tcp connection.

* http+unix
* http
* https

has 'Timeout'; #51

API connection timeout, default 3600 seconds.

has 'UserAgent'; #59

API connection object.

has 'RequestBase'; #68

API request Url depends on connection Url and Podman service version.

Methods

sub Get($Self, $Path, %Options); #157

Send API get request to path with optional parameters and headers.

sub Post($Self, $Path, %Options); #171

Send API post request to path with optional parameters, headers and data.

sub Delete($Self, $Path, %Options); #198

Send API delete request to path with optional parameters and headers.