Skip to content
This repository was archived by the owner on May 14, 2022. It is now read-only.

Commit 086978d

Browse files
committed
feat: add plugin config
1 parent db43165 commit 086978d

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

plugin.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package pluginlib
2+
3+
type PluginTerraformConfigProvider struct {
4+
Vendor string
5+
Name string
6+
Version string
7+
ResourceName string
8+
Init string `yaml:"init,omitempty"`
9+
ProviderPerProject bool `yaml:"provider_per_project,omitempty"` // todo
10+
NameSuffix string `yaml:"name_suffix,omitempty"` // only used internally for upgrading Terraform providers
11+
}
12+
13+
type PluginTerraformConfig struct {
14+
Provider PluginTerraformConfigProvider
15+
}
16+
17+
type PluginConfig struct {
18+
Type string
19+
Terraform PluginTerraformConfig `yaml:"terraform,omitempty"`
20+
}

stackhead.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package pluginlib
22

3-
func StackHeadExecute(command string) error {
3+
import "bytes"
4+
5+
func StackHeadExecute(command string) (bytes.Buffer, error) {
46
// mock function
57
// behaviour is implemented in StackHead main repository
6-
return nil
8+
return bytes.Buffer{}, nil
79
}

0 commit comments

Comments
 (0)