handler

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIKeyHandler added in v1.1.0

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

APIKeyHandler handles API key HTTP requests

func NewAPIKeyHandler added in v1.1.0

func NewAPIKeyHandler(service *service.APIKeyService) *APIKeyHandler

NewAPIKeyHandler creates a new API key handler

func (*APIKeyHandler) CreateAPIKey added in v1.1.0

func (h *APIKeyHandler) CreateAPIKey(w http.ResponseWriter, r *http.Request)

CreateAPIKey handles POST /api/api-keys

func (*APIKeyHandler) DeleteAPIKey added in v1.1.0

func (h *APIKeyHandler) DeleteAPIKey(w http.ResponseWriter, r *http.Request)

DeleteAPIKey handles DELETE /api/api-keys/:id

func (*APIKeyHandler) GetAPIKey added in v1.1.0

func (h *APIKeyHandler) GetAPIKey(w http.ResponseWriter, r *http.Request)

GetAPIKey handles GET /api/api-keys/:id

func (*APIKeyHandler) ListAPIKeys added in v1.1.0

func (h *APIKeyHandler) ListAPIKeys(w http.ResponseWriter, r *http.Request)

ListAPIKeys handles GET /api/api-keys

func (*APIKeyHandler) RevokeAPIKey added in v1.1.0

func (h *APIKeyHandler) RevokeAPIKey(w http.ResponseWriter, r *http.Request)

RevokeAPIKey handles POST /api/api-keys/:id/revoke

func (*APIKeyHandler) RotateAPIKey added in v1.1.0

func (h *APIKeyHandler) RotateAPIKey(w http.ResponseWriter, r *http.Request)

RotateAPIKey handles POST /api/api-keys/:id/rotate

func (*APIKeyHandler) UpdateAPIKey added in v1.1.0

func (h *APIKeyHandler) UpdateAPIKey(w http.ResponseWriter, r *http.Request)

UpdateAPIKey handles PATCH /api/api-keys/:id

type ChainHandler added in v1.1.0

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

ChainHandler contains chain-related HTTP handlers

func NewChainHandler added in v1.1.0

func NewChainHandler(chainService *service.ChainService) *ChainHandler

NewChainHandler creates a new chain handler

func (*ChainHandler) CreateChain added in v1.1.0

func (h *ChainHandler) CreateChain(w http.ResponseWriter, r *http.Request)

CreateChain handles POST /api/chains

func (*ChainHandler) DeleteChain added in v1.1.0

func (h *ChainHandler) DeleteChain(w http.ResponseWriter, r *http.Request)

DeleteChain handles DELETE /api/chains/:id

func (*ChainHandler) ExecuteChain added in v1.1.0

func (h *ChainHandler) ExecuteChain(w http.ResponseWriter, r *http.Request)

ExecuteChain handles POST /api/chains/:id/execute

func (*ChainHandler) GetChain added in v1.1.0

func (h *ChainHandler) GetChain(w http.ResponseWriter, r *http.Request)

GetChain handles GET /api/chains/:id

func (*ChainHandler) ListChains added in v1.1.0

func (h *ChainHandler) ListChains(w http.ResponseWriter, r *http.Request)

ListChains handles GET /api/chains

func (*ChainHandler) UpdateChain added in v1.1.0

func (h *ChainHandler) UpdateChain(w http.ResponseWriter, r *http.Request)

UpdateChain handles PATCH /api/chains/:id

type Handler

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

Handler contains all HTTP handlers

func NewHandler

func NewHandler(
	jobService *service.JobService,
	executionService *service.ExecutionService,
	projectService *service.ProjectService,
	tagService *service.TagService,
	systemService *service.SystemService,
) *Handler

NewHandler creates a new handler

func (*Handler) CancelJob

func (h *Handler) CancelJob(w http.ResponseWriter, r *http.Request)

CancelJob handles POST /api/jobs/:id/cancel

func (*Handler) CloneJob

func (h *Handler) CloneJob(w http.ResponseWriter, r *http.Request)

CloneJob handles POST /api/jobs/:id/clone

func (*Handler) CreateJob

func (h *Handler) CreateJob(w http.ResponseWriter, r *http.Request)

CreateJob handles POST /api/jobs

func (*Handler) CreateProject

func (h *Handler) CreateProject(w http.ResponseWriter, r *http.Request)

func (*Handler) CreateTag

