...

Package types

import "github.com/chaos-mesh/chaos-mesh/controllers/chaosimpl/types"
Overview
Index

Overview ▾

Index ▾

Package files

types.go

type ChaosImpl

type ChaosImpl interface {
    Apply(ctx context.Context, index int, records []*v1alpha1.Record, obj v1alpha1.InnerObject) (v1alpha1.Phase, error)
    Recover(ctx context.Context, index int, records []*v1alpha1.Record, obj v1alpha1.InnerObject) (v1alpha1.Phase, error)
}

type ChaosImplPair

type ChaosImplPair struct {
    Name   string
    Object v1alpha1.InnerObjectWithSelector
    Impl   ChaosImpl

    ObjectList v1alpha1.GenericChaosList
    Controlls  []client.Object
}