...

Package recorder

import "github.com/chaos-mesh/chaos-mesh/controllers/utils/recorder"
Overview
Index

Overview ▾

Index ▾

Variables
func NewDebugRecorder() *debugRecorder
type Applied
    func (a Applied) Message() string
    func (a Applied) Reason() string
    func (a Applied) Type() string
type ChaosCustomResourceCreateFailed
    func (it ChaosCustomResourceCreateFailed) Message() string
    func (it ChaosCustomResourceCreateFailed) Reason() string
    func (it ChaosCustomResourceCreateFailed) Type() string
type ChaosCustomResourceCreated
    func (it ChaosCustomResourceCreated) Message() string
    func (it ChaosCustomResourceCreated) Reason() string
    func (it ChaosCustomResourceCreated) Type() string
type ChaosCustomResourceDeleteFailed
    func (it ChaosCustomResourceDeleteFailed) Message() string
    func (it ChaosCustomResourceDeleteFailed) Reason() string
    func (it ChaosCustomResourceDeleteFailed) Type() string
type ChaosCustomResourceDeleted
    func (it ChaosCustomResourceDeleted) Message() string
    func (it ChaosCustomResourceDeleted) Reason() string
    func (it ChaosCustomResourceDeleted) Type() string
type ChaosEvent
    func FromAnnotations(annotations map[string]string) (ChaosEvent, error)
type ChaosRecorder
type ConditionalBranchesSelected
    func (it ConditionalBranchesSelected) Message() string
    func (it ConditionalBranchesSelected) Reason() string
    func (it ConditionalBranchesSelected) Type() string
type DeadlineExceed
    func (it DeadlineExceed) Message() string
    func (it DeadlineExceed) Reason() string
    func (it DeadlineExceed) Type() string
type Deleted
    func (d Deleted) Message() string
    func (d Deleted) Reason() string
    func (d Deleted) Type() string
type EntryCreated
    func (it EntryCreated) Message() string
    func (it EntryCreated) Reason() string
    func (it EntryCreated) Type() string
type Failed
    func (f Failed) Message() string
    func (f Failed) Reason() string
    func (f Failed) Type() string
type FinalizerInited
    func (p FinalizerInited) Message() string
    func (p FinalizerInited) Reason() string
    func (p FinalizerInited) Type() string
type FinalizerRemoved
    func (p FinalizerRemoved) Message() string
    func (p FinalizerRemoved) Reason() string
    func (p FinalizerRemoved) Type() string
type InvalidEntry
    func (it InvalidEntry) Message() string
    func (it InvalidEntry) Reason() string
    func (it InvalidEntry) Type() string
type MissedSchedule
    func (m MissedSchedule) Message() string
    func (m MissedSchedule) Reason() string
    func (m MissedSchedule) Type() string
type NodeAccomplished
    func (it NodeAccomplished) Message() string
    func (it NodeAccomplished) Reason() string
    func (it NodeAccomplished) Type() string
type NodesCreated
    func (it NodesCreated) Message() string
    func (it NodesCreated) Reason() string
    func (it NodesCreated) Type() string
type NotSupported
    func (r NotSupported) Message() string
    func (r NotSupported) Reason() string
    func (r NotSupported) Type() string
type ParentNodeAborted
    func (it ParentNodeAborted) Message() string
    func (it ParentNodeAborted) Reason() string
    func (it ParentNodeAborted) Type() string
type ParentNodeDeadlineExceed
    func (it ParentNodeDeadlineExceed) Message() string
    func (it ParentNodeDeadlineExceed) Reason() string
    func (it ParentNodeDeadlineExceed) Type() string
type Paused
    func (p Paused) Message() string
    func (p Paused) Reason() string
    func (p Paused) Type() string
type RecorderBuilder
    func NewRecorderBuilder(c client.Client, logger logr.Logger, scheme *runtime.Scheme, metricsCollector *metrics.ChaosControllerManagerMetricsCollector) *RecorderBuilder
    func (b *RecorderBuilder) Build(name string) ChaosRecorder
