buildservice

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCanceled = errors.New("buildservice: canceled by context")
)

Functions

Types

type BuildService

type BuildService struct {
	Cfg       *configuration.AppConfig
	SessMgr   *sessionstore.SessionManager
	Logger    *logrus.Entry
	DBSvc     *dbservice.DBService
	DeploySvc *deploymentservice.DeploymentService
}

func New

func New(cfg *configuration.AppConfig, sessMgr *sessionstore.SessionManager, logger *logrus.Entry,
	ds *dbservice.DBService, dpl *deploymentservice.DeploymentService) *BuildService

func (*BuildService) CloneRepository

func (bs *BuildService) CloneRepository(ctx context.Context, branch string, repositoryUrl string, path string) error

func (*BuildService) GetBasePath

func (bs *BuildService) GetBasePath() string

func (*BuildService) GetRepositoryUrl

func (bs *BuildService) GetRepositoryUrl(ctx context.Context, cont *entity.BuildDefinitionContent, withCredentials bool) (string, error)

Jump to

Keyboard shortcuts

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