iptablesfakes

package
v0.0.0-...-7f502db Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeIPTables

type FakeIPTables struct {
	CreateChainStub func(table, chain string) error

	DeleteChainStub func(table, chain string) error

	FlushChainStub func(table, chain string) error

	DeleteChainReferencesStub func(table, targetChain, referencedChain string) error

	PrependRuleStub func(chain string, rule iptables.Rule) error

	BulkPrependRulesStub func(chain string, rules []iptables.Rule) error

	InstanceChainStub func(instanceId string) string
	// contains filtered or unexported fields
}

func (*FakeIPTables) BulkPrependRules

func (fake *FakeIPTables) BulkPrependRules(chain string, rules []iptables.Rule) error

func (*FakeIPTables) BulkPrependRulesArgsForCall

func (fake *FakeIPTables) BulkPrependRulesArgsForCall(i int) (string, []iptables.Rule)

func (*FakeIPTables) BulkPrependRulesCallCount

func (fake *FakeIPTables) BulkPrependRulesCallCount() int

func (*FakeIPTables) BulkPrependRulesReturns

func (fake *FakeIPTables) BulkPrependRulesReturns(result1 error)

func (*FakeIPTables) CreateChain

func (fake *FakeIPTables) CreateChain(table string, chain string) error

func (*FakeIPTables) CreateChainArgsForCall

func (fake *FakeIPTables) CreateChainArgsForCall(i int) (string, string)

func (*FakeIPTables) CreateChainCallCount

func (fake *FakeIPTables) CreateChainCallCount() int

func (*FakeIPTables) CreateChainReturns

func (fake *FakeIPTables) CreateChainReturns(result1 error)

func (*FakeIPTables) DeleteChain

func (fake *FakeIPTables) DeleteChain(table string, chain string) error

func (*FakeIPTables) DeleteChainArgsForCall

func (fake *FakeIPTables) DeleteChainArgsForCall(i int) (string, string)

func (*FakeIPTables) DeleteChainCallCount

func (fake *FakeIPTables) DeleteChainCallCount() int

func (*FakeIPTables) DeleteChainReferences

func (fake *FakeIPTables) DeleteChainReferences(table string, targetChain string, referencedChain string) error

func (*FakeIPTables) DeleteChainReferencesArgsForCall

func (fake *FakeIPTables) DeleteChainReferencesArgsForCall(i int) (string, string, string)

func (*FakeIPTables) DeleteChainReferencesCallCount

func (fake *FakeIPTables) DeleteChainReferencesCallCount() int

func (*FakeIPTables) DeleteChainReferencesReturns

func (fake *FakeIPTables) DeleteChainReferencesReturns(result1 error)

func (*FakeIPTables) DeleteChainReturns

func (fake *FakeIPTables) DeleteChainReturns(result1 error)

func (*FakeIPTables) FlushChain

func (fake *FakeIPTables) FlushChain(table string, chain string) error

func (*FakeIPTables) FlushChainArgsForCall

func (fake *FakeIPTables) FlushChainArgsForCall(i int) (string, string)

func (*FakeIPTables) FlushChainCallCount

func (fake *FakeIPTables) FlushChainCallCount() int

func (*FakeIPTables) FlushChainReturns

func (fake *FakeIPTables) FlushChainReturns(result1 error)

func (*FakeIPTables) InstanceChain

func (fake *FakeIPTables) InstanceChain(instanceId string) string

func (*FakeIPTables) InstanceChainArgsForCall

func (fake *FakeIPTables) InstanceChainArgsForCall(i int) string

func (*FakeIPTables) InstanceChainCallCount

func (fake *FakeIPTables) InstanceChainCallCount() int

func (*FakeIPTables) InstanceChainReturns

func (fake *FakeIPTables) InstanceChainReturns(result1 string)

func (*FakeIPTables) Invocations

func (fake *FakeIPTables) Invocations() map[string][][]interface{}

func (*FakeIPTables) PrependRule

func (fake *FakeIPTables) PrependRule(chain string, rule iptables.Rule) error

func (*FakeIPTables) PrependRuleArgsForCall

func (fake *FakeIPTables) PrependRuleArgsForCall(i int) (string, iptables.Rule)

func (*FakeIPTables) PrependRuleCallCount

func (fake *FakeIPTables) PrependRuleCallCount() int

func (*FakeIPTables) PrependRuleReturns

func (fake *FakeIPTables) PrependRuleReturns(result1 error)

type FakeRule

type FakeRule struct {
	FlagsStub func(chain string) []string
	// contains filtered or unexported fields
}

func (*FakeRule) Flags

func (fake *FakeRule) Flags(chain string) []string

func (*FakeRule) FlagsArgsForCall

func (fake *FakeRule) FlagsArgsForCall(i int) string

func (*FakeRule) FlagsCallCount

func (fake *FakeRule) FlagsCallCount() int

func (*FakeRule) FlagsReturns

func (fake *FakeRule) FlagsReturns(result1 []string)

func (*FakeRule) Invocations

func (fake *FakeRule) Invocations() map[string][][]interface{}

type FakeRuleTranslator

type FakeRuleTranslator struct {
	TranslateRuleStub func(handle string, gardenRule garden.NetOutRule) ([]iptables.Rule, error)
	// contains filtered or unexported fields
}

func (*FakeRuleTranslator) Invocations

func (fake *FakeRuleTranslator) Invocations() map[string][][]interface{}

func (*FakeRuleTranslator) TranslateRule

func (fake *FakeRuleTranslator) TranslateRule(handle string, gardenRule garden.NetOutRule) ([]iptables.Rule, error)

func (*FakeRuleTranslator) TranslateRuleArgsForCall

func (fake *FakeRuleTranslator) TranslateRuleArgsForCall(i int) (string, garden.NetOutRule)

func (*FakeRuleTranslator) TranslateRuleCallCount

func (fake *FakeRuleTranslator) TranslateRuleCallCount() int

func (*FakeRuleTranslator) TranslateRuleReturns

func (fake *FakeRuleTranslator) TranslateRuleReturns(result1 []iptables.Rule, result2 error)

Jump to

Keyboard shortcuts

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