Utilities for programmatically interacting with Private Internet Access in Go.
To start using the package, run:
go get github.com/unmango/go-pia
Create a new client with:
c := pia.NewClient()
s, err := c.Servers(context.Background())
This package is primarily based off of https://github.com/pia-foss/manual-connections. The utilities provided attempt to mimic (or directly use) the functionality of the shell scripts.
Eventually I would like this to be a more general purpose library for interacting with PIA. Currently I only need the functionality from https://github.com/pia-foss/manual-connections, so I haven't dug into how well documented their public APIs are.
The unstoppablemango/pia-manual-connections
docker image contains the upstream repo for convenience in containerized workloads.
The source repo for this image can be found here.