plugins

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// TerraformPluginCacheDir is the directory where terraform caches tf approved providers
	// See https://www.terraform.io/docs/configuration/providers.html#provider-plugin-cache
	TerraformPluginCacheDir = ".terraform.d/plugin-cache"
	// TerraformCustomPluginCacheDir is the directory used by terraform to search for custom providers
	// We default to linux_amd64 since we're running terraform inside of docker
	// We vendor providers here
	// See https://www.terraform.io/docs/configuration/providers.html#third-party-plugins
	TerraformCustomPluginCacheDir = "terraform.d/plugins/linux_amd64"
	// CustomPluginDir where we place custom binaries
	CustomPluginDir = ".bin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPlugin

type CustomPlugin struct {
	URL    string           `json:"url" validate:"required"`
	Format TypePluginFormat `json:"format" validate:"required"`
	// contains filtered or unexported fields
}

CustomPlugin is a custom plugin

func (*CustomPlugin) Install

func (cp *CustomPlugin) Install(fs afero.Fs, pluginName string) error

Install installs the custom plugin

func (*CustomPlugin) SetTargetPath

func (cp *CustomPlugin) SetTargetPath(path string)

SetTargetPath sets the target path for this plugin

type TypePluginFormat

type TypePluginFormat string

TypePluginFormat is the plugin format such as binary, zip, tar

const (
	// TypePluginFormatTar is a tar archived plugin
	TypePluginFormatTar TypePluginFormat = "tar"
	// TypePluginFormatBin is a binary plugin
	TypePluginFormatBin TypePluginFormat = "bin"
	// TypePluginFormatZip is a zip archive plugin
	TypePluginFormatZip TypePluginFormat = "zip"
)

Jump to

Keyboard shortcuts

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