service

package
v0.0.0-...-9910cb8 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceSyncController

func NewServiceSyncController(
	serviceName string,

	configClient configclientv1.ConfigV1Interface,
	configInformer configinformer.SharedInformerFactory,

	operatorClient v1helpers.OperatorClient,
	corev1Client coreclientv1.CoreV1Interface,

	operatorConfigInformer operatorinformersv1.ConsoleInformer,
	serviceInformer coreinformersv1.ServiceInformer,

	recorder events.Recorder,
) factory.Controller

factory func needs clients and informers informers to start them up, clients to pass

Types

type ServiceSyncController

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

ctrl just needs the clients so it can make requests the informers will automatically notify it of changes and kick the sync loop

func (*ServiceSyncController) Sync

func (c *ServiceSyncController) Sync(ctx context.Context, controllerContext factory.SyncContext) error

func (*ServiceSyncController) SyncRedirectService

func (c *ServiceSyncController) SyncRedirectService(ctx context.Context, routeConfig *routesub.RouteConfig, controllerContext factory.SyncContext) (string, error)

Jump to

Keyboard shortcuts

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