Documentation ¶
Index ¶
- type MockDataplane
- func (d *MockDataplane) ActiveHostMetadataV4V6() map[string]proto.HostMetadataV4V6Update
- func (d *MockDataplane) ActivePolicies() set.Set[proto.PolicyID]
- func (d *MockDataplane) ActivePolicy(k proto.PolicyID) *proto.Policy
- func (d *MockDataplane) ActivePreDNATPolicies() set.Set[proto.PolicyID]
- func (d *MockDataplane) ActiveProfiles() set.Set[proto.ProfileID]
- func (d *MockDataplane) ActiveRoutes() set.Set[proto.RouteUpdate]
- func (d *MockDataplane) ActiveUntrackedPolicies() set.Set[proto.PolicyID]
- func (d *MockDataplane) ActiveVTEPs() set.Set[proto.VXLANTunnelEndpointUpdate]
- func (d *MockDataplane) ActiveWireguardEndpoints() set.Set[proto.WireguardEndpointUpdate]
- func (d *MockDataplane) ActiveWireguardV6Endpoints() set.Set[proto.WireguardEndpointV6Update]
- func (d *MockDataplane) Config() map[string]string
- func (d *MockDataplane) Encapsulation() proto.Encapsulation
- func (d *MockDataplane) EndpointToPolicyOrder() map[string][]TierInfo
- func (d *MockDataplane) EndpointToPreDNATPolicyOrder() map[string][]TierInfo
- func (d *MockDataplane) EndpointToProfiles() map[string][]string
- func (d *MockDataplane) EndpointToUntrackedPolicyOrder() map[string][]TierInfo
- func (d *MockDataplane) IPSets() map[string]set.Set[string]
- func (d *MockDataplane) InSync() bool
- func (d *MockDataplane) Namespaces() map[proto.NamespaceID]*proto.NamespaceUpdate
- func (d *MockDataplane) NumEventsRecorded() int
- func (d *MockDataplane) OnEvent(event interface{})
- func (d *MockDataplane) RawValues() map[string]string
- func (d *MockDataplane) ServiceAccounts() map[proto.ServiceAccountID]*proto.ServiceAccountUpdate
- func (d *MockDataplane) ToConfigUpdate() *proto.ConfigUpdate
- func (d *MockDataplane) UpdateFrom(map[string]string, config.Source) (changed bool, err error)
- type TierInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataplane ¶
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 (d *MockDataplane) ActiveVTEPs() set.Set[proto.VXLANTunnelEndpointUpdate]
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) 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 (d *MockDataplane) ServiceAccounts() map[proto.ServiceAccountID]*proto.ServiceAccountUpdate
func (*MockDataplane) ToConfigUpdate ¶
func (d *MockDataplane) ToConfigUpdate() *proto.ConfigUpdate
func (*MockDataplane) UpdateFrom ¶
Click to show internal directories.
Click to hide internal directories.