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

defines

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fn

type Fn func() (Map, error)

Fn is a function returning the key-value pairs representing extra define directives for datapath node configuration.

type Map

type Map map[string]string

Map is the type containing the key-value pairs representing extra define directives for datapath node configuration.

func (Map) Merge

func (m Map) Merge(other Map) error

type NodeFnOut

type NodeFnOut struct {
	cell.Out
	// Fn must not be nil.
	Fn `group:"header-node-define-fns"`
}

NodeFnOut allows injecting configuration into the datapath by invoking a callback.

Prefer using NodeOut if possible since it has a valid zero value.

func NewNodeFnOut

func NewNodeFnOut(fn Fn) NodeFnOut

NewNodeFnOut wraps a function returning the key-value pairs representing extra define directives for datapath node configuration, so that it can be provided through the hive framework.

type NodeOut

type NodeOut struct {
	cell.Out
	NodeDefines Map `group:"header-node-defines"`
}

NodeOut allows injecting configuration into the datapath.

Jump to

Keyboard shortcuts

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