mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 14:09:15 +00:00 
			
		
		
		
	Moves vendoring over to Go modules. Fixes issues found by Go Vet in Go 1.16 Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Go
		
	
	
	
		
			Vendored
		
	
	
	
| package hcsshim
 | |
| 
 | |
| import (
 | |
| 	"github.com/Microsoft/hcsshim/internal/hns"
 | |
| )
 | |
| 
 | |
| // Subnet is assoicated with a network and represents a list
 | |
| // of subnets available to the network
 | |
| type Subnet = hns.Subnet
 | |
| 
 | |
| // MacPool is assoicated with a network and represents a list
 | |
| // of macaddresses available to the network
 | |
| type MacPool = hns.MacPool
 | |
| 
 | |
| // HNSNetwork represents a network in HNS
 | |
| type HNSNetwork = hns.HNSNetwork
 | |
| 
 | |
| // HNSNetworkRequest makes a call into HNS to update/query a single network
 | |
| func HNSNetworkRequest(method, path, request string) (*HNSNetwork, error) {
 | |
| 	return hns.HNSNetworkRequest(method, path, request)
 | |
| }
 | |
| 
 | |
| // HNSListNetworkRequest makes a HNS call to query the list of available networks
 | |
| func HNSListNetworkRequest(method, path, request string) ([]HNSNetwork, error) {
 | |
| 	return hns.HNSListNetworkRequest(method, path, request)
 | |
| }
 | |
| 
 | |
| // GetHNSNetworkByID
 | |
| func GetHNSNetworkByID(networkID string) (*HNSNetwork, error) {
 | |
| 	return hns.GetHNSNetworkByID(networkID)
 | |
| }
 | |
| 
 | |
| // GetHNSNetworkName filtered by Name
 | |
| func GetHNSNetworkByName(networkName string) (*HNSNetwork, error) {
 | |
| 	return hns.GetHNSNetworkByName(networkName)
 | |
| }
 |