signals

package
v0.19.786 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OperationCreated           eventloop.SignalType = "created"
	OperationRestart           eventloop.SignalType = "restart"
	OperationDelete            eventloop.SignalType = "delete"
	OperationForceDelete       eventloop.SignalType = "force_delete"
	OperationProcessJob        eventloop.SignalType = "process_job"
	OperationUpdateVersion     eventloop.SignalType = "update_version"
	OperationHealthcheck       eventloop.SignalType = "healthcheck"
	OperationOfflineCheck      eventloop.SignalType = "offline_check"
	OperationGracefulShutdown  eventloop.SignalType = "graceful_shutdown"
	OperationForceShutdown     eventloop.SignalType = "force_shutdown"
	OperationFlushOrphanedJobs eventloop.SignalType = "flush_orphaned_jobs"

	// used for v2 provisioning
	OperationProvisionServiceAccount   eventloop.SignalType = "provision_service_account"
	OperationReprovisionServiceAccount eventloop.SignalType = "reprovision_service_account"
	OperationInstallStackVersionRun    eventloop.SignalType = "install_stack_version_run"

	// used for management operations
	OperationMngVMShutDown eventloop.SignalType = "mng-shutdown-vm"
	OperationMngShutDown   eventloop.SignalType = "mng-shutdown"
	OperationMngUpdate     eventloop.SignalType = "mng-update"
	OperationMngFetchToken eventloop.SignalType = "mng-fetch-token"

	// used for internal provisioning
	OperationProvision   eventloop.SignalType = "provision"
	OperationDeprovision eventloop.SignalType = "deprovision"
	OperationReprovision eventloop.SignalType = "reprovision"
)
View Source
const (
	TemporalNamespace string = "runners"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestSignal

type RequestSignal struct {
	*Signal
	eventloop.EventLoopRequest
}

func NewRequestSignal

func NewRequestSignal(req eventloop.EventLoopRequest, signal *Signal) RequestSignal

type Signal

type Signal struct {
	Type eventloop.SignalType `validate:"required"`
	eventloop.BaseSignal

	JobID                    string `validate:"required_if=Type job_queued"`
	HealthCheckID            string `validate:"required_if=Type update_version"`
	InstallStackVersionRunID string `validate:"required_if=Type install_stack_version_run"`
	ForceDelete              bool
}

func (*Signal) GetOrg

func (s *Signal) GetOrg(ctx context.Context, id string, db *gorm.DB) (*app.Org, error)

func (*Signal) Name

func (s *Signal) Name() string

func (*Signal) Namespace

func (s *Signal) Namespace() string

func (*Signal) Restart

func (s *Signal) Restart() bool

func (*Signal) SignalType

func (s *Signal) SignalType() eventloop.SignalType

func (*Signal) Start

func (s *Signal) Start() bool

func (*Signal) Stop

func (s *Signal) Stop() bool

func (*Signal) Validate

func (s *Signal) Validate(v *validator.Validate) error

Jump to

Keyboard shortcuts

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