pipelinehdl

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineHTTPHandler

type PipelineHTTPHandler struct {
	handler.HTTPHandler
	// contains filtered or unexported fields
}

PipelineHTTPHandler is an HTTP handler that exposes pipeline endpoints.

func NewPipelineHTTPHandler

func NewPipelineHTTPHandler(
	pipelineService port.PipelineService,
	jobQueue port.JobQueue) *PipelineHTTPHandler

NewPipelineHTTPHandler creates and returns a new PipelineHTTPHandler.

func (*PipelineHTTPHandler) Create

func (hdl *PipelineHTTPHandler) Create(c *gin.Context)

Create creates a new pipeline and all of its jobs.

func (*PipelineHTTPHandler) Delete

func (hdl *PipelineHTTPHandler) Delete(c *gin.Context)

Delete deletes a pipelines and all its jobs.

func (*PipelineHTTPHandler) Get

func (hdl *PipelineHTTPHandler) Get(c *gin.Context)

Get fetches a pipeline.

func (*PipelineHTTPHandler) GetPipelineJobs

func (hdl *PipelineHTTPHandler) GetPipelineJobs(c *gin.Context)

GetPipelineJobs fetches the jobs of a specified pipeline.

func (*PipelineHTTPHandler) GetPipelines

func (hdl *PipelineHTTPHandler) GetPipelines(c *gin.Context)

GetPipelines fetches all pipelines, optionally filters them by status.

func (*PipelineHTTPHandler) Update

func (hdl *PipelineHTTPHandler) Update(c *gin.Context)

Update updates a pipeline.

type PipelinegRPCHandler

type PipelinegRPCHandler struct {
	pb.UnimplementedPipelineServer
	// contains filtered or unexported fields
}

PipelinegRPCHandler is a gRPC handler that exposes job endpoints.

func NewPipelinegRPCHandler

func NewPipelinegRPCHandler(pipelineService port.PipelineService, jobQueue port.JobQueue) *PipelinegRPCHandler

NewPipelinegRPCHandler creates and returns a new PipelinegRPCHandler.

func (*PipelinegRPCHandler) Create

Create creates a new pipeline and all of its jobs.

func (*PipelinegRPCHandler) Delete

Delete deletes a pipelines and all its jobs.

func (*PipelinegRPCHandler) Get

Get fetches a pipeline.

func (*PipelinegRPCHandler) GetPipelineJobs

GetPipelineJobs fetches the jobs of a specified pipeline.

func (*PipelinegRPCHandler) GetPipelines

GetPipelines fetches all pipelines, optionally filters them by status.

func (*PipelinegRPCHandler) Update

Update updates a pipeline.

type RequestBodyDTO

type RequestBodyDTO struct {
	Name        string                   `json:"name"`
	Description string                   `json:"description"`
	RunAt       string                   `json:"run_at"`
	Jobs        []*jobhdl.RequestBodyDTO `json:"jobs"`
}

RequestBodyDTO is the data transfer object used for a job creation or update.

func NewRequestBodyDTO

func NewRequestBodyDTO() *RequestBodyDTO

NewRequestBodyDTO initializes and returns a new BodyDTO instance.

type ResponseBodyDTO

type ResponseBodyDTO *domain.Pipeline

ResponseBodyDTO is the response data transfer object used for a pipeline creation or update.

func BuildResponseBodyDTO

func BuildResponseBodyDTO(resource *domain.Pipeline) ResponseBodyDTO

BuildResponseDTO creates a new ResponseDTO.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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