globalhookrun

package
v1.15.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTaskHandler

func RegisterTaskHandler(svc TaskDependencies) func(t sh_task.Task, logger *log.Logger) task.Task

RegisterTaskHandler returns a function that creates a task handler for global hook execution

Types

type Task

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

Task handles the execution of global hook tasks

func NewTask

func NewTask(shellTask sh_task.Task, isOperatorStartup bool, svc TaskDependencies, logger *log.Logger) *Task

NewTask creates a new Task for handling global hook execution

func (*Task) Handle

func (s *Task) Handle(ctx context.Context) queue.TaskResult

type TaskDependencies

type TaskDependencies interface {
	GetHelm() *helm.ClientFactory
	GetHelmResourcesManager() helm_resources_manager.HelmResourcesManager
	GetModuleManager() *module_manager.ModuleManager
	GetMetricStorage() metricsstorage.Storage
	GetQueueService() *taskqueue.Service
}

TaskDependencies defines the services required for global hook task execution

Jump to

Keyboard shortcuts

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