pipeline

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func Register

func Register(service *Service)

Register routes.

Types

type CreatePipelineRequest

type CreatePipelineRequest struct {
	Pipeline *Pipeline `json:"pipeline,omitempty"`
}

CreatePipelineRequest with a definition.

type CreatePipelineResponse

type CreatePipelineResponse struct {
	Meta     map[string]string `json:"meta,omitempty"`
	Pipeline *Pipeline         `json:"pipeline,omitempty"`
}

CreatePipelineResponse a map of meta and the new pipeline.

type DeletePipelineResponse

type DeletePipelineResponse struct {
	Meta     map[string]string `json:"meta,omitempty"`
	Pipeline *Pipeline         `json:"pipeline,omitempty"`
}

DeletePipelineResponse a map of meta and the updated pipeline.

type GetPipelineResponse

type GetPipelineResponse struct {
	Meta     map[string]string `json:"meta,omitempty"`
	Pipeline *Pipeline         `json:"pipeline,omitempty"`
}

GetPipelineResponse a map of meta and the pipeline.

type Job

type Job struct {
	Name  string   `json:"name,omitempty"`
	Steps []string `json:"steps,omitempty"`
}

Job of the pipeline.

type Pipeline

type Pipeline struct {
	Name string `json:"name,omitempty"`
	Jobs []*Job `json:"jobs,omitempty"`
	ID   uint64 `json:"id,omitempty"`
}

Pipeline to be executed.

type Service

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

Service for v1.

func NewService

func NewService(service *pipeline.Service) *Service

NewService for v1.

type TriggerPipelineResponse added in v0.11.0

type TriggerPipelineResponse struct {
	Meta     map[string]string `json:"meta,omitempty"`
	Pipeline *Pipeline         `json:"pipeline,omitempty"`
}

TriggerPipelineResponse a map of meta and the pipeline with the output in steps.

type UpdatePipelineRequest

type UpdatePipelineRequest struct {
	Pipeline *Pipeline `json:"pipeline,omitempty"`
}

UpdatePipelineRequest with a definition.

type UpdatePipelineResponse

type UpdatePipelineResponse struct {
	Meta     map[string]string `json:"meta,omitempty"`
	Pipeline *Pipeline         `json:"pipeline,omitempty"`
}

UpdatePipelineResponse a map of meta and the updated pipeline.

Jump to

Keyboard shortcuts

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