runner

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 24 Imported by: 11

Documentation

Index

Constants

View Source
const (
	EnvOptionPrefix = "SNAP_PLUGIN_OPT_"
)

Variables

This section is empty.

Functions

func ParseCmdLineOptions

func ParseCmdLineOptions(pluginName string, pluginType types.PluginType, args []string) (*plugin.Options, error)

func ParseEnvOptions added in v2.2.0

func ParseEnvOptions(environ []string, opt *plugin.Options) (*plugin.Options, error)

func StartCollector

func StartCollector(collector plugin.Collector, name string, version string)

func StartCollectorWithContext

func StartCollectorWithContext(ctx context.Context, collector plugin.Collector, name string, version string)

func StartPublisher

func StartPublisher(publisher plugin.Publisher, name string, version string)

func StartPublisherWithContext

func StartPublisherWithContext(ctx context.Context, publisher plugin.Publisher, name string, version string)

func StartStreamingCollector

func StartStreamingCollector(collector plugin.StreamingCollector, name string, version string)

func StartStreamingCollectorWithContext

func StartStreamingCollectorWithContext(ctx context.Context, collector plugin.StreamingCollector, name string, version string)

func ValidateOptions

func ValidateOptions(opt *plugin.Options) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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