processor

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package processor is a generated GoMock package.

Package processor is a generated GoMock package.

Package processor is a generated GoMock package.

Package processor contains the processor for the gateway

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Generate() fgw.Config
}

Generator is the interface for processing the gateway resources and building the configuration

type MockGenerator

type MockGenerator struct {
	// contains filtered or unexported fields
}

MockGenerator is a mock of Generator interface.

func NewMockGenerator

func NewMockGenerator(ctrl *gomock.Controller) *MockGenerator

NewMockGenerator creates a new mock instance.

func (*MockGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGenerator) Generate

func (m *MockGenerator) Generate() fgw.Config

Generate mocks base method.

type MockGeneratorMockRecorder

type MockGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockGeneratorMockRecorder is the mock recorder for MockGenerator.

func (*MockGeneratorMockRecorder) Generate

func (mr *MockGeneratorMockRecorder) Generate() *gomock.Call

Generate indicates an expected call of Generate.

type MockProcessor

type MockProcessor struct {
	// contains filtered or unexported fields
}

MockProcessor is a mock of Processor interface.

func NewMockProcessor

func NewMockProcessor(ctrl *gomock.Controller) *MockProcessor

NewMockProcessor creates a new mock instance.

func (*MockProcessor) BuildConfigs

func (m *MockProcessor) BuildConfigs()

BuildConfigs mocks base method.

func (*MockProcessor) Delete

func (m *MockProcessor) Delete(arg0 interface{}) bool

Delete mocks base method.

func (*MockProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProcessor) Insert

func (m *MockProcessor) Insert(arg0 interface{}) bool

Insert mocks base method.

func (*MockProcessor) IsConfigMapReferred

func (m *MockProcessor) IsConfigMapReferred(arg0 types.NamespacedName) bool

IsConfigMapReferred mocks base method.

func (*MockProcessor) IsEffectiveRoute

func (m *MockProcessor) IsEffectiveRoute(arg0 []v1.ParentReference) bool

IsEffectiveRoute mocks base method.

func (*MockProcessor) IsEffectiveTargetRef

func (m *MockProcessor) IsEffectiveTargetRef(arg0 client.Object, arg1 v1alpha2.NamespacedPolicyTargetReference) bool

IsEffectiveTargetRef mocks base method.

func (*MockProcessor) IsFilterConfigReferred

func (m *MockProcessor) IsFilterConfigReferred(arg0 string, arg1 types.NamespacedName) bool

IsFilterConfigReferred mocks base method.

func (*MockProcessor) IsFilterDefinitionReferred

func (m *MockProcessor) IsFilterDefinitionReferred(arg0 types.NamespacedName) bool

IsFilterDefinitionReferred mocks base method.

func (*MockProcessor) IsFilterReferred

func (m *MockProcessor) IsFilterReferred(arg0 types.NamespacedName) bool

IsFilterReferred mocks base method.

func (*MockProcessor) IsHeadlessServiceWithoutSelector

func (m *MockProcessor) IsHeadlessServiceWithoutSelector(arg0 types.NamespacedName) bool

IsHeadlessServiceWithoutSelector mocks base method.

func (*MockProcessor) IsListenerFilterReferred

func (m *MockProcessor) IsListenerFilterReferred(arg0 types.NamespacedName) bool

IsListenerFilterReferred mocks base method.

func (*MockProcessor) IsRoutableLocalTargetServices

func (m *MockProcessor) IsRoutableLocalTargetServices(arg0 client.Object, arg1 []v1alpha2.LocalPolicyTargetReference) bool

IsRoutableLocalTargetServices mocks base method.

func (*MockProcessor) IsRoutableNamespacedTargetServices

func (m *MockProcessor) IsRoutableNamespacedTargetServices(arg0 client.Object, arg1 []v1alpha2.NamespacedPolicyTargetReference) bool

IsRoutableNamespacedTargetServices mocks base method.

func (*MockProcessor) IsRoutableService

func (m *MockProcessor) IsRoutableService(arg0 types.NamespacedName) bool

