router

package
v0.0.0-...-265eb5a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	client.Client
	Scheme *runtime.Scheme
	// Name of the gateway in which this controller is running.
	Name string
	// Namespace of the gateway in which this controller is running.
	Namespace            string
	RoutingSuiteInstance RoutingSuite
}

Controller reconciles the Gateway Object to run a router.

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile implements the reconciliation of the Gateway of the router. This function is trigger by any change (create/update/delete) in any resource related to the object (GatewayRouter/Gateway).

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*Controller) SetupWithManager

func (c *Controller) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RoutingSuite

type RoutingSuite interface {
	// Apply applies to configuration.
	Configure(ctx context.Context, vips []string, gateways []bird.Gateway) error
}

RoutingSuite defines an interface to configure a routing suite (e.g. bird).

Jump to

Keyboard shortcuts

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