pluginargs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pluginargs contains base args that can be passed to plugin functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

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

Cleanup can be used to register cleanup functions.

func (*Cleanup) Close

func (c *Cleanup) Close() error

Close calls the cleanup function if it's set

func (*Cleanup) Do

func (c *Cleanup) Do(f func())

Do registers a cleanup function that will be called when the plugin RPC call is complete.

type Internal

type Internal struct {
	Broker      *plugin.GRPCBroker
	Mappers     []*argmapper.Func
	Cleanup     *Cleanup
	GRPCContext context.Context
}

Internal is a struct that is available to mappers. This is an internal-only type that is not possible for plugins to register for since it is only exported in an internal package.

Jump to

Keyboard shortcuts

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