type Recovered
    func (r Recovered) Message() string
    func (r Recovered) Reason() string
    func (r Recovered) Type() string
type RerunBySpecChanged
    func (it RerunBySpecChanged) Message() string
    func (it RerunBySpecChanged) Reason() string
    func (it RerunBySpecChanged) Type() string
type ScheduleForbid
    func (s ScheduleForbid) Message() string
    func (s ScheduleForbid) Reason() string
    func (s ScheduleForbid) Type() string
type ScheduleSkipRemoveHistory
    func (s ScheduleSkipRemoveHistory) Message() string
    func (s ScheduleSkipRemoveHistory) Reason() string
    func (s ScheduleSkipRemoveHistory) Type() string
type ScheduleSpawn
    func (s ScheduleSpawn) Message() string
    func (s ScheduleSpawn) Reason() string
    func (s ScheduleSpawn) Type() string
type Started
    func (p Started) Message() string
    func (p Started) Reason() string
    func (p Started) Type() string
type StatusCheckCompleted
    func (it StatusCheckCompleted) Message() string
    func (it StatusCheckCompleted) Reason() string
    func (it StatusCheckCompleted) Type() string
type StatusCheckCreated
    func (it StatusCheckCreated) Message() string
    func (it StatusCheckCreated) Reason() string
    func (it StatusCheckCreated) Type() string
type StatusCheckCreatedFailed
    func (it StatusCheckCreatedFailed) Message() string
    func (it StatusCheckCreatedFailed) Reason() string
    func (it StatusCheckCreatedFailed) Type() string
type StatusCheckDeleted
    func (it StatusCheckDeleted) Message() string
    func (it StatusCheckDeleted) Reason() string
    func (it StatusCheckDeleted) Type() string
type StatusCheckDeletedFailed
    func (it StatusCheckDeletedFailed) Message() string
    func (it StatusCheckDeletedFailed) Reason() string
    func (it StatusCheckDeletedFailed) Type() string
type StatusCheckDurationExceed
    func (it StatusCheckDurationExceed) Message() string
    func (it StatusCheckDurationExceed) Reason() string
    func (it StatusCheckDurationExceed) Type() string
type StatusCheckExecutionFailed
    func (it StatusCheckExecutionFailed) Message() string
    func (it StatusCheckExecutionFailed) Reason() string
    func (it StatusCheckExecutionFailed) Type() string
type StatusCheckExecutionSucceed
    func (it StatusCheckExecutionSucceed) Message() string
    func (it StatusCheckExecutionSucceed) Reason() string
    func (it StatusCheckExecutionSucceed) Type() string
type StatusCheckFailureThresholdExceed
    func (it StatusCheckFailureThresholdExceed) Message() string
    func (it StatusCheckFailureThresholdExceed) Reason() string
    func (it StatusCheckFailureThresholdExceed) Type() string
type StatusCheckSuccessThresholdExceed
    func (it StatusCheckSuccessThresholdExceed) Message() string
    func (it StatusCheckSuccessThresholdExceed) Reason() string
    func (it StatusCheckSuccessThresholdExceed) Type() string
type TaskPodPodCompleted
    func (it TaskPodPodCompleted) Message() string
    func (it TaskPodPodCompleted) Reason() string
    func (it TaskPodPodCompleted) Type() string
type TaskPodSpawnFailed
    func (it TaskPodSpawnFailed) Message() string
    func (it TaskPodSpawnFailed) Reason() string
    func (it TaskPodSpawnFailed) Type() string
type TaskPodSpawned
    func (it TaskPodSpawned) Message() string
    func (it TaskPodSpawned) Reason() string
    func (it TaskPodSpawned) Type() string
type TimeUp
    func (t TimeUp) Message() string
    func (t TimeUp) Reason() string
    func (t TimeUp) Type() string
type Updated
    func (u Updated) Message() string
    func (u Updated) Reason() string
    func (u Updated) Type() string
type WorkflowAborted
    func (it WorkflowAborted) Message() string
    func (it WorkflowAborted) Reason() string
    func (it WorkflowAborted) Type() string
