package plugins

import "github.com/hashicorp/nomad/plugins"

Index

Functions

func Serve

func Serve(f PluginFactory)

Serve is used to serve a new Nomad plugin

func ServeCtx

func ServeCtx(f PluginCtxFactory)

ServeCtx is used to serve a new Nomad plugin

Types

type PluginCtxFactory

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

Source Files

serve.go

Directories

PathSynopsis
plugins/base
plugins/base/proto
plugins/base/structs
plugins/csi
plugins/csi/fakefake is a package that includes fake implementations of public interfaces from the CSI package for testing.
plugins/csi/testing
plugins/device
plugins/device/cmd
plugins/device/cmd/example
plugins/device/cmd/example/cmd
plugins/device/proto
plugins/drivers
plugins/drivers/fsisolation
plugins/drivers/proto
plugins/drivers/testutils
plugins/drivers/utils
plugins/shared
plugins/shared/cmd
plugins/shared/cmd/launcher
plugins/shared/cmd/launcher/command
plugins/shared/hclspec
plugins/shared/structs
plugins/shared/structs/proto
Version
v1.10.0 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
21 minutes ago

Tools for package owners.