fsm

package
v1.0.2-0...-81fcf91 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateFn

type StateFn func(context.Context, *StateMachine) (StateFn, *ctrl.Result, error)

type StateMachine

type StateMachine struct {
	State          SystemState
	Log            *zap.SugaredLogger
	Client         client.Client
	FunctionConfig config.FunctionConfig
	Scheme         *apimachineryruntime.Scheme
	GitChecker     git.LastCommitChecker
	EventRecorder  record.EventRecorder
	// contains filtered or unexported fields
}

func (*StateMachine) Reconcile

func (m *StateMachine) Reconcile(ctx context.Context) (ctrl.Result, error)

type StateMachineReconciler

type StateMachineReconciler interface {
	Reconcile(ctx context.Context) (ctrl.Result, error)
}

func New

func New(client client.Client, functionConfig config.FunctionConfig, instance *serverlessv1alpha2.Function, startState StateFn, recorder record.EventRecorder, scheme *apimachineryruntime.Scheme, cache cache.Cache, log *zap.SugaredLogger) StateMachineReconciler

type SystemState

type SystemState struct {
	Function serverlessv1alpha2.Function

	BuiltDeployment   *resources.Deployment
	ClusterDeployment *appsv1.Deployment
	Commit            string
	GitAuth           *git.GitAuth
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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