Documentation ¶
Index ¶
- type DockerClient
- type IPTabler
- type PortMapping
- type Utils
- func (u *Utils) AddNatPreroutingRule(mapping PortMapping) error
- func (*Utils) ComparePortMappings(dockerMapping, rulesMapping []PortMapping) ([]PortMapping, []PortMapping)
- func (u *Utils) RemoveNatPreroutingRule(mapping PortMapping) error
- func (u *Utils) RetrieveDockerPortMapping() ([]PortMapping, error)
- func (u *Utils) RetrieveNatMapping() []PortMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶ added in v0.1.2
type PortMapping ¶
type Utils ¶ added in v0.1.2
type Utils struct { IPTables IPTabler DockerClient DockerClient }
func (*Utils) AddNatPreroutingRule ¶ added in v0.1.2
func (u *Utils) AddNatPreroutingRule(mapping PortMapping) error
func (*Utils) ComparePortMappings ¶ added in v0.1.2
func (*Utils) ComparePortMappings(dockerMapping, rulesMapping []PortMapping) ([]PortMapping, []PortMapping)
ComparePortMappings compares the port mappings retrieved from the Docker API with the NAT rules and returns the rules that need to be added and removed
func (*Utils) RemoveNatPreroutingRule ¶ added in v0.1.2
func (u *Utils) RemoveNatPreroutingRule(mapping PortMapping) error
func (*Utils) RetrieveDockerPortMapping ¶ added in v0.1.2
func (u *Utils) RetrieveDockerPortMapping() ([]PortMapping, error)
func (*Utils) RetrieveNatMapping ¶ added in v0.1.2
func (u *Utils) RetrieveNatMapping() []PortMapping
Click to show internal directories.
Click to hide internal directories.