Versions in this module Expand all Collapse all v2 v2.1.0 Apr 8, 2024 Changes in this version + func BuildPluginMap(opt ...Option) (map[string]*PluginInfo, error) + func CreatePlugin(plugin *PluginInfo, opt ...Option) (interface{}, func() error, error) + func GetOpts(opt ...Option) (*options, error) + type HashMethod string + const HashMethodSha2256 + const HashMethodSha2384 + const HashMethodSha2512 + const HashMethodSha3256 + const HashMethodSha3384 + const HashMethodSha3512 + const HashMethodUnspecified + type InmemCreationFunc func() (interface{}, error) + type Option func(*options) error + func WithPluginClientCreationFunc(with PluginClientCreationFunc) Option + func WithPluginExecutionDirectory(with string) Option + func WithPluginFile(with PluginFileInfo) Option + func WithPluginsFilesystem(withPrefix string, withPlugins fs.FS) Option + func WithPluginsMap(with map[string]InmemCreationFunc) Option + func WithSecureConfig(with *gp.SecureConfig) Option + type PluginClientCreationFunc func(string, ...Option) (*gp.Client, error) + type PluginFileInfo struct + Checksum []byte + HashMethod HashMethod + Name string + Path string + type PluginInfo struct + ContainerFs fs.FS + InmemCreationFunc InmemCreationFunc + Path string + PluginClientCreationFunc PluginClientCreationFunc + SecureConfig *gp.SecureConfig v2.1.0-development20240408 Apr 8, 2024