Last active
July 28, 2020 12:19
-
-
Save jimmyfielding/0093427f603a9249cda08600e6f0c1d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fsm := fsm.NewFSM( | |
"request", | |
fsm.Events{ | |
{Name: "new_image", Src: []string{"request"}, Dst: "start"}, | |
{Name: "healthy_pods", Src: []string{"start", "stall"}, Dst: "success"}, | |
{Name: "timeout_waiting", Src: []string{"start"}, Dst: "stall"}, | |
{Name: "retire_image", Src: []string{"success"}, Dst: "retirement"}, | |
}, | |
fsm.Callbacks{ | |
"enter_start": func(e *fsm.Event) { | |
//emit slipstream event | |
}, | |
}, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment