executor

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	AddExecutor(executor *core.Executor, allowReregister bool) (*core.Executor, error)
	GetExecutor(executorID string) (*core.Executor, error)
	GetExecutorByColonyName(colonyName string) ([]*core.Executor, error)
}

type Handlers

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

func NewHandlers

func NewHandlers(server Server) *Handlers

func (*Handlers) HandleAddExecutor

func (h *Handlers) HandleAddExecutor(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleApproveExecutor

func (h *Handlers) HandleApproveExecutor(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleGetExecutor

func (h *Handlers) HandleGetExecutor(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleGetExecutorByID added in v1.9.3

func (h *Handlers) HandleGetExecutorByID(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleGetExecutors

func (h *Handlers) HandleGetExecutors(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleRejectExecutor

func (h *Handlers) HandleRejectExecutor(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleRemoveExecutor

func (h *Handlers) HandleRemoveExecutor(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleReportAllocations

func (h *Handlers) HandleReportAllocations(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) HandleUpdateExecutor added in v1.9.6

func (h *Handlers) HandleUpdateExecutor(c backends.Context, recoveredID string, payloadType string, jsonString string)

func (*Handlers) RegisterHandlers

func (h *Handlers) RegisterHandlers(handlerRegistry *registry.HandlerRegistry) error

RegisterHandlers implements the HandlerRegistrar interface

type Server

type Server interface {
	HandleHTTPError(c backends.Context, err error, errorCode int) bool
	SendHTTPReply(c backends.Context, payloadType string, jsonString string)
	SendEmptyHTTPReply(c backends.Context, payloadType string)
	Validator() security.Validator
	ExecutorDB() database.ExecutorDatabase
	ExecutorController() Controller
	AllowExecutorReregister() bool
	TriggerReconciliationForReconciler(colonyName, executorType, locationName string) error
}

Jump to

Keyboard shortcuts

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