Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PluginRoot = "~/.tflint.d/plugins"
PluginRoot is the root directory of the plugins This variable is exposed for testing.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
Plugin is an object handling plugins Basically, it is a wrapper for go-plugin and provides an API to handle them collectively.
func Discovery ¶ added in v0.14.0
Discovery searches plugins according the passed configuration The search priority of plugins is as follows:
- Current directory (./.tflint.d/plugins)
- Home directory (~/.tflint.d/plugins)
Files under these directories that satisfy the "tflint-ruleset-*" naming rules enabled in the configuration are treated as plugins.
type Server ¶ added in v0.14.0
type Server struct {
// contains filtered or unexported fields
}
Server is a RPC server for responding to requests from plugins
func (*Server) Attributes ¶ added in v0.14.0
func (s *Server) Attributes(req *tfplugin.AttributesRequest, resp *tfplugin.AttributesResponse) error
Attributes returns corresponding hcl.Attributes
func (*Server) EmitIssue ¶ added in v0.14.0
func (s *Server) EmitIssue(req *tfplugin.EmitIssueRequest, resp *interface{}) error
EmitIssue reflects a issue to the Runner
func (*Server) EvalExpr ¶ added in v0.14.0
func (s *Server) EvalExpr(req *tfplugin.EvalExprRequest, resp *tfplugin.EvalExprResponse) error
EvalExpr returns a value of the evaluated expression