plugins

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TerraformCustomPluginCacheDir is the directory used by terraform to search for custom providers
	// We vendor providers here
	// See https://www.terraform.io/docs/configuration/providers.html#third-party-plugins
	TerraformCustomPluginCacheDir = "terraform.d/plugins/{{.OS}}_{{.Arch}}"
	// CustomPluginDir where we place custom binaries
	CustomPluginDir = ".fogg/bin"
)

Variables

This section is empty.

Functions

func Template added in v0.18.0

func Template(url, os, arch string) (string, error)

Types

type CustomPlugin

type CustomPlugin struct {
	URL       string           `json:"url" validate:"required"`
	Format    TypePluginFormat `json:"format" validate:"required"`
	TarConfig TarConfig        `json:"tar_config,omitempty"`
	// 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 TarConfig added in v0.19.3

type TarConfig struct {
	StripComponents int `json:"strip_components"`
}

TarConfig configures the tar unpacking

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