Skip to content

Commit

Permalink
events/registry: GetIDWithUUID() returns a ControllerID using the giv…
Browse files Browse the repository at this point in the history
…en UUID

This enables a caller to create a ControllerID of thier choice for use
by controllers that are not ephermeral - like flasher inband.
  • Loading branch information
joelrebel committed Aug 19, 2024
1 parent d224de5 commit b0e2d57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions events/registry/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ func GetID(app string) ControllerID {
}
}

func GetIDWithUUID(app string, id uuid.UUID) ControllerID {
return &workerUUID{
appName: app,
uuid: id,
}
}

type activityRecord struct {
LastActive time.Time `json:"last_active"`
}

0 comments on commit b0e2d57

Please sign in to comment.