Documentation
¶
Index ¶
- Variables
- func HotAttachEndpoint(containerID string, endpointID string) error
- func HotDetachEndpoint(containerID string, endpointID string) error
- type EndpointAttachDetachRequest
- type EndpointResquestResponse
- type HNSAclFeatures
- type HNSEndpoint
- type HNSEndpointStats
- type HNSGlobals
- type HNSNetwork
- type HNSNnvManagementMacAddress
- type HNSNnvManagementMacList
- type HNSSupportedFeatures
- type HNSVersion
- type MacPool
- type Namespace
- type Subnet
- type SystemType
Constants ¶
This section is empty.
Variables ¶
var (
ErrorEmptyMacAddressList = errors.New("management mac_address list is empty")
)
var (
HNSVersion1803 = hns.HNSVersion1803
)
Functions ¶
func HotAttachEndpoint ¶ added in v0.0.2
HotAttachEndpoint makes a HCS Call to attach the endpoint to the container
func HotDetachEndpoint ¶ added in v0.0.2
HotDetachEndpoint makes a HCS Call to detach the endpoint from the container
Types ¶
type EndpointAttachDetachRequest ¶ added in v0.0.2
type EndpointAttachDetachRequest = hns.EndpointAttachDetachRequest
EndpointAttachDetachRequest is the structure used to send request to the container to modify the system Supported resource types are Network and Request Types are Add/Remove
type EndpointResquestResponse ¶ added in v0.0.2
type EndpointResquestResponse = hns.EndpointResquestResponse
EndpointResquestResponse is object to get the endpoint request response
type HNSAclFeatures ¶
type HNSAclFeatures = hns.HNSAclFeatures
type HNSEndpoint ¶ added in v0.0.2
type HNSEndpoint = hns.HNSEndpoint
HNSEndpoint represents a network endpoint in HNS
func GetHNSEndpointByID ¶ added in v0.0.2
func GetHNSEndpointByID(endpointID string) (*HNSEndpoint, error)
GetHNSEndpointByID get the Endpoint by ID
func GetHNSEndpointByName ¶ added in v0.0.2
func GetHNSEndpointByName(endpointName string) (*HNSEndpoint, error)
GetHNSEndpointByName gets the endpoint filtered by Name
func HNSEndpointRequest ¶ added in v0.0.2
func HNSEndpointRequest(method, path, request string) (*HNSEndpoint, error)
HNSEndpointRequest makes a HNS call to modify/query a network endpoint
func HNSListEndpointRequest ¶ added in v0.0.2
func HNSListEndpointRequest() ([]HNSEndpoint, error)
HNSListEndpointRequest makes a HNS call to query the list of available endpoints
type HNSEndpointStats ¶ added in v0.0.2
type HNSEndpointStats = hns.EndpointStats
HNSEndpointStats represent the stats for an networkendpoint in HNS
func GetHNSEndpointStats ¶ added in v0.0.2
func GetHNSEndpointStats(endpointName string) (*HNSEndpointStats, error)
GetHNSEndpointStats gets the endpoint stats by ID
type HNSGlobals ¶
type HNSGlobals = hns.HNSGlobals
func GetHNSGlobals ¶
func GetHNSGlobals() (*HNSGlobals, error)
type HNSNetwork ¶ added in v0.0.2
type HNSNetwork = hns.HNSNetwork
HNSNetwork represents a network in HNS
func GetHNSNetworkByID ¶ added in v0.0.2
func GetHNSNetworkByID(networkID string) (*HNSNetwork, error)
GetHNSNetworkByID
func GetHNSNetworkByName ¶ added in v0.0.2
func GetHNSNetworkByName(networkName string) (*HNSNetwork, error)
GetHNSNetworkName filtered by Name
func HNSListNetworkRequest ¶ added in v0.0.2
func HNSListNetworkRequest(method, path, request string) ([]HNSNetwork, error)
HNSListNetworkRequest makes a HNS call to query the list of available networks
func HNSNetworkRequest ¶ added in v0.0.2
func HNSNetworkRequest(method, path, request string) (*HNSNetwork, error)
HNSNetworkRequest makes a call into HNS to update/query a single network
type HNSNnvManagementMacAddress ¶
type HNSNnvManagementMacAddress = hns.HNSNnvManagementMacAddress
HNSNnvManagementMacAddress represents management mac address which needs to be excluded from VF reassignment
type HNSNnvManagementMacList ¶
type HNSNnvManagementMacList = hns.HNSNnvManagementMacList
HNSNnvManagementMacList represents a list of management mac addresses for exclusion from VF reassignment
func DeleteNnvManagementMacAddresses ¶
func DeleteNnvManagementMacAddresses() (*HNSNnvManagementMacList, error)
DeleteNnvManagementMacAddresses delete list of management mac addresses in hns which are excluded from VF reassignment.
func GetNnvManagementMacAddresses ¶
func GetNnvManagementMacAddresses() (*HNSNnvManagementMacList, error)
GetNnvManagementMacAddresses retrieves a list of management mac addresses in hns for exclusion from VF reassignment.
func SetNnvManagementMacAddresses ¶
func SetNnvManagementMacAddresses(managementMacAddresses []string) (*HNSNnvManagementMacList, error)
SetNnvManagementMacAddresses sets a list of management mac addresses in hns for exclusion from VF reassignment.
type HNSSupportedFeatures ¶
type HNSSupportedFeatures = hns.HNSSupportedFeatures
func GetHNSSupportedFeatures ¶
func GetHNSSupportedFeatures() HNSSupportedFeatures
type HNSVersion ¶
type HNSVersion = hns.HNSVersion
type MacPool ¶ added in v0.0.2
MacPool is associated with a network and represents a list of macaddresses available to the network
type Subnet ¶ added in v0.0.2
Subnet is associated with a network and represents a list of subnets available to the network
type SystemType ¶ added in v0.0.2
type SystemType string
SystemType represents the type of the system on which actions are done
const ( ContainerType SystemType = "Container" VirtualMachineType SystemType = "VirtualMachine" HostType SystemType = "Host" )
SystemType const
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package hcn is a shim for the Host Compute Networking (HCN) service, which manages networking for Windows Server containers and Hyper-V containers.
|
Package hcn is a shim for the Host Compute Networking (HCN) service, which manages networking for Windows Server containers and Hyper-V containers. |
internal
|
|