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

Commit

Permalink
feat: add plugin config
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Nov 14, 2021
1 parent db43165 commit 086978d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions plugin.go
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"`
}
6 changes: 4 additions & 2 deletions stackhead.go
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
}

0 comments on commit 086978d

Please sign in to comment.