build

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 42 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = log.Log.WithName("controller").WithName("build")

Log --

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Build Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type Action

type Action interface {
	client.Injectable
	log.Injectable
	event.Injectable

	// Name returns user friendly name for the action
	Name() string

	// CanHandle returns true if the action can handle the build
	CanHandle(build *v1.Build) bool

	// Handle executes the handling function
	Handle(ctx context.Context, build *v1.Build) (*v1.Build, error)
}

Action --

Jump to

Keyboard shortcuts

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