mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 16:49:35 +00:00
hack/pin-dependency.sh github.com/moby/ipvs v1.1.0 - go to a fixed tag for `vishvananda/netns` - no more references to `pkg/errors` Signed-off-by: Davanum Srinivas <davanum@gmail.com>
36 lines
962 B
Markdown
36 lines
962 B
Markdown
# ipvs - networking for containers
|
|
|
|
 [](https://godoc.org/github.com/moby/ipvs) [](https://goreportcard.com/report/github.com/moby/ipvs)
|
|
|
|
ipvs provides a native Go implementation for communicating with IPVS kernel module using a netlink socket.
|
|
|
|
|
|
#### Using ipvs
|
|
|
|
```go
|
|
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](https://github.com/docker/docker/blob/master/CONTRIBUTING.md) apply.
|
|
|
|
## Copyright and license
|
|
|
|
Copyright 2015 Docker, inc. Code released under the [Apache 2.0 license](LICENSE).
|