The CloudNativePG codebase is not intended to be used as a library.
This repository hosts a Go module that includes features that were moved out of the CloudNativePG codebase to make them accessible for use in other projects.
As a Go module:
go get github.com/cloudnative-pg/machinery
The documentation is available on the pkg.go.dev website.
This library is used by CloudNativePG itself and by the supporting
barman-cloud
library.
This code is released under the permissive Apache License 2.0 license.