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
}
Click to show internal directories.
Click to hide internal directories.