type WorkflowAccomplished
    func (it WorkflowAccomplished) Message() string
    func (it WorkflowAccomplished) Reason() string
    func (it WorkflowAccomplished) Type() string

Package files

annotations.go common.go controller.go desiredphase.go error.go finalizer.go recorder.go schedule.go statuscheck.go workflow.go

Variables

var ErrInvalidType = errors.New("invalid type of fields")
var ErrUknownType = errors.New("uknown type of fields")

func NewDebugRecorder

func NewDebugRecorder() *debugRecorder

type Applied

type Applied struct {
    Id string
}

func (Applied) Message

func (a Applied) Message() string

func (Applied) Reason

func (a Applied) Reason() string

func (Applied) Type

func (a Applied) Type() string

type ChaosCustomResourceCreateFailed

type ChaosCustomResourceCreateFailed struct {
}

func (ChaosCustomResourceCreateFailed) Message

func (it ChaosCustomResourceCreateFailed) Message() string

func (ChaosCustomResourceCreateFailed) Reason

func (it ChaosCustomResourceCreateFailed) Reason() string

func (ChaosCustomResourceCreateFailed) Type

func (it ChaosCustomResourceCreateFailed) Type() string

type ChaosCustomResourceCreated

type ChaosCustomResourceCreated struct {
    Name string
    Kind string
}

func (ChaosCustomResourceCreated) Message

func (it ChaosCustomResourceCreated) Message() string

func (ChaosCustomResourceCreated) Reason

func (it ChaosCustomResourceCreated) Reason() string

func (ChaosCustomResourceCreated) Type

func (it ChaosCustomResourceCreated) Type() string

type ChaosCustomResourceDeleteFailed

type ChaosCustomResourceDeleteFailed struct {
    Name string
    Kind string
}

func (ChaosCustomResourceDeleteFailed) Message

func (it ChaosCustomResourceDeleteFailed) Message() string

func (ChaosCustomResourceDeleteFailed) Reason

func (it ChaosCustomResourceDeleteFailed) Reason() string

func (ChaosCustomResourceDeleteFailed) Type

func (it ChaosCustomResourceDeleteFailed) Type() string

type ChaosCustomResourceDeleted

type ChaosCustomResourceDeleted struct {
    Name string
    Kind string
}

func (ChaosCustomResourceDeleted) Message

func (it ChaosCustomResourceDeleted) Message() string

func (ChaosCustomResourceDeleted) Reason

func (it ChaosCustomResourceDeleted) Reason() string

func (ChaosCustomResourceDeleted) Type

func (it ChaosCustomResourceDeleted) Type() string

type ChaosEvent

type ChaosEvent interface {
    Type() string
    Reason() string
    Message() string
}

func FromAnnotations

func FromAnnotations(annotations map[string]string) (ChaosEvent, error)

FromAnnotations will iterate over all the registered event, return `nil` if there is no suitable event.

type ChaosRecorder

type ChaosRecorder interface {
    Event(object runtime.Object, ev ChaosEvent)
}

type ConditionalBranchesSelected

type ConditionalBranchesSelected struct {
    SelectedBranches []string
}

func (ConditionalBranchesSelected) Message

func (it ConditionalBranchesSelected) Message() string

func (ConditionalBranchesSelected) Reason

func (it ConditionalBranchesSelected) Reason() string

func (ConditionalBranchesSelected) Type

func (it ConditionalBranchesSelected) Type() string

type DeadlineExceed

type DeadlineExceed struct {
}

func (DeadlineExceed) Message

func (it DeadlineExceed) Message() string

func (DeadlineExceed) Reason

func (it DeadlineExceed) Reason() string

func (DeadlineExceed) Type

func (it DeadlineExceed) Type() string

type Deleted

type Deleted struct {
}

func (Deleted) Message

func (d Deleted) Message() string

func (Deleted) Reason

func (d Deleted) Reason() string

func (Deleted) Type

func (d Deleted) Type() string

type EntryCreated

type EntryCreated struct {
    Entry string
}

