Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanStack ¶
type CleanStack struct {
// contains filtered or unexported fields
}
Stack is a basic LIFO stack that resizes as needed.
func (*CleanStack) Cleanup ¶
func (clean *CleanStack) Cleanup(err error) error
Cleanup runs the whole cleanup stack. In case of error it runs all jobs and returns the first error occurrence.
func (*CleanStack) Pop ¶
func (clean *CleanStack) Pop() *Job
Pop removes and returns a node from the stack in last to first order.
func (*CleanStack) Push ¶
func (clean *CleanStack) Push(task Task)
Push adds a node to the stack that will be always executed
func (*CleanStack) PushErrorOnly ¶
func (clean *CleanStack) PushErrorOnly(task Task)
PushErrorOnly adds an error only node to the stack
func (*CleanStack) PushSuccessOnly ¶
func (clean *CleanStack) PushSuccessOnly(task Task)
PushSuccessOnly adds a success only node to the stack
Click to show internal directories.
Click to hide internal directories.