summaryrefslogtreecommitdiff
path: root/vendor/github.com/safchain/ethtool/README.md
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-08-08 06:01:00 -0500
committerbaude <bbaude@redhat.com>2019-09-09 09:32:43 -0500
commitee432cf2792c5dbe81953007f1fd5c87beb3ebd5 (patch)
treedc0646e4b2faeadf9cca58bf80f1e90d98c50165 /vendor/github.com/safchain/ethtool/README.md
parent30cbb0091515a7f802f0f3f3ee486be6ff98f645 (diff)
downloadpodman-ee432cf2792c5dbe81953007f1fd5c87beb3ebd5.tar.gz
podman-ee432cf2792c5dbe81953007f1fd5c87beb3ebd5.tar.bz2
podman-ee432cf2792c5dbe81953007f1fd5c87beb3ebd5.zip
podman network create
initial implementation of network create. we only support bridging networks with this first pass. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'vendor/github.com/safchain/ethtool/README.md')
-rw-r--r--vendor/github.com/safchain/ethtool/README.md60
1 files changed, 60 insertions, 0 deletions
diff --git a/vendor/github.com/safchain/ethtool/README.md b/vendor/github.com/safchain/ethtool/README.md
new file mode 100644
index 000000000..1f146229c
--- /dev/null
+++ b/vendor/github.com/safchain/ethtool/README.md
@@ -0,0 +1,60 @@
+# ethtool go package #
+
+[![Build Status](https://travis-ci.org/safchain/ethtool.png?branch=master)](https://travis-ci.org/safchain/ethtool)
+[![GoDoc](https://godoc.org/github.com/safchain/ethtool?status.svg)](https://godoc.org/github.com/safchain/ethtool)
+
+The ethtool package aims to provide a library giving a simple access to the Linux SIOCETHTOOL ioctl operations. It can be used to retrieve informations from a network device like statistics, driver related informations or even the peer of a VETH interface.
+
+## Build and Test ##
+
+go get command:
+
+ go get github.com/safchain/ethtool
+
+Testing
+
+In order to run te
+
+ go test github.com/safchain/ethtool
+
+## Examples ##
+
+```go
+package main
+
+import (
+ "fmt"
+
+ "github.com/safchain/ethtool"
+)
+
+func main() {
+ ethHandle, err := ethtool.NewEthtool()
+ if err != nil {
+ panic(err.Error())
+ }
+ defer ethHandle.Close()
+
+ // Retrieve tx from eth0
+ stats, err := ethHandle.Stats("eth0")
+ if err != nil {
+ panic(err.Error())
+ }
+ fmt.Printf("TX: %d\n", stats["tx_bytes"])
+
+ // Retrieve peer index of a veth interface
+ stats, err = ethHandle.Stats("veth0")
+ if err != nil {
+ panic(err.Error())
+ }
+ fmt.Printf("Peer Index: %d\n", stats["peer_ifindex"])
+}
+```
+
+## LICENSE ##
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.