diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-07-03 15:21:56 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-07-03 15:21:58 +0200 |
| commit | 95dc66cb108a311065917362a00b86c08767303d (patch) | |
| tree | 46ca65be6548224be0dd5a42bb86f2ecede14da8 /provider/provider.go | |
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() +} |