pluginhelpers

package
v1.13.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package pluginhelpers contains testhelpers that don't depend on package vault, and thus can be used within vault (as well as elsewhere.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPlugin

func GetPlugin(t testing.T, typ consts.PluginType) (string, string, string, string)

Types

type TestPlugin

type TestPlugin struct {
	Name     string
	Typ      consts.PluginType
	Version  string
	FileName string
	Sha256   string
}

func CompilePlugin

func CompilePlugin(t testing.T, typ consts.PluginType, pluginVersion string, pluginDir string) TestPlugin

to mount a plugin, we need a working binary plugin, so we compile one here. pluginVersion is used to override the plugin's self-reported version

Jump to

Keyboard shortcuts

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