Versions in this module Expand all Collapse all v1 v1.0.1 Jan 14, 2025 Changes in this version + type HookType uint8 + const CreateCgroupHook + const DestroyCgroupHook + const EndHook + const StartHook + type Plugin interface + CreateCgroupHook func(ctx *PluginContext) + DestroyCgroupHook func(ctx *PluginContext) + EndHook func(ctx *PluginContext) + Load func(meta PluginMeta) error + Name func() string + StartHook func(ctx *PluginContext) + Unload func(meta PluginMeta) error + Version func() string + type PluginContext struct + GrpcCtx context.Context + Keys map[string]any + Type HookType + func NewContext(ctx context.Context, req proto.Message, t HookType, hs *[]PluginHandler) *PluginContext + func (c *PluginContext) Abort() + func (c *PluginContext) Get(key string) any + func (c *PluginContext) Next() + func (c *PluginContext) Request() proto.Message + func (c *PluginContext) Set(key string, value any) + func (c *PluginContext) Start() + type PluginHandler func(*PluginContext) + type PluginMeta struct + Config string + Name string + Path string