manager

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PipelineManager

type PipelineManager interface {
	CreatePipeline(projectName string, pipeline *api.Pipeline) (*api.Pipeline, error)
	GetPipeline(projectName string, pipelineName string) (*api.Pipeline, error)
	ListPipelines(projectName string, queryParams api.QueryParams, recentCount, recentSuccessCount, recentFailedCount int) ([]api.Pipeline, int, error)
	UpdatePipeline(projectName string, pipelineName string, newPipeline *api.Pipeline) (*api.Pipeline, error)
	DeletePipeline(projectName string, pipelineName string) error
	ClearPipelinesOfProject(projectName string) error
	PerformPipeline(projectName string, pipelineName string, performParams *api.PipelinePerformParams) error
}

PipelineManager represents the interface to manage pipeline.

func NewPipelineManager

func NewPipelineManager(dataStore *store.DataStore, pipelineRecordManager PipelineRecordManager) (PipelineManager, error)

NewPipelineManager creates a pipeline manager.

type PipelineRecordManager

type PipelineRecordManager interface {
	CreatePipelineRecord(pipelineRecord *api.PipelineRecord) (*api.PipelineRecord, error)
	GetPipelineRecord(pipelineRecordID string) (*api.PipelineRecord, error)
	ListPipelineRecords(projectName string, pipelineName string, queryParams api.QueryParams) ([]api.PipelineRecord, int, error)
	UpdatePipelineRecord(pipelineRecordID string, pipelineRecord *api.PipelineRecord) (*api.PipelineRecord, error)
	DeletePipelineRecord(pipelineRecordID string) error
	ClearPipelineRecordsOfPipeline(pipelineID string) error
	GetPipelineRecordLogs(pipelineRecordID string) (string, error)
}

PipelineRecordManager represents the interface to manage pipeline record.

func NewPipelineRecordManager

func NewPipelineRecordManager(dataStore *store.DataStore) (PipelineRecordManager, error)

NewPipelineRecordManager creates a pipeline record manager.

type ProjectManager

type ProjectManager interface {
	CreateProject(project *api.Project) (*api.Project, error)
	GetProject(projectName string) (*api.Project, error)
	ListProjects(queryParams api.QueryParams) ([]api.Project, int, error)
	UpdateProject(projectName string, newProject *api.Project) (*api.Project, error)
	DeleteProject(projectName string) error
	ListRepos(projectName string) ([]api.Repository, error)
	ListBranches(projectName string, repo string) ([]string, error)
}

ProjectManager represents the interface to manage project.

func NewProjectManager

func NewProjectManager(dataStore *store.DataStore, pipelineManager PipelineManager) (ProjectManager, error)

NewProjectManager creates a project manager.

Jump to

Keyboard shortcuts

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