mock

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockClient

func NewMockClient(status string) (plugin.Client, error)

Types

type MockClient

type MockClient struct {
	Result string
}

func (MockClient) Close

func (m MockClient) Close(ctx context.Context)

func (*MockClient) Run

func (m *MockClient) Run(ctx context.Context, opts map[string]string) *plugin.Result

type MockFactory

type MockFactory struct {
	Result []string
	Index  int
}

func (*MockFactory) NewClient

func (pf *MockFactory) NewClient(ctx context.Context, wk workerruntime.Runtime, pluginType string, pluginName string, inputManagement string, env map[string]string) (plugin.Client, error)

Jump to

Keyboard shortcuts

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