mockplugin

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const (
	Name api.PluginName = "mockplugin"
)

Variables

This section is empty.

Functions

func New

func New(cfg *kcfg.Config) api.Plugin

New creates a mock plugin.

func NewPluginFn

func NewPluginFn(l *log.ZapLogger) api.Plugin

Types

type MockPlugin

type MockPlugin struct {
	// contains filtered or unexported fields
}

func (*MockPlugin) Compile

func (mp *MockPlugin) Compile(ctx context.Context) error

func (*MockPlugin) Generate

func (mp *MockPlugin) Generate(ctx context.Context) error

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

func (mp *MockPlugin) Start(ctx context.Context) error

func (*MockPlugin) Stop

func (mp *MockPlugin) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL