Documentation
¶
Index ¶
- Constants
- type RequestSignal
- type Signal
- func (s *Signal) GetOrg(ctx context.Context, id string, db *gorm.DB) (*app.Org, error)
- func (s *Signal) Name() string
- func (s *Signal) Namespace() string
- func (s *Signal) Restart() bool
- func (s *Signal) SignalType() eventloop.SignalType
- func (s *Signal) Start() bool
- func (s *Signal) Stop() bool
- func (s *Signal) Validate(v *validator.Validate) error
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) SignalType ¶
func (s *Signal) SignalType() eventloop.SignalType
Click to show internal directories.
Click to hide internal directories.