repo

package
v0.0.0-...-dd04829 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PENDING  ResultStatus = "PENDING"
	RUNNING               = "RUNNING"
	FINISHED              = "FINISHED"
	ERROR                 = "ERROR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildRepo

type BuildRepo interface {
	GetRepoByName(name string) Repo
	List() []Repo
}

func NewBuildRepo

func NewBuildRepo(config *config.Config, cr *cron.Cron) BuildRepo

type BuildResult

type BuildResult interface {
	Lines() []BuildResultLine
	Reason() string
	Starttime() time.Time
	Status() ResultStatus
}

type BuildResultLine

type BuildResultLine interface {
	Line() string
	Pipe() process.PipeType
	Time() time.Time
}

type Repo

type Repo interface {
	Build(reason string)
	GetBuildScript() string
	ForceCleanBuild() bool
	GetName() string
	GetPath() string
	GetURL() string
	GetTriggers() []config.Trigger
	GetLastNBuildResults(n int) []BuildResult
}

type ResultLine

type ResultLine interface {
	GetPipeType() process.PipeType
	GetTimestamp() time.Time
	GetLine() string
}

type ResultStatus

type ResultStatus string

Jump to

Keyboard shortcuts

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