pipeline

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pipeline interacts with the api. The service does not check the responses from the api, as this is tested at the api.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CreateFlag defines the pipeline path to create a pipeline.
	CreateFlag = flags.String()

	// GetFlag defines a pipeline id to be retrieved.
	GetFlag = flags.String()

	// GetFlag defines the id and pipeline path to update.
	UpdateFlag = flags.String()

	// DeleteFlag defines a pipeline to be deleted by the provided id.
	DeleteFlag = flags.String()

	// TriggerFlag defines a pipeline to be triggered by the provided id.
	TriggerFlag = flags.String()
)
View Source
var ErrInvalidUpdateFormat = errors.New("invalid update format, this should be id:path")

ErrInvalidUpdateFormat indicates that the format is not how it's expected.

Module for fx.

Functions

func NewClient added in v0.8.0

func NewClient() *resty.Client

NewClient for pipeline.

func Start

func Start(lc fx.Lifecycle, service *Service, logger *zap.Logger) error

Start for pipeline.

Types

type Service added in v0.8.0

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

Service for pipeline.

func NewService added in v0.8.0

func NewService(client *resty.Client, cfg *pipeline.Config) (*Service, error)

NewService for pipeline.

func (*Service) CreatePipeline added in v0.10.0

func (s *Service) CreatePipeline(ctx context.Context) context.Context

CreatePipeline for cmd.

func (*Service) DeletePipeline added in v0.10.0

func (s *Service) DeletePipeline(ctx context.Context) context.Context

DeletePipeline for cmd.

func (*Service) GetPipeline added in v0.10.0

func (s *Service) GetPipeline(ctx context.Context) context.Context

GetPipeline for cmd.

func (*Service) TriggerPipeline added in v0.10.0

func (s *Service) TriggerPipeline(ctx context.Context) context.Context

TriggerPipeline for cmd.

func (*Service) UpdatePipeline added in v0.10.0

func (s *Service) UpdatePipeline(ctx context.Context) context.Context

UpdatePipeline for cmd.

Jump to

Keyboard shortcuts

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