package
0.0.0-20180116160015-61cb8e233420
Repository: https://github.com/clinta/go-plugins-helpers.git
Documentation: pkg.go.dev
# 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")
# Packages
No description provided by the author
# Functions
NewErrorResponse creates an ErrorResponse with the provided message.
NewHandler initializes the request handler with a driver implementation.
# Constants
Added is a ChangeKind used when an item has been added.
DefaultDockerRootDirectory is the default directory where graph drivers will be created.
Deleted is a ChangeKind used when an item has been deleted.
Modified is a ChangeKind used when an item has been modified.
# Structs
ApplyDiffRequest is the structure that docker's applyDiff requests are deserialized to.
ApplyDiffResponse is the structure that docker's applyDiff responses are serialized to.
CapabilitiesRequest is the structure that docker's capabilities requests are deserialized to.
CapabilitiesResponse is the structure that docker's capabilities responses are serialized to.
Change is the structure that docker's individual changes are serialized to.
ChangesRequest is the structure that docker's changes requests are deserialized to.
ChangesResponse is the structure that docker's changes responses are serialized to.
CleanupRequest is the structure that docker's cleanup requests are deserialized to.
CreateRequest is the structure that docker's create requests are deserialized to.
DiffRequest is the structure that docker's diff requests are deserialized to.
DiffResponse is the structure that docker's diff responses are serialized to.
DiffSizeRequest is the structure that docker's diffSize requests are deserialized to.
DiffSizeResponse is the structure that docker's diffSize responses are serialized to.
ErrorResponse is a formatted error message that docker can understand.
ExistsRequest is the structure that docker's exists requests are deserialized to.
ExistsResponse is the structure that docker's exists responses are serialized to.
GetMetadataRequest is the structure that docker's getMetadata requests are deserialized to.
GetMetadataResponse is the structure that docker's getMetadata responses are serialized to.
GetRequest is the structure that docker's get requests are deserialized to.
GetResponse is the strucutre that docker's remove responses are serialized to.
Handler forwards requests and responses between the docker daemon and the plugin.
InitRequest is the structure that docker's init requests are deserialized to.
PutRequest is the structure that docker's put requests are deserialized to.
RemoveRequest is the structure that docker's remove requests are deserialized to.
StatusRequest is the structure that docker's status requests are deserialized to.
StatusResponse is the structure that docker's status responses are serialized to.
# Interfaces
Driver represent the interface a driver must fulfill.
# Type aliases
ChangeKind represents the type of change mage.