lifecycle

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceBindingHooks

type ServiceBindingHooks struct {
	// ResolverFactory returns a resolver which is used to lookup binding
	// related values.
	//
	// +optional
	ResolverFactory func(client.Client) resolver.Resolver

	// ProjectorFactory returns a projector which is used to bind/unbind the
	// service to/from the workload.
	//
	// +optional
	ProjectorFactory func(projector.MappingSource) projector.ServiceBindingProjector

	// ServiceBindingPreProjection can be used to alter the resolved
	// ServiceBinding before the projection.
	//
	// +optional
	ServiceBindingPreProjection func(ctx context.Context, binding *servicebindingv1.ServiceBinding) error

	// ServiceBindingPostProjection can be used to alter the projected
	// ServiceBinding before mutations are persisted.
	//
	// +optional
	ServiceBindingPostProjection func(ctx context.Context, binding *servicebindingv1.ServiceBinding) error

	// WorkloadPreProjection can be used to alter the resolved workload before
	// the projection.
	//
	// +optional
	WorkloadPreProjection func(ctx context.Context, workload runtime.Object) error

	// WorkloadPostProjection can be used to alter the projected workload
	// before mutations are persisted.
	//
	// +optional
	WorkloadPostProjection func(ctx context.Context, workload runtime.Object) error
}

func (*ServiceBindingHooks) GetProjector

func (h *ServiceBindingHooks) GetProjector(r projector.MappingSource) projector.ServiceBindingProjector

func (*ServiceBindingHooks) GetResolver

func (h *ServiceBindingHooks) GetResolver(c client.Client) resolver.Resolver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