service

package
v0.3.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineService

type PipelineService struct {
	PipelineRepository repository.Operations
	ModelServiceClient modelPB.ModelServiceClient
}

func (*PipelineService) CreatePipeline

func (p *PipelineService) CreatePipeline(pipeline model.Pipeline) (model.Pipeline, error)

func (*PipelineService) DeletePipeline

func (p *PipelineService) DeletePipeline(namespace string, pipelineName string) error

func (*PipelineService) GetPipelineByName

func (p *PipelineService) GetPipelineByName(namespace string, pipelineName string) (model.Pipeline, error)

func (*PipelineService) ListPipelines

func (p *PipelineService) ListPipelines(query model.ListPipelineQuery) ([]model.Pipeline, uint64, uint64, error)

func (*PipelineService) TriggerPipeline

func (p *PipelineService) TriggerPipeline(namespace string, req *pipelinePB.TriggerPipelineRequest, pipeline model.Pipeline) (*modelPB.TriggerModelResponse, error)

func (*PipelineService) TriggerPipelineByUpload

func (p *PipelineService) TriggerPipelineByUpload(namespace string, image bytes.Buffer, pipeline model.Pipeline) (*modelPB.TriggerModelBinaryFileUploadResponse, error)

func (*PipelineService) UpdatePipeline

func (p *PipelineService) UpdatePipeline(pipeline model.Pipeline) (model.Pipeline, error)

func (*PipelineService) ValidateModel

func (p *PipelineService) ValidateModel(namespace string, selectedModels []*model.Model) error

func (*PipelineService) ValidateTriggerPipeline

func (p *PipelineService) ValidateTriggerPipeline(namespace string, pipelineName string, pipeline model.Pipeline) error

type Services

type Services interface {
	CreatePipeline(pipeline model.Pipeline) (model.Pipeline, error)
	ListPipelines(query model.ListPipelineQuery) ([]model.Pipeline, uint64, uint64, error)
	GetPipelineByName(namespace string, pipelineName string) (model.Pipeline, error)
	UpdatePipeline(pipeline model.Pipeline) (model.Pipeline, error)
	DeletePipeline(namespace string, pipelineName string) error
	TriggerPipeline(namespace string, trigger *pipelinePB.TriggerPipelineRequest, pipeline model.Pipeline) (*modelPB.TriggerModelResponse, error)
	ValidateTriggerPipeline(namespace string, pipelineName string, pipeline model.Pipeline) error
	TriggerPipelineByUpload(namespace string, buf bytes.Buffer, pipeline model.Pipeline) (*modelPB.TriggerModelBinaryFileUploadResponse, error)
	ValidateModel(namespace string, selectedModel []*model.Model) error
}

func NewPipelineService

func NewPipelineService(r repository.Operations, modelServiceClient modelPB.ModelServiceClient) Services

Jump to

Keyboard shortcuts

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