mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 18:52:38 +00:00
Update ipvs library to the new repo and upgrade library version
This commit is contained in:
34
vendor/github.com/moby/ipvs/README.md
generated
vendored
Normal file
34
vendor/github.com/moby/ipvs/README.md
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
# 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
|
||||
Code and documentation copyright 2015 Docker, inc. Code released under the Apache 2.0 license. Docs released under Creative commons.
|
Reference in New Issue
Block a user