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 ¶
Types ¶
type CustomPlugin ¶
type CustomPlugin struct { URL string `json:"url" validate:"required"` Format TypePluginFormat `json:"format" validate:"required"` TarConfig TarConfig `json:"tar_config,omitempty"` TargetDir string }
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" )
Click to show internal directories.
Click to hide internal directories.