script

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 17 Imported by: 3

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.Interface, 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, config []byte, event, commitish, ref string, payload []byte, logLevel string) error

SendScript converts a script into a Brigade Build object and submits it TODO: ripe for refactor to reduce amount of params... create/use Script struct? https://github.com/brigadecore/brigade/issues/1021

Jump to

Keyboard shortcuts

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