IsRoutableService mocks base method.

func (*MockProcessor) IsRoutableTargetService

func (m *MockProcessor) IsRoutableTargetService(arg0 client.Object, arg1 v1alpha2.NamespacedPolicyTargetReference) bool

IsRoutableTargetService mocks base method.

func (*MockProcessor) IsSecretReferred

func (m *MockProcessor) IsSecretReferred(arg0 types.NamespacedName) bool

IsSecretReferred mocks base method.

func (*MockProcessor) UseEndpointSlices

func (m *MockProcessor) UseEndpointSlices() bool

UseEndpointSlices mocks base method.

type MockProcessorMockRecorder

type MockProcessorMockRecorder struct {
	// contains filtered or unexported fields
}

MockProcessorMockRecorder is the mock recorder for MockProcessor.

func (*MockProcessorMockRecorder) BuildConfigs

func (mr *MockProcessorMockRecorder) BuildConfigs() *gomock.Call

BuildConfigs indicates an expected call of BuildConfigs.

func (*MockProcessorMockRecorder) Delete

func (mr *MockProcessorMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockProcessorMockRecorder) Insert

func (mr *MockProcessorMockRecorder) Insert(arg0 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockProcessorMockRecorder) IsConfigMapReferred

func (mr *MockProcessorMockRecorder) IsConfigMapReferred(arg0 interface{}) *gomock.Call

IsConfigMapReferred indicates an expected call of IsConfigMapReferred.

func (*MockProcessorMockRecorder) IsEffectiveRoute

func (mr *MockProcessorMockRecorder) IsEffectiveRoute(arg0 interface{}) *gomock.Call

IsEffectiveRoute indicates an expected call of IsEffectiveRoute.

func (*MockProcessorMockRecorder) IsEffectiveTargetRef

func (mr *MockProcessorMockRecorder) IsEffectiveTargetRef(arg0, arg1 interface{}) *gomock.Call

IsEffectiveTargetRef indicates an expected call of IsEffectiveTargetRef.

func (*MockProcessorMockRecorder) IsFilterConfigReferred

func (mr *MockProcessorMockRecorder) IsFilterConfigReferred(arg0, arg1 interface{}) *gomock.Call

IsFilterConfigReferred indicates an expected call of IsFilterConfigReferred.

func (*MockProcessorMockRecorder) IsFilterDefinitionReferred

func (mr *MockProcessorMockRecorder) IsFilterDefinitionReferred(arg0 interface{}) *gomock.Call

IsFilterDefinitionReferred indicates an expected call of IsFilterDefinitionReferred.

func (*MockProcessorMockRecorder) IsFilterReferred

func (mr *MockProcessorMockRecorder) IsFilterReferred(arg0 interface{}) *gomock.Call

IsFilterReferred indicates an expected call of IsFilterReferred.

func (*MockProcessorMockRecorder) IsHeadlessServiceWithoutSelector

func (mr *MockProcessorMockRecorder) IsHeadlessServiceWithoutSelector(arg0 interface{}) *gomock.Call

IsHeadlessServiceWithoutSelector indicates an expected call of IsHeadlessServiceWithoutSelector.

func (*MockProcessorMockRecorder) IsListenerFilterReferred

func (mr *MockProcessorMockRecorder) IsListenerFilterReferred(arg0 interface{}) *gomock.Call

IsListenerFilterReferred indicates an expected call of IsListenerFilterReferred.

func (*MockProcessorMockRecorder) IsRoutableLocalTargetServices

func (mr *MockProcessorMockRecorder) IsRoutableLocalTargetServices(arg0, arg1 interface{}) *gomock.Call

IsRoutableLocalTargetServices indicates an expected call of IsRoutableLocalTargetServices.

func (*MockProcessorMockRecorder) IsRoutableNamespacedTargetServices

func (mr *MockProcessorMockRecorder) IsRoutableNamespacedTargetServices(arg0, arg1 interface{}) *gomock.Call

