...

Source file src/github.com/Microsoft/hcsshim/hnsnetwork.go

Documentation: github.com/Microsoft/hcsshim

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

View as plain text