...
1
2
3 package hcsshim
4
5 import (
6 "github.com/Microsoft/hcsshim/internal/hns"
7 )
8
9
10
11 type Subnet = hns.Subnet
12
13
14
15 type MacPool = hns.MacPool
16
17
18 type HNSNetwork = hns.HNSNetwork
19
20
21 func HNSNetworkRequest(method, path, request string) (*HNSNetwork, error) {
22 return hns.HNSNetworkRequest(method, path, request)
23 }
24
25
26 func HNSListNetworkRequest(method, path, request string) ([]HNSNetwork, error) {
27 return hns.HNSListNetworkRequest(method, path, request)
28 }
29
30
31 func GetHNSNetworkByID(networkID string) (*HNSNetwork, error) {
32 return hns.GetHNSNetworkByID(networkID)
33 }
34
35
36 func GetHNSNetworkByName(networkName string) (*HNSNetwork, error) {
37 return hns.GetHNSNetworkByName(networkName)
38 }
39
View as plain text