script

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2019 License: MIT Imports: 15 Imported by: 0 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

This section is empty.

Functions

This section is empty.

Types

type BuildFailure

type BuildFailure struct {
	// contains filtered or unexported fields
}

BuildFailure represents a failure from a Brigade build

func NewBuildFailure

func NewBuildFailure(message string, a ...interface{}) BuildFailure

NewBuildFailure returns a BuildFailure object containing a given message

func (BuildFailure) Error

func (f BuildFailure) Error() string

type Runner added in v0.19.0

type Runner struct {
	ScriptLogDestination io.Writer
	RunnerLogDestination io.Writer

	NoProgress bool
	Background bool
	Verbose    bool
	// contains filtered or unexported fields
}

Runner represents an object that delegates running a script on Kubernetes

func NewDelegatedRunner

func NewDelegatedRunner(c *kubernetes.Clientset, namespace string) (*Runner, error)

NewDelegatedRunner returns a new Runner object with the provided Kubernetes Clientset and namespace

func (*Runner) GetBuild added in v0.19.0

func (a *Runner) GetBuild(bid string) (*brigade.Build, error)

GetBuild retrieves a given build by id from storage

func (*Runner) SendBuild added in v0.19.0

func (a *Runner) SendBuild(b *brigade.Build) error

SendBuild creates and runs a given Brigade build

func (*Runner) SendScript added in v0.19.0

func (a *Runner) SendScript(projectName string, data []byte, event, commitish, ref string, payload []byte, logLevel string) error

SendScript converts a script into a Brigade Build object and submits it

Jump to

Keyboard shortcuts

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