status

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func SaveStatusReport(statusFolder string, extName string, seqNo int, rootStatusJson []byte) error

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.

Jump to

Keyboard shortcuts

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