kos/plugin.go

14 lines
238 B
Go
Raw Permalink Normal View History

2023-04-23 17:57:36 +08:00
package kos
import "context"
type Plugin interface {
Name() string
Mount(ctx context.Context) (err error)
BeforeStart() (err error)
AfterStart() (err error)
BeforeStop() (err error)
AfterStop() (err error)
Umount() (err error)
}