func (h *Handler) CreateTag(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteJob

func (h *Handler) DeleteJob(w http.ResponseWriter, r *http.Request)

DeleteJob handles DELETE /api/jobs/:id

func (*Handler) DeleteProject

func (h *Handler) DeleteProject(w http.ResponseWriter, r *http.Request)

func (*Handler) DeleteTag

func (h *Handler) DeleteTag(w http.ResponseWriter, r *http.Request)

func (*Handler) ExecuteJob

func (h *Handler) ExecuteJob(w http.ResponseWriter, r *http.Request)

ExecuteJob handles POST /api/jobs/:id/execute

func (*Handler) GetExecution

func (h *Handler) GetExecution(w http.ResponseWriter, r *http.Request)

func (*Handler) GetJob

func (h *Handler) GetJob(w http.ResponseWriter, r *http.Request)

GetJob handles GET /api/jobs/:id

func (*Handler) GetJobTypes

func (h *Handler) GetJobTypes(w http.ResponseWriter, r *http.Request)

func (*Handler) GetProject

func (h *Handler) GetProject(w http.ResponseWriter, r *http.Request)

func (*Handler) GetSystemConfig

func (h *Handler) GetSystemConfig(w http.ResponseWriter, r *http.Request)

func (*Handler) GetSystemStatus

func (h *Handler) GetSystemStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) GetTag

func (h *Handler) GetTag(w http.ResponseWriter, r *http.Request)

func (*Handler) GetWorkerStatus

func (h *Handler) GetWorkerStatus(w http.ResponseWriter, r *http.Request)

func (*Handler) ListExecutions

func (h *Handler) ListExecutions(w http.ResponseWriter, r *http.Request)

func (*Handler) ListJobs

func (h *Handler) ListJobs(w http.ResponseWriter, r *http.Request)

ListJobs handles GET /api/jobs

func (*Handler) ListProjects

func (h *Handler) ListProjects(w http.ResponseWriter, r *http.Request)

func (*Handler) ListTags

func (h *Handler) ListTags(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateJob

func (h *Handler) UpdateJob(w http.ResponseWriter, r *http.Request)

UpdateJob handles PATCH /api/jobs/:id

func (*Handler) UpdateProject

func (h *Handler) UpdateProject(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateSystemConfig

func (h *Handler) UpdateSystemConfig(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateTag

func (h *Handler) UpdateTag(w http.ResponseWriter, r *http.Request)

type WebhookHandler added in v1.1.0

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

WebhookHandler handles webhook HTTP requests

func NewWebhookHandler added in v1.1.0

func NewWebhookHandler(service *service.WebhookService) *WebhookHandler

NewWebhookHandler creates a new webhook handler

func (*WebhookHandler) CreateWebhook added in v1.1.0

func (h *WebhookHandler) CreateWebhook(w http.ResponseWriter, r *http.Request)

CreateWebhook handles POST /api/webhooks

func (*WebhookHandler) DeleteWebhook added in v1.1.0

func (h *WebhookHandler) DeleteWebhook(w http.ResponseWriter, r *http.Request)

DeleteWebhook handles DELETE /api/webhooks/:id

func (*WebhookHandler) GetWebhook added in v1.1.0

func (h *WebhookHandler) GetWebhook(w http.ResponseWriter, r *http.Request)

GetWebhook handles GET /api/webhooks/:id

func (*WebhookHandler) GetWebhookEvents added in v1.1.0

func (h *WebhookHandler) GetWebhookEvents(w http.ResponseWriter, r *http.Request)

GetWebhookEvents handles GET /api/webhook-events

func (*WebhookHandler) ListDeliveries added in v1.1.0

func (h *WebhookHandler) ListDeliveries(w http.ResponseWriter, r *http.Request)

ListDeliveries handles GET /api/webhooks/:id/deliveries

func (*WebhookHandler) ListWebhooks added in v1.1.0

func (h *WebhookHandler) ListWebhooks(w http.ResponseWriter, r *http.Request)

ListWebhooks handles GET /api/webhooks

func (*WebhookHandler) TestWebhook added in v1.1.0

func (h *WebhookHandler) TestWebhook(w http.ResponseWriter, r *http.Request)

TestWebhook handles POST /api/webhooks/:id/test

func (*WebhookHandler) UpdateWebhook added in v1.1.0

func (h *WebhookHandler) UpdateWebhook(w http.ResponseWriter, r *http.Request)

UpdateWebhook handles PATCH /api/webhooks/:id

Jump to

Keyboard shortcuts

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