plugtest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailabilityChecker

type AvailabilityChecker bool

func (AvailabilityChecker) PluginAvailable

func (a AvailabilityChecker) PluginAvailable(root string) bool

func (AvailabilityChecker) PluginName

func (a AvailabilityChecker) PluginName() string

type FSable

type FSable struct {
	FS fs.FS
	// contains filtered or unexported fields
}

func (*FSable) FileSystem

func (f *FSable) FileSystem() (fs.FS, error)

func (*FSable) PluginName

func (f *FSable) PluginName() string

func (*FSable) SetFileSystem

func (f *FSable) SetFileSystem(fs fs.FS) error

type Feeder

type Feeder struct {
	Plugins plugins.Plugins
}

func (*Feeder) PluginFeeder

func (f *Feeder) PluginFeeder() plugins.FeederFn

func (*Feeder) PluginName

func (f *Feeder) PluginName() string

type IO

type IO struct {
	IO plugins.IO
}

func (*IO) PluginName

func (i *IO) PluginName() string

func (*IO) SetStdio

func (i *IO) SetStdio(io plugins.IO) error

func (*IO) Stderr

func (i *IO) Stderr() io.Writer

func (*IO) Stdin

func (i *IO) Stdin() io.Reader

func (*IO) Stdio

func (i *IO) Stdio() plugins.IO

func (*IO) Stdout

func (i *IO) Stdout() io.Writer

type Manager

type Manager struct {
	FeederFn plugins.FeederFn
	// contains filtered or unexported fields
}

func (*Manager) PluginFeeder

func (m *Manager) PluginFeeder() plugins.FeederFn

func (*Manager) PluginName

func (m *Manager) PluginName() string

func (*Manager) ScopedPlugins

func (m *Manager) ScopedPlugins() plugins.Plugins

func (*Manager) WithPlugins

func (m *Manager) WithPlugins(fn plugins.FeederFn) error

type Needer

type Needer struct {
	Fn plugins.FeederFn
	// contains filtered or unexported fields
}

func (*Needer) PluginName

func (n *Needer) PluginName() string

func (*Needer) WithPlugins

func (n *Needer) WithPlugins(p plugins.FeederFn) error

type Scoper

type Scoper struct {
	Plugins plugins.Plugins
}

func (*Scoper) PluginName

func (s *Scoper) PluginName() string

func (*Scoper) ScopedPlugins

func (s *Scoper) ScopedPlugins() plugins.Plugins

type Simple

type Simple int

func (Simple) PluginName

func (s Simple) PluginName() string

type StringPlugin

type StringPlugin string

func (StringPlugin) PluginName

func (s StringPlugin) PluginName() string

Jump to

Keyboard shortcuts

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