Documentation
¶
Index ¶
Constants ¶
View Source
const ( MsgSubjectFormat = "%s.%s" // action:bakFileName:opID:stepID MsgCreateBackupFormat = "%s:%s:%s:%s" // action:bakFileName:id MsgDeleteBackupFormat = "%s:%s:%s" // downloadDir:filename:id MsgStepRecoveryFormat = "%s:%s:%s" )
Variables ¶
This section is empty.
Functions ¶
func HandlerCrash ¶
func HandlerCrash()
Types ¶
type CmdDelivery ¶
type CommonReply ¶
type CommonReply struct { Error *errors.StatusError `json:"error,omitempty"` Data []byte `json:"data,omitempty"` }
type IDelivery ¶
type IDelivery interface { DeliverLogRequest(ctx context.Context, operation *LogOperation) (oplog.LogContentResponse, error) // request & response synchronously. CmdDelivery }
type LogOperation ¶
type MsgPayload ¶
type MsgPayload struct { Op Operation `json:"op,omitempty"` OperationIdentity string `json:"operationIdentity"` LastTaskReply []byte `json:"lastTaskReply,omitempty"` DryRun bool `json:"dryRun,omitempty"` Retry bool `json:"retry,omitempty"` Step v1.Step `json:"step,omitempty"` Cmds []string `json:"cmds,omitempty"` }
type NodeStatusPayload ¶
Click to show internal directories.
Click to hide internal directories.