Help us shape the future of Go! Take the 2026 Go Developer Survey

plugins

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MPL-2.0 Imports: 5 Imported by: 162

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(f PluginFactory)

Serve is used to serve a new Nomad plugin

func ServeCtx added in v0.11.3

func ServeCtx(f PluginCtxFactory)

ServeCtx is used to serve a new Nomad plugin

Types

type PluginCtxFactory added in v0.11.3

type PluginCtxFactory func(ctx context.Context, log log.Logger) interface{}

PluginCtxFactory returns a new plugin instance, that takes in a context

type PluginFactory

type PluginFactory func(log log.Logger) interface{}

PluginFactory returns a new plugin instance

Directories

Path Synopsis
csi
fake
fake is a package that includes fake implementations of public interfaces from the CSI package for testing.
fake is a package that includes fake implementations of public interfaces from the CSI package for testing.
cmd/example/cmd command
shared
cmd/launcher command

Jump to

Keyboard shortcuts

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