script

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 15 Imported by: 0

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