Documentation ¶
Index ¶
- type IptablesRuleBuilder
- func (rb *IptablesRuleBuilder) AppendRule(command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder
- func (rb *IptablesRuleBuilder) AppendRuleV4(command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder
- func (rb *IptablesRuleBuilder) AppendRuleV6(command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder
- func (rb *IptablesRuleBuilder) AppendVersionedRule(ipv4 string, ipv6 string, command log.Command, chain string, table string, ...)
- func (rb *IptablesRuleBuilder) BuildV4() [][]string
- func (rb *IptablesRuleBuilder) BuildV4Restore() string
- func (rb *IptablesRuleBuilder) BuildV6() [][]string
- func (rb *IptablesRuleBuilder) BuildV6Restore() string
- func (rb *IptablesRuleBuilder) InsertRule(command log.Command, chain string, table string, position int, ...) *IptablesRuleBuilder
- func (rb *IptablesRuleBuilder) InsertRuleV4(command log.Command, chain string, table string, position int, ...) *IptablesRuleBuilder
- func (rb *IptablesRuleBuilder) InsertRuleV6(command log.Command, chain string, table string, position int, ...) *IptablesRuleBuilder
- type Rule
- type Rules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IptablesRuleBuilder ¶
type IptablesRuleBuilder struct {
// contains filtered or unexported fields
}
IptablesRuleBuilder is an implementation for IptablesRuleBuilder interface
func NewIptablesRuleBuilder ¶
func NewIptablesRuleBuilder(cfg *config.Config) *IptablesRuleBuilder
NewIptablesBuilders creates a new IptablesRuleBuilder
func (*IptablesRuleBuilder) AppendRule ¶
func (rb *IptablesRuleBuilder) AppendRule(command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder
func (*IptablesRuleBuilder) AppendRuleV4 ¶
func (rb *IptablesRuleBuilder) AppendRuleV4(command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder
func (*IptablesRuleBuilder) AppendRuleV6 ¶
func (rb *IptablesRuleBuilder) AppendRuleV6(command log.Command, chain string, table string, params ...string) *IptablesRuleBuilder
func (*IptablesRuleBuilder) AppendVersionedRule ¶
func (rb *IptablesRuleBuilder) 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 (*IptablesRuleBuilder) BuildV4 ¶
func (rb *IptablesRuleBuilder) BuildV4() [][]string
func (*IptablesRuleBuilder) BuildV4Restore ¶
func (rb *IptablesRuleBuilder) BuildV4Restore() string
func (*IptablesRuleBuilder) BuildV6 ¶
func (rb *IptablesRuleBuilder) BuildV6() [][]string
func (*IptablesRuleBuilder) BuildV6Restore ¶
func (rb *IptablesRuleBuilder) BuildV6Restore() string
func (*IptablesRuleBuilder) InsertRule ¶
func (rb *IptablesRuleBuilder) InsertRule(command log.Command, chain string, table string, position int, params ...string) *IptablesRuleBuilder
func (*IptablesRuleBuilder) InsertRuleV4 ¶
func (rb *IptablesRuleBuilder) InsertRuleV4(command log.Command, chain string, table string, position int, params ...string) *IptablesRuleBuilder
func (*IptablesRuleBuilder) InsertRuleV6 ¶
func (rb *IptablesRuleBuilder) InsertRuleV6(command log.Command, chain string, table string, position int, params ...string) *IptablesRuleBuilder
Click to show internal directories.
Click to hide internal directories.