istio: istio.io/istio/tools/istio-iptables/pkg/builder Index | Files

package builder

import "istio.io/istio/tools/istio-iptables/pkg/builder"

Index

Package Files

iptables_builder.go iptables_builder_impl.go

type IptablesBuilderImpl Uses

type IptablesBuilderImpl struct {
    // contains filtered or unexported fields
}

IptablesBuilderImpl is an implementation for IptablesBuilder interface

func NewIptablesBuilder Uses

func NewIptablesBuilder() *IptablesBuilderImpl

NewIptablesBuilders creates a new IptablesBuilder

func (*IptablesBuilderImpl) AppendRuleV4 Uses

func (rb *IptablesBuilderImpl) AppendRuleV4(chain string, table string, params ...string) IptablesProducer

func (*IptablesBuilderImpl) AppendRuleV6 Uses

func (rb *IptablesBuilderImpl) AppendRuleV6(chain string, table string, params ...string) IptablesProducer

func (*IptablesBuilderImpl) BuildV4 Uses

func (rb *IptablesBuilderImpl) BuildV4() [][]string

func (*IptablesBuilderImpl) BuildV4Restore Uses

func (rb *IptablesBuilderImpl) BuildV4Restore() string

func (*IptablesBuilderImpl) BuildV6 Uses

func (rb *IptablesBuilderImpl) BuildV6() [][]string

func (*IptablesBuilderImpl) BuildV6Restore Uses

func (rb *IptablesBuilderImpl) BuildV6Restore() string

func (*IptablesBuilderImpl) InsertRuleV4 Uses

func (rb *IptablesBuilderImpl) InsertRuleV4(chain string, table string, position int, params ...string) IptablesProducer

func (*IptablesBuilderImpl) InsertRuleV6 Uses

func (rb *IptablesBuilderImpl) InsertRuleV6(chain string, table string, position int, params ...string) IptablesProducer

type IptablesProducer Uses

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 Uses

type Rule struct {
    // contains filtered or unexported fields
}

Rule represents iptables rule - chain, table and options

type Rules Uses

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.