Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginManager ¶
type PluginManager struct {
Path string
}
PluginManager is a wrapper arround the terraform tools to download and execute terraform plugins, like providers and provisioners.
func (*PluginManager) Provider ¶
func (m *PluginManager) Provider(provider, version string, forceLocal bool) (*plugin.Client, discovery.PluginMeta, error)
Provider returns a client and the metadata for a given provider and version, first try to locate the provider in the local path, if not found, it downloads it from terraform registry. If forceLocal just tries to find the binary in the local filesystem.
func (*PluginManager) Provisioner ¶
func (m *PluginManager) Provisioner(provisioner string) (*plugin.Client, discovery.PluginMeta, error)
Provisioner returns a client and the metadata for a given provisioner, it try to locate it at the local Path, if not try to execute it from the built-in plugins in the terraform binary.
Click to show internal directories.
Click to hide internal directories.