extproc

package
v8.56.1709838579-SHA-e... Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package extproc provides an enactment.Backend implementation that relies on an external process to enact changes.

It works by piping incoming change requests to an external process and reading the new state from the process's stdout. Requests are single-threaded per-node, but if the backend is registered for multiple nodes there may be multiple processes invoked in parallel. If the process returns with a non-zero exit code within the range of GRPC status codes (https://pkg.golang.ir/google.golang.org/grpc/codes#Code) then the appropriate status will be returned, otherwise the errors will be translated into a generic Unknown status (Code = 2).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cmdFn func(context.Context) *exec.Cmd, format protofmt.Format) enactment.Backend

Types

This section is empty.

Jump to

Keyboard shortcuts

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