diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-01 22:32:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-01 22:32:08 +0100 |
commit | 7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870 (patch) | |
tree | 7078a75662049ee596cbfecb96c41ad95cee3aa9 /vendor/github.com/docker/go-plugins-helpers/volume/README.md | |
parent | c71ad9a557ee80eccde2608939c81906379fa7ae (diff) | |
parent | 594ac4a14658a90ad7bc5541dab6349a0c629a5c (diff) | |
download | podman-7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870.tar.gz podman-7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870.tar.bz2 podman-7f084a8ae212f1c2c67e9cfb1f9e4c5470e01870.zip |
Merge pull request #8357 from mheon/add_volume_interface_package
Add API for communicating with Docker volume plugins
Diffstat (limited to 'vendor/github.com/docker/go-plugins-helpers/volume/README.md')
-rw-r--r-- | vendor/github.com/docker/go-plugins-helpers/volume/README.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/docker/go-plugins-helpers/volume/README.md b/vendor/github.com/docker/go-plugins-helpers/volume/README.md new file mode 100644 index 000000000..395aa643f --- /dev/null +++ b/vendor/github.com/docker/go-plugins-helpers/volume/README.md @@ -0,0 +1,36 @@ +# Docker volume extension api. + +Go handler to create external volume extensions for Docker. + +## Usage + +This library is designed to be integrated in your program. + +1. Implement the `volume.Driver` interface. +2. Initialize a `volume.Handler` with your implementation. +3. Call either `ServeTCP` or `ServeUnix` from the `volume.Handler`. + +### Example using TCP sockets: + +```go + d := MyVolumeDriver{} + h := volume.NewHandler(d) + h.ServeTCP("test_volume", ":8080") +``` + +### Example using Unix sockets: + +```go + d := MyVolumeDriver{} + h := volume.NewHandler(d) + u, _ := user.Lookup("root") + gid, _ := strconv.Atoi(u.Gid) + h.ServeUnix("test_volume", gid) +``` + +## Full example plugins + +- https://github.com/calavera/docker-volume-glusterfs +- https://github.com/calavera/docker-volume-keywhiz +- https://github.com/quobyte/docker-volume +- https://github.com/NimbleStorage/Nemo |