Documentation
¶
Index ¶
- func MarshalStatusReportIntoJson(statusReport types.StatusReport, indent bool) ([]byte, error)
- func ReportStatusToBlob(ctx *log.Context, hEnv types.HandlerEnvironment, metadata types.RCMetadata, ...) error
- func ReportStatusToLocalFile(ctx *log.Context, hEnv types.HandlerEnvironment, metadata types.RCMetadata, ...) error
- func SaveStatusReport(statusFolder string, extName string, seqNo int, rootStatusJson []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalStatusReportIntoJson ¶ added in v1.3.11
func MarshalStatusReportIntoJson(statusReport types.StatusReport, indent bool) ([]byte, error)
func ReportStatusToBlob ¶
func ReportStatusToBlob(ctx *log.Context, hEnv types.HandlerEnvironment, metadata types.RCMetadata, statusType types.StatusType, c types.Cmd, msg string) error
func ReportStatusToLocalFile ¶
func ReportStatusToLocalFile(ctx *log.Context, hEnv types.HandlerEnvironment, metadata types.RCMetadata, statusType types.StatusType, c types.Cmd, msg string) error
ReportStatusToLocalFile saves operation status to the status file for the extension handler with the optional given message, if the given cmd requires reporting status.
If an error occurs reporting the status, it will be logged and returned.
func SaveStatusReport ¶ added in v1.3.11
SaveStatusReport persists the status message to the specified status folder using the sequence number. The operation consists of writing to a temporary file in the same folder and moving it to the final destination for atomicity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.