gateway

package
v1.2.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package gateway is a generated GoMock package.

Package gateway implements the Kubernetes client for the resources in the gateway.networking.k8s.io API group

Index

Constants

View Source
const (
	// DefaultKubeEventResyncInterval is the default resync interval for k8s events
	// This is set to 0 because we do not need resyncs from k8s client, and have our
	// own Ticker to turn on periodic resyncs.
	DefaultKubeEventResyncInterval = 0 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	cache.ResourceEventHandler

	// Runnable runs the backend broadcast listener
	manager.Runnable

	// LeaderElectionRunnable knows if a Runnable needs to be run in the leader election mode.
	manager.LeaderElectionRunnable
}

Controller is the interface for the functionality provided by the resources part of the gateway.networking.k8s.io API group

func NewGatewayAPIController

func NewGatewayAPIController(informerCollection *fsminformers.InformerCollection, kubeClient kubernetes.Interface, gatewayAPIClient gatewayApiClientset.Interface, msgBroker *messaging.Broker, cfg configurator.Configurator, meshName, fsmVersion string) Controller

NewGatewayAPIController returns a gateway.Controller interface related to functionality provided by the resources in the plugin.flomesh.io API group

type MockController

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

MockController is a mock of Controller interface.

func NewMockController

func NewMockController(ctrl *gomock.Controller) *MockController

NewMockController creates a new mock instance.

func (*MockController) EXPECT

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

func (*MockController) NeedLeaderElection added in v1.2.0

func (m *MockController) NeedLeaderElection() bool

NeedLeaderElection mocks base method.

func (*MockController) OnAdd

func (m *MockController) OnAdd(arg0 interface{})

OnAdd mocks base method.

func (*MockController) OnDelete

func (m *MockController) OnDelete(arg0 interface{})

OnDelete mocks base method.

func (*MockController) OnUpdate

func (m *MockController) OnUpdate(arg0, arg1 interface{})

OnUpdate mocks base method.

func (*MockController) Start

func (m *MockController) Start(arg0 context.Context) error

Start mocks base method.

type MockControllerMockRecorder

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

MockControllerMockRecorder is the mock recorder for MockController.

func (*MockControllerMockRecorder) NeedLeaderElection added in v1.2.0

func (mr *MockControllerMockRecorder) NeedLeaderElection() *gomock.Call

NeedLeaderElection indicates an expected call of NeedLeaderElection.

func (*MockControllerMockRecorder) OnAdd

func (mr *MockControllerMockRecorder) OnAdd(arg0 interface{}) *gomock.Call

OnAdd indicates an expected call of OnAdd.

func (*MockControllerMockRecorder) OnDelete

func (mr *MockControllerMockRecorder) OnDelete(arg0 interface{}) *gomock.Call

OnDelete indicates an expected call of OnDelete.

func (*MockControllerMockRecorder) OnUpdate

func (mr *MockControllerMockRecorder) OnUpdate(arg0, arg1 interface{}) *gomock.Call

OnUpdate indicates an expected call of OnUpdate.

func (*MockControllerMockRecorder) Start

func (mr *MockControllerMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

Directories

Path Synopsis
Package cache implements a cache of all the resources that are relevant to the gateway
Package cache implements a cache of all the resources that are relevant to the gateway
Package routecfg contains types for the gateway route
Package routecfg contains types for the gateway route
Package repo contains the repository for the gateway
Package repo contains the repository for the gateway
Package status implements utility routines related to the status of the Gateway API resource.
Package status implements utility routines related to the status of the Gateway API resource.
Package types contains types used by the gateway controller
Package types contains types used by the gateway controller
Package utils contains utility functions for gateway
Package utils contains utility functions for gateway

Jump to

Keyboard shortcuts

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