plugins

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Each

func Each(cb func(p *Plugin))

func Load

func Load(path string) error

func Number

func Number() int

Types

type Plugin

type Plugin struct {
	*plugin.Plugin
	// contains filtered or unexported fields
}

func Get

func Get(sh models.Shell) *Plugin

func LoadPlugin

func LoadPlugin(path string) (error, *Plugin)

func (*Plugin) Close

func (p *Plugin) Close()

func (*Plugin) Exec

func (p *Plugin) Exec(cmd string) ([]byte, error)

func (*Plugin) NewSession

func (p *Plugin) NewSession(sh models.Shell, timeouts core.Timeouts) (err error, clone *Plugin)

func (*Plugin) Type

func (p *Plugin) Type() string

type Plugins

type Plugins map[string]*Plugin

Jump to

Keyboard shortcuts

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