hcnshim

package module
v0.0.94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 2 Imported by: 0

README

hcnshim

This package provides the Golang interface for accessing Windows HCN APIs to manage entities within the Host Network Service (HNS), which serves as the server container networking component in Windows. While it is mainly utilized by the Windows Kube Proxy component in Kubernetes, it is also available for use in other projects, such as Azure CNI, Windows CNI, Calico CNI, Flannel CNI, Azure NPM, and more.

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorEmptyMacAddressList = errors.New("management mac_address list is empty")
)
View Source
var (
	HNSVersion1803 = hns.HNSVersion1803
)

Functions

This section is empty.

Types

type EndpointNotFoundError added in v0.0.7

type EndpointNotFoundError = hns.EndpointNotFoundError

type HNSAclFeatures

type HNSAclFeatures = hns.HNSAclFeatures

type HNSEndpoint added in v0.0.2

type HNSEndpoint = hns.HNSEndpoint

HNSEndpoint represents a network endpoint in HNS

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 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 Namespace added in v0.0.2

type Namespace = hns.Namespace

Namespace represents a Compartment.

type NetworkNotFoundError added in v0.0.7

type NetworkNotFoundError = hns.NetworkNotFoundError

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
cni
hns
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL