fake

package
v0.9.0-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

© 2021 Red Hat, Inc. and others

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTables

type IPTables struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *IPTables

func (*IPTables) AddChainsFor

func (i *IPTables) AddChainsFor(table string, chains ...string)

func (*IPTables) Append

func (i *IPTables) Append(table, chain string, rulespec ...string) error

func (*IPTables) AppendUnique

func (i *IPTables) AppendUnique(table, chain string, rulespec ...string) error

func (*IPTables) AwaitChain

func (i *IPTables) AwaitChain(table string, stringOrMatcher interface{})

func (*IPTables) AwaitNoChain

func (i *IPTables) AwaitNoChain(table string, stringOrMatcher interface{})

func (*IPTables) AwaitNoRule

func (i *IPTables) AwaitNoRule(table, chain string, stringOrMatcher interface{})

func (*IPTables) AwaitRule

func (i *IPTables) AwaitRule(table, chain string, stringOrMatcher interface{})

func (*IPTables) ClearChain

func (i *IPTables) ClearChain(table, chain string) error

func (*IPTables) Delete

func (i *IPTables) Delete(table, chain string, rulespec ...string) error

func (*IPTables) Insert

func (i *IPTables) Insert(table, chain string, pos int, rulespec ...string) error

func (*IPTables) List

func (i *IPTables) List(table, chain string) ([]string, error)

func (*IPTables) ListChains

func (i *IPTables) ListChains(table string) ([]string, error)

func (*IPTables) NewChain

func (i *IPTables) NewChain(table, chain string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL