Documentation ¶
Index ¶
- Variables
- func NewClient() *resty.Client
- func Start(lc fx.Lifecycle, service *Service, logger *zap.Logger) error
- type Service
- func (s *Service) Create(ctx context.Context) context.Context
- func (s *Service) Delete(ctx context.Context) context.Context
- func (s *Service) Get(ctx context.Context) context.Context
- func (s *Service) Trigger(ctx context.Context) context.Context
- func (s *Service) Update(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 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.
Click to show internal directories.
Click to hide internal directories.