adapter

package
v0.0.0-...-72c4d97 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowJobSelectionPrompt

func ShowJobSelectionPrompt(jobs []models.Job) (*models.Job, error)

func ShowPipelineSelectionPrompt

func ShowPipelineSelectionPrompt(pipelines []*models.Pipeline) (*models.Pipeline, error)

Types

type App

type App struct {
	GitlabAPIToken   string
	GitlabProjectURL string
	ProjectID        string
}

func NewApp

func NewApp() *App

func (App) EnrichPipelinesByJobs

func (app App) EnrichPipelinesByJobs(pipelines []*models.Pipeline, concurrencyLimit int) ([]*models.Pipeline, error)

TODO: needs refactoring

func (App) EnrichPipelinesByUser

func (app App) EnrichPipelinesByUser(pipelines []*models.Pipeline, concurrencyLimit int) ([]*models.Pipeline, error)

TODO: needs refactoring

func (*App) GetJobs

func (app *App) GetJobs(pipelineId string) ([]models.Job, error)

func (App) GetLastFailLog

func (app App) GetLastFailLog() (string, error)

func (App) GetLog

func (app App) GetLog(jobID string) (string, error)

func (App) GetPipeline

func (app App) GetPipeline(id string) (*models.Pipeline, error)

func (App) GetPipelines

func (app App) GetPipelines(status string, count int) ([]*models.Pipeline, error)

func (*App) GetProjects

func (app *App) GetProjects() ([]models.Project, error)

Jump to

Keyboard shortcuts

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