netem

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommonReconciler

func NewCommonReconciler(c client.Client, log logr.Logger, req ctrl.Request,
	recorder record.EventRecorder) *common.Reconciler

NewCommonReconciler would create Reconciler for common package

func NewTwoPhaseReconciler

func NewTwoPhaseReconciler(c client.Client, log logr.Logger, req ctrl.Request,
	recorder record.EventRecorder) *twophase.Reconciler

NewTwoPhaseReconciler would create Reconciler for twophase package

Types

type NetemSpec

type NetemSpec interface {
	ToNetem() (*pb.Netem, error)
}

NetemSpec defines the interface to convert to a Netem protobuf

type Reconciler

type Reconciler struct {
	client.Client
	record.EventRecorder
	Log logr.Logger
}

func (*Reconciler) Apply

func (r *Reconciler) Apply(ctx context.Context, req ctrl.Request, chaos reconciler.InnerObject) error

Apply implements the reconciler.InnerReconciler.Apply

func (*Reconciler) Object

func (r *Reconciler) Object() reconciler.InnerObject

Object implements the reconciler.InnerReconciler.Object

func (*Reconciler) Recover

func (r *Reconciler) Recover(ctx context.Context, req ctrl.Request, chaos reconciler.InnerObject) error

Recover implements the reconciler.InnerReconciler.Recover

Jump to

Keyboard shortcuts

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