func (EntryCreated) Message

func (it EntryCreated) Message() string

func (EntryCreated) Reason

func (it EntryCreated) Reason() string

func (EntryCreated) Type

func (it EntryCreated) Type() string

type Failed

type Failed struct {
    Activity string

    Err string
}

func (Failed) Message

func (f Failed) Message() string

func (Failed) Reason

func (f Failed) Reason() string

func (Failed) Type

func (f Failed) Type() string

type FinalizerInited

type FinalizerInited struct {
}

func (FinalizerInited) Message

func (p FinalizerInited) Message() string

func (FinalizerInited) Reason

func (p FinalizerInited) Reason() string

func (FinalizerInited) Type

func (p FinalizerInited) Type() string

type FinalizerRemoved

type FinalizerRemoved struct {
}

func (FinalizerRemoved) Message

func (p FinalizerRemoved) Message() string

func (FinalizerRemoved) Reason

func (p FinalizerRemoved) Reason() string

func (FinalizerRemoved) Type

func (p FinalizerRemoved) Type() string

type InvalidEntry

type InvalidEntry struct {
    EntryTemplate string
}

func (InvalidEntry) Message

func (it InvalidEntry) Message() string

func (InvalidEntry) Reason

func (it InvalidEntry) Reason() string

func (InvalidEntry) Type

func (it InvalidEntry) Type() string

type MissedSchedule

type MissedSchedule struct {
    MissedRun time.Time
}

func (MissedSchedule) Message

func (m MissedSchedule) Message() string

func (MissedSchedule) Reason

func (m MissedSchedule) Reason() string

func (MissedSchedule) Type

func (m MissedSchedule) Type() string

type NodeAccomplished

type NodeAccomplished struct {
}

func (NodeAccomplished) Message

func (it NodeAccomplished) Message() string

func (NodeAccomplished) Reason

func (it NodeAccomplished) Reason() string

func (NodeAccomplished) Type

func (it NodeAccomplished) Type() string

type NodesCreated

type NodesCreated struct {
    ChildNodes []string
}

func (NodesCreated) Message

func (it NodesCreated) Message() string

func (NodesCreated) Reason

func (it NodesCreated) Reason() string

func (NodesCreated) Type

func (it NodesCreated) Type() string

type NotSupported

type NotSupported struct {
    Activity string
}

func (NotSupported) Message

func (r NotSupported) Message() string

func (NotSupported) Reason

func (r NotSupported) Reason() string

func (NotSupported) Type

func (r NotSupported) Type() string

type ParentNodeAborted

type ParentNodeAborted struct {
    ParentNodeName string
}

func (ParentNodeAborted) Message

func (it ParentNodeAborted) Message() string

func (ParentNodeAborted) Reason

func (it ParentNodeAborted) Reason() string

func (ParentNodeAborted) Type

func (it ParentNodeAborted) Type() string

type ParentNodeDeadlineExceed

type ParentNodeDeadlineExceed struct {
    ParentNodeName string
}

func (ParentNodeDeadlineExceed) Message

func (it ParentNodeDeadlineExceed) Message() string

func (ParentNodeDeadlineExceed) Reason

func (it ParentNodeDeadlineExceed) Reason() string

func (ParentNodeDeadlineExceed) Type

func (it ParentNodeDeadlineExceed) Type() string

type Paused

type Paused struct {
}

func (Paused) Message

func (p Paused) Message() string

func (Paused) Reason

func (p Paused) Reason() string

func (Paused) Type

func (p Paused) Type() string

type RecorderBuilder

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

func NewRecorderBuilder

func NewRecorderBuilder(c client.Client, logger logr.Logger, scheme *runtime.Scheme, metricsCollector *metrics.ChaosControllerManagerMetricsCollector) *RecorderBuilder

func (*RecorderBuilder) Build

func (b *RecorderBuilder) Build(name string) ChaosRecorder

type Recovered

type Recovered struct {
    Id string
}

func (Recovered) Message

func (r Recovered) Message() string

func (Recovered) Reason

func (r Recovered) Reason() string

