Documentation ¶
Overview ¶
Copyright Istio Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright Istio Authors ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CombineMatchers(values []string, matcher func(value string) []string) []string
- func ConfigureRoutes(cfg *config.Config) error
- func Flatten(lists ...[]string) []string
- func FormatIptablesCommands(commands [][]string) []string
- func HandleDNSUDP(ops Ops, iptables *builder.IptablesRuleBuilder, ext dep.Dependencies, ...)
- type IptablesConfigurator
- type NetworkRange
- type Ops
- type UDPRuleApplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineMatchers ¶
func ConfigureRoutes ¶
func FormatIptablesCommands ¶
func HandleDNSUDP ¶
func HandleDNSUDP( ops Ops, iptables *builder.IptablesRuleBuilder, ext dep.Dependencies, iptV, ipt6V *dep.IptablesVersion, proxyUID, proxyGID string, dnsServersV4 []string, dnsServersV6 []string, captureAllDNS bool, ownerGroupsFilter config.InterceptFilter, )
HandleDNSUDP is a helper function to tackle with DNS UDP specific operations. This helps the creation logic of DNS UDP rules in sync with the deletion.
Types ¶
type IptablesConfigurator ¶
type IptablesConfigurator struct {
// contains filtered or unexported fields
}
func NewIptablesConfigurator ¶
func NewIptablesConfigurator(cfg *config.Config, ext dep.Dependencies) *IptablesConfigurator
func (*IptablesConfigurator) Run ¶
func (cfg *IptablesConfigurator) Run() error
type NetworkRange ¶
type UDPRuleApplier ¶
type UDPRuleApplier struct {
// contains filtered or unexported fields
}
func (UDPRuleApplier) Run ¶
func (f UDPRuleApplier) Run(args ...string)
func (UDPRuleApplier) RunV4 ¶
func (f UDPRuleApplier) RunV4(args ...string)
func (UDPRuleApplier) RunV6 ¶
func (f UDPRuleApplier) RunV6(args ...string)
func (UDPRuleApplier) WithChain ¶
func (f UDPRuleApplier) WithChain(chain string) UDPRuleApplier
func (UDPRuleApplier) WithTable ¶
func (f UDPRuleApplier) WithTable(table string) UDPRuleApplier