singleton

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInstanceFunc

type GetInstanceFunc func(ctx context.Context, cli client.Client) (client.Object, error)

GetInstanceFunc is a function type for functions that return an instance of a specific kind.

func GetInstance

func GetInstance(prototypeList client.ObjectList, scheme *runtime.Scheme) (GetInstanceFunc, error)

GetInstance returns a GetInstanceFunc for a given kind of object.

Jump to

Keyboard shortcuts

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