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 ¶
- Variables
- func NewClient() *resty.Client
- func Start(lc fx.Lifecycle, service *Service, logger *zap.Logger) error
- type Service
- func (s *Service) CreatePipeline(ctx context.Context) context.Context
- func (s *Service) DeletePipeline(ctx context.Context) context.Context
- func (s *Service) GetPipeline(ctx context.Context) context.Context
- func (s *Service) TriggerPipeline(ctx context.Context) context.Context
- func (s *Service) UpdatePipeline(ctx context.Context) context.Context
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.
View Source
var Module = fx.Options( fx.Provide(NewClient), fx.Provide(NewService), fx.Invoke(Start), )
Module for fx.
Functions ¶
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
NewService for pipeline.
func (*Service) CreatePipeline ¶ added in v0.10.0
CreatePipeline for cmd.
func (*Service) DeletePipeline ¶ added in v0.10.0
DeletePipeline for cmd.
func (*Service) GetPipeline ¶ added in v0.10.0
GetPipeline for cmd.
func (*Service) TriggerPipeline ¶ added in v0.10.0
TriggerPipeline for cmd.
Click to show internal directories.
Click to hide internal directories.