func (Recovered) Type

func (r Recovered) Type() string

type RerunBySpecChanged

type RerunBySpecChanged struct {
    CleanedChildrenNode []string
}

func (RerunBySpecChanged) Message

func (it RerunBySpecChanged) Message() string

func (RerunBySpecChanged) Reason

func (it RerunBySpecChanged) Reason() string

func (RerunBySpecChanged) Type

func (it RerunBySpecChanged) Type() string

type ScheduleForbid

type ScheduleForbid struct {
    RunningName string
}

func (ScheduleForbid) Message

func (s ScheduleForbid) Message() string

func (ScheduleForbid) Reason

func (s ScheduleForbid) Reason() string

func (ScheduleForbid) Type

func (s ScheduleForbid) Type() string

type ScheduleSkipRemoveHistory

type ScheduleSkipRemoveHistory struct {
    RunningName string
}

func (ScheduleSkipRemoveHistory) Message

func (s ScheduleSkipRemoveHistory) Message() string

func (ScheduleSkipRemoveHistory) Reason

func (s ScheduleSkipRemoveHistory) Reason() string

func (ScheduleSkipRemoveHistory) Type

func (s ScheduleSkipRemoveHistory) Type() string

type ScheduleSpawn

type ScheduleSpawn struct {
    Name string
}

func (ScheduleSpawn) Message

func (s ScheduleSpawn) Message() string

func (ScheduleSpawn) Reason

func (s ScheduleSpawn) Reason() string

func (ScheduleSpawn) Type

func (s ScheduleSpawn) Type() string

type Started

type Started struct {
}

func (Started) Message

func (p Started) Message() string

func (Started) Reason

func (p Started) Reason() string

func (Started) Type

func (p Started) Type() string

type StatusCheckCompleted

type StatusCheckCompleted struct {
    Msg v1alpha1.StatusCheckReason
}

func (StatusCheckCompleted) Message

func (it StatusCheckCompleted) Message() string

func (StatusCheckCompleted) Reason

func (it StatusCheckCompleted) Reason() string

func (StatusCheckCompleted) Type

func (it StatusCheckCompleted) Type() string

type StatusCheckCreated

type StatusCheckCreated struct {
    Name string
}

func (StatusCheckCreated) Message

func (it StatusCheckCreated) Message() string

func (StatusCheckCreated) Reason

func (it StatusCheckCreated) Reason() string

func (StatusCheckCreated) Type

func (it StatusCheckCreated) Type() string

type StatusCheckCreatedFailed

type StatusCheckCreatedFailed struct {
    Name string
}

func (StatusCheckCreatedFailed) Message

func (it StatusCheckCreatedFailed) Message() string

func (StatusCheckCreatedFailed) Reason

func (it StatusCheckCreatedFailed) Reason() string

func (StatusCheckCreatedFailed) Type

func (it StatusCheckCreatedFailed) Type() string

type StatusCheckDeleted

type StatusCheckDeleted struct {
    Name string
}

func (StatusCheckDeleted) Message

func (it StatusCheckDeleted) Message() string

func (StatusCheckDeleted) Reason

func (it StatusCheckDeleted) Reason() string

func (StatusCheckDeleted) Type

func (it StatusCheckDeleted) Type() string

type StatusCheckDeletedFailed

type StatusCheckDeletedFailed struct {
    Name string
}

func (StatusCheckDeletedFailed) Message

func (it StatusCheckDeletedFailed) Message() string

func (StatusCheckDeletedFailed) Reason

func (it StatusCheckDeletedFailed) Reason() string

func (StatusCheckDeletedFailed) Type

func (it StatusCheckDeletedFailed) Type() string

type StatusCheckDurationExceed

type StatusCheckDurationExceed struct {
}

func (StatusCheckDurationExceed) Message

func (it StatusCheckDurationExceed) Message() string

func (StatusCheckDurationExceed) Reason

func (it StatusCheckDurationExceed) Reason() string

func (StatusCheckDurationExceed) Type

func (it StatusCheckDurationExceed) Type() string

