pluginopts

package
v1.28.7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPaths

func GetConfigPaths(pluginName string) []string

GetConfigPaths - Override GetConfigPaths calls.

func GetPluginMessages

func GetPluginMessages(string) []string

GetPluginMessages - Override plugin messages

func Init

func Init(pluginName string, properties *map[string]interface{})

Init - Override plugin Init calls

func IsPluginHardwired

func IsPluginHardwired() bool

IsPluginHardwired - Override to hardwire plugins into the kernel for debugging.

func NewOptionsBuilder

func NewOptionsBuilder(opts ...Option)

Types

type Option

type Option func(*OptionsBuilder)

func LoadOptions

func LoadOptions() Option

type OptionsBuilder

type OptionsBuilder struct {
	IsPluginHardwired func() bool
	GetPluginMessages func(string) []string
	GetConfigPaths    func(string) []string
	Init              func(string, *map[string]interface{})
}
var BuildOptions *OptionsBuilder

Jump to

Keyboard shortcuts

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