provider

package
v0.0.0-...-48ff17a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TargetNamespaceFor

func TargetNamespaceFor(ctx context.Context, provider Provider, obj client.Object) (string, error)

Types

type Provider

type Provider interface {
	Target(ctx context.Context, key client.ObjectKey, targetObj client.Object) error
}

type Registry

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

func NewRegistry

func NewRegistry(scheme *runtime.Scheme) *Registry

func (*Registry) Register

func (r *Registry) Register(object client.Object, provider Provider) error

func (*Registry) Target

func (r *Registry) Target(ctx context.Context, key client.ObjectKey, obj client.Object) error

Jump to

Keyboard shortcuts

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