winpol

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This package contains algorithmic support code for Windows. I.e. code that is used on Windows but can be UTed on any platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateEndpointPolicies

func CalculateEndpointPolicies(
	n PolicyMarshaller,
	extraNATExceptions []*net.IPNet,
	natOutgoing bool,
	mgmtIP net.IP,
	logger *logrus.Entry,
) ([]json.RawMessage, []hcn.EndpointPolicy, error)

CalculateEndpointPolicies augments the hns.Netconf policies with NAT exceptions for our IPAM blocks.

Types

type PolicyMarshaller

type PolicyMarshaller interface {
	GetHNSEndpointPolicies() []json.RawMessage
}

Jump to

Keyboard shortcuts

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