This repository has been archived by the owner on May 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package pluginlib | ||
|
||
type PluginTerraformConfigProvider struct { | ||
Vendor string | ||
Name string | ||
Version string | ||
ResourceName string | ||
Init string `yaml:"init,omitempty"` | ||
ProviderPerProject bool `yaml:"provider_per_project,omitempty"` // todo | ||
NameSuffix string `yaml:"name_suffix,omitempty"` // only used internally for upgrading Terraform providers | ||
} | ||
|
||
type PluginTerraformConfig struct { | ||
Provider PluginTerraformConfigProvider | ||
} | ||
|
||
type PluginConfig struct { | ||
Type string | ||
Terraform PluginTerraformConfig `yaml:"terraform,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package pluginlib | ||
|
||
func StackHeadExecute(command string) error { | ||
import "bytes" | ||
|
||
func StackHeadExecute(command string) (bytes.Buffer, error) { | ||
// mock function | ||
// behaviour is implemented in StackHead main repository | ||
return nil | ||
return bytes.Buffer{}, nil | ||
} |