generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 13
/
main.go
30 lines (26 loc) · 896 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-sdk/plugin"
"github.com/outscale/packer-plugin-outscale/builder/bsu"
"github.com/outscale/packer-plugin-outscale/builder/bsusurrogate"
"github.com/outscale/packer-plugin-outscale/builder/bsuvolume"
"github.com/outscale/packer-plugin-outscale/builder/chroot"
"github.com/outscale/packer-plugin-outscale/datasource/omi"
"github.com/outscale/packer-plugin-outscale/version"
)
func main() {
pps := plugin.NewSet()
pps.SetVersion(version.PluginVersion)
pps.RegisterBuilder("bsu", new(bsu.Builder))
pps.RegisterBuilder("chroot", new(chroot.Builder))
pps.RegisterBuilder("bsusurrogate", new(bsusurrogate.Builder))
pps.RegisterBuilder("bsuvolume", new(bsuvolume.Builder))
pps.RegisterDatasource("omi", new(omi.Datasource))
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}