handler

package
v0.11.2-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBToPBPipeline

func DBToPBPipeline(dbPipeline *datamodel.Pipeline) *pipelinePB.Pipeline

DBToPBPipeline converts db data model to protobuf data model

func HandleTriggerPipelineBinaryFileUpload

func HandleTriggerPipelineBinaryFileUpload(s service.Service, w http.ResponseWriter, req *http.Request, pathParams map[string]string)

HandleTriggerPipelineBinaryFileUpload is for POST multipart form data

func NewPrivateHandler

NewPrivateHandler initiates a handler instance

func NewPublicHandler

NewPublicHandler initiates a handler instance

func PBToDBPipeline

func PBToDBPipeline(owner string, pbPipeline *pipelinePB.Pipeline) *datamodel.Pipeline

PBToDBPipeline converts protobuf data model to db data model

Types

type PrivateHandler

type PrivateHandler struct {
	pipelinePB.UnimplementedPipelinePrivateServiceServer
	// contains filtered or unexported fields
}

PrivateHandler handles private API

func (*PrivateHandler) GetService

func (h *PrivateHandler) GetService() service.Service

GetService returns the service

func (*PrivateHandler) SetService

func (h *PrivateHandler) SetService(s service.Service)

SetService sets the service

type PublicHandler

type PublicHandler struct {
	pipelinePB.UnimplementedPipelinePublicServiceServer
	// contains filtered or unexported fields
}

PublicHandler handles public API

func (*PublicHandler) GetPipeline

func (*PublicHandler) GetService

func (h *PublicHandler) GetService() service.Service

GetService returns the service

func (*PublicHandler) ListPipelines

func (*PublicHandler) Liveness

func (*PublicHandler) Readiness

func (*PublicHandler) SetService

func (h *PublicHandler) SetService(s service.Service)

SetService sets the service

func (*PublicHandler) WatchPipeline

Jump to

Keyboard shortcuts

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