Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirewallRuleIPRange ¶
FirewallRuleIPRange create a valid ip range for windows firewall
func FirewallRulePortRange ¶
FirewallRulePortRange create a valid port range for windows firewall
func IPRangeToCIDRs ¶
Types ¶
type Applier ¶
type Applier struct {
// contains filtered or unexported fields
}
func NewApplier ¶
func NewApplier(netSh NetShRunner, containerId string, portAllocator PortAllocator) *Applier
type NetOut ¶
type NetOut struct { // the protocol to be whitelisted Protocol Protocol `json:"protocol,omitempty"` // a list of ranges of IP addresses to whitelist; Start to End inclusive; default all Networks []IPRange `json:"networks,omitempty"` // a list of ranges of ports to whitelist; Start to End inclusive; ignored if Protocol is ICMP; default all Ports []PortRange `json:"ports,omitempty"` }
type NetShRunner ¶
type PortAllocator ¶
type PortMapping ¶
Click to show internal directories.
Click to hide internal directories.