Movatterモバイル変換


[0]ホーム

URL:


plugin

package
v0.20.0Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License:MITImports:9Imported by:0

Details

Repository

github.com/terraform-docs/terraform-docs

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeList

type List struct {// contains filtered or unexported fields}

List is an object caching discovered plugins and their correspondingclients. Basically, it is a wrapper for go-plugin and provides an APIto handle them collectively.

funcDiscover

func Discover() (*List,error)

Discover plugins and registers them. The lookup priority of plugins is asfollow:

1. `TFDOCS_PLUGIN_DIR` environment variable (if it's set)2. Current directory (./.tfdocs.d/plugins)3. Home directory (~/.tfdocs.d/plugins)

Files under these directories that satisfy the "tfdocs-format-*" namingconvention are treated as plugins.

func (*List)All

func (l *List) All() []*pluginsdk.Client

All returns all registered plugins.

func (*List)Clean

func (l *List) Clean()

Clean is a helper for ending plugin processes.

func (*List)Get

func (l *List) Get(namestring) (*pluginsdk.Client,bool)

Get plugin by its name.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp