Documentation
¶
Index ¶
- func RequestFlush(out chan<- struct{})
- type Controller
- type Options
- type PauseController
- func (c *PauseController) CompleteJob()
- func (c *PauseController) FinishIP()
- func (c *PauseController) SetStateNotifier(notifier func(PauseState))
- func (c *PauseController) State() PauseState
- func (c *PauseController) Toggle()
- func (c *PauseController) TrackJob()
- func (c *PauseController) WaitUntilRunnable(ctx context.Context) error
- type PauseState
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestFlush ¶
func RequestFlush(out chan<- struct{})
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func Start ¶
func Start(ctx context.Context, out io.Writer, snapshot snapshotFunc, pause *PauseController, interval time.Duration, opts Options) *Controller
func (*Controller) Found ¶
func (c *Controller) Found(result string)
func (*Controller) SetPauseState ¶
func (c *Controller) SetPauseState(state PauseState)
func (*Controller) Stop ¶
func (c *Controller) Stop()
type PauseController ¶
type PauseController struct {
// contains filtered or unexported fields
}
func NewPauseController ¶
func NewPauseController() *PauseController
func (*PauseController) CompleteJob ¶
func (c *PauseController) CompleteJob()
func (*PauseController) FinishIP ¶
func (c *PauseController) FinishIP()
func (*PauseController) SetStateNotifier ¶
func (c *PauseController) SetStateNotifier(notifier func(PauseState))
func (*PauseController) State ¶
func (c *PauseController) State() PauseState
func (*PauseController) Toggle ¶
func (c *PauseController) Toggle()
func (*PauseController) TrackJob ¶
func (c *PauseController) TrackJob()
func (*PauseController) WaitUntilRunnable ¶
func (c *PauseController) WaitUntilRunnable(ctx context.Context) error
type PauseState ¶
type PauseState string
const ( PauseRunning PauseState = "running" PausePending PauseState = "pending-pause" PausePaused PauseState = "paused" )
Click to show internal directories.
Click to hide internal directories.