Documentation
¶
Index ¶
- func RegisterArgType(name string, n int)
- func RegisterType(t OptionType)
- type Chain
- type ChainRequest
- type IPTables
- func (this *IPTables) AppendRule(table, chain string, rule Rule) error
- func (this *IPTables) AssureChain(logger logger.LogContext, chain *Chain) error
- func (this *IPTables) DeleteRule(table, chain string, rule Rule) error
- func (this *IPTables) Execute(logger logger.LogContext, req *ChainRequest) error
- func (this *IPTables) InsertRule(table, chain string, pos int, rule Rule) error
- func (this *IPTables) ListChain(table, chain string) (*Chain, error)
- func (this *IPTables) UpdateChain(logger logger.LogContext, chain *Chain) error
- type Option
- type OptionType
- type Options
- type Requests
- type Rule
- type Rules
- type StringList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterArgType ¶
func RegisterType ¶
func RegisterType(t OptionType)
Types ¶
type ChainRequest ¶
func NewChainRequest ¶
func NewChainRequest(table, chain string, rules Rules, cleanup bool) *ChainRequest
type IPTables ¶
func (*IPTables) AppendRule ¶
func (*IPTables) AssureChain ¶
func (this *IPTables) AssureChain(logger logger.LogContext, chain *Chain) error
func (*IPTables) DeleteRule ¶
func (*IPTables) Execute ¶
func (this *IPTables) Execute(logger logger.LogContext, req *ChainRequest) error
func (*IPTables) InsertRule ¶
func (*IPTables) UpdateChain ¶
func (this *IPTables) UpdateChain(logger logger.LogContext, chain *Chain) error
type OptionType ¶
type Requests ¶
type Requests []*ChainRequest
type StringList ¶
type StringList []string
func (StringList) Index ¶
func (this StringList) Index(val string) int
Click to show internal directories.
Click to hide internal directories.