package
0.0.0-20180116160015-61cb8e233420
Repository: https://github.com/clinta/go-plugins-helpers.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
Docker volume extension api.
Go handler to create external graphdriver extensions for Docker.
Usage
This library is designed to be integrated in your program.
- Implement the
graphdriver.Driver
interface. - Initialize a
graphdriver.Handler
with your implementation. - Call either
ServeTCP
orServeUnix
from thegraphdriver.Handler
.
Example using TCP sockets:
d := MyGraphDriver{}
h := graphdriver.NewHandler(d)
h.ServeTCP("test_graph", ":8080")
Example using Unix sockets:
d := MyGraphDriver{}
h := graphdriver.NewHandler(d)
h.ServeUnix("root", "test_graph")