Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrPipelineNotFound for pipeline. ErrPipelineNotFound = errors.New("pipeline not found") // ErrInvalidPipelineName for pipeline. ErrInvalidPipelineName = errors.New("invalid pipeline name") // ErrMissingJobs for pipeline. ErrMissingJobs = errors.New("missing jobs") // ErrInvalidJobName for pipeline. ErrInvalidJobName = errors.New("invalid job name") // ErrMissingSteps for pipeline. ErrMissingSteps = errors.New("missing steps") // ErrInvalidID for pipeline. ErrInvalidID = errors.New("invalid id") )
View Source
var Module = fx.Options( fx.Provide(NewService), fx.Provide(NewRepository), )
Module for fx.
Functions ¶
Types ¶
type InMemoryRepository ¶
type InMemoryRepository struct {
// contains filtered or unexported fields
}
InMemoryRepository for pipeline.
func (*InMemoryRepository) Create ¶
func (r *InMemoryRepository) Create(p *Pipeline) (*Pipeline, error)
Create a pipeline and set the identifier.
func (*InMemoryRepository) Delete ¶ added in v0.9.0
func (r *InMemoryRepository) Delete(id ID) (*Pipeline, error)
Delete a pipeline.
type Repository ¶
type Repository interface { // Get a pipeline. Get(id ID) (*Pipeline, error) // Create a pipeline. Create(p *Pipeline) (*Pipeline, error) // Update a pipeline. Update(id ID, p *Pipeline) (*Pipeline, error) // Delete a pipeline. Delete(id ID) (*Pipeline, error) }
Repository for pipeline.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service coordinates all the pipeline activities.
Click to show internal directories.
Click to hide internal directories.