appproject

package
v0.0.0-...-9adde1d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppProjectInformer

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

func NewAppProjectInformer

func NewAppProjectInformer(ctx context.Context, client appclientset.Interface, namespace string, options ...AppProjectInformerOption) (*AppProjectInformer, error)

NewAppProjectInformer returns a new instance of a GenericInformer set up to handle AppProjects. It will be configured with the given options, using the given appclientset.

func (*AppProjectInformer) Start

func (i *AppProjectInformer) Start(ctx context.Context)

type AppProjectInformerOption

type AppProjectInformerOption func(pi *AppProjectInformer) error

func WithAddFunc

func WithAddFunc(f func(proj *v1alpha1.AppProject)) AppProjectInformerOption

WithAddFunc sets the function to be called when an AppProject is created on the cluster.

func WithDeleteFunc

func WithDeleteFunc(f func(proj *v1alpha1.AppProject)) AppProjectInformerOption

WithDeleteFunc sets the function to be called when an AppProject is deleted on the cluster.

func WithListFilter

func WithListFilter(f func(proj *v1alpha1.AppProject) bool) AppProjectInformerOption

WithListFilter sets a filter function for the add, update and delete events. This function will be called for each event, and if it returns false, the event's execution will not continue.

func WithLogger

func WithLogger(l *logrus.Entry) AppProjectInformerOption

WithLogger sets the logger to use with this AppProjectInformer

func WithMetrics

WithMetrics sets the AppProject watcher metrics to be used with this informer.

func WithUpdateFunc

func WithUpdateFunc(f func(oldProj *v1alpha1.AppProject, newProj *v1alpha1.AppProject)) AppProjectInformerOption

WithUpdateFunc sets the function to be called when an AppProject is updated on the cluster.

Jump to

Keyboard shortcuts

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