Documentation ¶
Index ¶
- Constants
- func AddMasqueradeRule(snatBridgeIPWithPrefix string) error
- func AddVlanDropRule() error
- func CreateSnatBridge(snatBridgeIP string, mainInterface string) error
- func DeleteMasqueradeRule() error
- func DeleteSnatBridge(bridgeName string) error
- type OVSSnatClient
- func (client *OVSSnatClient) AddPrivateIPBlockRule() error
- func (client *OVSSnatClient) ConfigureSnatContainerInterface() error
- func (client *OVSSnatClient) CreateSnatEndpoint(bridgeName string) error
- func (client *OVSSnatClient) DeleteSnatEndpoint() error
- func (client *OVSSnatClient) MoveSnatEndpointToContainerNS(netnsPath string, nsID uintptr) error
- func (client *OVSSnatClient) SetupSnatContainerInterface() error
Constants ¶
View Source
const ( SnatBridgeName = "azSnatbr" ImdsIP = "169.254.169.254/32" )
Variables ¶
This section is empty.
Functions ¶
func AddMasqueradeRule ¶
func AddVlanDropRule ¶
func AddVlanDropRule() error
func CreateSnatBridge ¶
func DeleteMasqueradeRule ¶
func DeleteMasqueradeRule() error
func DeleteSnatBridge ¶
Types ¶
type OVSSnatClient ¶
type OVSSnatClient struct { SkipAddressesFromBlock []string // contains filtered or unexported fields }
func NewSnatClient ¶
func (*OVSSnatClient) AddPrivateIPBlockRule ¶
func (client *OVSSnatClient) AddPrivateIPBlockRule() error
func (*OVSSnatClient) ConfigureSnatContainerInterface ¶
func (client *OVSSnatClient) ConfigureSnatContainerInterface() error
func (*OVSSnatClient) CreateSnatEndpoint ¶
func (client *OVSSnatClient) CreateSnatEndpoint(bridgeName string) error
func (*OVSSnatClient) DeleteSnatEndpoint ¶
func (client *OVSSnatClient) DeleteSnatEndpoint() error
func (*OVSSnatClient) MoveSnatEndpointToContainerNS ¶
func (client *OVSSnatClient) MoveSnatEndpointToContainerNS(netnsPath string, nsID uintptr) error
func (*OVSSnatClient) SetupSnatContainerInterface ¶
func (client *OVSSnatClient) SetupSnatContainerInterface() error
Click to show internal directories.
Click to hide internal directories.