portainer-devtool/go/tasks/common/exit.go

22 lines
300 B
Go
Raw Normal View History

package common
2022-12-25 22:53:51 +11:00
import "errors"
type ExitTask struct {
}
func NewExitTask() *ExitTask {
return &ExitTask{}
}
func (task *ExitTask) Execute() error {
return errors.New("exit")
}
func (task *ExitTask) SetParentTaskers(tasks []Tasker) {
}
2022-12-25 22:53:51 +11:00
func (task *ExitTask) String() string {
return "Exit"
}