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 ¶
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) SendScript ¶
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
Click to show internal directories.
Click to hide internal directories.