type StatusCheckExecutionFailed

type StatusCheckExecutionFailed struct {
    ExecutorType string
    Msg          string
}

func (StatusCheckExecutionFailed) Message

func (it StatusCheckExecutionFailed) Message() string

func (StatusCheckExecutionFailed) Reason

func (it StatusCheckExecutionFailed) Reason() string

func (StatusCheckExecutionFailed) Type

func (it StatusCheckExecutionFailed) Type() string

type StatusCheckExecutionSucceed

type StatusCheckExecutionSucceed struct {
    ExecutorType string
}

func (StatusCheckExecutionSucceed) Message

func (it StatusCheckExecutionSucceed) Message() string

func (StatusCheckExecutionSucceed) Reason

func (it StatusCheckExecutionSucceed) Reason() string

func (StatusCheckExecutionSucceed) Type

func (it StatusCheckExecutionSucceed) Type() string

type StatusCheckFailureThresholdExceed

type StatusCheckFailureThresholdExceed struct {
}

func (StatusCheckFailureThresholdExceed) Message

func (it StatusCheckFailureThresholdExceed) Message() string

func (StatusCheckFailureThresholdExceed) Reason

func (it StatusCheckFailureThresholdExceed) Reason() string

func (StatusCheckFailureThresholdExceed) Type

func (it StatusCheckFailureThresholdExceed) Type() string

type StatusCheckSuccessThresholdExceed

type StatusCheckSuccessThresholdExceed struct {
}

func (StatusCheckSuccessThresholdExceed) Message

func (it StatusCheckSuccessThresholdExceed) Message() string

func (StatusCheckSuccessThresholdExceed) Reason

func (it StatusCheckSuccessThresholdExceed) Reason() string

func (StatusCheckSuccessThresholdExceed) Type

func (it StatusCheckSuccessThresholdExceed) Type() string

type TaskPodPodCompleted

type TaskPodPodCompleted struct {
    PodName string
}

func (TaskPodPodCompleted) Message

func (it TaskPodPodCompleted) Message() string

func (TaskPodPodCompleted) Reason

func (it TaskPodPodCompleted) Reason() string

func (TaskPodPodCompleted) Type

func (it TaskPodPodCompleted) Type() string

type TaskPodSpawnFailed

type TaskPodSpawnFailed struct {
}

func (TaskPodSpawnFailed) Message

func (it TaskPodSpawnFailed) Message() string

func (TaskPodSpawnFailed) Reason

func (it TaskPodSpawnFailed) Reason() string

func (TaskPodSpawnFailed) Type

func (it TaskPodSpawnFailed) Type() string

type TaskPodSpawned

type TaskPodSpawned struct {
    PodName string
}

func (TaskPodSpawned) Message

func (it TaskPodSpawned) Message() string

func (TaskPodSpawned) Reason

func (it TaskPodSpawned) Reason() string

func (TaskPodSpawned) Type

func (it TaskPodSpawned) Type() string

type TimeUp

type TimeUp struct {
}

func (TimeUp) Message

func (t TimeUp) Message() string

func (TimeUp) Reason

func (t TimeUp) Reason() string

func (TimeUp) Type

func (t TimeUp) Type() string

type Updated

type Updated struct {
    Field string
}

func (Updated) Message

func (u Updated) Message() string

func (Updated) Reason

func (u Updated) Reason() string

func (Updated) Type

func (u Updated) Type() string

type WorkflowAborted

type WorkflowAborted struct {
    WorkflowName string
}

func (WorkflowAborted) Message

func (it WorkflowAborted) Message() string

func (WorkflowAborted) Reason

func (it WorkflowAborted) Reason() string

func (WorkflowAborted) Type

func (it WorkflowAborted) Type() string

type WorkflowAccomplished

type WorkflowAccomplished struct {
}

func (WorkflowAccomplished) Message

func (it WorkflowAccomplished) Message() string

func (WorkflowAccomplished) Reason

func (it WorkflowAccomplished) Reason() string

func (WorkflowAccomplished) Type

func (it WorkflowAccomplished) Type() string