IsRoutableNamespacedTargetServices indicates an expected call of IsRoutableNamespacedTargetServices.

func (*MockProcessorMockRecorder) IsRoutableService

func (mr *MockProcessorMockRecorder) IsRoutableService(arg0 interface{}) *gomock.Call

IsRoutableService indicates an expected call of IsRoutableService.

func (*MockProcessorMockRecorder) IsRoutableTargetService

func (mr *MockProcessorMockRecorder) IsRoutableTargetService(arg0, arg1 interface{}) *gomock.Call

IsRoutableTargetService indicates an expected call of IsRoutableTargetService.

func (*MockProcessorMockRecorder) IsSecretReferred

func (mr *MockProcessorMockRecorder) IsSecretReferred(arg0 interface{}) *gomock.Call

IsSecretReferred indicates an expected call of IsSecretReferred.

func (*MockProcessorMockRecorder) UseEndpointSlices

func (mr *MockProcessorMockRecorder) UseEndpointSlices() *gomock.Call

UseEndpointSlices indicates an expected call of UseEndpointSlices.

type MockTrigger

type MockTrigger struct {
	// contains filtered or unexported fields
}

MockTrigger is a mock of Trigger interface.

func NewMockTrigger

func NewMockTrigger(ctrl *gomock.Controller) *MockTrigger

NewMockTrigger creates a new mock instance.

func (*MockTrigger) Delete

func (m *MockTrigger) Delete(arg0 interface{}, arg1 Processor) bool

Delete mocks base method.

func (*MockTrigger) EXPECT

func (m *MockTrigger) EXPECT() *MockTriggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTrigger) Insert

func (m *MockTrigger) Insert(arg0 interface{}, arg1 Processor) bool

Insert mocks base method.

type MockTriggerMockRecorder

type MockTriggerMockRecorder struct {
	// contains filtered or unexported fields
}

MockTriggerMockRecorder is the mock recorder for MockTrigger.

func (*MockTriggerMockRecorder) Delete

func (mr *MockTriggerMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTriggerMockRecorder) Insert

func (mr *MockTriggerMockRecorder) Insert(arg0, arg1 interface{}) *gomock.Call

Insert indicates an expected call of Insert.

type Processor

type Processor interface {
	Insert(obj interface{}) bool
	Delete(obj interface{}) bool
	BuildConfigs()
	IsEffectiveRoute(parentRefs []gwv1.ParentReference) bool
	IsRoutableService(service client.ObjectKey) bool
	IsHeadlessServiceWithoutSelector(key client.ObjectKey) bool
	IsEffectiveTargetRef(policy client.Object, targetRef gwv1alpha2.NamespacedPolicyTargetReference) bool
	IsRoutableTargetService(policy client.Object, targetRef gwv1alpha2.NamespacedPolicyTargetReference) bool
	IsRoutableNamespacedTargetServices(policy client.Object, targetRefs []gwv1alpha2.NamespacedPolicyTargetReference) bool
	IsRoutableLocalTargetServices(policy client.Object, targetRefs []gwv1alpha2.LocalPolicyTargetReference) bool
	IsConfigMapReferred(cm client.ObjectKey) bool
	IsSecretReferred(secret client.ObjectKey) bool
	IsFilterReferred(filter client.ObjectKey) bool
	IsListenerFilterReferred(filter client.ObjectKey) bool
	IsFilterDefinitionReferred(filter client.ObjectKey) bool
	IsFilterConfigReferred(kind string, config client.ObjectKey) bool
	UseEndpointSlices() bool
}

Processor is the interface for the functionality provided by the cache

type Trigger

type Trigger interface {
	Insert(obj interface{}, processor Processor) bool
	Delete(obj interface{}, processor Processor) bool
}

Trigger is the interface for the functionality provided by the resources

Directories

Path Synopsis
triggers
k8s
Package v2 implements a processor of all the resources that are relevant to the gateway
Package v2 implements a processor of all the resources that are relevant to the gateway

Jump to

Keyboard shortcuts

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