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

Commit 061051c

Browse files
committed
chore: add YAML mapping
1 parent a90bc93 commit 061051c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

plugin_config.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
package pluginlib
22

33
var PluginType = struct {
4-
PROXY int
5-
CONTAINER int
6-
DNS int
7-
MISC int
4+
PROXY int
5+
CONTAINER int
6+
DNS int
7+
APPLICATION int
88
}{
9-
PROXY: 0,
10-
CONTAINER: 1,
11-
DNS: 2,
12-
MISC: 3,
9+
PROXY: 0,
10+
CONTAINER: 1,
11+
DNS: 2,
12+
APPLICATION: 3,
1313
}
1414

1515
type TerraformProvider struct {
16-
name string
17-
vendor string
18-
version string
19-
resourceName string
20-
init string
21-
providerPerProject bool
16+
name string `yaml:"name"`
17+
vendor string `yaml:"vendor"`
18+
version string `yaml:"version"`
19+
resourceName string `yaml:"resource_name"`
20+
init string `yaml:"init"`
21+
providerPerProject bool `yaml:"provider_per_project"`
2222
}
2323

2424
type PluginConfig struct {
25-
Name string
26-
Description string
27-
Version string
28-
Author string
29-
PluginType int
25+
Name string `yaml:"name"`
26+
Description string `yaml:"description,omitempty"`
27+
Version string `yaml:"version,omitempty"`
28+
Authors []string `yaml:"authors,omitempty"`
29+
PluginType int `yaml:"plugin_type"`
3030
Terraform TerraformProvider
3131
}

0 commit comments

Comments
 (0)