invoker

package
v0.0.0-...-03a9efe Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoFallbackReconcilerDefinedError

func IsNoFallbackReconcilerDefinedError(err error) bool

Types

type Invoker

type Invoker interface {
	Invoke(ctx context.Context, params *Params) error
}

type LocalReconcilerInvoker

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

func NewLocalReconcilerInvoker

func NewLocalReconcilerInvoker(reconRepo reconciliation.Repository, statusFunc ReconcilerStatusFunc, logger *zap.SugaredLogger) *LocalReconcilerInvoker

func (*LocalReconcilerInvoker) Invoke

func (i *LocalReconcilerInvoker) Invoke(ctx context.Context, params *Params) error

type NoFallbackReconcilerDefinedError

type NoFallbackReconcilerDefinedError struct {
}

func (*NoFallbackReconcilerDefinedError) Error

type Params

type Params struct {
	ComponentToReconcile *keb.Component
	ComponentsReady      []string
	ClusterState         *cluster.State
	SchedulingID         string
	CorrelationID        string
	MaxOperationRetries  int
	Type                 model.OperationType
	Debug                bool
}

type ReconcilerStatusFunc

type ReconcilerStatusFunc func(component string, msg *reconciler.CallbackMessage)

ReconcilerStatusFunc can be passed by caller to retrieve status updates

type RemoteReconcilerInvoker

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

func NewRemoteReconcilerInvoker

func NewRemoteReconcilerInvoker(reconRepo reconciliation.Repository, cfg *config.Config, logger *zap.SugaredLogger) *RemoteReconcilerInvoker

func (*RemoteReconcilerInvoker) Invoke

func (i *RemoteReconcilerInvoker) Invoke(_ context.Context, params *Params) error

Jump to

Keyboard shortcuts

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