package
1.2.6
Repository: https://github.com/redhat-developer/ocdev.git
Documentation: pkg.go.dev

# Functions

GetCommandName returns a command if the MLE supports that field (otherwise empty string is returned).
NewConsoleMachineEventLoggingClient creates a new instance of ConsoleMachineEventLoggingClient, which will output events as JSON to the console.
No description provided by the author
NewNoOpMachineEventLoggingClient creates a new instance of NoOpMachineEventLoggingClient, which will ignore any provided events.
No description provided by the author
OutputError outputs a "successful" machine-readable output format in json.
OutputSuccess outputs a "successful" machine-readable output format in json.
OutputSuccessUnindented outputs a "successful" machine-readable output format in unindented json.
TimestampNow returns timestamp in format of (seconds since UTC Unix epoch).(microseconds time component).

# Constants

APIVersion is the current API version we are using.
Kind is what kind we should use in the machine readable output.
TypeDevFileCommandExecutionBegin is the entry type for that event.
TypeDevFileCommandExecutionComplete is the entry type for that event.
TypeLogText is the entry type for that event.
TypeReportError is the entry type for that event.

# Structs

AbstractLogEvent is the base struct for all events; all events must at a minimum contain a timestamp.
ConsoleMachineEventLoggingClient will output all events to the console as JSON.
DevFileCommandExecutionBegin is the JSON event that is emitted when a dev file command begins execution.
DevFileCommandExecutionComplete is the JSON event that is emitted when a dev file command completes execution.
GenericError for machine readable output error messages.
GenericSuccess same as above, but copy-and-pasted just in case we change the output in the future.
LogText is the JSON event that is emitted when a dev file action outputs text to the console.
MachineEventWrapper - a single line of machine-readable event console output must contain only one of these commands; the MachineEventWrapper is used to create (and parse, for tests) these lines.
NoOpMachineEventLoggingClient will ignore (eg not output) all events passed to it.
No description provided by the author
ReportError is the JSON event that is emitted when an error occurs during push command.

# Interfaces

MachineEventLogEntry contains the expected methods for every event that is emitted.
MachineEventLoggingClient is an interface which is used by consuming code to output machine-readable event JSON to the console.

# Type aliases

MachineEventLogEntryType indicates the machine-readable event type from an ODO operation.