diff options
Diffstat (limited to 'provider/provider.go')
| -rw-r--r-- | provider/provider.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/provider/provider.go b/provider/provider.go new file mode 100644 index 0000000..8545bf8 --- /dev/null +++ b/provider/provider.go @@ -0,0 +1,29 @@ +package provider + +import ( + p "github.com/pulumi/pulumi-go-provider" + "github.com/pulumi/pulumi-go-provider/infer" + "github.com/pulumi/pulumi/sdk/v3/go/common/tokens" +) + +const Name = "porkbun" + +var Version = "1.0.0" + +func New() (p.Provider, error) { + return infer.NewProviderBuilder(). + WithDisplayName("Porkbun"). + WithDescription("A Pulumi provider for managing DNS records on Porkbun."). + WithHomepage("https://git.sr.ht/~rbdr/pulumi-porkbun"). + WithRepository("https://git.sr.ht/~rbdr/pulumi-porkbun"). + WithLicense("Apache-2.0"). + WithKeywords("pulumi", "porkbun", "dns", "category/network"). + WithNamespace("rbdr"). + WithGoImportPath("git.sr.ht/~rbdr/pulumi-porkbun/sdk/go/porkbun"). + WithConfig(infer.Config(&Config{})). + WithResources( + infer.Resource(&DnsRecord{}), + ). + WithModuleMap(map[tokens.ModuleName]tokens.ModuleName{"provider": "index"}). + Build() +} |