mock

package
v1.11.0-cni-plu...-7acfd45 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 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) ActiveHostMetadataV4V6

func (d *MockDataplane) ActiveHostMetadataV4V6() map[string]proto.HostMetadataV4V6Update

func (*MockDataplane) ActivePolicies

func (d *MockDataplane) ActivePolicies() set.Set[proto.PolicyID]

func (*MockDataplane) ActivePolicy

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

func (*MockDataplane) ActivePreDNATPolicies

func (d *MockDataplane) ActivePreDNATPolicies() set.Set[proto.PolicyID]

func (*MockDataplane) ActiveProfiles

func (d *MockDataplane) ActiveProfiles() set.Set[proto.ProfileID]

func (*MockDataplane) ActiveRoutes

func (d *MockDataplane) ActiveRoutes() set.Set[proto.RouteUpdate]

func (*MockDataplane) ActiveUntrackedPolicies

func (d *MockDataplane) ActiveUntrackedPolicies() set.Set[proto.PolicyID]

func (*MockDataplane) ActiveVTEPs

func (*MockDataplane) ActiveWireguardEndpoints

func (d *MockDataplane) ActiveWireguardEndpoints() set.Set[proto.WireguardEndpointUpdate]

func (*MockDataplane) ActiveWireguardV6Endpoints

func (d *MockDataplane) ActiveWireguardV6Endpoints() set.Set[proto.WireguardEndpointV6Update]

func (*MockDataplane) Config

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

func (*MockDataplane) Encapsulation

func (d *MockDataplane) Encapsulation() proto.Encapsulation

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[string]

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) ToConfigUpdate

func (d *MockDataplane) ToConfigUpdate() *proto.ConfigUpdate

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