plugin

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MPL-2.0 Imports: 2 Imported by: 60 modules, 61 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package plugin contains the implementations needed to make the built binary act as a plugin.

A plugin is implemented as an gRPC server and the host acts as the client, sending analysis requests to the plugin.

See internal/host2plugin for implementation details.

Index

Constants

View Source
const SDKVersion = host2plugin.SDKVersion

SDKVersion is the SDK version.

Variables

Serve is a wrapper of plugin.Serve. This is entrypoint of all plugins.

Functions

This section is empty.

Types

type ServeOpts

type ServeOpts = host2plugin.ServeOpts

ServeOpts is an option for serving a plugin. Each plugin can pass a RuleSet that represents its own functionality.

Directories

Path Synopsis
Package host2plugin exposes a gRPC client for use on a host (TFLint).
Package host2plugin exposes a gRPC client for use on a host (TFLint).
internal
fromproto
Package fromproto contains an implementation to decode a structure generated from *.proto into a real Go structure.
Package fromproto contains an implementation to decode a structure generated from *.proto into a real Go structure.
host2plugin
Package host2plugin contains a gRPC server (plugin) and client (host).
Package host2plugin contains a gRPC server (plugin) and client (host).
interceptor
Package interceptor contains gRPC interceptors.
Package interceptor contains gRPC interceptors.
plugin2host
Package plugin2host contains a gRPC server (host) and client (plugin).
Package plugin2host contains a gRPC server (host) and client (plugin).
proto
Package proto contains generated protocol buffers structures.
Package proto contains generated protocol buffers structures.
toproto
Package toproto contains an implementation to encode a Go structure into a structure generated from *.proto.
Package toproto contains an implementation to encode a Go structure into a structure generated from *.proto.
Package plugin2host exposes a gRPC server for use on a host (TFLint).
Package plugin2host exposes a gRPC server for use on a host (TFLint).

Jump to

Keyboard shortcuts

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