import "istio.io/istio/tools/istio-iptables/pkg/builder"
iptables_builder.go iptables_builder_impl.go
type IptablesBuilderImpl struct {
// contains filtered or unexported fields
}
IptablesBuilderImpl is an implementation for IptablesBuilder interface
func NewIptablesBuilder() *IptablesBuilderImpl
NewIptablesBuilders creates a new IptablesBuilder
func (rb *IptablesBuilderImpl) AppendRuleV4(chain string, table string, params ...string) IptablesProducer
func (rb *IptablesBuilderImpl) AppendRuleV6(chain string, table string, params ...string) IptablesProducer
func (rb *IptablesBuilderImpl) BuildV4() [][]string
func (rb *IptablesBuilderImpl) BuildV4Restore() string
func (rb *IptablesBuilderImpl) BuildV6() [][]string
func (rb *IptablesBuilderImpl) BuildV6Restore() string
func (rb *IptablesBuilderImpl) InsertRuleV4(chain string, table string, position int, params ...string) IptablesProducer
func (rb *IptablesBuilderImpl) InsertRuleV6(chain string, table string, position int, params ...string) IptablesProducer
type IptablesProducer interface { // AppendRuleV4 appends an IPv4 rule into the given iptables chain AppendRuleV4(chain string, table string, params ...string) IptablesProducer // AppendRuleV6 appends an IPv6 rule into the given iptables chain AppendRuleV6(chain string, table string, params ...string) IptablesProducer // InsertRuleV4 inserts IPv4 rule at a particular position in the chain InsertRuleV4(chain string, table string, position int, params ...string) IptablesProducer // InsertRuleV6 inserts IPv6 rule at a particular position in the chain InsertRuleV6(chain string, table string, position int, params ...string) IptablesProducer }
IptablesProducer is an interface for adding iptables rules
type Rule struct {
// contains filtered or unexported fields
}
Rule represents iptables rule - chain, table and options
type Rules struct {
// contains filtered or unexported fields
}
Rules represents iptables for V4 and V6
Package builder imports 3 packages (graph) and is imported by 1 packages. Updated 2020-08-16. Refresh now. Tools for package owners.