Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #421 from LK4D4/network_interface_stats
Browse files Browse the repository at this point in the history
Make NetworkInterface public
  • Loading branch information
crosbymichael committed Mar 3, 2015
2 parents 6c2f20e + 2cd0ee8 commit 025e6be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions network_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func getStrategy(tpe string) (networkStrategy, error) {
}

// Returns the network statistics for the network interfaces represented by the NetworkRuntimeInfo.
func getNetworkInterfaceStats(interfaceName string) (*networkInterface, error) {
out := &networkInterface{Name: interfaceName}
func getNetworkInterfaceStats(interfaceName string) (*NetworkInterface, error) {
out := &NetworkInterface{Name: interfaceName}
// This can happen if the network runtime information is missing - possible if the
// container was created by an old version of libcontainer.
if interfaceName == "" {
Expand Down
4 changes: 2 additions & 2 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package libcontainer
import "github.com/docker/libcontainer/cgroups"

type Stats struct {
Interfaces []*networkInterface
Interfaces []*NetworkInterface
CgroupStats *cgroups.Stats
}

type networkInterface struct {
type NetworkInterface struct {
// Name is the name of the network interface.
Name string

Expand Down

0 comments on commit 025e6be

Please sign in to comment.