Skip to content

.Task Hook variable includes unexpected prefix text #837

Answered by garethgeorge
Morbus7 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey -- if I understand correctly you're trying to find the ID of the Plan or the name of the Repo that the task is running under?

The structure of hookvars is

type HookVars struct {
Task string // the name of the task that triggered the hook.
Event v1.Hook_Condition // the event that triggered the hook.
Repo *v1.Repo // the v1.Repo that triggered the hook.
Plan *v1.Plan // the v1.Plan that triggered the hook.
SnapshotId string // the snapshot ID that triggered the hook.
SnapshotStats *restic.BackupProgressEntry // the summary of the backup operation.
CurTime time.Time /…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by garethgeorge
Comment options

You must be logged in to vote
1 reply
@garethgeorge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants