Update the osbuild/images to the version which introduces "dot notation" for distro release versions. - Replace all uses of distroregistry by distrofactory. - Delete local version of reporegistry and use the one from the osbuild/images. - Weldr: unify `createWeldrAPI()` and `createWeldrAPI2()` into a single `createTestWeldrAPI()` function`. - store/fixture: rework fixtures to allow overriding the host distro name and host architecture name. A cleanup function to restore the host distro and arch names is always part of the fixture struct. - Delete `distro_mock` package, since it is no longer used. - Bump the required version of osbuild to 98, because the OSCAP customization is using the 'compress_results' stage option, which is not available in older versions of osbuild. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
//go:build windows
|
|
|
|
package hcsshim
|
|
|
|
import (
|
|
"github.com/Microsoft/hcsshim/internal/hns"
|
|
)
|
|
|
|
// Subnet is associated with a network and represents a list
|
|
// of subnets available to the network
|
|
type Subnet = hns.Subnet
|
|
|
|
// MacPool is associated 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)
|
|
}
|