# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Copyright Microsoft.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Copyright Microsoft.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
NewPodInfo returns an implementation of PodInfo that returns the passed configuration for their namesake functions.
NewPodInfoFromIPConfigsRequest builds and returns an implementation of PodInfo from the provided IPConfigsRequest.
NewService creates a new Service object.
UnmarshalPodInfo wraps json.Unmarshal to return an implementation of PodInfo.

# Constants

No description provided by the author
No description provided by the author
Container Network Service DNC Contract.
NetworkContainer Types.
Orchestrator Types.
ChannelMode :- CNS channel modes.
BackendNIC are used for infiniband NICs on a VM.
NetworkContainer Types.
NetworkContainer Types.
Orchestrator Types.
Container on Windows.
ChannelMode :- CNS channel modes.
Container Network Service remote API Contract.
Container Network Service remote API Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Orchestrator Types.
DelegatedVMNIC are projected from VM to container network namespace.
Container Network Service remote API Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
ChannelMode :- CNS channel modes.
No description provided by the author
No description provided by the author
NetworkContainer Types.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
No description provided by the author
NIC Types.
No description provided by the author
NetworkContainer Types.
K8s SWIFTV2 mode.
Orchestrator Types.
Orchestrator Types.
No description provided by the author
ChannelMode :- CNS channel modes.
ChannelMode :- CNS channel modes.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
NodeNetworkInterfaceAccelnetFrontendNIC is a type of front-end nic that offers accelerated networking performance.
NodeNetworkInterfaceBackendNIC is the new name for BackendNIC.
TODO: These two const are currently unused due to version compatibility with DNC.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Container Network Service DNC Contract.
Orchestrator Types.
Container Network Service remote API Contract.
Container Network Service DNC Contract.
Service Fabric SWIFTV2 mode.
NetworkContainer Prefixes.
Container Network Service DNC Contract.
Container Network Service remote API Contract.
Container Network Service remote API Contract.
Encap Types.
Encap Types.
NetworkContainer Types.

# Variables

