ipvs provides a native Go implementation for communicating with IPVS kernel module using a netlink socket.
import (
"log""github.com/moby/ipvs"
)
funcmain() {
handle, err:=ipvs.New("")
iferr!=nil {
log.Fatalf("ipvs.New: %s", err)
}
svcs, err:=handle.GetServices()
iferr!=nil {
log.Fatalf("handle.GetServices: %s", err)
}
}Want to hack on ipvs? Docker's contributions guidelines apply.
Copyright 2015 Docker, inc. Code released under the Apache 2.0 license.