1package hcsshim 2 3import ( 4 "github.com/Microsoft/hcsshim/internal/hns" 5) 6 7// Subnet is assoicated with a network and represents a list 8// of subnets available to the network 9type Subnet = hns.Subnet 10 11// MacPool is assoicated with a network and represents a list 12// of macaddresses available to the network 13type MacPool = hns.MacPool 14 15// HNSNetwork represents a network in HNS 16type HNSNetwork = hns.HNSNetwork 17 18// HNSNetworkRequest makes a call into HNS to update/query a single network 19func HNSNetworkRequest(method, path, request string) (*HNSNetwork, error) { 20 return hns.HNSNetworkRequest(method, path, request) 21} 22 23// HNSListNetworkRequest makes a HNS call to query the list of available networks 24func HNSListNetworkRequest(method, path, request string) ([]HNSNetwork, error) { 25 return hns.HNSListNetworkRequest(method, path, request) 26} 27 28// GetHNSNetworkByID 29func GetHNSNetworkByID(networkID string) (*HNSNetwork, error) { 30 return hns.GetHNSNetworkByID(networkID) 31} 32 33// GetHNSNetworkName filtered by Name 34func GetHNSNetworkByName(networkName string) (*HNSNetwork, error) { 35 return hns.GetHNSNetworkByName(networkName) 36} 37