Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseProgress ¶
type BaseProgress struct {
// contains filtered or unexported fields
}
BaseProgress is the common implementation between MultiStep and Loop progress
func (*BaseProgress) Failure ¶
func (prg *BaseProgress) Failure()
Failure is the common BaseProgress implementation and simply notify the actual implementation we've finished a task unsuccessfully
func (*BaseProgress) Partial ¶
func (prg *BaseProgress) Partial(step int)
Partial notifies the actual implementation we've moved one step on the set of steps for the MultiStep progress implementation
func (*BaseProgress) Success ¶
func (prg *BaseProgress) Success()
Success is the common BaseProgress implementation and simply notify the actual implementation we've finished a task successfully
type Client ¶
type Client interface { // Desc is called when a new progress unit is started Desc(desc string) // Partial is called on behalf of a MultiStep progress task - it's called for each // partial step completion Partial(total int, step int) // Step is called on behalf of a Loop progress task - it's called based on the // time returned by LoopWaitDuration Step() // Success is called whenever a progress task is completed successfully Success() // Failure is called whenever a progress task is failed to be completed Failure() // LoopWaitDuration gives the implementation the opportunity configure the loop progress // step period LoopWaitDuration() time.Duration }
Client is the interface a frontend must implement in order to be notified about the install progress
type Loop ¶
type Loop struct { BaseProgress // contains filtered or unexported fields }
Loop defines the specific data for Loop progress implementation
Click to show internal directories.
Click to hide internal directories.