ErrDuplicateIP indicates that a duplicate IP has been detected during a reconcile.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AttachContainerToNetworkResponse specifies response of attaching network container to network.
ConfigureContainerNetworkingRequest - specifies request to attach/detach container to network.
CreateHnsNetworkRequest describes request to create the HNS network.
CreateHostNCApipaEndpointRequest describes request for create apipa endpoint for host container connectivity for the given network container.
CreateHostNCApipaEndpointResponse describes response for create apipa endpoint request for host container connectivity.
CreateNetworkContainerRequest specifies request to create a network container or network isolation boundary.
CreateNetworkContainerResponse specifies response of creating a network container.
CreateNetworkRequest describes request to create the network.
DeleteHnsNetworkRequest describes request to delete the HNS network.
DeleteHostNCApipaEndpointRequest describes request for deleting apipa endpoint created for host NC connectivity.
DeleteHostNCApipaEndpointResponse describes response for delete host NC apipa endpoint request.
DeleteNetworkContainerRequest specifies the details about the request to delete a specific network container.
DeleteNetworkContainerResponse describes the response to delete a specific network container.
DeleteNetworkRequest describes request to delete the network.
DetachContainerFromNetworkResponse specifies response of detaching network container from network.
Used by EndpointHandler API to update endpoint state.
GetAllNetworkContainersResponse specifies response of retrieving all NCs from CNS during the process of NC refresh association.
No description provided by the author
GetInterfaceForContainerRequest specifies the container ID for which interface needs to be identified.
GetInterfaceForContainerResponse specifies the interface for a given container ID.
GetIPAddressesRequest is used in CNS IPAM mode to get the states of IPConfigs The IPConfigStateFilter is a slice of IPs to fetch from CNS that match those states.
GetIPAddressesResponse describes response containing requested ip addresses.
GetIPAddressStateResponse is used in CNS IPAM mode as a response to get IP address state.
GetIPAddressStatusResponse is used in CNS IPAM mode as a response to get IP address, state and Pod info.
GetNetworkContainerRequest specifies the details about the request to retrieve a specific network container.
GetNetworkContainerResponse describes the response to retrieve a specific network container.
GetNetworkContainerStatusRequest specifies the details about the request to retrieve status of a specific network container.
GetNetworkContainerStatusResponse specifies response of retrieving a network container status.
GetPodContextResponse is used in CNS Client debug mode to get mapping of Orchestrator Context to Pod IP UUIDs.
No description provided by the author
No description provided by the author
No description provided by the author
HostLocalIPAddressResponse describes reponse that returns the host local IP Address.
IPAddressesUtilizationResponse describes response for ip address utilization.
IPAddressState Only used in the GetIPConfig API to return IPs that match a filter.
No description provided by the author
No description provided by the author
IPConfigResponse is used in CNS IPAM mode as a response to CNI ADD.
Same as IPConfigRequest except that DesiredIPAddresses is passed in as a slice.
IPConfigsResponse is used in CNS IPAM mode to return a slice of IP configs as a response to CNI ADD.
IPConfiguration contains details about ip config to provision in the VM.
This is used for KubernetesCRD orchestrator Type where NC has multiple ips.
IPSubnet contains ip subnet.
No description provided by the author
MacPool is assoicated with HNS network and represents a list of macaddresses available to the network.
MultiTenancyInfo contains encap type and id.
NetworkContainerParameters parameters available in network container operations.
NetworkContainerRequestPolicies - specifies policies associated with create network request.
NetworkInterface specifies the information that can be used to uniquely identify an interface.
No description provided by the author
No description provided by the author
No description provided by the author
NodeConfiguration describes confguration for a node in overlay network.
NodeInfoResponse - Struct to hold the node info response.
NodeRegisterRequest - Struct to hold the node register request.
NumOfCPUCoresResponse describes num of cpu cores present on host.
OverlayConfiguration describes configuration for all the nodes that are part of overlay.
No description provided by the author
PostNetworkContainersRequest specifies the request of creating all NCs that are sent from DNC.
PostNetworkContainersResponse specifies response of creating all NCs that are sent from DNC.
PublishNetworkContainerRequest specifies request to publish network container via NMAgent.
PublishNetworkContainerResponse specifies the response to publish network container request.
ReleaseIPAddressRequest describes request to release an IP Address.
ReserveIPAddressRequest describes request to reserve an IP Address.
ReserveIPAddressResponse describes response to reserve an IP address.
Response describes generic response from CNS.
Route describes an entry in routing table.
SecondaryIPConfig contains IP info of SecondaryIP.
Service defines Container Networking Service.
SetEnvironmentRequest describes the Request to set the environment in CNS.
SetOrchestratorTypeRequest specifies the orchestrator type for the node.
Subnet contains the ip address and the number of bits in prefix.
SubnetInfo is assoicated with HNS network and represents a list of subnets available to the network.
UnpublishNetworkContainerRequest specifies request to unpublish network container via NMAgent.
UnpublishNetworkContainerResponse specifies the response to unpublish network container request.
ValidAclPolicySetting - Used to validate ACL policy.

# Interfaces

HTTPService describes the min API interface that every service should have.
IpamPoolMonitorStateSnapshot struct to expose state values for IPAMPoolMonitor struct.
IPConfigsHandlerMiddleware.
PodInfo represents the object that we are providing network for.
PodInfoByIPProvider to be implemented by initializers which provide a map of PodInfos by IP.

# Type aliases

IPConfigsHandlerFunc.
No description provided by the author
OptionMap describes generic options that can be passed to CNS.
PodInfoByIPProviderFunc functional type which implements PodInfoByIPProvider.
SWIFTV2Mode describes the orchestrator-related scenario for swiftv2 flow, used in CNSConfig.