sessionplugin

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 14 Imported by: 6

Documentation

Overview

Package sessionplugin implements functionality common to all session manager plugins

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISessionPlugin

type ISessionPlugin interface {
	GetPluginParameters(parameters interface{}) interface{}
	RequireHandshake() bool
	Execute(config contracts.Configuration, cancelFlag task.CancelFlag, output iohandler.IOHandler, dataChannel datachannel.IDataChannel)
	InputStreamMessageHandler(log log.T, streamDataMessage mgsContracts.AgentMessage) error
}

ISessionPlugin interface represents functions that need to be implemented by all session manager plugins

type NewPluginFunc

type NewPluginFunc func(context.T) (ISessionPlugin, error)

type SessionPlugin

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

SessionPlugin is the wrapper for all session manager plugins and implements all functions of Runpluginutil.T interface

func NewPlugin

func NewPlugin(context context.T, newPluginFunc NewPluginFunc) (*SessionPlugin, error)

NewPlugin returns a new instance of SessionPlugin which wraps a plugin that implements ISessionPlugin

func (*SessionPlugin) Execute

func (p *SessionPlugin) Execute(
	config contracts.Configuration,
	cancelFlag task.CancelFlag,
	output iohandler.IOHandler)

Execute sets up datachannel and starts execution of session manager plugin like shell

Directories

Path Synopsis
Code generated by mockery 2.7.4.
Code generated by mockery 2.7.4.

Jump to

Keyboard shortcuts

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