Skip to content

gopher-net/dknet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker network extension api.

Note: This is currently under development

Go handler to create external network extensions for Docker.

Usage

This library is designed to be integrated in your program.

  1. Implement the dknet.Driver interface.
  2. Initialize a dknet.Handler with your implementation.
  3. Call either ServeTCP or ServeUnix from the dknet.Handler.

Example using TCP sockets:

  d := MyNetworkDriver{}
  h := dknet.NewHandler(d)
  h.ServeTCP("test_network", ":8080")

Example using Unix sockets:

  d := MyNetworkDriver{}
  h := dknet.NewHandler(d)
  h.ServeUnix("root", "test_network")

Full example plugins

Coming soon

License

MIT

About

DEPRECATED: Please use docker/go-plugins-helpers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages