Go handler to create external volume extensions for Docker.
This library is designed to be integrated in your program.
- Implement the
dkvolume.Driver
interface. - Initialize a
dkvolume.Hander
with your implementation. - Call either
ServeTCP
orServeUnix
from thedkvolume.Handler
.
d := MyVolumeDriver{}
h := dkvolume.NewHandler(d)
h.ServeTCP("test_volume", ":8080")
d := MyVolumeDriver{}
h := dkvolume.NewHandler(d)
h.ServeUnix("root", "test_volume")
- https://github.com/calavera/docker-volume-glusterfs
- https://github.com/calavera/docker-volume-keywhiz
MIT