Revendor hcsshim and go-tar

Signed-off-by: Darren Stahl <darst@microsoft.com>
This commit is contained in:
Darren Stahl
2017-11-27 14:04:47 -08:00
committed by Derek McGowan
parent 967caeeacc
commit 444e4220c2
20 changed files with 2211 additions and 883 deletions

View File

@@ -2,7 +2,6 @@ package hcsshim
import (
"encoding/json"
"fmt"
"net"
"github.com/sirupsen/logrus"
@@ -90,7 +89,7 @@ func GetHNSNetworkByName(networkName string) (*HNSNetwork, error) {
return &hnsnetwork, nil
}
}
return nil, fmt.Errorf("Network %v not found", networkName)
return nil, NetworkNotFoundError{NetworkName: networkName}
}
// Create Network by sending NetworkRequest to HNS.