k3s/vendor/github.com/moby/ipvs
2020-08-28 17:18:31 -07:00
..
.gitignore Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
constants.go Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
doc.go Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
go.mod Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
go.sum Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
ipvs.go Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
LICENSE Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
netlink.go Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00
README.md Update go.mod for k8s 1.19 2020-08-28 17:18:31 -07:00

ipvs - networking for containers

Test GoDoc Go Report Card

ipvs provides a native Go implementation for communicating with IPVS kernel module using a netlink socket.

Using ipvs

import (
	"log"

	"github.com/moby/ipvs"
)

func main() {
	handle, err := ipvs.New("")
	if err != nil {
		log.Fatalf("ipvs.New: %s", err)
	}
	svcs, err := handle.GetServices()
	if err != nil {
		log.Fatalf("handle.GetServices: %s", err)
	}
}

Contributing

Want to hack on ipvs? Docker's contributions guidelines apply.

Code and documentation copyright 2015 Docker, inc. Code released under the Apache 2.0 license. Docs released under Creative commons.