v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterIngressGeneratingHandler

func RegisterIngressGeneratingHandler(ctx context.Context, controller IngressController, apply apply.Apply,
	condition condition.Cond, name string, handler IngressGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterIngressGeneratingHandler configures a IngressController to execute a IngressGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterIngressStatusHandler

func RegisterIngressStatusHandler(ctx context.Context, controller IngressController, condition condition.Cond, name string, handler IngressStatusHandler)

RegisterIngressStatusHandler configures a IngressController to execute a IngressStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

Types

type IngressCache

type IngressCache interface {
	generic.CacheInterface[*v1.Ingress]
}

IngressCache interface for retrieving Ingress resources in memory.

type IngressClient

type IngressClient interface {
	generic.ClientInterface[*v1.Ingress, *v1.IngressList]
}

IngressClient interface for managing Ingress resources in Kubernetes.

type IngressController

type IngressController interface {
	generic.ControllerInterface[*v1.Ingress, *v1.IngressList]
}

IngressController interface for managing Ingress resources.

type IngressGeneratingHandler

type IngressGeneratingHandler func(obj *v1.Ingress, status v1.IngressStatus) ([]runtime.Object, v1.IngressStatus, error)

IngressGeneratingHandler is the top-level handler that is executed for every Ingress event. It extends IngressStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type IngressStatusHandler

type IngressStatusHandler func(obj *v1.Ingress, status v1.IngressStatus) (v1.IngressStatus, error)

IngressStatusHandler is executed for every added or modified Ingress. Should return the new status to be updated

type Interface

type Interface interface {
	Ingress() IngressController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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