mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 11:28:54 +00:00
init: use standard name message_type
to distinguish JSON messages
This commit is contained in:
parent
9a9f559806
commit
364a396fd6
@ -110,7 +110,7 @@ func runInit(ctx context.Context, opts InitOptions, gopts GlobalOptions, args []
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
status := initSuccess{
|
status := initSuccess{
|
||||||
Status: "success",
|
MessageType: "initialized",
|
||||||
ID: s.Config().ID,
|
ID: s.Config().ID,
|
||||||
Repository: location.StripPassword(gopts.Repo),
|
Repository: location.StripPassword(gopts.Repo),
|
||||||
}
|
}
|
||||||
@ -143,7 +143,7 @@ func maybeReadChunkerPolynomial(ctx context.Context, opts InitOptions, gopts Glo
|
|||||||
}
|
}
|
||||||
|
|
||||||
type initSuccess struct {
|
type initSuccess struct {
|
||||||
Status string `json:"status"` // "success"
|
MessageType string `json:"message_type"` // "initialized"
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Repository string `json:"repository"`
|
Repository string `json:"repository"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user