portainer-devtool/go/tasks/exit.go

19 lines
239 B
Go
Raw Permalink Normal View History

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