v1

package
v3.0.1-rc.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPIServiceGeneratingHandler

func RegisterAPIServiceGeneratingHandler(ctx context.Context, controller APIServiceController, apply apply.Apply,
	condition condition.Cond, name string, handler APIServiceGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterAPIServiceGeneratingHandler configures a APIServiceController to execute a APIServiceGeneratingHandler 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 RegisterAPIServiceStatusHandler

func RegisterAPIServiceStatusHandler(ctx context.Context, controller APIServiceController, condition condition.Cond, name string, handler APIServiceStatusHandler)

RegisterAPIServiceStatusHandler configures a APIServiceController to execute a APIServiceStatusHandler 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 APIServiceCache

type APIServiceCache interface {
	generic.NonNamespacedCacheInterface[*v1.APIService]
}

APIServiceCache interface for retrieving APIService resources in memory.

type APIServiceClient

type APIServiceClient interface {
	generic.NonNamespacedClientInterface[*v1.APIService, *v1.APIServiceList]
}

APIServiceClient interface for managing APIService resources in Kubernetes.

type APIServiceController

type APIServiceController interface {
	generic.NonNamespacedControllerInterface[*v1.APIService, *v1.APIServiceList]
}

APIServiceController interface for managing APIService resources.

type APIServiceGeneratingHandler

type APIServiceGeneratingHandler func(obj *v1.APIService, status v1.APIServiceStatus) ([]runtime.Object, v1.APIServiceStatus, error)

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

type APIServiceStatusHandler

type APIServiceStatusHandler func(obj *v1.APIService, status v1.APIServiceStatus) (v1.APIServiceStatus, error)

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

type Interface

type Interface interface {
	APIService() APIServiceController
}

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