recorder

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func NewDebugRecorder

func NewDebugRecorder() *debugRecorder

Types

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 (ChaosCustomResourceCreateFailed) Reason

func (ChaosCustomResourceCreateFailed) Type

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

type ChaosCustomResourceDeleteFailed

type ChaosCustomResourceDeleteFailed struct {
	Name string
	Kind string
}

func (ChaosCustomResourceDeleteFailed) Message

func (ChaosCustomResourceDeleteFailed) Reason

func (ChaosCustomResourceDeleteFailed) Type

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

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

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

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

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

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

type StatusCheckFailureThresholdExceed

type StatusCheckFailureThresholdExceed struct {
}

func (StatusCheckFailureThresholdExceed) Message

func (StatusCheckFailureThresholdExceed) Reason

func (StatusCheckFailureThresholdExceed) Type

type StatusCheckSuccessThresholdExceed

type StatusCheckSuccessThresholdExceed struct {
}

func (StatusCheckSuccessThresholdExceed) Message

func (StatusCheckSuccessThresholdExceed) Reason

func (StatusCheckSuccessThresholdExceed) Type

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

Jump to

Keyboard shortcuts

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