plugins

package
v0.0.0-...-df660c4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package plugins contains shared plugin-side functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, stdin io.ReadCloser, run RunLoop) error

Run connects to the host and calls `run`.

Blocks until the stdin closes (which indicates the plugin should terminate).

Types

type RunLoop

type RunLoop func(context.Context, *grpc.ClientConn) error

RunLoop executes some concrete plugin logic.

It should run some kind of a loop until the context is canceled. It happens when the host decides to terminate the plugin.

Any logging done on this context goes to the host.

Directories

Path Synopsis
Package admission contains API for writing admission plugins.
Package admission contains API for writing admission plugins.

Jump to

Keyboard shortcuts

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