test

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Log --

Functions

func Add

func Add(mgr manager.Manager) error

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

func TestPodNameFor

func TestPodNameFor(test *v1alpha1.Test) string

TestPodNameFor returns the name to use for the testing pod

func TestResourceNameFor

func TestResourceNameFor(test *v1alpha1.Test) string

TestResourceNameFor returns the name to use for generic testing resources

Types

type Action

type Action interface {
	client.Injectable
	log.Injectable

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

	// returns true if the action can handle the test
	CanHandle(build *v1alpha1.Test) bool

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

Action --

func NewEvaluateAction

func NewEvaluateAction() Action

NewEvaluateAction creates a new evaluate action

func NewInitializeAction

func NewInitializeAction() Action

NewInitializeAction creates a new initialize action

func NewMonitorAction

func NewMonitorAction() Action

NewMonitorAction creates a new monitor action

func NewStartAction

func NewStartAction() Action

NewStartAction creates a new start action

type ReconcileIntegrationTest

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

ReconcileIntegrationTest reconciles a IntegrationTest object

func (*ReconcileIntegrationTest) Reconcile

Reconcile reads that state of the cluster for a Integration object and makes changes based on the state read and what is in the Integration.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

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