local

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug bool
)

Functions

func MatchBranchPattern added in v0.5.0

func MatchBranchPattern(branch string, pattern string) bool

func ParseBranchPattern added in v0.5.0

func ParseBranchPattern(branches interface{}) ([]string, error)

func Run

func Run(ctx context.Context, params RunParams) error

Types

type Agent

type Agent struct {
	Dir      string
	Env      []string
	Endpoint string

	sync.Mutex
	// contains filtered or unexported fields
}

func (*Agent) Run

func (a *Agent) Run(ctx context.Context) error

func (*Agent) Stop

func (a *Agent) Stop() error

type Artifact

type Artifact struct {
	ID                string `json:"-"`
	Path              string `json:"path"`
	AbsolutePath      string `json:"absolute_path"`
	GlobPath          string `json:"glob_path"`
	FileSize          int64  `json:"file_size"`
	Sha1Sum           string `json:"sha1sum"`
	URL               string `json:"url,omitempty"`
	UploadDestination string `json:"upload_destination,omitempty"`
	// contains filtered or unexported fields
}

type Build

type Build struct {
	ID     string
	Number int
	URL    string
}

type Job

type Job struct {
	ID               string
	Build            Build
	State            string
	ProjectSlug      string
	PipelineSlug     string
	OrganizationSlug string
	ArtifactPaths    []string
	CreatorName      string
	CreatorEmail     string
	Command          string
	Label            string
	Timeout          int
	Repository       string
	Commit           string
	Branch           string
	Tag              string
	Message          string
	RetryCount       int
	Plugins          []Plugin
	Env              []string
	Artifacts        []Artifact
}

type Plugin

type Plugin struct {
	Name   string
	Params interface{}
}

func (Plugin) Repository

func (p Plugin) Repository() string

type RunParams

type RunParams struct {
	Env         []string
	Metadata    map[string]string
	Dir         string
	Command     string
	Prompt      bool
	StepFilter  *regexp.Regexp
	DryRun      bool
	JobTemplate Job
	ListenPort  int
}

Jump to

Keyboard shortcuts

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