Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: BSD-3-Clause Imports: 4 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) GetPostAction added in v0.55.0

func (m *MockClient) GetPostAction() *sdk.PluginPost

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