functionconfigs

package
v1.6.4-pre.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BaseFinalizer = "config.porch.kpt.dev/functionconfig"
View Source
const ControllerFinalizer = BaseFinalizer + "-controller"
View Source
const FunctionRunnerFinalizer = BaseFinalizer + "-function-runner"
View Source
const ServerFinalizer = BaseFinalizer + "-porch-server"

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryCacheEntry

type BinaryCacheEntry struct {
	PrefixRegex *regexp.Regexp
	Tags        map[string]string
}

type BuiltInCacheEntry

type BuiltInCacheEntry struct {
	PrefixRegex *regexp.Regexp
	Process     fnsdk.ResourceListProcessor
	Tags        []string
}

type FunctionConfigStore

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

func NewFunctionConfigStore

func NewFunctionConfigStore(defaultImagePrefix, defaultBinaryDir string) *FunctionConfigStore

func (*FunctionConfigStore) DeleteFunctionConfig

func (s *FunctionConfigStore) DeleteFunctionConfig(key types.NamespacedName)

func (*FunctionConfigStore) GetBinaryFromCache

func (s *FunctionConfigStore) GetBinaryFromCache(image string) (string, bool)

func (*FunctionConfigStore) GetBinaryFromCacheByConstraint

func (s *FunctionConfigStore) GetBinaryFromCacheByConstraint(image, tag string) (string, bool)

func (*FunctionConfigStore) GetExecCache

func (s *FunctionConfigStore) GetExecCache() map[string]BuiltInCacheEntry

func (*FunctionConfigStore) GetFunctionConfig

func (s *FunctionConfigStore) GetFunctionConfig(name string) (*configapi.FunctionConfig, bool)

func (*FunctionConfigStore) GetProcessorFromCache

func (s *FunctionConfigStore) GetProcessorFromCache(image string) (fnsdk.ResourceListProcessor, bool)

GetProcessorFromCache looks up a function processor by image, holding the read lock for the duration of the lookup.

func (*FunctionConfigStore) List

func (*FunctionConfigStore) UpdateBinaryCache

func (s *FunctionConfigStore) UpdateBinaryCache(_ string, obj *configapi.FunctionConfig)

func (*FunctionConfigStore) UpdateExecCache

func (s *FunctionConfigStore) UpdateExecCache(name string, functionConfig *configapi.FunctionConfig)

func (*FunctionConfigStore) UpsertFunctionConfig

func (s *FunctionConfigStore) UpsertFunctionConfig(name string, obj *configapi.FunctionConfig)

type Reconciler

type Reconciler struct {
	Client              client.Client
	FunctionConfigStore *FunctionConfigStore
	// For indicates which component the reconciler is collecting the configs for
	// TODO: remove after merging of function-runner into server
	For ReconcilerFor
}

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, finalErr error)

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

type ReconcilerFor

type ReconcilerFor string
const (
	ReconcilerForFunctionRunner ReconcilerFor = "function-runner"
	ReconcilerForServer         ReconcilerFor = "server"
	ReconcilerForController     ReconcilerFor = "controller"
)

Jump to

Keyboard shortcuts

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