aterrors

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Amount of time to wait after a restart failed because nodes weren't down yet
	RestartNodesNotDownRequeueWaitTimeInSeconds = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ATErrors

type ATErrors struct {
	Writer               events.EVWriter
	VDB                  *vapi.VerticaDB
	GenericFailureReason string // The failure reason when no specific error is found
}

ATErrors handles event logging for errors that come back from admintools

func MakeATErrors

func MakeATErrors(writer events.EVWriter, vdb *vapi.VerticaDB, genericFailureReason string) *ATErrors

MakeATErrors will consturct the ATErrors struct

func (*ATErrors) LogFailure

func (a *ATErrors) LogFailure(cmd, op string, err error) (ctrl.Result, error)

LogFailure is called when admintools had attempted an option but failed. The command used, along with the output of the command are given. This function will parse the output and determine the appropriate Event and log message to write.

type EventDetails

type EventDetails struct {
	EventType string
	Reason    string
	Message   string
}

type TestEVWriter

type TestEVWriter struct {
	RecordedEvents []EventDetails
}

func (*TestEVWriter) Event

func (t *TestEVWriter) Event(_ runtime.Object, eventtype, reason, message string)

func (*TestEVWriter) Eventf

func (t *TestEVWriter) Eventf(vdb runtime.Object, eventtype, reason, messageFmt string, args ...interface{})

Jump to

Keyboard shortcuts

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