Documentation ¶
Index ¶
- type IptablesBuilder
- func (rb *IptablesBuilder) AppendRule(command log.Command, chain string, table string, params ...string) *IptablesBuilder
- func (rb *IptablesBuilder) AppendRuleV4(command log.Command, chain string, table string, params ...string) *IptablesBuilder
- func (rb *IptablesBuilder) AppendRuleV6(command log.Command, chain string, table string, params ...string) *IptablesBuilder
- func (rb *IptablesBuilder) AppendVersionedRule(ipv4 string, ipv6 string, command log.Command, chain string, table string, ...)
- func (rb *IptablesBuilder) BuildV4() [][]string
- func (rb *IptablesBuilder) BuildV4Restore() string
- func (rb *IptablesBuilder) BuildV6() [][]string
- func (rb *IptablesBuilder) BuildV6Restore() string
- func (rb *IptablesBuilder) InsertRule(command log.Command, chain string, table string, position int, ...) *IptablesBuilder
- func (rb *IptablesBuilder) InsertRuleV4(command log.Command, chain string, table string, position int, ...) *IptablesBuilder
- func (rb *IptablesBuilder) InsertRuleV6(command log.Command, chain string, table string, position int, ...) *IptablesBuilder
- type Rule
- type Rules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IptablesBuilder ¶
type IptablesBuilder struct {
// contains filtered or unexported fields
}
IptablesBuilder is an implementation for IptablesBuilder interface
func NewIptablesBuilder ¶
func NewIptablesBuilder(cfg *config.Config) *IptablesBuilder
NewIptablesBuilders creates a new IptablesBuilder
func (*IptablesBuilder) AppendRule ¶
func (rb *IptablesBuilder) AppendRule(command log.Command, chain string, table string, params ...string) *IptablesBuilder
func (*IptablesBuilder) AppendRuleV4 ¶
func (rb *IptablesBuilder) AppendRuleV4(command log.Command, chain string, table string, params ...string) *IptablesBuilder
func (*IptablesBuilder) AppendRuleV6 ¶
func (rb *IptablesBuilder) AppendRuleV6(command log.Command, chain string, table string, params ...string) *IptablesBuilder
func (*IptablesBuilder) AppendVersionedRule ¶
func (rb *IptablesBuilder) AppendVersionedRule(ipv4 string, ipv6 string, command log.Command, chain string, table string, params ...string)
AppendVersionedRule is a wrapper around AppendRule that substitutes an ipv4/ipv6 specific value in place in the params. This allows appending a dual-stack rule that has an IP value in it.
func (*IptablesBuilder) BuildV4 ¶
func (rb *IptablesBuilder) BuildV4() [][]string
func (*IptablesBuilder) BuildV4Restore ¶
func (rb *IptablesBuilder) BuildV4Restore() string
func (*IptablesBuilder) BuildV6 ¶
func (rb *IptablesBuilder) BuildV6() [][]string
func (*IptablesBuilder) BuildV6Restore ¶
func (rb *IptablesBuilder) BuildV6Restore() string
func (*IptablesBuilder) InsertRule ¶
func (rb *IptablesBuilder) InsertRule(command log.Command, chain string, table string, position int, params ...string) *IptablesBuilder
func (*IptablesBuilder) InsertRuleV4 ¶
func (rb *IptablesBuilder) InsertRuleV4(command log.Command, chain string, table string, position int, params ...string) *IptablesBuilder
func (*IptablesBuilder) InsertRuleV6 ¶
func (rb *IptablesBuilder) InsertRuleV6(command log.Command, chain string, table string, position int, params ...string) *IptablesBuilder
Click to show internal directories.
Click to hide internal directories.