plugins

package
Version: v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Source Files

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