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.