mock

package
v3.2.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDataplane

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

func NewMockDataplane

func NewMockDataplane() *MockDataplane

func (*MockDataplane) ActivePolicies

func (d *MockDataplane) ActivePolicies() set.Set

func (*MockDataplane) ActivePolicy

func (d *MockDataplane) ActivePolicy(k proto.PolicyID) *proto.Policy

func (*MockDataplane) ActivePreDNATPolicies

func (d *MockDataplane) ActivePreDNATPolicies() set.Set

func (*MockDataplane) ActiveProfiles

func (d *MockDataplane) ActiveProfiles() set.Set

func (*MockDataplane) ActiveUntrackedPolicies

func (d *MockDataplane) ActiveUntrackedPolicies() set.Set

func (*MockDataplane) Config

func (d *MockDataplane) Config() map[string]string

func (*MockDataplane) EndpointToPolicyOrder

func (d *MockDataplane) EndpointToPolicyOrder() map[string][]TierInfo

func (*MockDataplane) EndpointToPreDNATPolicyOrder

func (d *MockDataplane) EndpointToPreDNATPolicyOrder() map[string][]TierInfo

func (*MockDataplane) EndpointToProfiles

func (d *MockDataplane) EndpointToProfiles() map[string][]string

func (*MockDataplane) EndpointToUntrackedPolicyOrder

func (d *MockDataplane) EndpointToUntrackedPolicyOrder() map[string][]TierInfo

func (*MockDataplane) IPSets

func (d *MockDataplane) IPSets() map[string]set.Set

func (*MockDataplane) InSync

func (d *MockDataplane) InSync() bool

func (*MockDataplane) Namespaces

func (d *MockDataplane) Namespaces() map[proto.NamespaceID]*proto.NamespaceUpdate

func (*MockDataplane) NumEventsRecorded

func (d *MockDataplane) NumEventsRecorded() int

func (*MockDataplane) OnEvent

func (d *MockDataplane) OnEvent(event interface{})

func (*MockDataplane) RawValues

func (d *MockDataplane) RawValues() map[string]string

func (*MockDataplane) ServiceAccounts

func (*MockDataplane) UpdateFrom

func (d *MockDataplane) UpdateFrom(map[string]string, config.Source) (changed bool, err error)

type TierInfo

type TierInfo struct {
	Name               string
	IngressPolicyNames []string
	EgressPolicyNames  []string
}

Jump to

Keyboard shortcuts

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