hns

package
v0.0.0-...-073df9a Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetConf

type NetConf struct {
	types.NetConf

	Policies []policy `json:"policies,omitempty"`
}

NetConf is the CNI spec

func (*NetConf) ApplyDefaultPAPolicy

func (n *NetConf) ApplyDefaultPAPolicy(paAddress string)

ApplyDefaultPAPolicy is used to configure a endpoint PA policy in HNS

func (*NetConf) ApplyOutboundNatPolicy

func (n *NetConf) ApplyOutboundNatPolicy(nwToNat string)

ApplyOutboundNatPolicy applies NAT Policy in VFP using HNS Simultaneously an exception is added for the network that has to be Nat'd

func (*NetConf) MarshalPolicies

func (n *NetConf) MarshalPolicies() []json.RawMessage

MarshalPolicies converts the Endpoint policies in Policies to HNS specific policies as Json raw bytes

Jump to

Keyboard shortcuts

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