terraform

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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