kos/plugin.go

14 lines
238 B
Go

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)
}