Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Constants
- func New(cfg *kcfg.Config) api.Plugin
- func NewPluginFn(l *log.ZapLogger) api.Plugin
- type MockPlugin
- func (mp *MockPlugin) Compile(ctx context.Context) error
- func (mp *MockPlugin) Generate(ctx context.Context) error
- func (mp *MockPlugin) Init() error
- func (mp *MockPlugin) Name() string
- func (mp *MockPlugin) SetupChannel(ch chan *hubblev1.Event) error
- func (mp *MockPlugin) Start(ctx context.Context) error
- func (mp *MockPlugin) Stop() error
Constants ¶
View Source
const (
Name api.PluginName = "mockplugin"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockPlugin ¶
type MockPlugin struct {
// contains filtered or unexported fields
}
func (*MockPlugin) Init ¶
func (mp *MockPlugin) Init() error
func (*MockPlugin) Name ¶
func (mp *MockPlugin) Name() string
func (*MockPlugin) SetupChannel ¶
func (mp *MockPlugin) SetupChannel(ch chan *hubblev1.Event) error
func (*MockPlugin) Stop ¶
func (mp *MockPlugin) Stop() error
Click to show internal directories.
Click to hide internal directories.