endpoint

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	// Apply means the reconciler perform the chaos action
	Apply(ctx context.Context, req ctrl.Request, chaos v1alpha1.InnerObject) error

	// Recover means the reconciler recovers the chaos action
	Recover(ctx context.Context, req ctrl.Request, chaos v1alpha1.InnerObject) error

	// Object would return the instance of chaos
	Object() v1alpha1.InnerObject
}

Endpoint is interface for reconciler

type NewEndpoint

type NewEndpoint func(ctx ctx.Context) Endpoint

NewEndpoint represents a function who creates a new reconciler

Jump to

Keyboard shortcuts

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